State that reverses parameter changes?

Hi!

I'm trying too make a state/skill that reverses all the parameter changes on a battler.

ex: I use a skill on the enemy that reduces his attack by 30%

the enemy than uses a skill that changes his reduction in attack into a 30% attack increase.

what would be the best way to do this?

thanks!
As long as you use states for your buffs and not actual buffs and debuffs it is really simple to do that with a common event. Just make the skill do nothing but apply a "dummy state" on the target and run a common event that checks for each state that buffs or lowers parameters and when one is found have it remove that state and instead add the opposite state. Depending on how many varying levels of buffing/debuffing states that could take a lot of states to make each positive and negative one mirror each other in effect, but with over 900 slots for them it probably shouldn't be a problem for most people. Or else someone will come behind me with a script solution probably in a few days...

Original thread: https://forums.rpgmakerweb.com/threads/state-that-reverses-parameter-changes.20225/