Enemy skill that makes user decrease in Max HP

Hi, I use RPG Maker MZ and I was trying to make a skill that was used by an enemy that decreased its maximum HP by 5. I know there are ways to grow its max HP, but I don't know how to lower it's max HP through a skill. If you can help me in any way please reply, thanks.
You would lower HP in the same way you increase it, but with negative values.

The Change Enemy HP event command has radio buttons for you to select whether you want to increase or decrease.
You want to decrease the user's Max HP by a flat amount of 5...? Perhaps if you add the following to the damage formula (untested:

a.addParam(0, -5);

So if your damage formula is a.atk - b.def:

a.addParam(0, -5); a.atk - b.def
You want to decrease the user's Max HP by a flat amount of 5...? Perhaps if you add the following to the damage formula (untested:

a.addParam(0, -5);

So if your damage formula is a.atk - b.def:

a.addParam(0, -5); a.atk - b.def
This ended up working for me, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/enemy-skill-that-makes-user-decrease-in-max-hp.172926/