Hi all, I am using Yanfly's Skill Learn and Job Points plugins to allow characters to upgrade stats with job points. Yanfly has copy and paste code which shows how to have each upgrade cost more than the last, which works great. I am also trying to allow the player to increase a variable with this system, such as a variable for a mining skill. I am using this code:
<Learn Cost Eval>
var m = $gameVariables.value(48);
++m;
$gameVariables.setValue(48, m);
user.forgetSkill(skill.id);
user.refresh();
</Learn Cost Eval>
<Hide in Battle>
What I'd like to know is how to make it so this will cost more on each upgrade. For example, the first upgrade would cost 100 JP and the next would be 300 JP, then 500 JP, etc. What do I need to add in order to make this happen? Thank you!
<Learn Cost Eval>
var m = $gameVariables.value(48);
++m;
$gameVariables.setValue(48, m);
user.forgetSkill(skill.id);
user.refresh();
</Learn Cost Eval>
<Hide in Battle>
What I'd like to know is how to make it so this will cost more on each upgrade. For example, the first upgrade would cost 100 JP and the next would be 300 JP, then 500 JP, etc. What do I need to add in order to make this happen? Thank you!