How to do eval for a character's level?

Helel257

Villager
Member
Joined
Aug 18, 2020
Messages
18
Reaction score
2
First Language
English
Primarily Uses
RMMV
I'm trying to find out how to do an eval for a character's level, specifically for hiding certain learnable skills until a certain level using Yanfly's plugins.

To give more detail: YEP_Skill_Learn_System has a Lunatic Mode eval for showing learnable skills:


<Learn Show Eval>
value = true;
</Learn Show Eval>

Using this eval, the skill is hidden until this value is true and I want the value to be "if Actor's Level = 15 then true" or "if Actor's Level > 14 then true" so that when a character turns level 15 they're able to see the new skill in question. I've looked through the base js files myself and can't find the exact way to write this out since I've come across tons and tons of Actor Level values that all do different things, so I think it'd be faster/easier to ask on the forums about how to figure out what I'm looking for. How do I accomplish this?
 

Pix3M

Veteran
Veteran
Joined
Feb 4, 2019
Messages
99
Reaction score
81
First Language
English
Primarily Uses
RMMV
You could try just a simple (user.level > 14), I believe parenthesis is important here but it might not. Parenthesis is important when actually coding in javascript but notetags might be different

If you want it to return true if the level is at 15, no higher or lower, it needs a == instead of a single =.
(user.level = 15) tries to set the level to 15, (user.level == 15) asks if the level is at 15.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top