- Joined
- Apr 1, 2016
- Messages
- 5
- Reaction score
- 1
- First Language
- spain
- Primarily Uses
Hello, Im new to this forum, so Im not sure if this is the right section, but here it is...
Im using Yanfly's Skill Learn System but since I have a huge amount of skills to learn, Id like to be able to 'hide' already learnt skills, instead of them staying on the list labeled as learnt.
I was using the following code:
<Learn Show Eval>
if(!this._actor.isLearnedSkill(ID)) { value = true; }
else value = false;
</Learn Show Eval>
Replacing ID with the skill ID, so it disappears when learning. So far so good, but the real problem appears then. Every skill becomes available once the character meets a certain level, so what I wanted to do is set a level requirement for every skill to appear on the list and become available for the character to learn and, once learnt, disappear from that list.
My knowledge about JavaScript is a bit limited, but I've already tried this to no avail:
<Learn Show Eval>
if(!this._actor.isLearnedSkill(ID)) { value = true; }
else value = false;
value = user.level > 5;
</Learn Show Eval>
I've also tried other variations but cant I get it to work.
I hope you can help me. Thank you in advance, and sorry for my bad English!
TLDR: I'd like to set a level requirement for a certain skill so it appears on the list and becomes available only when that requirement is met and disappear when the character learns it, instead of being labeled as 'Learnt'
Im using Yanfly's Skill Learn System but since I have a huge amount of skills to learn, Id like to be able to 'hide' already learnt skills, instead of them staying on the list labeled as learnt.
I was using the following code:
<Learn Show Eval>
if(!this._actor.isLearnedSkill(ID)) { value = true; }
else value = false;
</Learn Show Eval>
Replacing ID with the skill ID, so it disappears when learning. So far so good, but the real problem appears then. Every skill becomes available once the character meets a certain level, so what I wanted to do is set a level requirement for every skill to appear on the list and become available for the character to learn and, once learnt, disappear from that list.
My knowledge about JavaScript is a bit limited, but I've already tried this to no avail:
<Learn Show Eval>
if(!this._actor.isLearnedSkill(ID)) { value = true; }
else value = false;
value = user.level > 5;
</Learn Show Eval>
I've also tried other variations but cant I get it to work.
I hope you can help me. Thank you in advance, and sorry for my bad English!
TLDR: I'd like to set a level requirement for a certain skill so it appears on the list and becomes available only when that requirement is met and disappear when the character learns it, instead of being labeled as 'Learnt'
Last edited by a moderator:

