Sednaiur

Veteran
Veteran
Joined
Jul 7, 2018
Messages
35
Reaction score
10
First Language
German
Primarily Uses
RMMV
I like to make use of Yanfly's plugin YEP_SkillLearnSystem to make my actors be able to learn skills by using Job Points.
The problem is that I get an error message as soon as I select the class in the "Learn Skills"-window where I have defined the
skills. The error message is "ReferenceError skilllearnCost JP is not defined".

For example, I want my class called "Test" to be able to learn the "Fire"-skill for 160 JP.
For that, I have put the notetag <Learn Skill: 9> (the skills ID is 0009) into the class' notebox, and <Learn Cost: 160 JP> into the skill's notebox.

Am I doing something wrong? Do these notetags need to be on the top line in the notetags to work?

Also, in the SkillLearnSystem's plugin instruction, it says that one should put it under the YEP_JobPoints.js plugin, yet that plugin is
further down on Yanfly's site. But on top of Yanfly's site it states that all the plugins should be in the exact order as listed on that site, which is what I did.

A big mistake? Do I need to move YEP_SkillLearnSystem from it's original position below YEP_JobPoints, or must I move YEP_JobPoints from it's original position above YEP_SkillLearnSystem?
 

Sednaiur

Veteran
Veteran
Joined
Jul 7, 2018
Messages
35
Reaction score
10
First Language
German
Primarily Uses
RMMV
@zaraku

Thank you a lot. Your link helped me fixing the problem. Now it works as intended. :)


To make the fix for my problem clear for others, this is what needs to be done in a case such as I described above:

Open YEP_SkillLearnSystem.js with an editor like notepad++
On Line 1182:
var cost = skilllearnCostJp; needs to be changed into:
var cost = this._skilllearnCostJp;

Credit to @Lear for that solution.
 

Latest Threads

Latest Posts

Latest Profile Posts

My mind is now broken. I just spent over an hour on this stupid issue.
Trying to get a skill to show text depending on enemy ID to show passives.
Well. I tried to call one passive 'Spirit's Way'. See a problem? No? Neither did I until now!
The apostrophe in "Spirit's" ended the text eval... no wonder I kept getting unexpected input errors...I think I'm gonna cry.
Anterograde Fantasy now has a demo build available!

You know you've been working on RPGMaker for a while when you go to move your projects to a 16 GB USB drive and get told not enough space to do this operation.
The latest post on TheDazzlingsAreBack...
besides itch and occasionally here where are people doing game jams at y'all? (plz do not cross reference this with my previous status lol)

Forum statistics

Threads
110,442
Messages
1,053,329
Members
143,512
Latest member
elfperson123
Top