Theo - Stacking States

About:
You want to stack the same state x times
Use <stack: n> to determine the maximum stack you can use.

Preview:
Screenshot_745.jpg


Download:
Save as a new JS file

Terms of Use:
Read here

I hope you find this useful.
The plugin was updated to fix a bug that makes the state stack indefinitely.
If you're using this, please update your plugin.
If the state comes with an effect, would this let the effects stack as well?
If the state comes with an effect, would this let the effects stack as well?
Yes
I'm assuming the stacks are additive then?
I'm assuming the stacks are additive then?
Multiplicative. I'm assuming that you were referring to stat/element modifier.
Multiplicative. I'm assuming that you were referring to stat/element modifier.
Yeah I was. Thank you very much!
Hopefully a quick question: Is there a way to check how many stacks a state has? Like in a damage formula?
Yes. use .stateStack(stateId)
For example: a.stateStack(10)
Thanks for this. Will removeState() remove all the stacked state at once?
Thanks for this. Will removeState() remove all the stacked state at once?
I left the function untouched so the answer is probably yes.
Yes. use .stateStack(stateId)
For example: a.stateStack(10)
Should this return a number? I tried using it in code (and tested it in the console.log), but it doesn't seem to return any value?

Thank you for the plugin, by the way!
Should this return a number? I tried using it in code (and tested it in the console.log), but it doesn't seem to return any value?

Thank you for the plugin, by the way!
It should return the number.
If that doesn't work, try to diagnose it by using ._states

Oh by the way, when I said .stateStack(x) it means it should be followed by the object such as the actor or the enemy. For example $gameActors.actor(1).stateStack(x) or a.stateStack(x) in the damage formula.
It should return the number.
If that doesn't work, try to diagnose it by using ._states

Oh by the way, when I said .stateStack(x) it means it should be followed by the object such as the actor or the enemy. For example $gameActors.actor(1).stateStack(x) or a.stateStack(x) in the damage formula.

Sorry, my bad, that works. There is just an incompatibility with VisuStella's Skill and States Core, as my notetag Javascript code was not running with both plugins enabled. When I ran this code through a Skill instead, it returned the expected result.
I see no reason why it wouldn't work in the note tag JS code.
Perhaps you can ask around in the forum to figure out why. Some people might be familiar with VS plugins.
I see no reason why it wouldn't work in the note tag JS code.
Perhaps you can ask around in the forum to figure out why. Some people might be familiar with VS plugins.
It does work in the JS code where it executes. What I am noticing is that 'JS On Add State' code (via the VisuStella notetag) does not execute in States with this plugin enabled.
is there anything to show the number of stacks on an enemy?
im trying to make slay the spires poison mechanic (where the number of stacks is the damage)
but that informaton is important for the player

edit - i cant use yanfly battle engine because it ruins my damage prediction plugin
This plugin is purely a mechanic. For interface editing, ask other plugin makers to edit my plugin. I don't want to deal with interface editing as it would likely clash with other menu or interface plugins
heya, great plugin! i was wondering if there was way to make the stacking effects additive rather than multiplicative though?
hello, i was wondering:
Can this plugin trigger another state if the first state reaches x number of stacks?

thanks in advance

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