Skill that absorbs all incoming damage from enemy skills for a turn, and stores it into a variable?

I have a number of skills that I'd like to create, but I can't implement any of them until I've figured out a way to make this combat mechanic work.

Could someone point me in the direction I need to go to create a skill like the one I mentioned in ways that wouldn't require digging into the code too much (I'm becoming mostly chill with light scripting inside common events and the damage formula)? Thank you.
skills are always impulse actions, which means they do something and never stay.

what you need is a state, and a skill that applies that state. however by default the states can only prevent all damage, not count it. For that you'll need a script to give that option to states.
skills are always impulse actions, which means they do something and never stay.

what you need is a state, and a skill that applies that state. however by default the states can only prevent all damage, not count it. For that you'll need a script to give that option to states.

You know what? I should look into that. Any suggestions for scripts that offer such a function (preferably one that doesn't require other scripts)?

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-absorbs-all-incoming-damage-from-enemy-skills-for-a-turn-and-stores-it-into-a-variable.111975/