Yanfly Skill Learn System custom requirements?

ZankokuNoYami

Veteran
Veteran
Joined
May 11, 2018
Messages
134
Reaction score
30
First Language
English
Primarily Uses
N/A
I am just wondering with Yanfly's SKill Learn System, if it is possible to have stats as a requirement?

For example. An available skill requires the following to be unlocked:
JP x 10
STR = 20
DEF = 12


I read conflicting things. But if its possible, how would I go about doing that?

Thank you!
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,948
Reaction score
1,053
First Language
Dutch
Primarily Uses
RMMV
it is possible probably using those:

<Learn Require Eval>
value = true;
value = false;
</Learn Require Eval>

its in the helpfile, but it require Lunatic code something like:
cost = user.att 20

but I can't be certain about that part, but if there are people using it, they might be able to help
you out how to use lunatic code.
 

shockra

Slightly Crazy Programmer
Veteran
Joined
Feb 16, 2016
Messages
444
Reaction score
208
First Language
English
Primarily Uses
RMMV
<Learn Require Eval>
if (user.atk >= 20) {
value = true;
} else {
value = false;
}
</Learn Require Eval>

That's how to use a parameter to determine if a skill can be learned.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top