Need help with states

So I'm working on a game and one of my ideas for a mechanic is called "Attack Flavor."
Basically, to spice up how attacking works, attacking will open up Yanfly's Input Combo window, and four options will be available.
A regular attack.
A power booster, which incrementally boosts attack power but lowers accuracy in return.
An evasion booster, which will increase evasion to a maximum 80%.
And an accuracy and defense booster, which when used three times will act as a guard button (negating the need for an actual guard button).

So what I want to know is how can I make an attack apply these different states based on the number of times it is used?
For example:
When the power booster is used once, I want to multiply ATK by 125%, but decrease hit rate by 10% (9/10 chance to hit).
Then, when used twice, it will multiply ATK by 155%, but decrease hit rate by 33% (2/3 chance to hit).
Then, when used thrice, it will multiply ATK by 200% (x2 damage!) and increase critical rate by 20% (1/5 chance to crit), but will decrease the hit rate by 80% (1/5 chance to hit, therefore 1/25 or 4% chance to hit and crit).
'Game Mechanics Design' is for looking at aspects of game play at a more conceptual level. "How do I...?" (implementation) questions belong in the Support forum for the engine you are using.

Moved to: RPGMaker VX Ace
I wrote a script that allows this: State Stages (Need to fix the description)
You can try your hand at Stacking States by NeonBlack
There's also Stacking States by @TheoAllen

My script allows you to link existing or virtual states together. It's quite versatile if you can figure out how to set it up.

The two stacking state scripts will allow for multiple instances of the same state. They're mostly identical with some technical difference. You may need to reconsider the math of your states though.
Your script is perfectly what I needed to execute what I had planned!
Thank you.

But, uh, I'm planning to sell this game that I'm making commercially. As long as your name is listed in the credits under scripting, do you mind if I use this? What's more, if you give me permission, do you want me to list your real name or alias (unless Rinobi is your real name)?
Yes, you have my permission to use it for commercial purposes, just list my alias.
Yes, you have my permission to use it for commercial purposes, just list my alias.
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-states.92199/