Theo - Stacking States

No, this is just a barebone stacking states plugin.
Nothing fancy like replacing the states with another one.
Hey, apologies if this is a silly question, but how can I directly modify the stack count? I'm trying to set it up in such a way that I can set, add or subtract from the stack count using constants and variables. Also wondering about the best way that I can make a conditional that checks stack count of each state.
Hey, apologies if this is a silly question, but how can I directly modify the stack count? I'm trying to set it up in such a way that I can set, add or subtract from the stack count using constants and variables. Also wondering about the best way that I can make a conditional that checks stack count of each state.
I'm wondering the same thing! This would be a really handy plugin for implementing a boss with a special defeat condition, something like every time it uses X skill it calls a common event to remove a single stack from itself, as if it's getting tired out, but after toying around with it for a while now I haven't had any luck figuring out how to subtract from its stacks without removing the state entirely.
Unfortunately the creator won't reply as he passed away but it should be a simple script call to add or subtract levels. I'll look at the plugin file later today.

Untested but
You could try

To check state count
$gameActors.actor(1).stateStack(x) or a.stateStack(x)

To subtract from the stack
$gameActors.actor(1)._stateTurns[stateId]-- or a._stateTurns[stateId]--
Also maybe to subtract 2 for example
$gameActors.actor(1)._stateTurns[stateId]-=2 or a._stateTurns[stateId]-=2
Unfortunately the creator won't reply as he passed away but it should be a simple script call to add or subtract levels. I'll look at the plugin file later today.

Untested but
You could try

To check state count
$gameActors.actor(1).stateStack(x) or a.stateStack(x)

To subtract from the stack
$gameActors.actor(1)._stateTurns[stateId]-- or a._stateTurns[stateId]--
Also maybe to subtract 2 for example
$gameActors.actor(1)._stateTurns[stateId]-=2 or a._stateTurns[stateId]-=2
Gosh that's awful, Theo made some amazing plugins and I use quite a few of them in my project. Thanks for the reply Aqua I appreciate it. I'll test this out soon.

Original thread: https://forums.rpgmakerweb.com/threads/theo-stacking-states.133587/