Hey so im trying to figure out how I can make skills that require a specific investment.
Skill 1-9:
Skill 10:
Learn any 5 skills from 1-9 to unlock option to learn skill 10.
Problem:
Basically if I do it like this when I learn Skill 1, it endlessly overtime adds item 12 and +1 on variable.
Question:
1) Is there a way to have it only trigger when the skill is learnt? Am I using the wrong notebox and timing?
2) How would I go about setting it up for each character? I want to give the choice to spec into fire or ice or wtv and investing in will unlock a more powerful skill.
Skill 1-9:
Code:
<Learn Show Eval>
if (user.isLearnedSkill(1)) { // If skill 1 is learnt
value = false; // hide skill from tree
$gameParty.gainItem($dataItems[12], 5); // Add hidden item to keep track of skills left to unlock Skill 10
$gameVariables.setValue(10, $gameVariables.value(10) + 1 ); // Add 1 to V10 which checks how many skills are learnt
};
</Learn Show Eval>
Skill 10:
Learn any 5 skills from 1-9 to unlock option to learn skill 10.
Code:
<Learn Require Eval>
if ($gameVariables.value(10) >= 5) { // If V10 is greater or equal to 5
value = true; // Can Learn
}
else {
value = false; // Can't Learn
}
</Learn Require Eval>
<Learn Cost>
Item 12: 5 // Again to show progress on skill, would like to add back or refund consumed items, since other skills will require 10/15/...
</Learn Cost>
Basically if I do it like this when I learn Skill 1, it endlessly overtime adds item 12 and +1 on variable.
Question:
1) Is there a way to have it only trigger when the skill is learnt? Am I using the wrong notebox and timing?
2) How would I go about setting it up for each character? I want to give the choice to spec into fire or ice or wtv and investing in will unlock a more powerful skill.