Are you talking about the "default" HP/MP "healed" by Warcraft III Games when your Hero levels up ?
What do you meant by this ?but the tricky part is to detect every strength bonus
What you really meant was;
400/1000
Hero levels up
400/1051
Is this what you meant ?
To retain the HP ?
My heroes don't have integers (whole numbers) as Strength per level. For example, if your strength per level is 1.5, it will alternate between gaining 1 str and 2 str.What do you meant by this ?
The Strength per level, and X bonus HP per Strength are all set in Gameplay Constants, so there would be no problem as you define them yourselves, you have the power.
Why the need of periodic trigger by the way ?