Sednaiur

Veteran
Veteran
Joined
Jul 7, 2018
Messages
33
Reaction score
9
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
33
Reaction score
9
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

Megumi_Aramaki wrote on Takeshi014's profile.
Here you go! Enjoy mapping!
Megumi_Aramaki wrote on Takeshi014's profile.
Valley can be done by outside mountain town tilesets I will send you right away!
Hi everyone! I've relased a demo about my new game in "Games in Development". Someone interested? :3
Going live at 2pm EST
Today is the day! I will be productive in game dev work! I will - *gets distracted by cat playing with her toy mouse* Awww <3
Whelp. I tried to be productive.

Forum statistics

Threads
109,043
Messages
1,041,567
Members
141,530
Latest member
jno8034
Top