Hello there!
Sorry if this is kinda of a noobish question, but in my game, it's possible to go above the max health. What I want is that the health will slowly lower (~1 HP per half-second) back to the default max. Think of Overheal in TF2. I've tried several times, but each time, my character just stops until it reached the default max health. Help?
Offline
It sounds like you have
repeat until <(HP) = [max hp]> change [HP v] by (-1) wait (0.5) secsin your moving script.
Last edited by scimonster (2012-04-11 23:42:28)
Offline
You're welcome!
Offline
Add this script:
when gf clicked forever wait until < (hp) > (max hp) > set [hp v] to (max hp)
Last edited by LiquidMetal (2012-04-12 00:12:15)
Offline
scimonster wrote:
It sounds like you have
repeat until <(HP) = [max hp]> change [HP v] by (-1) wait (0.5) secsin your moving script.
Try moving it to its own script.
repeat until <not<(health) > [max hp]>> change [HP v] by (-1) wait (0.5) secs endIs a little better, as you can't skip over the max health and continue to lose health. Of course, both require you to call upon them whenever health goes above the maximum. An alternative could be this:
forever if <(health) > [max health]> change [health v] by (-1) wait (0.5) secs
Offline