My monster wont come after me;
mob
var
Var = 1
mob
icon = 'Icons.dmi'
icon_state = "Player"
mob/other
monster
icon = 'Icons.dmi'
icon_state = "Monster"
var
movement = 3
New()
look()
dillydally()
..()
proc
look()
for(var/mob/M as mob in oview())
if(M.Var >= 1)
walk_towards(M,src,movement)
else
look()
return ..()
dillydally()
walk_rand(src,movement)
look()
turf
icon = 'Icons.dmi'
icon_state = "Grass"
My monster wanders around....but doesnt come after me. Whats wrong with it? (It being the code, not the monster ;))
The Bearded One
ID:261324
Dec 17 2001, 6:57 pm
|
|
I Have A Beard wrote:
My monster wont come after me;... proc I see a few problems here:
|
In response to Lummox JR
|
|
oview() defaults to something like oview(6,usr), and usr is inappropriate for this case. I'd try oview(6,src) instead. (BTW, you shouldn't need to use "as mob", since the variable already has a /mob type.) Teensy correction... it defaults to oview(world.view, usr). =) Also, you can simply use oview(src). |
<font color="red"> Super saiyan3