Incendio
icon = 'Spells.dmi'
icon_state = "Incendio"
density=1
var/player=0
Bump(mob/M)
if(istype(M))
src.owner<<"Your [src] hit [M] for 15 damage!"
M.hp-=15
Dcheck(M)
del src
else
del src
mob
proc/Dcheck(mob/M) //Death Check
if(M.hp <= 0) //If M's hp is less that or equal to 0
M<<"You died!" //tell M they died
M.hp = M.maxhp //Make M's health be 50
M.loc = locate(4,4,2) //Start M at 1,1,1
if(M.player == 0)
del(M)
Problem description:Obj.dm:86:error:Dcheck:undefined proc
Obj.dm:102:error:Dcheck:undefined proc
I dont know whats wrong with that
remember that src is the object in this case, so there wasn't a proc called Dcheck under the obj type path(i'm assuming it was that) so i changed it around. It should work(Indentation may be messed up)