TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
The plugin was updated to fix a bug that makes the state stack indefinitely.
If you're using this, please update your plugin.
 

GHNeko

Sega Stockholm Syndrome.
Veteran
Joined
May 28, 2018
Messages
37
Reaction score
2
First Language
English
Primarily Uses
RMMZ
If the state comes with an effect, would this let the effects stack as well?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
I'm assuming the stacks are additive then?
Multiplicative. I'm assuming that you were referring to stat/element modifier.
 

GHNeko

Sega Stockholm Syndrome.
Veteran
Joined
May 28, 2018
Messages
37
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Joined
Aug 2, 2020
Messages
28
Reaction score
8
First Language
English
Primarily Uses
RMMV
Hopefully a quick question: Is there a way to check how many stacks a state has? Like in a damage formula?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
Yes. use .stateStack(stateId)
For example: a.stateStack(10)
 

Fionn23

Eternal Noob
Veteran
Joined
Dec 11, 2021
Messages
123
Reaction score
59
First Language
Filipino
Primarily Uses
RMMZ
Thanks for this. Will removeState() remove all the stacked state at once?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
Thanks for this. Will removeState() remove all the stacked state at once?
I left the function untouched so the answer is probably yes.
 

Sodon

Villager
Member
Joined
Aug 12, 2022
Messages
18
Reaction score
6
First Language
English
Primarily Uses
RMMZ
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!
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
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.
 

Sodon

Villager
Member
Joined
Aug 12, 2022
Messages
18
Reaction score
6
First Language
English
Primarily Uses
RMMZ
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.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
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.
 

Sodon

Villager
Member
Joined
Aug 12, 2022
Messages
18
Reaction score
6
First Language
English
Primarily Uses
RMMZ
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.
 

azurezero

Villager
Member
Joined
Nov 16, 2013
Messages
17
Reaction score
0
First Language
english
Primarily Uses
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
 
Last edited:

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,316
Reaction score
11,007
First Language
Indonesian
Primarily Uses
N/A
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
 

Latest Threads

Latest Posts

Latest Profile Posts

imgur links are back!
now I CAN keep getting away with NOT replacing them with updated renders!
yay!
I forgot RPG Maker even existed. Such good memories. Might boot up steam and download MV one more time
10 pieces of KFC chicken for US$12.30, delivery included. Cheap or expensive? :aswt:
Ugh-I HATE this! There's construction going on in my area and because of that my Internet connection is wonky; this site in particular keeps constantly freezing up on me; I can't even barely type a single sentence without the page freezing in the middle of it! I hope this changes soon.
Yeah, it’s cool to have friends that hang out, but get you a friend that goes grocery shopping together too.

Forum statistics

Threads
131,547
Messages
1,220,737
Members
173,220
Latest member
ZecaVn
Top