mob
gm
verb
jail(m as mob in world)
m.Jail()
return
proc
Jail()
src.loc=locate(5,5,2)
src.jtime=100
src.icon='jailed.dmi'
if(src.jtime<=0)
src.loc=locate(2,2,1)
src.icon='dude.dmi'
else
sleep(10)
src.jtime-=1
im not sure if it matters but it says that this operation has not affect here...(its just a warning)
src.Jail()
Problem description:
okay well as a few of you have asked, the problem says that Jail() was not defined, also i added all the tabs after gm and it didnt help any matters
Your second problem is the way your looping it you lose 1 second every time but gain 100 every time you loop it.
So your basically making the variable go up 99 each time. I think you'd better off using for().