mob
verb
attack(mob/M as mob in oview(1)) //attack a mob within 1 tile of you
usr << "You attack [M]!" //send this message to the usr
oview() << "[usr] attacks [M]!" //send this message to everybody else
var/damage = rand(1,10) //assign a random # to a new variable
world << "[damage] damage!" //tell the damage to the world
M.hp -= damage
var
hp = 100
str = 2
def = 2
damage = 0
src = 1
Problem description:
Its Says Verbs.dm:30:error:M.hp:undefined var
I have no idea what to do...when i ad M.HP as a var it says duplicate meaning with the original HP... Please Help!