Yanfly's Skill Learn System

So I'm using Yanfly's Skill Learn System and I would like to set certain conditions for learning some skills, but I do not know enough about Java to do that.

What I want to do is setup so that the character requires another skill in order for one to show up. For example, Stonewall Lv.2 needs Stonewall Lv.1

The script notes says I can use

<Learn Show Eval>
value = true;
value = false;
</Learn Show Eval>

to hide the skill in the menu until certain conditions are met. But I don't know the value.

Also, as a note, there are four actors who have their classes chosen by the player at the beginning of the game, so I cannot use an Actor ID. It has to be based on the character who is currently in menu. I'm guessing taking a look at the script will help with determining that.

Thanks in advanced!
If the Stonewall L1 is the only condition, then it'll show something like this:

<Learn Show Eval>
value = user.isLearnedSkill(StonewallL1 ID#);
</Learn Show Eval>

This code should check the actor whose screen you're in and see if they know the right skill. I'm not certain if that works in that context, but give it a shot and see what happens.
If the Stonewall L1 is the only condition, then it'll show something like this:

<Learn Show Eval>
value = user.isLearnedSkill(StonewallL1 ID#);
</Learn Show Eval>

This code should check the actor whose screen you're in and see if they know the right skill. I'm not certain if that works in that context, but give it a shot and see what happens.

That worked wonderfully! So what do I pass for if the skill isn't learned? Is it as simple as user.isnotLearnedSkill? I highly doubt it.
The condition for if the skill is not learned would be !user.isLearnedSkill(ID)
The condition for if the skill is not learned would be !user.isLearnedSkill(ID)

Exclamation point. I honestly don't know why I didn't think of that. Thanks.
The condition for if the skill is not learned would be !user.isLearnedSkill(ID)

I was wondering if you could help me out one more time. I'm trying to make it so that the skill only shows up if the skill before it is known AND if itself is unknown. This way, once you learn the skill, it goes away from the list.

I tried value = user.isLearnedSkill(ID) and !value = user.isLearnedSkill(ID) but that threw me a syntax error. Then I tried value = user.isLearnedSkill(ID) + !value = user.isLearnedSkill(ID) which didn't throw a syntax error but simply did not work.

Do you know how I would go about doing this?
Try this:

<Learn Show Eval>
value = user.isLearnedSkill(StonewallL1 ID#) && !user.isLearnedSkill(StonewallL2 ID#);
</Learn Show Eval>

This should check both if L1 is learned and if L2 isn't learned yet. If both are true, it will appear. If either one is false, it's hidden.
Try this:

<Learn Show Eval>
value = user.isLearnedSkill(StonewallL1 ID#) && !user.isLearnedSkill(StonewallL2 ID#);
</Learn Show Eval>

This should check both if L1 is learned and if L2 isn't learned yet. If both are true, it will appear. If either one is false, it's hidden.

&&... Man. It's always the obvious stuff isn't it? Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-skill-learn-system.82591/