RPG Maker MV

RPG Maker MV

Yanfly's Skill learn system/Skill Core help
Hell there friends.

I need help on how to make a already learned skill become hidden when I learn an upgraded skill with the Skill learn system scene from Yanfly.

Example:

HP+100 Lv.1 Learned
HP+100 Lv.2 Learned
HP+100 Lv.3<------ This would be the next rank to buy and learn
MP+4 Lv.1
STR+1 Lv.1 Learned
STR+1 Lv.2 Learned
STR+1 Lv.3 Learned
STR+1 Lv.4 Learned
STR+1 Lv.5 Learned
STR+1 Lv.6 Learned
STR+1 Lv.7 <------ This would be the next rank to buy and learn
MAG+1 Lv.1
DEF+1 Lv.1 Learned
DEF+2 Lv.1 Learned
DEF+3 Lv.1 Learned
DEF+4 Lv.1 <------ This would be the next rank to buy and learn
M.DEF+1 Lv.1
AGI+1 Lv.1
LUK+1 Lv.1

I Have 50 rank for each stat that my players can learn, and this is without learning skills like thunder and cure, So you can imagine the skill bloating on the Skill Learn page would look like already... I would rather have something like this...

Example:

HP+100 Lv.3 <------ This would be the next rank to buy and learn
MP+4 Lv.1
STR+1 Lv.7 <------ This would be the next rank to buy and learn
MAG+1 Lv.1
DEF+1 Lv.4 <------ This would be the next rank to buy and learn
M.DEF+1 Lv.1
AGI+1 Lv.1
LUK+1 Lv.1

I already used <Hide if Learned Skill: x> from the Skill Core plugin on the Notetag but the skill remain visible in the list so it doesn't work.

My JS knowledge is 0 :( so i would need the exact notetag code to use for it to work.

I know there are other ways to learn the stat upgrades, such a refresh system, but the problem is that you can learn it for ever and have no limit on how much you can learn a skill, I wanted 50 rank of each stats so my players have a certain limit they can increase the stats that particular way.

Thank you again everyone :]
< >
Showing 1-2 of 2 comments
nagolli Apr 9, 2022 @ 3:14am 
Might be a little late, but, here are 2 ways to accomplish this with that plugin:

1-Easy but heavily repetitive and boring, add this Notetag for each skill:
<Learn Show Eval>
value = !user._skills.includes(skill.id)
</Learn Show Eval>

2-To apply to all the skills at once:
With a little JS knowledge, in the YEP_SkillLearnSystem, you can look for this code

Window_SkillLearn.prototype.meetsRequirements = function(skill) {
var evalValue = this.getEvalLine(skill.learnShowEval);
if (evalValue !== undefined) return evalValue;
.... More code lines ....
return true;
};

And add last line:

Window_SkillLearn.prototype.meetsRequirements = function(skill) {
var evalValue = this.getEvalLine(skill.learnShowEval);
if (evalValue !== undefined) return evalValue;
if(this._actor._skills.includes( skill.id )) return false;
.... More code lines ....
return true;
};

Keep in mind when modifying the js file, to save a backup copy before the edition because you can cause errors or nasty side effects for minimal changes.
Last edited by nagolli; Apr 12, 2022 @ 10:31am
ItsKindaWindy Apr 9, 2022 @ 11:02pm 
Thank you for the respond !

Ill be trying this out for sure.
< >
Showing 1-2 of 2 comments
Per page: 1530 50