Debuff resistance

Can someone tell me a way to give characters debuff resistance? In two ways exactly.
1 Heroine has X debuff resistance so the enemy petrify wont work on her.
2 Heroine has X debuff resistance so the enemy def down debuff is decreassed by Y.
For 1, that is not a debuff, and is handled via a state. You add to the state the feature state immune then the name of the state you want to not work on them.

For 2 that requires a plug-in, there is no other way to do that.
Well what im exactly wnating is: Hero has 10% debuff resistance so when petrify with 100% chance is used on he the chance is decreassed to 90%, and when def down of 10% is used on he it is decreassed to 9%, hope you can help.
Use state rate and add that to whatever grants them that resistance. If you want 10% resistance use state rate * 90, as you have to enter the % chance you want for it to still apply in state rate.

Remember that everything in state rate is multiplied, so two of those will not give you 20% resistance, but .9 * .9 or 81% chance to hit or 19% resistance.

Original thread: https://forums.rpgmakerweb.com/threads/debuff-resistance.110652/