How could I do for an hp variable?

.
I want it to start automatically when I have to have 15% health.
in that case you cannot use common events or map events, but need to use troop events.

And you don't need those control variables at all, because the default troop conditions already include "actor health below x%".
However, you need to add the troop event to every troop and need one event for every actor that needs it.

(or you can use a plugin for base troop events and then place the code into the base troop)
.
@ShadowCaptain22 you might have missed this:
Kes said:
If it is only in battle Iavra has a script which more or less does this.

If you do not plan to use that script, you have to add a check at the end of each turn to see if your actor HP reached that threshold and, in case they did, add the state and transform the user. We all know that there is no condition to directly trigger the transformation when damage is dealt or the state is applied, but that is why you were told about that script.
It seems to me that you are wrong, in the conditionals there is no possibility of "damage less than 15%"
no, you are the one that is confusing things.
all this time we were talking about HP less than 15% - and that option exists. Now you're talking about damage less than 15%?
Just as a proof:
actorhp.png
.

Original thread: https://forums.rpgmakerweb.com/threads/how-could-i-do-for-an-hp-variable.110162/