How could I do for an hp variable?
RPG Maker VXAce Supportin 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:
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.
Kes said:
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.
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:
Original thread: https://forums.rpgmakerweb.com/threads/how-could-i-do-for-an-hp-variable.110162/