ID:158052
 
else if(usr.performingjutsu==0 && using==1)
using=0
usr.overlays = new()
usr.icon=picon
usr.overlays+=poverlays
world << "Test"
usr.overlays += 'Clouds.dmi'
picon = 0
poverlays = new()

Clouds.dmi is set so it only runs once, so I figured it deleted itself from the overlays list when it ran, but it doesn't. So when an icon_state is changed to ="" it will run again. How do I make 'Clouds.dmi' just flick over the player as an overlay?

edit: Nevermind. I changed it to this;

var/obj/O = new()
O.icon = 'Clouds.dmi'
O.loc = locate(src.x, src.y, src.z)
O.layer = src.layer+1
flick("clouds", O)
spawn(10) del(O)