ID:269988
 
i need to creat a transform technique it should change the usrs icon to the targets as weel as their overlays to make the completely look like tha target the change back after about 5 10 seconds

obj/Genjutsu/Henge_no_Jutsu
verb
Henge_no_Jutsu(mob/characters/M in oview(15))
set name = "Henge no Jutsu"
set category = "Genjutsu skills"
if(usr.Chakra>=5)
var/ticon=usr.icon
var/toverlays=usr.overlays
usr.icon=M.icon
usr.overlays=M.overlays
usr.Chakra -= 2
sleep(1*usr.ChakraCon)
usr.icon=ticon
usr.overlays=toverlays
else
alert("you dont have enough chakra to do this")
This is quite simple. Look up the spawn() proc.