Testworld.dm:22:error: M.hp: undefined var
Testworld.dm:24:error: M/:/deathcheck: undefined proc
Code:
mob
verb
Attack(mob/M as mob in oview(1))
var/damage = usr.str - M.def
if(damage <= 0)
usr << "[M] easily dodges your attack!"
M << "You easily dodge [usr]'s attack."
else
M.hp -= damage
view() << "[usr] attacks [M] for [damage] HP!"
M:deathcheck()
Problem description:
1: Did you make a variable for the hp?
2: You probily mean M.deathcheck()