MZ Shield and Sword (Yugioh)

I’m looking for a plug-in or snippet that will help recreate a spell card from Yugioh, specifically the shield and sword effect.

This card when used will swap all monsters attack and defense points.

What I want to do is create a passive state that will swap the characters stats when equipped.

So for example, I could have an accessory that makes an equipped players speed stat their attack stat and so on and so forth.

Persona Q also had accessories that had this effect.

This of course, would only apply when the state/accessory/etc was equipped/applied
This is actually nontrivial, because typically parameters are mainly pulled from the character's class table in the database.

You could look at the VisuStella Core Engine, there are plugin parameters with formulae for the basic parameters. So you could try inserting the code to check for the passive state and return the agility value and modifiers instead of attack and vice versa.

Or you could check @Eliaquim's Hakuen Studio Dynamic Parameters, see if there's a way that can do what you're asking in the state.
This is actually nontrivial, because typically parameters are mainly pulled from the character's class table in the database.

You could look at the VisuStella Core Engine, there are plugin parameters with formulae for the basic parameters. So you could try inserting the code to check for the passive state and return the agility value and modifiers instead of attack and vice versa.

Or you could check @Eliaquim's Hakuen Studio Dynamic Parameters, see if there's a way that can do what you're asking in the state.
I’ll try those out and report back, thanks.

EDIT:

It's kind of a hassle due to how many Stat Swap states I have, but I was able to accomplish this using basic parameter coding like in your second paragraph.

Hakuen's plugin will not work because you cannot reference the stat you are changing in its own code.
This thread is being closed due to being solved. If you need it reopened, report it to let us know why.

Original thread: https://forums.rpgmakerweb.com/threads/shield-and-sword-yugioh.162269/