turf
Click()
var/mob/M = usr
if(M.delay)
M << "You can't do anything yet"
return
if(src in range(M.move,M))
usr.dir = get_dir(M,src)
M.delay = M.movedelay
for(M.loc,M.loc != src.loc,sleep(M.walkdelay))
step_towards(M,src)
M.Delay()
else
M << "A move to that position is not permitted "
return
mob/proc/Delay()
if(src.delay)
for(src.delay,src.delay > 0,src.delay--)
src << delay
sleep(1)
if(src.delay == 1)
sleep(1)
src << "You may perform another action"
src.delay--
break
I've tried doing this
if(src in range(M.move,M))
usr.dir = get_dir(M,src)
M.delay = M.movedelay
if(walk_to(M,src,0,M.walkdelay))
M.Delay()
if(src in range(M.move,M))
usr.dir = get_dir(M,src)
M.delay = M.movedelay
for(M.loc,M.loc != src.loc,sleep(M.walkdelay))
step_towards(M,src)
M.Delay()
if(walk_to(M,src,0,M.walkdelay))
Soooo... which way would be better to use and how would I fix them since neither of them work, lol.
Resonating Light