MV Stacking a state?

At the moment i'm working on a character passive:

They can attack an enemy to apply a 'stack' and then if an enemy has at least 1 stack they can remove the stacks for additional damage.

Not sure how i would do this, but i was thinking about having the skill that applies stacks run a common event testing for if the target has state(1stack) and if so then apply state(2stack) and so on.

Then on the remove stack state, it would do something similar, but it would change a variable depending on the state number to add to damage calculation, and after damage is finished, change variable to 0.

There might be an easier way of doing this, but i can't think of any atm.
there are some plugins that allow you to implement stacking states directly
there are some plugins that allow you to implement stacking states directly
Oh nice! would you happen to have names to one/some?

Original thread: https://forums.rpgmakerweb.com/threads/stacking-a-state.178792/