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
OOC(msg as text)
world << "<b><font color=green>(Main Owner)<font color=red>[usr]: [msg]"
Market
icon='Pokemon.dmi'
icon_state="Haunter"
Man
icon='Person.dmi'
icon_state="Man"
Alien
icon='Person.dmi'
icon_state="Alien"
Problem description:
Theres my whole mob section. Not shure what all would be needed to identify the problem.
As stated, I am getting an error warning saying that the line
'M.HP -= damage'
is an undefined var.
Ive tried all I can think of and I would really like to get help so I can actually damage and kill in my game..
Thanks ahead of time if you help me out