Low HP Charm/Accessory

So basicaly, i have a question.

I want to make an offensive accessory to my game, that gives a damage boost when the actor goes below 20% HP
(Or possibly that scales with missing HP, for an example when the player is 80% HP i gives 5 bonus attack, if he's 60% it gives 10 and so on)

I had made 'prototypes' of this item, first it gave +10 damage, and reduced actor's HP by 100.
Then, it gave a skill that dealt more damage the less HP the player has.

But in the end i want to go with the original function of the charm.

So is it possible to make this sort of idea work in the armor note tag, or do i need a plugin for this to work?

In short, how do i make an armor that works only under specific HP values?
There is a trick Just use the Yanfly plugin.
Just change a few settings and you'll do just that.
There are two ways
1.click
2.click

Original thread: https://forums.rpgmakerweb.com/threads/low-hp-charm-accessory.144409/