ID:179704
 
has can i get the monster to stop when it come into contact with player here is the code i am useing

mob/monsters
typechar = "monster"
var
walkspeed
warspeed
New()
wander()
checkarea()
proc
wander()
walk_rand(src,walkspeed)
checkarea()
for(var/mob/M in oview(4))
if(M == null)
return 0
if(M.typechar == "normal")
walk_to(src,M,0,warspeed)
monsterattack(M)
spawn(30)
checkarea()
monsterattack(mob/M in oview(1))
if(M == null)
return 0
if(src.attack - M.defense > 0)
M.hp -= src.attack - M.defense
M.DeathCheck()
else
M << "[src.name] cannot hurt you, dont be alarmed!!"
call walk(monsterhere,0) on the monster, and he will stop walking.

if you dont understand, look up walk() in the F1 help section of dream maker.

FIREking
Kas wrote:
has can i get the monster to stop when it come into contact with player

walk_to(src,M,0,warspeed)

Changed this line to
walk_to(src,M,<font color=#ffffa0>1</font>,warspeed)

The monster will continue to follow M if it runs away, but will stop moving when it is one space away from M.