var/heal_amount = rand(25,50)
var/hp = 50
mob/healer/verb/heal_me()
if(hp + heal_amount>101)
alert("You have max HP!")
hp = 100
if(hp + heal_amount<101)
hp += heal_amount
usr << "You heal your self for [heal_amount] HP! You now have [hp] HP."
ID:200677
Mar 12 2010, 10:00 pm
|
|
A simple heal verb.
|