Custom Passive State Issue

I got an idea and not fully sure how to get it to work. Basically what I want is a passive state which I have a plugin for, but not sure how to get the desired effect. I am calling the state vengeful. It should offer the ally something like  $gameActors.actor(1).customStats.ATK.modifier += (a,hp / a.mhp) / 2 * a.atk  . Where the ally gains + to attack equal to half of the percentage life lost. Any tips or suggestions would be awesome thanks. Currently using Yanfly plugins, so I could use it with <Equip: X> in the skill or <Passive State: X>. Either would really add it to the correct ally.
Ask in the plug-in support subforum and provide more detail about the plugin.
ok i posted it there.
Please don't repost.  Just report the thread and ask for it to be moved.  I'll now move this, and get rid of the new one.

Original thread: https://forums.rpgmakerweb.com/threads/custom-passive-state-issue.62678/