mob/
Monsters
VVVV
icon = 'monsters.dmi'
icon_state = "VVVV"
name = "Monster VVVV"
HP = 100
Attack = 5
Charge = 1
New()
. = ..()
spawn()
move()
proc/move()
while(src)
var/player_found = 0
for(usr in oview(8,src))
step_towards(src,usr)
player_found = 1
break
if(player_found != 1)
step_rand(src)
sleep(10)
sleep(5)
Bump(mob/M)
if(istype(M,/mob/Player))
attack(M)
proc/attack(mob/M)
var/damage = rand(1,Attack)
M.HP -= damage
M <<"You are being attacked by [src]!"
src.icon_state = "VVVV"
if(src.HP <= 0)
src.icon_state = "VVVV"
src.exp += rand(5,10)
src.level_up()
M.deathcheck(src)
Problem description: Hi, I have made a death proc and when the monsters attack you(The usr), the usr get's negative HP (below 0) and the death proc is never called and they never die, Help! If you need me to post the death proc just say so..