Removing state when only % or less Hp is left

I don't think this will be too difficult.

Basically, I want a state that will continuously run until it's properly healed, the battle ends, or most importantly, when a specific amount of Hp or less is on the actor.

In example would be that a state would affect an actor, somewhere it's specified that the state will be removed when the actor has 20% hp or less. So naturally, the state will be removed when the actor has less than 20%.

If there's already a script that does this, pointing it out would be appreciated.

Thanks in advance.

Original thread: https://forums.rpgmakerweb.com/threads/removing-state-when-only-or-less-hp-is-left.47642/