automatically add a state when actor has 20% hp or less?

hey all, this might be simple but im not too sure how to do it ... is it possible to have a state automatically apply to an actor when they are in critical condition? i basically just need that to happen since i was planning on it being a core mechanic. thank you in advance !!!
Super easy. Link to a tutorial for that kind of thing is in my signature (ACE).

So what you do is set up the basic system from my tutorial, and then create an event that runs at the end of each action that checks each actor's HP, and if it's below 20%, apply a state to them (and optionally, removes it from them if it's above 20%...)
That's a method to do it through events.

For something a bit more streamlined with a plugin, you'd use Yanfly's Auto Passive States.

Put the passive state on the actor and give it the notetag:
Code:
<Passive Condition: HP Below 21%>
thank you that did work !!! but there is another issue .... another thing i had in the state notetag was a custom apply effect (done using yanfly states and buffs core) that changed their face but now that doesn't change when using the passive state (whereas it does work when the state is applied directly) ... is there a way to fix this?
By default, passive states don't apply or remove. You can try Milennin's evented method, or in my signature there's an edit to Auto Passive States that allows for Apply/Remove notetags.

It's not been tested extensively, feel free to try it out and let me know if you have any problems.

Original thread: https://forums.rpgmakerweb.com/threads/automatically-add-a-state-when-actor-has-20-hp-or-less.154588/