ID:2510510
 
Code:
mob/verb/test()
flick("[src.icon_state]", src)


Problem description:
I am working on a project and just want to flick the user's movement state to animate attacking, instead of making a independent icon_state just for it, mostly cause I am lazy. Is there a way to do that? I've tried varations of the above code and haven't gotten the results I want yet.

If you're trying to flick the animation of src's icon_state, that won't work if it's a moving icon_state. You would have to duplicate the src's icon_state in the icon file and make sure it is not a moving state, maybe just add a 2 at the end of its name.

mob/verb/test()
flick("[src.icon_state]2", src)
Alright, I assumed that was the case. Thanks for taking the time to respond.