Problem description:Okay I have a life system in my game but I can't figure out how to make it so you can recover them by using an object.
Here is my code
mob/player
var/lives = 3
obj/HP_Recover
verb/Recover_Lives()
if(lives < 3)
lives = 3
usr << "Your lives have been recovered!"
else
usr << "You alredy have all of your lives."
I keep getting the error: "lives undefined var"
Please help!!!
usr.life