YEP - Class Base Parameters - How to properly set specific EXP required?

Rigor Mortex

Mankind's Mirror
Veteran
Joined
Mar 14, 2012
Messages
65
Reaction score
4
First Language
English
Primarily Uses
I thought I had finally figured out how to set the needed EXP for each level individually after much trial and error, but it's not working properly for a few reasons. First, unless the EXP gained exactly equals or exceeds the amount needed in my Notes code, the character won't gain a Level. Second, any EXP gained over how much is necessary will cause the "To Next Level" to display an equal negative value. Third, if a character starts at any Level other than 1, the game will crash when trying to view their stats - but only if I have Status Menu Core enabled, otherwise it seems to behave as described prior.

Somehow not leveling.pngNegative to Next Level - Top is Wrong.pngCrash.png

Here's what I put in the Notes:
Code:
<Custom exp Formula>
   if ($gameActors.actor(1).level === 1) {
     value = 7;
   } else if ($gameActors.actor(1).level === 2) {
     value = 16;
   } else if ($gameActors.actor(1).level === 3) {
     value = 24;
   } else if ($gameActors.actor(1).level === 4) {
     value = 63;
   } else if ($gameActors.actor(1).level === 5) {
     value = 110;
   } else if ($gameActors.actor(1).level === 6) {
     value = 230;
   } else if ($gameActors.actor(1).level === 7) {
     value = 350;
   } else if ($gameActors.actor(1).level === 8) {
     value = 500;
   } else if ($gameActors.actor(1).level === 9) {
     value = 700;
   } else if ($gameActors.actor(1).level === 10) {
     value = 900;
   } else if ($gameActors.actor(1).level === 11) {
     value = 1100;
   } else if ($gameActors.actor(1).level === 12) {
     value = 1500;
   } else if ($gameActors.actor(1).level === 13) {
     value = 2000;
   } else if ($gameActors.actor(1).level === 14) {
     value = 2500;
   } else if ($gameActors.actor(1).level === 15) {
     value = 3000;
   } else {
     value = 4000;
   }
I'm sure I screwed up somewhere, but it took about two hours of searching and trial and error just to get to this point. Is it even possible to get the results I want, and if so, how?
 

Lay

Veteran
Veteran
Joined
Jul 18, 2019
Messages
124
Reaction score
47
First Language
French
Primarily Uses
RMMV
I can reproduce the errors with your code and corect part of them using the following :
Hope it's help.
Or maybe you want to scale the exp curve of all actors to the level of actor 1 ?

Code:
<Custom exp Formula>
   if (level === 1) {
     value = 7;
   } else if (level === 2) {
     value = 16;
   } else if (level === 3) {
     value = 24;
   } else if (level === 4) {
     value = 63;
   } else if (level === 5) {
     value = 110;
   } else if (level === 6) {
     value = 230;
   } else if (level === 7) {
     value = 350;
   } else if (level === 8) {
     value = 500;
   } else if (level === 9) {
     value = 700;
   } else if (level === 10) {
     value = 900;
   } else if (level === 11) {
     value = 1100;
   } else if (level === 12) {
     value = 1500;
   } else if (level === 13) {
     value = 2000;
   } else if (level === 14) {
     value = 2500;
   } else if (level === 15) {
     value = 3000;
   } else {
     value = 4000;
   }
 
Last edited:

Rigor Mortex

Mankind's Mirror
Veteran
Joined
Mar 14, 2012
Messages
65
Reaction score
4
First Language
English
Primarily Uses
I currently intend to set up at least one class' EXP curve differently. That aside, it doesn't crash or ave the same problems my attempt did, though I see that rather than setting the amount they need to gain next, it seems to set what their TOTAL EXP needs to be, rather than their "to next level." While I can work around that by changing the values accordingly, I've discovered a new problem: This doesn't respect the actor's set Level cap, nor the one set in Yanfly's Core Engine - I had Harold's set to 30, and they'd jump to Level 99 if they reached or exceeded however much was needed for Level 30. I also tested this with setting required EXP for a level over 30, and it behaved the same.
 

Lay

Veteran
Veteran
Joined
Jul 18, 2019
Messages
124
Reaction score
47
First Language
French
Primarily Uses
RMMV
According to your notetag this is normal.

at lvl 15 you need 3000 total exp to level up.
at lvl 16 you need 4000 total exp to level up.
at lvl 17 you need 4000 total exp to level up. But you already have 4000, this is the same value than you needed at previous level. So the character perform an infinite level up since lvl max.

When I try on my side, spamming an event that give +500exp, level stop at 30.

re-write your values properly and make sure that the total amount of xp you need is never the same than the previous lvl.
 

Rigor Mortex

Mankind's Mirror
Veteran
Joined
Mar 14, 2012
Messages
65
Reaction score
4
First Language
English
Primarily Uses
The issue is I don't know what the "proper" way is at this point.
Code:
<Custom exp Formula>
   if (level === 1) {
     value = 7;
   } else if (level === 2) {
     value = 23;
   } else if (level === 3) {
     value = 47;
   } else if (level === 4) {
     value = 110;
   } else if (level === 5) {
     value = 220;
   } else if (level === 6) {
     value = 450;
   } else if (level === 7) {
     value = 800;
   } else if (level === 8) {
     value = 1300;
   } else if (level === 9) {
     value = 2000;
   } else if (level === 10) {
     value = 2900;
   } else if (level === 11) {
     value = 4000;
   } else if (level === 12) {
     value = 5500;
   } else if (level === 13) {
     value = 7500;
   } else if (level === 14) {
     value = 10000;
   } else if (level === 15) {
     value = 13000;
   } else if (level === 16) {
     value = 17000;
   } else if (level === 17) {
     value = 21000;
   } else if (level === 18) {
     value = 25000;
   } else if (level === 19) {
     value = 29000;
   } else if (level === 20) {
     value = 33000;
   } else if (level === 21) {
     value = 37000;
   } else if (level === 22) {
     value = 41000;
   } else if (level === 23) {
     value = 45000;
   } else if (level === 24) {
     value = 49000;
   } else if (level === 25) {
     value = 53000;
   } else if (level === 26) {
     value = 57000;
   } else if (level === 27) {
     value = 61000;
   } else if (level === 28) {
     value = 65000;
   } else if (level === 29) {
     value = 65535;
   } else {
     value = 69535 + (4000 * (level-30));
   }
</Custom exp Formula>
I also tried writing out every level, and only up to 30, and the result is the same: Level caps are ignored and they can reach 99.

EDIT: I actually tried Yanfly's own level code verbatim, which I had originally utilized as a base; it causes actors to ignore set Level caps (whether on the Actor themselves or through Core Engine), as well.
 
Last edited:

Rigor Mortex

Mankind's Mirror
Veteran
Joined
Mar 14, 2012
Messages
65
Reaction score
4
First Language
English
Primarily Uses
So it looks like the issue is, oddly enough, Yanfly's Core Engine itself - whatever I have in the plugin's settings is what will always be adhered to, without exception, rather than the MV editor's settings also being considered.
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
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

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top