how to write (Yanfly Lunatic skill Learn System "Learn Cost Eval")?

Hello,


Please teach me how to write "Learn Cost Eval" with "Yanfly's Lunatic skill Learn System" in note tag ".


thank you.


for example,


I want to write something like below;


<Learn Cost Eval>


if(this._actor.isClass($dataClasses[4])) return this.skill.jpCost /= 2


</Learn Cost Eval>
Hello,


Please teach me how to write "Learn Cost Eval" with "Yanfly's Lunatic skill Learn System" in note tag ".


thank you.


for example,


I want to write something like below;


<Learn Cost Eval>


if(this._actor.isClass($dataClasses[4])) return this.skill.jpCost /= 2


</Learn Cost Eval>
Jp cost not mp cost or hp cost...if skill is imply and u want to use your job point as a payment ...i guess youre using yanfly skillcore if yes and if im reading rigth if u use this skill then it half cost...well i guess ot missing that skill id... and if it for all skill then i guess there no need for return this...but more those...and then im no coder so cant help but like ure idea
@takuantoono

Make sure you have Yanfly's Skill Learn Version 1.10 or higher and use this:

<Custom Learn JP Cost>
if(user.isClass($dataClasses[4])){
cost = cost/2;
}
</Custom Learn JP Cost>


Make sure that JP cost is set to something, For example use this notetag before the custom JP cost:
<Learn Cost: x JP>.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-write-yanfly-lunatic-skill-learn-system-learn-cost-eval.62553/