Help with changing parameters through states

So I'm trying to make a skill that will trigger a parameter change for two party members, depending on who has better stats. Whichever has the higher stat, the other will develop or inherit the same amount for a limited amount of time and will constantly change if affected by buffs and debuffs- which will happen with Yanfly's Base Troop Events.


Example being, if Chain has an Atk stat of 130 and Merge has 115, Merge's Atk will change to 130 as long as the state is active.


My questions are:


1.) Will the tactic of what I did using "Change Parameters" even work? *Picture below


2.) If so, are they permanent or will continue even if the state isn't affecting them anymore (which is a bad thing)?


3.) Do weapons with their own stat increase affect the game data or recorded parameters of the characters?


4.) If so, will adding an 'else' to the conditional branch if the stat wore off, and manually readjusting them back to their base stats affect the weapon stat too? Like, readjusting Merge's Atk stat back to 115 using "Change Parameters" again but if her weapon were removed, her Atk would be decreased by the weapon's increase.


5.) Is there an easier way to do this?


I'd much appreciate the help.

content.png
You can't use common events in battle. This will not work. 


There is a way to do this using Yanfly's plugins and some JS code in the notetags of your state. 


I can try to do it for you when I'm back if nobody else gave you a solution before.
I think you can't change the parameters themselves. From what I saw on the code itself it is just a get function, no change.


So you'd need something like Yanfly's Base Parameter Control to change the get to something actually changeable. In Yanfly's code the original parameter is the base, and it got extra values to change the result that these can be altered.
I think you can't change the parameters themselves. From what I saw on the code itself it is just a get function, no change.


So you'd need something like Yanfly's Base Parameter Control to change the get to something actually changeable. In Yanfly's code the original parameter is the base, and it got extra values to change the result that these can be altered.



That's interesting but I'm a bit confused on what I have to do to achieve the result I need.


I'll figure it out eventually. Thank you.
Basically, you can read the stats easily but you can't just change them as easily. Not temporarily at least.


Yanfly's plugin lets you do temporary changes though. http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/

Original thread: https://forums.rpgmakerweb.com/threads/help-with-changing-parameters-through-states.69468/