Hi everyone! I am using Yanfly's Buff and States Core to apply stacking states, among other things. I want to create two skills, one that doubles the stacks of all states currently affecting a target and one that halves them. It should be possible with Yanfly's plugins, but I'm just not sure where to start with it. (Mostly, I'm not sure how to iterate through all the possible states and double or halve their stacks.) Any help would be appreciated.
MV Yanfly Stacking States: How do double/halve stacks of a state?
Javascript/Plugin SupportWell, how are you doing them in the first place? There's not actually any such thing as stacking states (in that plugin, I think TheoAllen made one for it).
Thanks for the reply. Yanfly makes stacking states possible by making counters possible. For example, I use a poison stack state that is a copy of this one Yanfly did for a Tips and Tricks. This is the method I am using.
So, as far as I can form the ideas in my mind, I need to find the current counter/stack of each state on the target, and then double or halve it.
So, as far as I can form the ideas in my mind, I need to find the current counter/stack of each state on the target, and then double or halve it.
Okay, cool - the reason I'm asking you to be specific is that's not technically stacking states. There's still only one instance of the state on the battler, you're just tracking a number attached to it.
In fact, that's not even using counters - you're correct that counters are made possible by the Buffs & States Core, but that Tip & Trick doesn't have anything to do with them.
That's creating a variable on the battler.
So to modify it you simply modify the same variable name. target._stackingPoison *= 2 to double it, target._stackingPoison /= 2 to halve it.
If you were using counters, the Buffs & States Core documentation has a whole section of script calls used to look them up and modify them by state ID.
In fact, that's not even using counters - you're correct that counters are made possible by the Buffs & States Core, but that Tip & Trick doesn't have anything to do with them.
That's creating a variable on the battler.
So to modify it you simply modify the same variable name. target._stackingPoison *= 2 to double it, target._stackingPoison /= 2 to halve it.
If you were using counters, the Buffs & States Core documentation has a whole section of script calls used to look them up and modify them by state ID.
Original thread: https://forums.rpgmakerweb.com/threads/yanfly-stacking-states-how-do-double-halve-stacks-of-a-state.159914/