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

takuantoono

Villager
Member
Joined
Jan 26, 2016
Messages
17
Reaction score
4
First Language
Japanese
Primarily Uses
RMMV
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>
 
Last edited by a moderator:

Luckysince97

Veteran
Veteran
Joined
Feb 6, 2018
Messages
102
Reaction score
27
First Language
French
Primarily Uses
RMMZ
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
 

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
@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>.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top