Buff/Debuff Question

Okay, so, I'm at a loss, here.

I'm trying to edit the code so that buffs and debuffs work like smt IV, that is, casting a debuff x1 on someone with buff x3 will bring them down to buff x2, casting buff x2 on someone with a debuff x4 will put them at debuff x2, and a buff x2 on a debuff x2 will cancel each other out, and so forth.

I have Yanfly's state and buff script, and right now, even at a x4 strength buff, one hit of a x1 strength debuff will leave the target at neutral- no buff, no debuff, while a x2 debuff will cancel the buff and add a x1 debuff.

Any advice?
I'm slightly confused as to why you're having an issue here, as this is how it already works. If you have 3 stacks of an attack buff, debuffing it will take you down to buff x2, and debuffing it x3 will remove it.
DERP.

Okay, so, I found the issue. I was using the battle tester to run things.

A normal battle with buffs and debuffs worked fine.

You can close this, now. Thanks.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/buff-debuff-question.76526/