Enemy gain resistance to status effect.

Looking into making enemies resistant/immune to a status effect after it's applied.
Haven't found any plugin's of the sort so I imagine it's able to be done in engine.
Kind of like Etrian Odyssey.
Any help in the right direction is appreciated.
Unless I misunderstood the question, couldn't you just give the state in question a trait that sets the state rate to 0% for the given state?

For example, give your "Poison" state the following trait: "State Rate Poison 0%".

Be careful though that the skill that applies the state is not set to "Certain Hit" because this would ignore any State Rates.
There is also a trait to resist a state:

1611786482214.png
@stramin
I believe this would not work because State Resist also removes the state that is currently active already, which the OP did not ask for.
(Not 100% sure though and can't test it right now)
I guess ill make double of each stat effect, one that is the normal state and one that adds a resist state i guess.
@stramin
I believe this would not work because State Resist also removes the state that is currently active already, which the OP did not ask for.
(Not 100% sure though and can't test it right now)
Good to know about this, I going to test it later
@hoboayoyo
You don't need to make 2 states.

My approach should still work:

For example, give your "Poison" state the following trait: "State Rate Poison 0%".

Be careful though that the skill that applies the state is not set to "Certain Hit" because this would ignore any State Rates.

Based on this example, your Poison would make the afflicted character immune to poison while still retaining the poison that is currently active.

Just replace "Poison" with any state you need.

I also attached a screenshot of the example just in case
But the resist state is removed when the status goes away correct?
I want the resist state to stay throughout the battle (or more turns than the state is on) to prevent it being spammed on bosses.
Right, if you want the "resistance" to last longer than the effect of the state, then two different states is the way to do it. If you want the resistance to last the entire battle, don't set a number of turns or actions; just have it be removed on Battle End. If you don't want to show the Resistance state, set its Priority to 0 and give it no icon.

Be careful with your use of Recover All because that will remove all states (including the Resistance states). The only way to change that behavior is to use "Permanent States" plugins. Or, you can work around it by using complete HP and MP recovery, as well as specifically removing normal states (but not Resistance states), wherever you would have used a Recover All command.
Hopefully not necro
You could make the poison die down on its own, over time, but still leave the state at indefinite
Something like this may work (though I am not a codesmith)
(original idea borrowed from Yanfly T&T)

EDIT: Just realized that not everyone in the world uses Yanfly Plugins....this may need some of those

JavaScript:
<Custom Apply Effect>
// Make sure the stack count exists.
target._Poison = target._Poison || 0;
// Increase the stack count.
target._Poison = 10;
</Custom Apply Effect>

<Custom Remove Effect>
// Reset the stack count.
target._Poison = 0;
</Custom Remove Effect>

<Custom Regenerate Effect>
// Make sure the stack count exists.
target._Poison = target._Poison || 1;
// Sets the maximum amount of stacks to 5.
var stacks = target._Poison;
// The damage formula used per tick.
var damage = stacks * stacks;
// Play poison animation on the target.
target.startAnimation(59);
// Target takes HP damage.
target.gainHp(-damage);
// Play the popup.
target.startDamagePopup();
// Clear the results.
target.clearResult();
// Check if the target is dead.
target._Poison -= 1
if (target.isDead()) {
  // If the target is dead, make it collapse.
  target.performCollapse();
}
</Custom Regenerate Effect>

Original thread: https://forums.rpgmakerweb.com/threads/enemy-gain-resistance-to-status-effect.132724/