ID:146824
 

I cant get my monsters to attack players, any ideas?
Players are mob/PC type.

[Heres a sample of my attack procs]
proc
attacking()
for(var/mob/PC/M in oview(4))
walk_towards(src,M,10)
if(src.dir==1||src.dir==2||src.dir==4||src.dir==8)
for(M in get_step(src,src.dir))
var/obj/O=new/obj/mob1weapon(get_step(src,src.dir))
O.dir=src.dir
damagedealt = rand(1,src.attack)
M.hp -= damagedealt
M << "[src] Deals [damagedealt] to you!"
M.death()
sleep(2)
del(O)
else
continue
What the blungering [] is "else" doing there?
In response to Crashed
A line in the wrong spot
suppost to end with
else
contunie
In response to Crashed
Crashed, that totally unnecessary swearing is giving you a big warning. It's against community standards.


/Gazoot