proc
DeathCheck()
if (HP <= 0) //check to see if attack is a death hit
world << "[src] dies!" //do the death messaging
usr.loc = locate (32,26,1)
usr.HP = usr.MaxHP
usr.Chacra = usr.MaxChacra
usr.Bloodline = 0
mob/verb
Fireball_Jutsu(mob/M in oview(5))
set category = "Jutsu"
DblClick()
if (M.HP <=0)
usr << "[M] is already dead!"
else
icon = 'Skills.dmi'
icon_state = "FireballJutsu"
usr << "you used fire ball jutsu on [M]!"
oview() << "[usr] fire ball jutsu [M]!"
var/damage=usr.Power/2
usr.Chacra -= 30
M.HP -= damage
M.DeathCheck()
Problem description:
the problem with my death check is the person that did the killing dies to and i just wanna set it so only the person with 0 hp dies. iv tried switching the usr. to M but it wont work.
also with the projectile thats my skill but when i use it the imiage doesnt come up it only changes the char's icon.