verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
if (HP <= 0)
usr << "[src] has died at your hands!"
del(src)
else
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(10,20) //assign a random # to a new variable between 1-10
world << "[damage] damage!" //tell the damage to the world
M.HP -= damage //take away the damage from M
M.DeathCheck()
Problem description:
Well, this is what I have now, and I just started to learn coding again. But when I attack an enemy, he doesnt die, it says he does, but he doesnt die, like, get deleted...