Elemental weakness increase per hit (AKA a "chain")

Mega Man Volnutt

Mega Man Volnutt
Veteran
Joined
Dec 7, 2015
Messages
397
Reaction score
124
First Language
English
Primarily Uses
N/A
So in FFRK (final fantasy record keeper) there's this pretty useful soul break type called chains and they "lower" the elemental resistance every hit up until it caps to either 99 or 200. It's simple. It goes something like this: Each hit a move does is +.1% damage. So if everyone works together to bring the damage up to 200% it'd be double the damage of that element. Is there a plugin that can help me do that?
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,018
Reaction score
5,667
First Language
English
Primarily Uses
RMVXA
I would do this in four steps:
1) Create an Elemental Break state for each element, using the States tab of your database
2) Add Yanfly's Buffs & States Core and Yanfly's Skill Core to your project
3) Use an After Eval Notetag to either add a state to the target of a skill, or increase the stacks if it already exists. For example, you'd use the Water Break state for any Water skill that you can use on an enemy. See below for what I believe is the correct notetag.
4) Use the number of Stacks of the Elemental Break state (on the target) in your damage formula. You can reference it using (b.getStateCounter(n) || 0) where n is the index of the state in your database. For example, multiplying your whole formula by * (1.00 + (0.01 * (b.getStateCounter(28) || 0))) should increase the damage by 1% for each stack of State #28 on the enemy you're hitting.

Notetag from Step 3 (replace n with the correct Elemental Break state's State ID):
<After Eval>
if (target.isStateAffected(n)) {
target.addStateCounter(n, 1);
} else {
target.addState(n);
target.setStateCounter(n, 1);
}
</After Eval>
 

Latest Threads

Latest Posts

Latest Profile Posts

Have any of you read Sutter Kane?
My winter pack is now free on itch.io!
Writing music for Utara Forest, a location in All the King's Men. Nothing evokes a mysterious, dreamy sound like solo clarinet and modulation!
Man, nobody has created an MZ state animation plugin outside of VisuStella. That breaks my heart.
Finnuval wrote on Alador's profile.
Cute new avatar you got there ;)

Forum statistics

Threads
111,468
Messages
1,061,333
Members
144,844
Latest member
Crossroadrpg
Top