Skill Similar to Pokemon's Substitute

I would like to create a skill where the user creates a barrier with health based off of a percentage the user's maximum health, but once the barrier is gone any leftover damage is dealt by the attacker is deducted from the user's health. So if the barrier had 50 health and the attacker deals 70 damage, the barrier is used up and the user takes 20 damage. Is there any way to achieve this without the use of scripts?
You may be able to use a common event to set it up, but then you'd have to implement a special bit into the damage formulas of every skill to acknowledge that barrier.
And you'd have to consider what happens if more than one person is using it - wouldn't want different battlers to be using the same barrier.
It probably would be easier with scripts, a lot of things in the battle system are, but many things are also possible if you can event them in common events, since skills call those.
You may be able to use a common event to set it up, but then you'd have to implement a special bit into the damage formulas of every skill to acknowledge that barrier.
Okay. I'll have to get studying up on how to do it with events then. I'd much rather do this with events because I already have a few scripts set up and I don't want to overload my game with them.

And you'd have to consider what happens if more than one person is using it - wouldn't want different battlers to be using the same barrier.
That won't be a problem since the game is single player and all of the battles are one on one. Sorry, I forgot to mention that.
Okay. I'll have to get studying up on how to do it with events then. I'd much rather do this with events because I already have a few scripts set up and I don't want to overload my game with them.
I was thinking something like setting a variable equal to the percentage of the character's health, and then have some sort of handling in the damage formula, but then it'd get tedious to do it for EVERY skill, especially if you want to change it later. Scripts are usually better for things in the battle system, I think.

Original thread: https://forums.rpgmakerweb.com/threads/skill-similar-to-pokemons-substitute.16264/