I want to do it so that the jp cost increases everytime it is used. Either by a set amount or through percentage.
He said I could do it with lunatic costs but I'm afraid I'm inexperienced with such things.
Thanks in advance
The only way I can think of, is with the help of variables or even switches.
I can't test it (currently not home) but you could try something like this with switches:
<Learn Cost: 500 JP> // Your starting cost<Learn Cost Eval>user._paramPlus[0] += 300;user.forgetSkill(52);if($gameSwitches.value(1)) { // This checks if Switch 1 is ONskill.learnCostJp = Math.floor(skill.learnCostJp * 0.1); // The JP cost of this skill increases by 10% if Switch 1 is ON} else {$gameSwitches.setValue(1, true) // If Switch 1 is OFF, switch to ON.}</Learn Cost Eval>/* * If you learn the skill for the first time, Switch 1 should be OFF, so it will get turned to ON and the cost doesn't change. * The second time you learn that skill, Switch 1 should be ON and the cost increases by 10%. * BUT the cost will increase for any character that learns that skill after one learned it for the first time. */or with variables:
<Learn Cost: 500 JP><Learn Cost Eval>user._paramPlus[0] += 300;user.forgetSkill(52);if($gameVariables.value(1) > 0) { skill.learnCostJp = Math.floor(skill.learnCostJp * 0.1); } else {$gameVariables.setValue(1, 1);}</Learn Cost Eval>/* * If you learn the skill for the first time, the Variable 1 should be zero, the cost doesn't change, * and the value of the Variable is set to one. * The next time someone learnes that skill, the Variable 1 should be greater than zero, and the cost * increases by 10%. * Again, the cost increases for everyone after the first time someone learned that skill. */Oh, and you don't need to use
user.refresh();'cause the script does this two lines later anyway BD
/EDIT:
Fixed some "obvious" syntax errors
😮