ID:269909
 
People, now i want to make a usr change his icon and a few of time, the icon backs, like this:

usr.icon = 'gyroman.dmi'
sleep(30)
usr.icon = X

the X is the icon that the usr have before use this verb, but in my game have various icons to choose, in the any part of the game!!!

i want to know how i do this...
First you need to understand what usr is, so you don't use it wrong in a sentence. Read up on that byond bwiki page about usr. (I don't have the link handy right now)

For your problem, you would have to store the icon somewhere temporarily, then set it back by setting the object's icon back to the variable.

mob/proc
switch_icon()
var/temp = src.icon // hold the icon in a variable
src.icon = 'newicon.dmi'
spawn(40)
src.icon = temp // revert the icon back


~~> Unknown Person
In response to Unknown Person