I want a status effect that activates when the actor has less than 25% health but don't know how

As said in the title, I want to add to my game a status effect that activates when the actor has less than 25% health. However, I haven't seen any way to specify how a status effect can be activated on the effect's page. Thanks in advance,
you'll need a script for this


I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.



If I remember correctly, Tsukihime wrote something like that...
Troop Event's Page => Conditional Branch to check actor's HP => Add states

Original thread: https://forums.rpgmakerweb.com/threads/i-want-a-status-effect-that-activates-when-the-actor-has-less-than-25-health-but-dont-know-how.59730/