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

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?
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>

Original thread: https://forums.rpgmakerweb.com/threads/elemental-weakness-increase-per-hit-aka-a-chain.115950/