Help with stacking states.

Alright here's my idea. Don't know if I need a script or if I can just do this with variables or what, but here come some examples!


Using states as a resource for using abilities like TP and MP.


-Guardian uses Taunt ability that activates 100 stacks of a THREAT state on himself. Certain abilities consume (purge?) say 15 or 20 stacks of THREAT state.


-Engineer uses Reload ability to gain 3 stacks of ARTILLERY state on himself. Abilities use between 1 and 3 stacks.


-Gunslinger uses Reload ability to gain 12 stacks of AMMO state on himself. Abilities use between 1 and 6 stacks.


-Arbiter gains a stack of TIME FREEZE on himself every few turns up to 6 stacks. Single ability that freezes ATB gauges for everyone except the Arbiter for a turn each time a stack is consumed.


Those are just a few examples. I can't use an ammo crafting system because I want the state to be visually on the screen at all times like MP and TP. I know how to make skills only usable while a state is active, it's the stacking of the state I don't know how to do.


So far I haven't found any plugins for additional resources like Rage, Spirit, Ammo, Etc.
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
Anybody have any ideas?


I was thinking something to do with variables and having skills add or remove from the variables pool and have a different icon for every single variable amount, but aside from the fact that I have no idea how to do that, I also think there's probably easier ways.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-stacking-states.60009/