Im wondering how to go about making skills that will be learnt automatically if you have learnt certain skills in that skill tree.
Also imposing skills as requirements to learn the skill (not talking about <Learn Require Skill: x>, because that hides the skill until you learn the prerequisites)
Ex1: Ice magic, if you learn 3 ice type skills you unlock a new one. Kind of like the image I uploaded from Octopath Traveler.
Ex2: If you learn Ice and slow you can learn Ice 2 (it is visible but cannot be learnt)
http://yanfly.moe/2015/11/14/yep-28-skill-learn-system/
Yanfly Skill Learn Auto learn a skill? and skill requirements?
● ARCHIVED · READ-ONLY
-
-
Bump
-
You will need to use the <Learn Cost Eval> note tags on both skills
something like
<Learn Cost Eval>
If (user.isLearnedSkill(1) && user.isLearnedSkill(2) == True ) user.learnSkill(3)
</Learn Cost Eval> -
Im sorry I dont get it. I tried it on both skills I wanted and got this error "SyntaxError: Unexpected identifier"
Also is it possible to have the skill show in learn skills with just the text saying "learn X,Y skills" then after a switch have it show as learnt? -
You will need to use the <Learn Cost Eval> note tags on both skills
something like
<Learn Cost Eval>
If (user.isLearnedSkill(1) && user.isLearnedSkill(2) == True ) user.learnSkill(3)
</Learn Cost Eval>
He's on the right track, but the syntax is a little off. It should be:
<Learn Cost Eval>
If (user.isLearnedSkill(1) && user.isLearnedSkill(2)) user.learnSkill(3);
</Learn Cost Eval>
EDIT: Actually, this may be slightly off. See if it works as is, and if it doesn't, I'll try tweaking it a bit. -
He's on the right track, but the syntax is a little off. It should be:
<Learn Cost Eval>
If (user.isLearnedSkill(1) && user.isLearnedSkill(2)) user.learnSkill(3);
</Learn Cost Eval>
EDIT: Actually, this may be slightly off. See if it works as is, and if it doesn't, I'll try tweaking it a bit.
Nope does not work still syntax error. Also if it does work is there a way to let the player know? -
Please post a screenshot of the exact error as shown in the Console (press F8 to open the console) as well as a screenshot of your notebox on the skill so we can see exactly what you wrote in it.Nope does not work still syntax error.
The "if" should not be capitalized.<Learn Cost Eval>
If (user.isLearnedSkill(1) && user.isLearnedSkill(2)) user.learnSkill(3);
</Learn Cost Eval> -
Please post a screenshot of the exact error as shown in the Console (press F8 to open the console) as well as a screenshot of your notebox on the skill so we can see exactly what you wrote in it.
The "if" should not be capitalized.
Awesome it works if the if is not capitalised! Thanks a lot!
I think from here I can figure out how to have it have a range of skills to meet requirements. I assume it would be a ton of if and else conditions.
Is there a way to have a skill require learning another skill?
Im tried
<Learn Require Eval>
user.isLearnedSkill(55)
</Learn Require Eval>
But it does not work. -
<Learn Require Eval>
value = user.isLearnedSkill(55);
</Learn Require Eval>
You need to have 'value' in there for that to work. If value is true, the condition is met. -
Awesome thanks so much!<Learn Require Eval>
value = user.isLearnedSkill(55);
</Learn Require Eval>
You need to have 'value' in there for that to work. If value is true, the condition is met.