ID:165436
 
When ever i try to code a wander proc it nevre works this is an exampe

mob
stickman
icon = 'sticky.dmi'
proc/wander()

walk_rand(src,15)
sleep(5)
spawn(5)
wander()
I suggest you read the linked pages on the 'Resources' panel on the left of this page, particulary the DM Guide and DM Reference (you can also press F1 in Dream Maker to open it).

Also, before you use a proc, make sure you look it up in the DM Reference and understand what it does...

Lastly, there must be a dozen of Wander() procs around by now. Do some searches and learn from them.
If you're attempting to make a recursive loop then you need to have the call for wander() after the spawn() (like so: spawn(5) wanter() or tabbed in twice more so it's considered part of the spawn(). In my opinion, a while loop would do better here anyways.