ID:179102
 
id dont understand this one bit! NOT AT ALL!

mob/var/speed=3
mob/var/walk=1
mob/Move()
if(src.walk)
..()
src.walk = 1
sleep(speed)
src.walk = 1

ok this speed code has been working GREAT! for the past three days, i added a few things else to my game not affecting loggin or any of these variables

AND OUT OF NOWHERE IT JUST STOPS WORKING!!
THE CODE PROVIDES NO AFFECT ON THE PLAYERS SPEED
NO MATTER WHAT THE VARIBLE IS SET AT! just like that
no errors, no runtime probs just that
The problem is that walk is ALWAYS equal to 1. You never change it to 0 so the person can always move.

you need to change it to this:

mob/var/walk = 1
mob/Move()
if(walk)
..()
walk=0
sleep(speed)
walk=1

That way if the src tries to move while it has already moved it won't be able to, walk will be set to 0 until it's move time has expired, then it can walk again.

And please, don't use all caps in your posts (topic or body), I was tempted not to answer.