Making agility stat affect accuracy and evasion?

I would like to know if is possible in MZ do something similar to the Shin Megami Tensei series, where the agility affects the hit and evasion rate. And you can buff to make your attacks land more often, and debuff to make enemies´ attacks land less often.
I did the same thing using VS core and Skills and States plugins using the <JS xparam Plus: (some formula)> notetag for a universal state. I am not at home but I believe my formula was something like (this.buff(6)*x)/100.

So yes it’s possible.
Yep, you can reset how evasion works manually or with VS/Yanfly Combat Cores. By default, accuracy is figured 1st, then if it hits, evasion is figured 2nd. This allows a character with 220% Accuracy to be evaded by an opponent with 1% evasion. Most designers would probably prefer a combined formula. There is also a method around to create a chance of "brutal strike" or "super-critical hit" using any formula after a critical hit is rolled for. This would be another place one could use agility as a decision factor.
I believe the VS core(s) by default also calculates luck into the formula, at least for criticals. But as said, that can easily be changed.

Original thread: https://forums.rpgmakerweb.com/threads/making-agility-stat-affect-accuracy-and-evasion.166310/