MZ LF plugin that connects evasion and crit chance to luck

Specifically I want for each point of luck a character has, for their evasion rate and critical rate to increase by 0.1%.
Hmmm... I could look into this. Can't make any promises, though.
Specifically I want for each point of luck a character has, for their evasion rate and critical rate to increase by 0.1%.
Are you using VisuStella's core plugins? I can give you some code that'll do this with Core Engine if so.
Are you using VisuStella's core plugins? I can give you some code that'll do this with Core Engine if so.
Yes
Go to Core Engine -> Parameter Settings -> X Parameters -> JS: Formula

By default, it's

JavaScript:
// Determine the variables used in this calculation.
let xparamId = arguments[0];
let base = this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId);
let plus = this.xparamPlus(xparamId);
let paramRate = this.xparamRate(xparamId);
let flatBonus = this.xparamFlatBonus(xparamId);

// Formula to determine total parameter value.
let value = (base + plus) * paramRate + flatBonus;

// Final value
return value;

Change it to

JavaScript:
// Determine the variables used in this calculation.
let xparamId = arguments[0];
let base = this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId);
let plus = this.xparamPlus(xparamId);
let paramRate = this.xparamRate(xparamId);
let flatBonus = this.xparamFlatBonus(xparamId);
let luckBonus = 0;
if (xparamId === 1 || xparamId === 2) luckBonus = this.param(7) * 0.01;

// Formula to determine total parameter value.
let value = (base + plus) * paramRate + flatBonus + luckBonus;

// Final value
return value;
Go to Core Engine -> Parameter Settings -> X Parameters -> JS: Formula

By default, it's

JavaScript:
// Determine the variables used in this calculation.
let xparamId = arguments[0];
let base = this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId);
let plus = this.xparamPlus(xparamId);
let paramRate = this.xparamRate(xparamId);
let flatBonus = this.xparamFlatBonus(xparamId);

// Formula to determine total parameter value.
let value = (base + plus) * paramRate + flatBonus;

// Final value
return value;

Change it to

JavaScript:
// Determine the variables used in this calculation.
let xparamId = arguments[0];
let base = this.traitsSum(Game_BattlerBase.TRAIT_XPARAM, xparamId);
let plus = this.xparamPlus(xparamId);
let paramRate = this.xparamRate(xparamId);
let flatBonus = this.xparamFlatBonus(xparamId);
let luckBonus = 0;
if (xparamId === 1 || xparamId === 2) luckBonus = this.param(7) * 0.01;

// Formula to determine total parameter value.
let value = (base + plus) * paramRate + flatBonus + luckBonus;

// Final value
return value;
That seems to have worked! Except I had to change the multiplier to 0.001. Maybe my math was wrong, or it has to do with x-params being percents. Either way, THANK YOU!!

Original thread: https://forums.rpgmakerweb.com/threads/lf-plugin-that-connects-evasion-and-crit-chance-to-luck.146141/