ID:270417
 
mob/verb/Henge_no_Jutsu(mob/M in view())
if(usr.Chakra >= 2)
usr.Chakra-=2
usr.icon=M.icon
sleep(150)
usr.icon=icon('Light.dmi')
else
usr<<"You dont have enough chakra to use this!"

this wont change the usr into M's Icon...how do i fix this and how do i make it change the usr back to the icon they had before?
You'd have to change the icon and icon_state variables. To change the icon back, use the initial() procedure, or store their icon and icon_state to a variable.
In response to CaptFalcon33035
will this work?
mob/verb/Henge_no_Jutsu(mob/M in view())
if(usr.Chakra >= 2)
usr.Chakra-=2
usr.icon=M.icon
usr.icon_state=M.icon_state
sleep(150)
usr.icon=icon('Light.dmi')
else
usr<<"You dont have enough chakra to use this!"
In response to Dragon_Fire6564
Why don't you try it out? And you still have to store the old icon and icon_state variables.

Of course, all this is assuming you have no overlays or underlays.
mob/verb/Henge_no_Jutsu(mob/M in view())
if(usr.Chakra >= 2)
usr.Chakra-=2
oldy = usr.icon //this variable will change it back to the old icon your character had...
usr.icon=M.icon
sleep(150)
usr.icon = oldy //changing it back...
else
usr<<"You dont have enough chakra to use this!"
try that...
In response to Speedro
Icon changing for a small time is tricky. What if the player logs out? What if the player uses ANOTHER icon changing skill? It'd pick his already changed icon as oldy!