Stat Upgrades with Increasing Costs - Souls Style

For anyone who knows this video,

https://www.youtube.com/watch?v=39Ga0TKHf6w
I'm rather to keen to know how to make it so that whenever you upgrade a stat, the JP price for ALL stats
increase together just like in the Souls game, forcing the player to decide carefully how to progress his character rather than spam
JP to grow all of an actor's stats to catch up with each other, creating a Jack-of-all-Trades.

Thanks.
You can do it by changing 'user._upgradeParam' to be a number instead of an array.
Code:
<Learn Cost Eval>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// Increase the parameter by this amount.
user._paramPlus[id] += 200;
// Adjust the number of times upgraded by 1.
user._upgradeParam += 1;
// Make the user forget the skill.
user.forgetSkill(skill.id);
// Refresh the user.
user.refresh();
</Learn Cost Eval>

<Custom Learn JP Cost>
// Set the param ID of the stat you wish to adjust.
var id = 0;
// Default the user's upgrade parameter times to empty.
user._upgradeParam = user._upgradeParam || 0;
// Adjust the cost of
cost = user._upgradeParam * 200;
</Custom Learn JP Cost>

<Custom Cost Display>
\}Passive\{
</Custom Cost Display>

<Hide in Battle>

Original thread: https://forums.rpgmakerweb.com/threads/stat-upgrades-with-increasing-costs-souls-style.83978/