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

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.
Decided to work on Fandom Scouts today. I've decided that instead of using the generic "scrolling text" event that MV has (I'm using MV for FS, not MZ) I'll use the movie option. I'm still trying to find a way to get Premiere Pro to output the compatible format though. If anyone can give me some help, it would be greatly appreciated!
Barthdry wrote on tln143's profile.
Hello tln143 Welcome to the RPG Maker Forum. We wish you enjoy and make good rpg games
Barthdry wrote on 00cassiesmells's profile.
Hello 00casiemells Welcome to the RPG Maker Forum. We wish you enjoy and make good rpg games
Remember guys: Drink water and workout is important too! Don't stay too much time on the PC working! :D

Forum statistics

Threads
109,034
Messages
1,041,503
Members
141,522
Latest member
Corporal_Siva
Top