ID:174717
 
I've got a very simple question. What is the command type-thing for changing states? Like, if I want the monster that just died to change state to "dead" what would I do?
You would need a var, say a var called "state". When the monster dies you can change the var to be a text string containing "Dead". If you want to change the monsters apperance then you must play with icon_state. Ex For Both:

To change the var(src == monster):
src.state = "Dead"

To change the apperance
src.icon_state = "Dead"//You must of course MAKE a dead icon for this monster


Just change the icon_state variable for the monster.

<code>monster.icon_state = "Dead"</code>