mob
step_size = 4
Player
icon = 'MainCharacter.dmi'
icon_state = "Walk"
Login()
usr.loc=locate(7,24,1)
proc/HpRegen()
while (Hp < MaxHp)
sleep(10)
Hp += rand(3, 7)
verb/Damage(mob/M)
M.Hp -= 10
verb/HealthChech(mob/M)
usr << "You have [Hp] points!"
Problem description:
Yeaah, having issue with such a simple concept. Basically, trying to make a proc that activates the moment your health is lower than your maximum health.
I can't figure what I'm doing wrong. I've even tried using that proc with the additions of arguments ('mob/M'), but nothing.
A damage procedure isn't really made yet since I want to be able to get this part down.For testing purpose, I have a damage verb to try and force the proc into action.
You should use the damage or heal procs instead of setting hp directly, otherwise health won't be regenerated automatically.