Yanfly Skill Requirements - Actor has NOT learned skill

Hey guys,

I am using a system that has actors learn abilities by using skill scrolls. The skills themselves are unique to respective actors, meaning the player does not select the actor learning them. I am trying to make it so that the use of these skill scrolls is disabled once the skill has been learnt by the actor in question. My scripting is weak, so I require your assistance!

I am making use of Yanfly's Item Requirements to achieve this, but lack the script line knowledge. Please help me find the right condition!

<Enable Requirements>
condition
</Enable Requirements>

Any help is appreciated Thank you!

P.S. If you could find a way to gray out the name of the item once disabled as well, that would be incredible. But it isn't at the core of the issue.
$gameActors.actor(x).isLearnedSkill(y)

Use it as an eval for checking if he has, this can be greyed out thing i think

Now I cant remember if .learnSkill(y) is a thing or not, but I cant check it as Im outside for now, when Im home I can help you more
$gameActors.actor(x).isLearnedSkill(y)

Use it as an eval for checking if he has, this can be greyed out thing i think

Now I cant remember if .learnSkill(y) is a thing or not, but I cant check it as Im outside for now, when Im home I can help you more

Hey, thank you for helping me out! Doesn't that condition mean the actor must have learnt the skill in order to use the item, rather than the other way round?
@MagicPizzaGuy had to throw in the towel, so we are back to square one!
Hey there,

Try this:
Code:
<Enable Requirements>
Eval: value = !$gameActors.actor(x).isLearnedSkill(y)
</Enable Requirements>

Where x = the actor id, y = the skill id

Make sure you use "value" instead of "condition"

This also seems to work: (with condition instead of value this time)
Code:
<Custom Enable Requirements>
condition = !$gameActors.actor(x).isLearnedSkill(y)
</Custom Enable Requirements>
@Palin That works perfectly! Thank you so much! I will be sure to include you in the credits of my game, unless you object.
This problem has been solved, and the thread can be closed thus.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-requirements-actor-has-not-learned-skill.107013/