Yanfly class change, skill learning help!

I've installed and set up the yanfly class change system and it seems to be one step away from being perfect.

The scenario is that I get enough JP as a Healer to learn "Cure", GREAT, but for some reason my Wizard, warrior, thief etc classes can also use the skill despite me having

bought the skill for my Healer class.

What I want is if I buy "Cure" then the Actor can ONLY USE the skill if their class is equipped as a Healer or Paladin or something but access is denied to Wizards and Warriors.

All skill restriction scripts I find are ACTOR specific not CLASS specific, which is what changes with the class change script.

Is there any way I can do this within (any of) Yanfly's Scripts? Perhaps through standard methods? Or maybe another script exists that will cover this for me?

It would be the bees knees if anyone could help, thanks in advance!
That question was also asked once in Yanfly's thread.

Here is Yanfly's answer 🙂

http://forums.rpgmakerweb.com/index.php?/topic/48860-yep-yanfly-engine-plugins-newest-extra-enemy-drops-plugin-count-47/?p=512773
Using Yanfly Skill Core, place in skill notetags:

<Custom Show Eval>if (a._classId === X) { visible = true; }else { visible = false; }</Custom Show Eval>Where X is number of class you want to use skill

if (a._classId === X || a._classId === Y) { visible = true; }For multiple classes, do like above
Yeah, I figured that was a possible solution but what i'm trying to restrict are not skill types but individual skills!

I'm not trying to restrict oh say, magic but rather the skill "Cure" itself, by doing this if I made a "red mage" style class it could learn both "white" and "black" magic but maybe it won't

be able to cast higher level versions of it.
but rather the skill "Cure" itself, by doing this if I made a "red mage" style class it could learn both "white" and "black" magic but maybe it won't be able to cast higher level versions of it.
You might also want to check out http://forums.rpgmakerweb.com/index.php?/topic/50858-equip-skill-system/
Yeah, I figured that was a possible solution but what i'm trying to restrict are not skill types but individual skills!

I'm not trying to restrict oh say, magic but rather the skill "Cure" itself, by doing this if I made a "red mage" style class it could learn both "white" and "black" magic but maybe it won't

be able to cast higher level versions of it.
You could achieve something like that with skill types, too.

Let's say "Cure" is "White magic".

You set both, the red mage and the white mage, to use "White Magic".

Now you can make a "Cure II" and make it, e.g. "High White Magic" and set only the white mage to use it. 😎

But the <Custom Show Eval> approach is simpler 😉
You could achieve something like that with skill types, too.

Let's say "Cure" is "White magic".

You set both, the red mage and the white mage, to use "White Magic".

Now you can make a "Cure II" and make it, e.g. "High White Magic" and set only the white mage to use it. 😎

But the <Custom Show Eval> approach is simpler 😉
Actually I wanted to thank you, Thanks to you I was able to come up with a neat idea with different Magic types "IE black and white magic" while still being able to restrict what type of magic in each catagory each class was able to learn

using <Custom Show Eval> which lead to some very neat and easy to follow organizing!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-class-change-skill-learning-help.53341/