HP Bug need help in Developer Help
|
|
Code:
mob/verb attack(mob/M as mob in oview(1)) usr << "You attack [M]!" oview() << "[usr] attacks [M]!" var/damage = usr.str - M.def world << "[damage] damage!" M.HP -= Damage() M.DeathCheck() Pickup() Equip () mob/verb Say(msg as text) world << "[usr]: [msg]" Stats () usr << "Your Current HP is [usr.health]." usr << "Your strength is [usr.str]." usr << "Your defence is [usr.def]." usr << "Your mana is [usr.mana]."
|
Problem description:
loading kaefe.dme
kaefe.dm:63:error:M.HP:undefined var
kaefe.dmb - 1 error, 0 warnings (double-click on an error to jump to it)
I've the tutorials and several guides and I still don't understand the problem could someone please help with this
|
varHP = 30