hokagemountain1
icon='hokagemountain1.dmi'
layer=5
Enter(mob/M) if(istype(M)) if(M.client) return 1
Entered(mob/M) if(istype(M))
if(M.dir==SOUTH)
/* stepdown
M.locked=1
step(M,SOUTH)
if(!istype(M.loc,/turf/hokagemountain1))
M.locked=0
else {sleep(3);goto stepdown}*/
while(istype(M.loc,/turf/hokagemountain1))
sleep(3)
M.locked=1
step(M,SOUTH)
M.locked=0
return 0
Problem description: I've tryed both the un-used part and the used part of code you see. I'm trying to make the mob step south as long as they're on that turf when their dir is south. Could anyone tell me why they can't move when they enter the turf when facing south? o.o
If I had to venture a guess, I'd probably say it was the while() loop. M.locked sounds like something that will prevent movement. If you've overridden the Move() proc to make it so that they can't move when locked, then the step(M,SOUTH) line will fail, and your while() loop will go on forever.
Hiead