MZ - level restriction due to plot progressing.

Hi im a new here and don't know it's a right place to asking.

I want ask is there a plugin or something to prevent gaining exp. more then level (X) due to area or story progression.
let's just say I don't want my entire party grind levels until they progress a story (event,killing a specific boss etc.)
on area1(dungeon1) and don't get level more then level x(let's just say 5), but in area2 you can exp to level x.
and with hypothetical situation actor1 getted level 5 but actor2 is still on 4, the actor2 still gaining exp. until get lvl5.

Im working with MZ.

Any responce or help is appreciated.
I understand what you try to do, but this isn't really how XP normally is handeled.

In normal cases where area's are level-bound, they simply have a much higher XP requirement to the next level.

Say, in area 1, you get monsters level 1~5, and your player needs little XP to get from level 1 to level 5. However, to get to level 6, you suddenly need much more exp, which you can only get by going to area 2 where the enemies give more XP.

I know there are plugins (at least for MV) that limit the levels, but those can not be altered half-way the game. If you would set the max level to 5, it will never become 10.
Hiya!


ATT_Turan has a small snippet here that lets you determine the max level cap at any given time according to a variable, and it works for MZ, too. The variable there in the default example is 12 but you can change it to anything and increase as needed. I believe with how RPG Maker treats max levels, it also halts exp gain too once you hit that cap, to avoid banking too much exp before you lift the cap, which is handy.

Edit: Changed the link to the be the most recent adjustment to it due to the exp thing.
I believe with how RPG Maker treats max levels, it also halts exp gain too once you hit that cap, to avoid banking too much exp before you lift the cap, which is handy.
It actually doesn't do that automatically, but I had posted a fix for that in another thread and just added it to the one you linked 🙂
It actually doesn't do that automatically, but I had posted a fix for that in another thread and just added it to the one you linked 🙂
Ah, does it not? From my own testing it seemed like it did, with no further exp being gained upon hitting the cap, and then raising the cap, and the exp was still set at the amount it was at when reaching the initial cap no matter how many test battles I did with absurd amounts of extra exp gain. Unless my testing method was flawed--or MZ handles it differently from MV.

Edit: Yeah, I was testing in a silly way nevermind me, haha. You do indeed continue to gain exp. ╚(•⌂•)╝

So thanks for following up on that. Because level caps were something I was potentially interested in too for a specific project, haha.
Hiya!


ATT_Turan has a small snippet here that lets you determine the max level cap at any given time according to a variable, and it works for MZ, too. The variable there in the default example is 12 but you can change it to anything and increase as needed. I believe with how RPG Maker treats max levels, it also halts exp gain too once you hit that cap, to avoid banking too much exp before you lift the cap, which is handy.

Edit: Changed the link to the be the most recent adjustment to it due to the exp thing.

I should paste it via .script in game or .js file??
as .js file it's work but don't know how to change/increase value via game setting.
I should paste it via .script in game or .js file??
as .js file it's work but don't know how to change/increase value via game setting.
Hiya!

It needs to be saved as a .js file and then enabled in the plugin list, yeah.

And for how to change/increase it--since it's tied to that specific variable ID of 12 (or whichever one you edit it to be in the plugin) all you'd have to do then is use an event command that changes that variable (with the corresponding ID) to whichever number you wanted the cap to be through the 'Control Variables' event command per each major story moment or whenever you want the cap to go up.
It's WORKS

Thank you very much all. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/mz-level-restriction-due-to-plot-progressing.172283/