Custom Show Requirements for Yanfly's Skill Core

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
Hey everyone, I'm trying to expand upon one of the custom codes for Yanfly's Skill Core plugin. So far when you want a skill to be shown when an actor is a certain level you use this:

<Custom Show Eval>

if (user.level > 10) {

visible = true;

} else {

visible = false;

}

</Custom Show Eval>

What I want to do is only show the skill when the actor is between certain levels. Like if the actor is between level 10 and 20 then the skill is shown. If not then the skill is not shown. Can anyone help me out with this?
 

kiriseo

Veteran
Veteran
Joined
Oct 27, 2015
Messages
245
Reaction score
82
First Language
German
Do you want it to show the skill at that level range inclusive 10 and 20?

Than it would be

<Custom Show Eval>if (user.level >= 10 && user.level <= 20) {visible = true;} else {visible = false;}</Custom Show Eval>If it is exclusive, it would be this:

Code:
<Custom Show Eval>if (user.level > 10 && user.level < 20) {visible = true;} else {visible = false;}</Custom Show Eval>
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
Perfect! Thank you so much for the help!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
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

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top