MZ Looking to inflict a status effect once a character reaches a percentage of health

Hello,

I'm using RMMZ with a few of VisuStella plugins and I'm at a loss as to how to accomplish a specific thing.

I want to make an armor piece that, when equipped, causes the actor to gain a status effect once their HP reaches a specific percentage of their maximum. For the sake of ease, let's just say at 50% they get a boost to the attack stat. However, there is no way (that I can find) to use variables, conditional branches, or plugin notetags to get that effect. I can make a common event that can trigger the status that will give the buff, but I can't seem to find a way to make the condition that triggers the common event based on a percentage of HP. Am I missing something obvious or is this not a thing?

Any advice?
yes, this is easiest done with troop events.

one of the VS plugins has an option for base troop events, meaning that the troop events of the base troop work on every battle.

one of the troop conditions is HP = x% or lower, use that and then a conditional branch to check if that actor has that armor attached.
If youre using the visustellas skills and states plugin, you could also make your effect a passive state, assign it to that piece of equipment, and give it a condition so that its only active when the user is below 50% hp
If youre using the visustellas skills and states plugin, you could also make your effect a passive state, assign it to that piece of equipment, and give it a condition so that its only active when the user is below 50% hp

That's what I would do.

Original thread: https://forums.rpgmakerweb.com/threads/looking-to-inflict-a-status-effect-once-a-character-reaches-a-percentage-of-health.178530/