Yanfly dynamic modification of stats via character variables

So im using practicalky All of Yanfly's plugins and want to know if and how I can make a specific system work.

I want to have armor affect certain stats for example heavy armor change agility. This on it's own is easy but I would like to have the effect scale with actor variables (from the plugin of the same name). Thus if you have a high strength score (actor bound variable) heavier armor has less of an impact on your agility. Is this something I have to use a script for or can this be done in a more straightforward way. Also since this only needs to happen in a battle and needs to take into account effects that change variables such as strength I need it to refresh each turn. So can I the this into the battle system to have it run for all characters enemy and otherwise during the game?

Furthermore could I use this same system to adjust the base attack vale for the character in the same manner via a custom formula. For example
ATK= ATK (base)*STRENGTH/2 or something?
For the heavy armor having less of an impact on agility with your strength, you can use this notetag in the armor's notebox:

<Custom Parameters>
agi = (base value) + $gameVariables.value(x)/20;
</Custom Parameters>

Here, 'x' is the variable id of your 'strength' variable.

The base value will be the agility decrease with no strength. The rest tells it to increase the agility value (and hence decrease the agility deduction) by 1 per 20 points of strength. You can replace 20 to fit your game.

I'm not quite sure how to do the change base param part. Yanfly does have a plugin called 'Base Param Control' which should have what you need, but since I don't use that plugin myself, I'm not quite sure what it can do.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-dynamic-modification-of-stats-via-character-variables.78703/