ID:144242
 
Code:
mob
NPC
Craig
icon = 'player.dmi'
icon_state = "avatar"
density = 1
Move()
ai_random_wander()

proc
ai_random_wander()
step_rand(src)
spawn(10)
..()


Problem description:

Ive done it before for another game, but lost the source. I dont understand why its not working... any help?
Actually, there's a built-in procedure to do this. Look up walk_rand in the ref (F1 in Dream Maker).
In response to Popisfizzy
I would prefer using New() rather than Move()
In response to Miran94
He can't, because the method he's using doesn't loop, but is instead called everytime Move() is.
In response to Popisfizzy
Correction:

Popisfizzy didn't write:
He can't, because the method he's using is really crappy and broken, and he apparently doesn't really know what he's doing.

If it works, it's due to sheer luck; it really shouldn't compile, though it isn't the first time I've seen such things apparently compiling.