Decrease Actor MHP by damage

I know most people use RMMV or the new RMMZ these days, but I still use the RMVXA. I am absolutly satisfied with it. Even though it may not be the best RPG Maker.

To the actual topic. I've been struggling with creating a state that reduces the actors's MHP with every damage he takes, down to a minimum of 1 HP left. Death should still be possible. Anyone who has played Final Fantasy XII should be familiar with the state virus or infection. The state should remain active even after reviving from death. You can do the same principle with MP, but it's not that important for me.

Can someone help me and maybe send a script that fulfills these conditions?
is there any way the player can regain the lost MHP?

If yes this needs to be done by state traits, if no you can use the event commands for change parameters.
In the last case you'll probably have to use yanfly's lunatic states script together with the script equivalents of event commands
Sorry, I was looking at the wrong installment of the Maker. 😛

I still got a question or two... When you say the victim takes damage, do you mean a physical or magical attack? Or do you also mean slip damage?
Sorry, I was looking at the wrong installment of the Maker. 😛

I still got a question or two... When you say the victim takes damage, do you mean a physical or magical attack? Or do you also mean slip damage?
The MHP should be deducted via physical as well as magical attacks. And the lost MHP cannot be healed while the actor is affected by the state, which makes the HP bar always appear as if it is completely full.

If anything is still unclear, please let me know.
Try my KMaxLoss ACE script then. You're just one subforum away from it. 😀

Original thread: https://forums.rpgmakerweb.com/threads/decrease-actor-mhp-by-damage.158144/