Poison-like state that ignores Hp Regen

Hello,
I’m trying to create a poison-like effect that ignores or temporarily « deactivate » the target hp regen:m.

From what I understand, the default system is : if the target has 5% hp regen and the poison state applies -10%, the final outcome will be -5%. Which means that the hp regen mitigates 50% of the poison damage.

With the same exemple, what I want to do is : if the target has 5% hpregen, then the poison FIRST deactivates this regen effect (by temporarily returning the target hpregen to 0%) THEN applies the -10%.

The final goal is to have a poison effect that always applies -10%, no matter the hpregen of the target (and every positive hpregen effect to be deactivated during the poison is active).

Thank you for your help !
Just thinking out loud... wouldn't it work if the state "poisoned" came with "state-resist: HP-regen"?
Just thinking out loud... wouldn't it work if the state "poisoned" came with "state-resist: HP-regen"?
I’ll try and tell you if it works. Thanks for the suggestion !
Otherwise you may want to have a common event triggering with the attack skill that causes poison. The common event will check whether the targeted actor is poisoned, and if yes removes the HP Regen state.

JavaScript:
◆If:Script:$gameActors.actor($gameParty._targetActorId).isStateAffected(4)
  ◆Script:$gameActors.actor($gameParty._targetActorId).removeState(15)
  ◆
:End
Just thinking out loud... wouldn't it work if the state "poisoned" came with "state-resist: HP-regen"?
Depending on how the OP is implementing all this, HP-regen is not necessarily a state. It's a trait you can have on anything - actors might have some innate HP regen from their class. You could be wearing a regeneration ring.

If it is a state, they might not want to remove the state entirely, but just suppress it for as long as the poison state is on. Then when the poison is cured the other state has the rest of its duration left.

The only way I can think to implement this exactly as @Adhmrr is to use a dynamic traits plugin so you can calculate how much negative HP regen to put on at the time of applying the state.

Of course, that won't be able to account for any positive regen that's added while you have the poison.

Another option, if you don't mind seeing double pop ups, is to use a Yanfly's Buffs & States notetag. You can calculate how much the player will regen, damage them again by that much, plus the amount you want the poison to do.

Failing all of that, you could request a little plugin that would make HP regen get ignored if a specific state is on the battler.

Original thread: https://forums.rpgmakerweb.com/threads/poison-like-state-that-ignores-hp-regen.159955/