RMMV Is it possible to change a character's max level through events?

Idelac

Villager of Oakvale
Veteran
Joined
Nov 7, 2022
Messages
54
Reaction score
7
First Language
English
Primarily Uses
RMMV
Exactly what it says on the tin.

I have a concept for a game where the party starts with a max level of LV 20 or so, but then the cap increases after certain cutscenes. There's no command for this in the event menu, so... Do I need to use JavaScript?
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,038
Reaction score
16,849
First Language
English
Primarily Uses
RMMV
It would be difficult, as all the parameters (max HP, max MP, atk, def, m.atk, m.def, agi, luk) are based on the level. So in addition to increasing the level by, say 20 at a time, you'd also have to tell it how to figure out the curve for each stat for each level between the current max and new max.

I think it would be simpler to give them the maximum level you want them to have at the end of the game, and then cap it to 20 until they reach the cutscene that moves them up to the next cap. You'd then have to stop the characters gaining EXP beyond the current cap and fake the "exp to next level" stat.

Either way, you'd need a plugin, so

I've moved this thread to Plugin Requests. Thank you.

 

SGHarlekin

Orc Jester
Veteran
Joined
Jun 29, 2020
Messages
1,147
Reaction score
1,424
First Language
German
Primarily Uses
RMMV
A workaround without a plugin could be giving your actor a state that sets their exp *0%
1680338530583.png
You'd essentially just run a common event that checks if the actors are on the current "max level", then apply that state.

You'd set this up with a conditional branch saying if "Cap removal switch" = off > apply state else remove state.

In your cutscene you then just turn that switch on. You can have multiple caps like that too, though the common event may get quite lenghty depending on how many actors you got.

Something like this essentially:
1680339189110.png
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
38,494
Reaction score
10,915
First Language
German
Primarily Uses
RMMV
So in addition to increasing the level by, say 20 at a time, you'd also have to tell it how to figure out the curve for each stat for each level between the current max and new max.
this only counts if the new max level goes beyond the official max level of 99.
If the OP limits to 20 and then increases to 30 there is absolutely no need for additional work other than changing the maxlevel.

@Idelac you'll still need a plugin for the changes, but if you stay below level 99 that can be a simple plugin that redirects the max level value to a variable or something similar.

If you confirm that you will stay below L99 even at the end of your game, then someone should be able to write a quick plugin for that. You also have to decide if you want one variable for all actors (easier) or each actor have its own variable.

Only if you consider going beyond 99 the plugin would be much more complex.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
983
Reaction score
496
First Language
English
Primarily Uses
RMMV
I made a max level plugin once upon a time.



Hope it helps.
 

Latest Threads

Latest Profile Posts

Damn. We’ve gotten so close to 0 reports, 0 approvals a few times over the past couple weeks. Does it matter? No. Is it realistic. No? Do I rely on your reports and want everyone to keep posting. Yes. Do I 100% games? …sigh… Yes.

Ah yes, all three of my moods all at once.
Here's a tutorial I did on how I made my Leonardo A.I.-assisted artworks for my game's recent update. :rhappy:

Disclaimer: This is meant to be a band-aid solution for people like me who aren't good artists or don't have the financial means to hire an amazing artist. If you have the means, please buy commissions and support your fav artists.:yhappy:

Found some expired fireworks in garbage today. I wonder if they still work.

Forum statistics

Threads
131,753
Messages
1,222,968
Members
173,512
Latest member
RayyanTheMalaysianGuy
Top