How to make a second health bar appear after party member gets KO'd?

Made an account just for this. I'm working with the yanfly ace battle engine, and whatever else was used to make Lisa: The Painful. I'd like some help in making it so that characters basically have a second health bar, equal to the first, that appears whenever they are KO'd. In the event that this 2nd health bar reaches 0, they die, and are removed from the party permanently.

I'd really appreciate any feedback. Even just "that idea sucks" or "this is built in to the engine, dumbass". Or maybe you like the idea. Let me know either way. I've got a very limited understanding of Ruby and scripting, so any help, no matter how basic, would be really appreciated.
For specifics, I'm thinking that the hp gauge turns red instead of green, and removes the party member upon reaching 0. While KO'd they would have a drastically reduced target rate, and would lose 10% reserve hp every turn until stabilized. "Unstable" is a status effect that is removed after battle, while KO'd is not. Most party members would have the capacity to stabilize. The way they would be revived mid battle would be using healing items to increase the KO'd party member's reserve hp, which at a certain threshold allows for a separate revive item or skill to resurrect them with minimal hp. Alternatively, a revive item/skill could be used at any time, and the likelihood of it working is equal to the percentage of reserve health they have left. (At 100% reserve hp it'd be a 100% chance of revival.) I'm looking for feedback in any way, so let me know what you think!
@Orneb Yo, can you not make duplicate threads for answers to the same question? It's extremely obnoxious, doubly so when this and the original thread are barely hours apart from each other.

Either way, I don't think this will work the way you think it will unless you get someone to completely overwrite how the death state works.

Once anybody is KO'd in combat, it prevents them from doing anything even if you remove "don't move" from the actual KO status - aka. even if you could move them, all of their attacks/skills would be grayed out. The only thing they CAN use are items, but that feels a bit abusable even if you don't have, say, attack items like bombs and the like.

Enemies will already not attack dead allies because there is no scope condition for attacks to hit dead enemies.
as already mentioned above, this idea will require a lot more than "just" a second health bar, it will require rewriting big parts of the damage handling of the battle engine.

as such you'll have to give a description of how your entire battlesystem is supposed to work, and/or what other battlescripts you already have or plan to have in your project.

as such you also might want to check and compare with the original damage flow implemented in VXAce to tell what changes you want:

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-second-health-bar-appear-after-party-member-gets-kod.146894/