Stacking Buffs? [Yanfly Engine Plugins]

Greetings, developers!


After a few weeks trying and learning, I've started my project a few days ago. In this project, i'm trying to implement a buff/debuff system a little different from the original, for the following reasons:


 - The "buffs" have no duration; they last as long as the battle goes.


 - Each level of buff/debuff has it's own parameter multiplier, instead of using a formula.


With this in mind, i tried to create something through the Buffs & States Core from Yanfly Engine Plugins, using handmade states instead of the original buffs, but i'm a bit lost about what exactly to do. How should i edit the states? How do i call the "increase/decrease stack" effect of these states through the skills?


tl;dr: i'm trying to replicate the Stat Modifier system from the Pokémon franchise, could someone pretty please guide me through the logic behind these codes and notetags?

Original thread: https://forums.rpgmakerweb.com/threads/stacking-buffs-yanfly-engine-plugins.67915/