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,013
Reaction score
5,662
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

If you're an artist of illustrations, you're doing fine.
If you're an artist of writing, you're doing fine.
If you're an artist of programming, you're doing fine.
But if you are all three above (and more) you cannot allow any distractions in your life.
Anyone had school furniture?
After working out some initial confusion, I managed to get Yanfly's Improved Battlebacks successfully working on a test battle, changing the battleback and getting it to scroll during combat. This means that I can have graphically dynamic battles on moving platforms, like the roof of a train or the deck of a ship/airship...
Place Events Like Tiles Through Replacement, & Take Notes Free Form | RPG Maker News #41

the singularity is upon us:
1621133810311.png

Forum statistics

Threads
111,398
Messages
1,060,813
Members
144,741
Latest member
Styrale
Top