ID:267474
 
I have a chat game with stick figures and i give the player a choice of a red, blue, or green figure. I have actions that they can do, things like dance or cheer, and it shows the stick figure doing these things. I have all of the actions being done by a blue stick figure and whenever your a red or green stick figure and choose an action it shows a blue stick figure doing it. How do i make it so that if they click theese actions it will show the color stick that they had chosen doing the action?
Make sure, the icon or icon state your making the stick figure switch to is the apporiate color.
In response to Goldbot8
thats not what it is, i have a pop up asking what color they want. i have verbs in my code like dance and cheer. i have different moving icons based on the three colors. i need help with if statements that would go under the verb and displays the right color moving icon based on the color that they chose.
In response to SSJ3_Dark_Goku
The Problem is is that when they click cheer or somehting it reverts to a new icon state. There fore going to your blue icon. What youll have to do is either make more then 1 strick icons and revert to a diffrent one or have them define there color each time.
In response to Cloud54367
i know that, what i'm looking for is what specificly i have to type in to do it.
In response to SSJ3_Dark_Goku
remember that code i gave you? for the green, red ,and black, just make a new file for each of them. in them make an icon of them doing their actions. Then copy and past the code of the person dancing and change the .dmi files to the right one.
In response to Starwarspower
what do i type in after the if commands to make it go to the right dm files?
In response to SSJ3_Dark_Goku
Easy. When u make them pick an icon, set a var to thier color. Then when they hit dance(or whatever) u put something like this:
mob
verb
Dance()
if(usr.stickfigure == "Green")
usr.icon_state = "dancingreen"
else if(usr.stickfigure == "Blue")
usr.icon_state = "dancinblue"
else if(usr.stickfigure == "Red")
usr.icon_state = "dancinred"

So on and so forth until all of the colors are done right. Just make sure that when you pick a color in the begining, it sets their var stickfigure to "Green","Blue", or "Red" or whatever color it should be.
In response to SSJ3_Dark_Goku
Ok. I'll explain it all. First you need a seperate icon file for all the different colors you have and a icon_state for like dance or whatever for every different color. And make sure that the icon state names are the same for each icon state that is the same. In other words. The icon state name for dance is dance for every color. Then go about your verbs reguraly. When the verb switches the users icon state it will default to the users mobs icon file and search for the icon state there. So if your green it will go to green first and ect.

Resonating Light