ID:141831
 
Code:
mob
Weak_Hollow
icon = 'hollows.dmi'
mhp = 50
hp = 50
rei = 50
mrei = 50
strength = 7
defence = 7
reiatsu = 7
npchollow = 1
New()
walk_rand(src,10)
Bump(mob/M)
..()
var/mob/P = M
if(src.fighting)
return
if(istype(P,/mob/))
if(P.enemy)
return
if(P.ispedal)
return
var/damage = rand(src.strength / 2,src.strength)-M.defence / 2
if(damage < 1)
damage = 1
P.hp -= damage
view(src,8) << "<b><font color = red>[src] attacked [P] for [damage] damage!"
P.DeathCheck(src)
src.frozen = 1
sleep(10)
src.frozen = 0


Problem description:
err well im kinda crappy with bump , well crappy with making Ai systems period but anyway, i cant seem to figure out how to get this little bugger to attack so, if anyone could point me in the right direction or help me fix it i would be much obliged! :P
There are monster ai demos and libraries that you can use. Just search for them