Creating an enemy heal move based on party members remaining HP/MP

I want to have an enemy have a healing move that takes all the party members' remaining HP + remaining MP and have it heal itself HP with the grand total of everybody's remaining HP and MP.

I do not want this to be an HP drain move, I just want it to reference all the party member's remaining HP & MP and heal itself based on that.

So basically, if everybody is topped off, the enemy gets a stronger heal. I want to try to make a battle that there is an incentive for the player to not spam heals.

I prefer to not reference members' HP with variables using battle events as the party makeup could change if I decide to use this for optional encounters.

Is there a formula or a way I can do this?
you kind of stripped us of all viable options with the "i dont want this parts" xd, anyway im a mv damage calc guy not vxa just wanted to point that out lol
:eswt: Let me get things straight here.

What you want is a script call or the like that allows you to not steal hp and mp but just heal the boss or mobster. Is that right?
:eswt: Let me get things straight here.

What you want is a script call or the like that allows you to not steal hp and mp but just heal the boss or mobster. Is that right?
A formula basically. Yes I just want it to heal the monster, not steal HP.
Maybe this?
Ruby:
$game_party.members.reduce(0) { | sum, actor | sum + actor.hp + actor.mp }
I.e. return the sum of the current HP and MP of all party members.
Maybe this?
Ruby:
$game_party.members.reduce(0) { | sum, actor | sum + actor.hp + actor.mp }
I.e. return the sum of the current HP and MP of all party members.
And that can be used as a formula?
And that can be used as a formula?
Yes, you just put that in the damage formula input.

Original thread: https://forums.rpgmakerweb.com/threads/creating-an-enemy-heal-move-based-on-party-members-remaining-hp-mp.161223/