mob
verb
Henge_No_Jutsu(mob/M as mob in oview())
set category = "Genjutsu"
if (usr.resting==1)
usr << "Not while resting"
return
if(usr.Chakra-5<=0)
src<<"You are too tired, rest"
return
else
usr.Chakra-=5
view(5) << "[src] says:Henge!"
sleep(20)
usr<<"[src] henges into [M]"
var/list/tempoverlays=new/list()
for(var/V in usr.overlays)
usr.overlays+=null
usr.underlays+=null
usr.overlays = M.overlays
usr.underlays = M.underlays
usr.icon= M.icon
usr.icon_state=M.icon_state
tempoverlays+=V
sleep(100)
usr.icon='players.dmi'
usr.icon_state="guy"
if(prob(2))
usr.ninjutsu+=1
usr << "<b>Ninjutsu Increased!!</b>"
Problem description:Im getting an error like V undefined variable...it makes no sense, but what i want this to do is basically save your overlays so when you turn back to normal you have your overlays also.
You didn't indent the contents of your for() loop, so as far as the compiler is concerned, V is nonexistant when it compiles things like
I'm sure there's other things to fix, but I can't make uber posts as I am supposed to be asleep by now(I slept in from school today, and my mom isn't too happy =P). I'll allow others to further examine your code.
Hiead