MV Help figuring out how to do life steal effects/damaging states [FROG health, MV]

Mostly posting this because I couldn't find an answer anywhere about it.

But I'm trying to figure out how to set up lifesteal effects on skills with this plugin that would restore hp (as normally you'd expect) but also restore another stat that basically functions as hunger. I can't see a way to do it with just formulas and tried just setting the attack to hp drain only to get the NaN error on the actor's hp.
Note that I only apply hp/mp to enemies as you wouldn't be in a fight long enough for it to be worth dingling around with giving them the extra stuff... And thematically it'd make sense for the other stat to be restored along with hp.

And on a similar note, I can't get states like poison to actually do damage to hp either. Nor can I see a way to configure them to do so.

[Dang it! I accidentally posted to the wrong spot, misread the section as the support one]
Moved to: Plugin Support
Please include a link to the plugin you're using and post screenshots of how your skills are set up, what they're supposed to do, and what's going wrong with them now. We can't help you fix it if we don't know what it's like 😉
First here's the link to the plugins: https://frogboymv.github.io/ (note that I'm only using the core and health ones)

And here's a few screen shots of how I have things set up and a short clip of what happens in a battle.

This is my normal attack function and it works just fine:
Screen Shot 2021-08-21 at 10.22.45 AM.png

Then here's the one I'm using for the skill I want the life steal effect on (can't actually make it do that since I have to use the formula config in the plugin and can't do a life steal to my knowledge with just the options given and a formula): And for reasons unknown to me, this formula likes to invalidate the target's hp value with the NaN glitch... And I assume that stands for 'Not a Number'
Without this plugin, the formula works just fine doing a bit less damage (I just recycled it from the other game I used it in to get it to work here)
Screen Shot 2021-08-21 at 10.22.20 AM.png

And this is my bleed state (basically works like poison but is weaker, lasts longer, and lowers defense):
Works perfectly as intended w/o the plugin, as its one that's getting re-used here
Screen Shot 2021-08-21 at 10.23.12 AM.png

This is what happens in a battle: (had to cut a little just to show what bleed is doing, and the skill I used to apply it runs on the a.atk*3 formula I believe) <-- to circumvent the upload limit is all


As you can see, my normal attack works just fine, but the instant I use draining touch it triggers the NaN bug (the reason the bats just started to not take damage) on the enemy for some reason despite me not even having any sort of added restorative effect. And bleed? I'm not sure how to get a state to deal damage as it comes up as zero (as it still shows damage numbers even if the NaN glitch occurred) and there's nothing in the plugin config that really hints at it modifying how a state works in terms of damage. And within the database of the game I have both oddly behaving skills set as hp damage (as I only changed it for experimentation reasons)

What I'm trying to do is get a skill like Draining touch to deal damage and restore a percentage of hp and the thirst value... And also not be weird and cause enemies to become immortal. While also making damaging states actually deal damage, as regen seems to work just fine (proof is on Lance and that his regen is behaving normally)
So I don't think you're showing the important part. That formula wouldn't have anything to do with an NaN error - look at the other layers of menus regarding your hunger stat, you almost certainly have something mistyped in there so that when it tries to modify your hunger it's not getting a number from that.

As far as the state goes...you should get the above stuff sorted first, before trying to fix multiple things at once.
I'm thinking something I did with trying out different ways to mimic a life steal screwed with it in some way because I gave in and just deleted the entry in the plugin's database and re typed it as is and it worked just fine after that. Probably stuff that dosen't clear out unless you just fully delete it is to blame.

Meaning the problem was something I did and now know how to avoid (duplicates for testing things), and that states that deal in DOT work fine.

So now the real question is if there's a way to use the custom hp bars in similar ways as normal ones in a formula (i.e a.gainMp style stuff, all I can see are commands that don't work in formulas)/self-target to sorta create the effect I'm looking for?

EDIT: Currently using a really weird (if you're not thinking creatively that is) workaround that involves two formulas and a bit of skill duplication (to get around being able to have only one damage calculation in the formula box) and a common event that forces an action after the skill is used.

For example, I set up Draining touch to deal the damage with one formula, then created another that was strictly for the healing (including a dup skill that I'll hide away at some point so that it dosen't look like two separate things) then used a common event to force the recovery effect when the damaging one is used.

The only reason I thought of this is b/c I've done some wonk stuff that involve a state that could make an ally possibly attack other allies and wanted it to use more than just basic attack... So I made duplicate skills and fiddled with the settings and wrote an auto-battle AI to emulate what I wanted.
Thought I'd share my weird workaround since its not the most obvious thing to do and you never know if someone else might want to know this.

Original thread: https://forums.rpgmakerweb.com/threads/help-figuring-out-how-to-do-life-steal-effects-damaging-states-frog-health-mv.139766/