GeneralIroh

Regular
Regular
Joined
Jul 11, 2018
Messages
37
Reaction score
6
First Language
English
Primarily Uses
RMMV
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.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,589
Reaction score
11,062
First Language
English
Primarily Uses
RMMV
Well, 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).
 

GeneralIroh

Regular
Regular
Joined
Jul 11, 2018
Messages
37
Reaction score
6
First Language
English
Primarily Uses
RMMV
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.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,589
Reaction score
11,062
First Language
English
Primarily Uses
RMMV
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Me with the fireplace, a space heater, and a heated blanket. My preferred lizard temperature.

I'm gonna riff on Macross's "Deculture" and adopt "Descope" as my motto! :wub God knows I'm gonna need it...

As an aside, did any of ya sweeties watch Macross Delta and if so, was it good, bad, or horrible?
Is an extension for the jam time limit from 20 min to 30 min possible? :ysad::ysad::ysad: My entry will have a few battles, it seems >.<
Background and composition study
GAbBmfDaIAAEzVM

Forum statistics

Threads
136,711
Messages
1,269,014
Members
180,431
Latest member
ZOOMNOTA
Top