ID:261332
 
In his battle system, the monsters wont walk towards you when they see you unless you have gone within one tile of them at some point, so I was wondering how I could make it so they would walk towards you the first time they see you. I tried making my own proc, but it did't work out so well, here's what I came up with;

mob
proc
getem()
for(var/mob/M in oview())
if(M.getme >= 1)
walk_to(src,M,O,walkspeed)
else
wander()

Can somone help me please? After all, it's Christmas :).
I know I bumped the post, I know I shouldn't really do it, however I did wait about 2 days, and instead of just posting this question again, I thought I would just bump the pervious one, I'm sorry, but I really need help with this.
Philipe The Bard wrote:
mob
proc
getem()
<font color="red">for(var/mob/M in oview(5))//Input in abow many tiles here</font color="red">
if(M.getme >= 1)
walk_to(src,M,O,walkspeed)
else
wander()

Can somone help me please? After all, it's Christmas :).
In response to Super saiyan3
Oview() does tell how many tiles, anything in view. When I did try oview(5), I got a HUMUNGOUS! runtime error. Can anyone else help me please?