MZ How could I change states based on already existing states?

I'm working on my combat system, and I've got a mechanic I think is neat enough in mind. Characters can 'move' forward or backward into different positions. -2, -1, 0, 1, 2. The higher the number, the more damage they deal and take, the lower the less they deal and take. It's representing more or less aggressive positioning. I have each position as a state, but I'm running into an issue - if a skill is supposed to move an actor forward one position, the state they should switch to depends on the state they already have. How exactly could I make it so that in position 0 it changes the state to position 1, while in position -2 it changes the state to position -1?
You can do that with just a common event on the skill that grants the state and use conditionals. MZ gives you last target option with control variable and then you check the current state of the last target and remove it and add the new state.

Original thread: https://forums.rpgmakerweb.com/threads/how-could-i-change-states-based-on-already-existing-states.178769/