Max level increase in MZ with Item

Hey guys, run into another snag in my game and going through the many threads here I haven’t stumbled across a solution for MZ.

My goal in my game is to have my players grind a resource to be able to make an item that then increases their actors max level from let’s say 20-30. Then they can do it again later to go from 30-40. I’ve looked into maybe making more than one actor for that and switching them out but my game is gonna have probably over 100 Actors. I’ve seen some script calls for this but they require a specific plug in. Does anyone know how to accomplish this with a script call in an item? Or with using Visustella JS control with the core plugin?
Then they can do it again later to go from 30-40. I’ve looked into maybe making more than one actor for that and switching them out but my game is gonna have probably over 100 Actors
is this level limit extension per actor or collectively?

its an easy change to make the actor level cap be based on a variable or some other value using a plugin, but its necessary to know if all actors share a cap.
Not shared, each actor will need to use the item to increase their own max level.
  1. If I'm understanding right, you want to have your characters have a max level of 20 to start.
  2. Players must grind a resource then the max level becomes 40.
Solution to 1: Your understanding is correct. The easiest and simplest way to keep max level of characters is to set it under actors, when they get the items they switch the character and gain a level. If you're a JS purist, you would need to program a plugin for this to set max level until the item is acquired or used. It shouldn't be that difficult.

Solution 1.a. If you're looking for an item that increases the character level, that is fairly straight forward. If you are looking to increase actors levels, you can do a common event upon using an item.

1739062690104.png

1739062740955.png


Solution 2: The simple way is to max the initial character to 20. Then copy it over to an identical character which max level is 40. As you can see in the images below, I changed Reid's profile description and class. Then you can decide if you want the XP to be passed when the class switch happens. This is the quick and easy way.

1739064097945.png


1739064193883.png


1739064318851.png


I do think there is a better way to do it, but it would take time. Maybe someone would like to add their solution in?
1. Thank you for your very detailed explanation I appreciate it.

2. The only reason I’m hesitant to do the Actor switch is the Actirs equipped gear. Does it move with? ( I can’t imagine it does so I’d have to just have a common event warning play to say “Hey unequip your gear!”)
Not shared, each actor will need to use the item to increase their own max level.
then this is what we'll do. since youll have that many actors we'll use values on the actors.
Code:
Game_Actor.prototype.maxLevel = function() {
    return 20 + (this._levelBoost || 0);
};
that as a plugin sets everyone's max level to 20 plus their own _levelBoost property. then on the item that increases level caps you can give it a damage formula or a visustella item tag that includes
Code:
b._levelBoost = (b._levelBoost + 1) || 1
so that their specific value gets increased

EDIT: just realized. youre using this like a gacha unit uncap system right? what i have above would give one level per item, but you can do this instead. each item would then increase the cap to 10 and you can replace the 2 for however many uncaps are max
Code:
Game_Actor.prototype.maxLevel = function() {
return 20 + (Math.min(this._levelBoost, 2) || 0) * 10;
};
then this is what we'll do. since youll have that many actors we'll use values on the actors.
Code:
Game_Actor.prototype.maxLevel = function() {
    return 20 + (this._levelBoost || 0);
};
that as a plugin sets everyone's max level to 20 plus their own _levelBoost property. then on the item that increases level caps you can give it a damage formula or a visustella item tag that includes
Code:
b._levelBoost = (b._levelBoost + 1) || 1
so that their specific value gets increased

EDIT: just realized. youre using this like a gacha unit uncap system right? what i have above would give one level per item, but you can do this instead
Code:
Game_Actor.prototype.maxLevel = function() {
return 20 + (Math.min(this._levelBoost, 2) || 0) * 10;
};
Thank you! I’ll give this a try asap!
Just so I’m clear that damage formula:
Code:
b._levelBoost = (b._levelBoost + 1) || 1
If I change it to b._levelBoost + 10 it would change the max level from 20-30?
If I change it to b._levelBoost + 10 it would change the max level from 20-30?
for the first one, yes. ive edited my past post with another if its closer to what you want, but its just a little math to adjust it however you want
for the first one, yes. ive edited my past post with another if its closer to what you want, but its just a little math to adjust it however you want
I using this exactly like a gacha system yes lol, I am making a gacha game of my discord group where various people will be the units you can summon. So being able to unlevel cap is kinda crux of the game so I super appreciate the help.

To save that as a plug in I just copy/paste it into a notepad and save it as a .js right?
To save that as a plug in I just copy/paste it into a notepad and save it as a .js right?
yep. exactly so. if you are using visustella plugins you may want to place it below them. i think the core one also alters the max level, so the changes this one should be below it to overwrite it
yep. exactly so. if you are using visustella plugins you may want to place it below them. i think the core one also alters the max level, so the changes this one should be below it to overwrite it
Worked perfect first try, and how you coded a max of only 2 level uncaps is exactly what I wanted!
Thank you so much. Also is your "cosmic rays are real and corrupted my project!" a nod to speed run of Mario 64 ?

Original thread: https://forums.rpgmakerweb.com/threads/max-level-increase-in-mz-with-item.175281/