How to make Max HP affecting state stacks?

I have this state, that reduces Max HP by 40% basically. And I want it to stack, but after looking through several forum pages on buff/debuff/states stacking, I either didn't understood anything, or didn't found anything on that. Thanks in advance.
1703485733732.png
i saw that Mr. Trivel's stacking state plugin works for MZ, but it IS an MV plugin, so YMMV. Also plugins that change core features like states the way it does may cause issues with others and may cause you to have to reexamine and change existing states. I have no idea how compatible it is with visustella either
https://www.rpgmakercentral.com/topic/35346-states-ex/.

Without adding more plugins, you can also make duplicate states and then remove and apply the additional ones based on what the target already has has. if its a stacking level you can have a state for each level and use the same idea as before.
i saw that Mr. Trivel's stacking state plugin works for MZ, but it IS an MV plugin, so YMMV. Also plugins that change core features like states the way it does may cause issues with others and may cause you to have to reexamine and change existing states. I have no idea how compatible it is with visustella either
https://www.rpgmakercentral.com/topic/35346-states-ex/.

Without adding more plugins, you can also make duplicate states and then remove and apply the additional ones based on what the target already has has. if its a stacking level you can have a state for each level and use the same idea as before.
It indeed doesn't work with VisuMZ, which is sad. I guess if I don't find other way I will try to do something with several states, yeah.
EDIT: Okay, alternative idea. I already used script call for changing parameters of actors before, so what if I use script call for reducing actor MHP by 5 on <JS On Add State)? The only problem is that game would leave it like that even after the battle, so please, do anybody knows if there is a way to make game treat this only as battle change? So it would revert actor MHP for regular value after the battle?

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-max-hp-affecting-state-stacks.164122/