ID:170690
 
I just need a simple code to make my mob move around slow, and if it bumps you your are sent to a cert loc.



thanks
Fraon2
Fraon2 wrote:
I just need a simple code to make my mob move around slow, and if it bumps you your are sent to a cert loc.



thanks
Fraon2

This is easy. Here's a simple one I did on this browser (not compiled)

mob/npc
New()
.=..()
spawn(1) Wander() //spawns the wander proc
proc/wander() //defines the proc
spawn while(src) //while the src, the npc, is still alive or exists
step_rand(src) //makes src, the npc, randomly step in any direction
sleep(rand(10,20)) //adjust this for a step delay
Bump(mob/M)
M << "Ouch! Watch where you are going!"