MV Yanfly skill learn system - showing all skills regardless of the requirements

I've started experimenting with Yanfly's skill learn system and found two very useful notetags commands: Level requirement (you need a certain level to unlock the skill) and Skill requirement (you need to unlock one or more other skills before you can unlock that one). The thing is, using these notetags completely hides the skill from the list until you have reached said level and/or unlocked the other skills. My skills will have a text under them, saying "X level required" or "X skill required", so I'd like to have all of my skills always displayed in the list, not hidden.
I noticed this can be done with Lunatic mode, but I can't Javascript. Any way to get around this would be appreciated, whether with Lunatic mode or a direct edit to the plugin itself to make all skills always visible.
I can't post the plugin here cause of Yanfly's terms, but I guess I can DM it or something, if needed.
I can't post the plugin here cause of Yanfly's terms, but I guess I can DM it or something, if needed.
You should not offer to do that. The plugins terms of use say:
Redistribution of the plugins and its code, outside the scope of game projects, is strictly forbidden

What you should do is provide a link to the plugin's page so people who are willing to help you can simply click into the description.

That being said...
I noticed this can be done with Lunatic mode, but I can't Javascript. Any way to get around this would be appreciated, whether with Lunatic mode or a direct edit to the plugin itself to make all skills always visible.

I can't imagine why editing the plugin would be necessary, as you point out there is the Learn Show Eval. If you read the instructions for it:
Returning value as true will cause the skill to appear regardless of all other requirements being unmet

So you should simply put into your skills:
Code:
<Learn Show Eval>
value=true;
</Learn Show Eval>
What you should do is provide a link to the plugin's page so people who are willing to help you can simply click into the description.
Aight, sorry, I'll do that from now on.

<Learn Show Eval> value=true; </Learn Show Eval>
This is actually what I did myself, but it doesn't work. The skill gets shown but the requirements do not apply anymore, I can just unlock it whenever as long as I have gold/JP. Do i have to put the requirements inside the eval?
This is actually what I did myself, but it doesn't work. The skill gets shown but the requirements do not apply anymore, I can just unlock it whenever as long as I have gold/JP. Do i have to put the requirements inside the eval?
Please post a screenshot of one of the skills showing all of its notetags. Per the documentation, showing it should not change anything with the requirements, so we'll have to see how you set it up and see if someone has time to help you test.

(also, it would've been very useful for you to say you already did that and what happened from it 😛 )
Here it is. Below the <Learn Custom Text> tag there's just some flavor text, it shouldn't be that important (i hope).

6f1752b409be4b0143a697994d94b6e2.png
Okay - and you're saying that setup causes an actor to be able to learn the skill even if they're not level 5 or don't have skill 28?

If no one else sees anything wrong that I didn't notice, I'll take a test poke at it later.
Yep, that what happens. I tried and I just needed the gold and JP.
Just take your time, no need to rush :ywink:
Per the documentation, showing it should not change anything with the requirements, so we'll have to see how you set it up and see if someone has time to help you test.
Reading through the documentation, that notetag ignores all other requirements and just has the skill appear. And it looks like the plugin's notetags are only used for hiding skills until requirements are met, but not actually preventing the actor from learning them. If it appears, it's learnable.
Reading through the documentation, that notetag ignores all other requirements and just has the skill appear. And it looks like the plugin's notetags are only used for hiding skills until requirements are met, but not actually preventing the actor from learning them. If it appears, it's learnable.
I understand what you're saying, but it shouldn't be the case. There should be a difference between show/hide, wherein the skill is in the list but greyed out, and meeting the requirements to be able to purchase it.

If that's not the point, then what is the difference between the Show Eval and the Require Eval, if showing is the same as meeting the requirements?

I use the plugin in my game, admittedly with several others, and it works like that. I can see all of the skills a class will learn, but even if I have enough JP they'll be greyed out until I'm also a high enough job level.

It's possible that functionality was added by the job levels plugin, but I think it either should be that way normally, or I should be able to copy that functionality pretty easily.

Edit: A pretty easy fix. Open the plugin in a text editor, select lines 935 and 936 and cut them (so they are no longer there).

Go up to line 927, place the cursor at the end and press Enter to insert a new line. Paste those two lines in there.

So you should have, in Window_SkillLearn.prototype.includes:
Code:
if (skill.name...
var evalValue...
if (evalValue...
if (!this.meetsRequirements...

That works for me, where the skill is shown in the list but not enabled until you meet the requirements.
Works like a charm now. For me they were lines 933 and 934, cuz I think I have an older version of plugin. Still, now it works perfectly. Thank a bunch!
@ATT_Turan So what was up with this whole thing? I feel like the two of you shouldn't have had wildly different experiences with the same plugin like this, barring a few exceptions. Was the way it worked for OP standard, and you made that change to the plugin's code for your project and forgot? Or was OP's version just outdated?
@ATT_Turan So what was up with this whole thing? I feel like the two of you shouldn't have had wildly different experiences with the same plugin like this, barring a few exceptions. Was the way it worked for OP standard, and you made that change to the plugin's code for your project and forgot? Or was OP's version just outdated?
I honestly didn't look that far into it. I was able to reproduce the OP's situation using just the Skill Learn plugin, so the changes I posted here are to the Skill Learn plugin itself.

I did not previously modify mine for my project; it's possible that something in either the class change, job points, or job levels modifies it.

@Lunyc You should double check all of your stuff, you want them to be the current versions if you want them to be compatible with each other and the current version of MV. Of course, if you're holding onto versions you downloaded when everything was free, I understand you may be limited there.
You should double check all of your stuff, you want them to be the current versions if you want them to be compatible with each other and the current version of MV. Of course, if you're holding onto versions you downloaded when everything was free, I understand you may be limited there.
Yes, that is the case, I have them since they were free. They still work fine and never conflicted with anything, but I get why you are saying that. Still, it works, so thanks again. :ywink:

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-learn-system-showing-all-skills-regardless-of-the-requirements.149265/