Need help for a Max HP/MP issue

Im trying to implement a skill that protect you for one turn but make you loose your Max HP and MP each time you use it (so it can accumulate) I don't even know if its possible but basically I need to find a way to make the Max HP/MP loss to accumulate!
You could have a separate state for each stage of the degredation and if you use yanfly's skill core, you can have the skill give the next stage and remove the current based on their current state / lack of state
@Robro33 Maybe you're understanding this better than I am, but I don't think the question was about stacking states like that. I think it's just about making the max HP/MP be a part of the cost.

@Spartacraft You'd use Yanfly's Skill Core and Buffs & States Core. Give the skill the notetags

Code:
<Custom Cost Display>
5 Max HP, 5 Max MP
</Custom Cost Display>

<Custom Execution>
user.addParam(0, -5);
user.addParam(1, -5);
</Custom Execution>
Change the 5s to whatever amount you actually want to lose.

Then, that skill applies a state to the user, and the state has:
Code:
<Custom React Effect>
value = 0;
</Custom React Effect>

Your description is a bit vague, but I'm assuming that "protect you" means you don't take any damage.
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-for-a-max-hp-mp-issue.171681/