Hello everyone!
I have a question, that got me stumped, so basically I have the state Petrify in my game, which after an X amount of turns inflicts the one affected with the Stone state(which is basically a Death State).
That is working fine with no issue, however as an interaction I want to have a character being able to inflict the Petrify state, and then with another skill lower the turn count of the State, I know I can do that with the notetag.
<State X Turns: -y>
However if there's less turns left than what the State has and I use the skill to lower the turns, instead of triggering the Custom Leave Effect it reacts as if it was Removed instead. I could put the effect of inflicting Stone as a Remove effect but that would mean that healing the state will make the player character end up being affected by Stone.
So my question is, is there a way to check for a remaining amount of turns in the state and if there is is there a way to use Yanfly notetags to do the check so that there's always at least 1 turn left on the state so that it triggers on its own on the opponent next turn? Basically something like:
Inflict petrify for 3 turns > Use skill that lowers petrify turn count -4 > Check is made so that Petrify is left with only 1 turn > Foe next turn triggers Stone
I have a question, that got me stumped, so basically I have the state Petrify in my game, which after an X amount of turns inflicts the one affected with the Stone state(which is basically a Death State).
That is working fine with no issue, however as an interaction I want to have a character being able to inflict the Petrify state, and then with another skill lower the turn count of the State, I know I can do that with the notetag.
<State X Turns: -y>
However if there's less turns left than what the State has and I use the skill to lower the turns, instead of triggering the Custom Leave Effect it reacts as if it was Removed instead. I could put the effect of inflicting Stone as a Remove effect but that would mean that healing the state will make the player character end up being affected by Stone.
So my question is, is there a way to check for a remaining amount of turns in the state and if there is is there a way to use Yanfly notetags to do the check so that there's always at least 1 turn left on the state so that it triggers on its own on the opponent next turn? Basically something like:
Inflict petrify for 3 turns > Use skill that lowers petrify turn count -4 > Check is made so that Petrify is left with only 1 turn > Foe next turn triggers Stone