Cover Ally Skill

Has anyone been able to create in MV a "Cover Ally" skill? Basically have the user target a specific ally and move in front of them when an enemy attacks the chosen ally using their guard animation and taking the damage, afterwards moving back to their original position. I KNOW there is the Substitute special flag and I KNOW about Yanfly's Taunt video, I can't get either of those two options to work the way I want it to work. If your familiar with JS I found a thread for a different version of RPG Maker where they were able to change the code by copy/pasting, but MV doesn't have script editor so I have no idea where to copy/paste the code given in the post, please help!

https://forums.rpgmakerweb.com/index.php?threads/changing-the-default-substitute.18353/

I also tried following this guide I found but still no result,
http://himeworks.com/2014/12/covering-allies-and-cover-conditions/#comment-115943
How exactly do you want the cover ability to work?

Edit: Not being a jerk. Just want to know the details of how you envision this working.
"Basically have the user target a specific ally and move in front of them when an enemy attacks the chosen ally using their guard animation and taking the damage, afterwards moving back to their original position."

It's right there in the description------^
You can do this with the substitute trait, though you'll have to change the conditions at which it triggers. There are no plug-ins for this that I know of, but you can make it yourself easily enough.

Code:
BattleManager.checkSubstitute = function(target) {
    return !this._action.isCertainHit();
};

If you copy this in a text file, save it as a .js file and use it as a plugin, substitute should be able to trigger without the target needing to be below 1/4 HP.
You can do this with the substitute trait, though you'll have to change the conditions at which it triggers. There are no plug-ins for this that I know of, but you can make it yourself easily enough.

Code:
BattleManager.checkSubstitute = function(target) {
    return !this._action.isCertainHit();
};

If you copy this in a text file, save it as a .js file and use it as a plugin, substitute should be able to trigger without the target needing to be below 1/4 HP.
This is working but can you have the user target a specific ally to cover and can you remove cover from magical attacks?
Actually the real problem I'm having is that if the user covers for one hit it looks fine but if he takes another covered hit his character gets shoved downwards on the screen for some strange reason.
Bump?

Original thread: https://forums.rpgmakerweb.com/threads/cover-ally-skill.84139/