Idea for a "Human Shield" skill.

Hi all, I'm trying to develop a skill that allows the user to act as a "human shield" for an ally, taking all their damage for them. This skill would function like this:
- User (a) selects 1 ally (b) as a target.
- This would add a state that causes all damage from enemies indented for b to be taken by a.
- The state would be removed after 4 turns.

How could I create a skill like this? If there are any scripts that could help me achieve this that would be great!
How does this differ from the default skill Cover?
@Kes I'd guess it would work regardless of the HP percentage of the target actor.

But would it also work for magical and certain hit skills?
Multitarget skills?
You can add a state using the skill effects. Then you need a plugin to make this one take all damage.

If you use yanfly plugins, you might use the Taunt plugin.

Then simply add a taunt to the state and your done.

Note: this will make the aggected actor take all the damage, from all other actors.
Hi,
So the skill is intended to take all the damage for one specifically and would take damage for all skill types, Physical, Magical, and Certain, regardless of their HP.

After some searching, I found that Yanfly made a video on an Aura of Sacrifice skill that I found to be quite helpful. However, there still doesn't seem to be any method of taking damage for a single ally. I've copied the code Yanfly used. Is there some way to change this to get the desired result?


<Custom React Effect> // Check if the action dealt HP damage if (this.isHpEffect() && value > 0) { // Get the target's allies var members = target.friendsUnit().aliveMembers(); // Get the Aura's Origin State ID var auraOriginId = 246; // Make the origin user undefined var auraOriginUser = undefined; // Loop through each member for (var i = 0; i < members.length; ++i) { // Get the currently looped member var member = members[i]; // Check if the member exists, isn't the target, and is the aura holder if (member && member !== target && member.isStateAffected(auraOriginId)) { // Set the origin user to that member auraOriginUser = member; // Break the loop break; } } // Check if the origin user exists if (auraOriginUser) { // Calculate the amount of reduction var reduction = Math.ceil(0.50 * value); // Set the damage to the target to 0. value = 0; // Make the origin user take damage instead. auraOriginUser.gainHp(-reduction); // Display an animation on the origin user. auraOriginUser.startAnimation(2); // Make the origin user display a damage popup. auraOriginUser.startDamagePopup(); // Check if the origin user is dead if (auraOriginUser.isDead()) { // Collapse the origin user if dead auraOriginUser.performCollapse(); } // Clear the origin user's results auraOriginUser.clearResult(); } } </Custom React Effect>

Edit: Thought I should mention that the Yanfly plugins being used here are: Battle Engine Core, Buffs & States Core, and Passive Aura Effects.
I did a Google for "RPG Maker MV substitute plugin" and this was the top result. It sounds like it does what you're asking for: "you can create more specific and flexible substitutions, like covering for a single ally with no health limitations"

Original thread: https://forums.rpgmakerweb.com/threads/idea-for-a-human-shield-skill.151232/