- Joined
- Dec 20, 2016
- Messages
- 200
- Reaction score
- 101
- First Language
- Dutch
- Primarily Uses
- RMMZ
Hi again,
I am looking for a way to make ex parameters scale off of a regular parameter (e.g. cri and cev scaling with mdf).
I had accomplished this by using the YEP Extra Parameters plugin which for some reason works mostly flawlessly in MZ, but it does seem to cause a visual error in the menus:

As seen here, when I switch between equipment, the parameter does change, but the number on the right isn't -1% but 0%.
Visustella's core engine seems to have a formula section similar to the old extra parameters plugin (shown below), but for now I'm only interested in changing 2 of the ex parameters' formulas and not all of them.
Old example formula in the YEP plugin:

How would I accomplish this?
I am looking for a way to make ex parameters scale off of a regular parameter (e.g. cri and cev scaling with mdf).
I had accomplished this by using the YEP Extra Parameters plugin which for some reason works mostly flawlessly in MZ, but it does seem to cause a visual error in the menus:

As seen here, when I switch between equipment, the parameter does change, but the number on the right isn't -1% but 0%.
Visustella's core engine seems to have a formula section similar to the old extra parameters plugin (shown below), but for now I'm only interested in changing 2 of the ex parameters' formulas and not all of them.
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;
Old example formula in the YEP plugin:

How would I accomplish this?