mob/verb/attack(mob/M as mob in oview(1))
usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,10)
world << "[damage] damage!"
M.HP -= damage
Im taking this from zigals tutourials and it says M.HP is an undefined var, plz tell me how to define it.
I know there is indentation errors but there is none in my acual code, i just did that to make it shorter.