Creating a skill that temporarily swaps parameters

Hi all,


I'm trying to make a battle-only toggle skill/state that will temporarily swap the user's current ATK with their MATK (or any stat against any other stat), and right now I'm leaning towards using Yanfly's State and Buff Core's Custom Apply and Custom Remove Effects, but I'm not sure how to exactly code this. I imagine using variables to store the initial stats, and then loading these variables into the parameters I would like to swap, but again, not sure on how to actually execute on this.


Alternatively, I suppose its also possible to achieve this with Action Sequences. I don't have a preference for which method is used as long as I achieve the effect.


Any help would be greatly appreciated.
I think this is a fantastic idea!! The only caution I would give you is to be sure that this Stat Swap state doesn't "break" your game balance/damage formulae.
 I'd even suggest  you send a request for this to Yanfly themselves to see if it's something they could throw together for you.


Happy game makering!!


-Mia

Original thread: https://forums.rpgmakerweb.com/threads/creating-a-skill-that-temporarily-swaps-parameters.62409/