Combined health bars

I am working on another script of my own, and one of things I need for it to work is to combine the HP of multiple characters.

So if you had 3 actors in a battle, they would each get to fight but would have only 1 HP bar to share between them. All enemies would hit that bar and once it was empty all 3 actors would die and game over.

And if possible the same for enemies.

The HP can either be taken by adding all the actors together or from some other variable, as long as they share it.

It's going to be used as part of a vehicle combat script, to allow the crew to act independently with different weapons or abilities but all hits are to the single HP of the ship itself.

Any help at all with this would be great.
This is a pretty interesting idea, and I think would have a lot of applicability for other shared resources (like the way the party shared FP in Super Mario RPG or SP in Skies of Arcadia).

Would the party members' individual DEF/RES stats still affect the damage calculations or would it have to be based on some kind of "ship armor" rating?

I hope someone can write this script for you; I'm a little busy right now but I think it would be a popular script.  If no one has done it for you in the next month or so, feel free to PM me and I'll create this script.
Originally it was going to be used for a sailing ship, my idea was to allow the captain, crew and marines to act independently but the entire thing having a single HP and all 3 of the actors would use the captains stats.

So in a single turn you could for example issue an order with the captain to provide a buff, fire your cannons then snipe with the marines.

My initial attempt is a mess, it works in some ways but I'm going to end up scrapping it and starting over.
Got it working myself, I might release it once if refined it a bit more.

Original thread: https://forums.rpgmakerweb.com/threads/combined-health-bars.35128/