do you know why auto hp cycle it doesn't increase 2 hp? it only increases full hp, not 2 hp, you can test (if you have free time) this I thank you very much
It is because you are iterating every 5 Millisecond:
Code:
0@ = Actor.Health($PLAYER_ACTOR)
0@ += 2
Actor.Health($PLAYER_ACTOR) = 0@
wait 5
Which in a mathematical sense:
2HP*1000ms/5ms = 400HP
It only takes 250millisecond to completely recover 100HP.
So if you want the regeneration to be slower. You just need to increase the amount of time to wait before increasing your HP, changing this line for example:
Code:
0@ = Actor.Health($PLAYER_ACTOR)
0@ += 2
Actor.Health($PLAYER_ACTOR) = 0@
wait 200 // regenerate 2HP every 200ms = 10HP per Second
In this topic's objective, do the same thing towards the armor regeneration you are planning to code. Good Luck!