I have an attack that at the end does the deathcheck here is my deathcheck code but sometimes it works and most of the time it doesnt work
/mob/proc
DeathCheck(atom/M)
if (HP <=0)
world<<"[src] has been MURDERED!"
usr<<"You gain [src.murder_points] murder points"
usr.murder_points += src.murder_points
src.murder_points=0
src.Move(locate(1,37,1))
src.HP=src.max_HP
..()
the tabbing is correct just paste it somewhere else
ID:178547
Apr 28 2002, 7:40 am
|
|
if(usr.hp <= 0)
//go to hell or whatever
else
return