ID:271656
 
This is for Combat.
How would i go about having my Icon go into an Attack stat when it attacks. Then after it attacks it goes back into it's normal base state. I've tried everything i know, but i can't seem to figure out it.
Thank you.
Well, how exactly are you attacking? If by a verb then:

mob/verb/Attack()
icon_state = "Attack"
//your code
icon_state = "Normal"


Fairly self-explanatory, I'd like to think.
In response to Abhishake
Thank you, sometimes something very obvious just slips by me.
In response to Blagh Nabbit
Perhaps it'd be best to read the DM Guide which covers these things.

http://www.byond.com/docs/guide/
In response to Abhishake
actually it's better to use flick() in this case.
In response to Miran94
Well no, since we don't have a clue what his attack verb does. You can't assume it to just be a damage calculator and a death check caller.