Delay all damage taken by one turn

Hello!
I've been brainstorming gimmicks for party members, and without getting into the details, I've been thinking of how to make an actor who takes 0 damage from enemy attacks initially, but takes the full damage on the next turn (probably before he attacks?). I thought of a few methods but they're all very tedious or I'm unsure if they'd even work, and I'm just wondering if there is an easy way to do it.

Idea #1: Use Yanfly's buffs and states core to have every single enemy attack inflict a status effect that procs when it wears off that has the exact same damage scaling formula as the initial attack, with every other actor immune to it.
This is awful though because not only is it a ton of work, it's a nightmare if I have to change anything, plus the states list would be extremely bloated

Idea #2: Force the actor to take MP damage in place of HP damage (using some yanfly plugin that I forgot, but I do know how to do this) and at the start of every turn, damage them for the amount of mana they're missing, then restore all their mana. I plan on having several actors not use MP anyways, and I can just hide the MP bar. This idea is bad because I
A) Have no clue how I exactly damage them based off of missing MP
😎 Fear the incompatibility with any effect that interacts with MP.

there has to be a better way, right?
Idea #1: Use Yanfly's buffs and states core to have every single enemy attack inflict a status effect that procs when it wears off that has the exact same damage scaling formula as the initial attack, with every other actor immune to it.
Right start, but you got overcomplicated. A lot of Yanfly's Tips & Tricks show you how to create a variable stored on an actor, so we'll do that.

Code:
<Custom React Effect>
if (value>0 && this.isDamage())
{
    target.damStored=target.damStored || 0;
    target.damStored+=value;
    value=0;
}
</Custom React Effect>

<Custom Turn Start Effect>
if (target.damStored)
{
    target.gainHp(0-target.damStored);
    target.startDamagePopup();
    if (target.isDead())
        target.performCollapse();
    delete target.damStored;
}
</Custom Turn Start Effect>

I haven't tested it, so give it a shot and let us know if there are any problems.
You know it's funny, if I was working in Unity, I would instantly go to a simple variable, but for some reason the concept of simple things like that completely slipped by me. I'll try this out later! Thanks a bunch!
Right start, but you got overcomplicated. A lot of Yanfly's Tips & Tricks show you how to create a variable stored on an actor, so we'll do that.

Code:
<Custom React Effect>
if (value>0 && this.isDamage())
{
    target.damStored=target.damStored || 0;
    target.damStored+=value;
    value=0;
}
</Custom React Effect>

<Custom Turn Start Effect>
if (target.damStored)
{
    target.gainHp(0-target.damStored);
    target.startDamagePopup();
    if (target.isDead())
        target.performCollapse();
    delete target.damStored;
}
</Custom Turn Start Effect>

I haven't tested it, so give it a shot and let us know if there are any problems.

Original thread: https://forums.rpgmakerweb.com/threads/delay-all-damage-taken-by-one-turn.152625/