Original Source
- Original title: Level Cap (MV/MZ)
- Original author: ATT_Turan
- Original date: July 22, 2025
- Source thread: https://forums.rpgmakerweb.com/threads/level-cap-mv-mz.179089/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMZ)
Summary
Level Cap 1.0 ATT_Turan Introduction I've seen this come up repeatedly, so I decided to refine my original code snippet and make a more user-friendly plugin out of it.
Archived First Post
ATT_Turan
Introduction
I've seen this come up repeatedly, so I decided to refine my original code snippet and make a more user-friendly plugin out of it.
This plugin gives you more control over the level cap in your game. Actors will not gain experience beyond that cap, which can be set globally or defined per actor.
At its simplest, the default plugin parameter is set to one of the game's variables - the level cap for all actors will be whatever you set the value of that variable to be at any given time during the game. Note that levels can't be lost by setting the variable lower, the actors simply won't gain any further experience from wherever they are.
That plugin parameter accepts code, so you can also make it any valid equation or JavaScript formula. In that case, you can use the variable
user to refer to the actor gaining experience. The value of the cap variable is what will be used as the level cap.Finally, there are notetags that can be placed onto any database object to calculate the level cap more individually. In the event there are notetags on more than one object, the priority is:
State > Weapon > Armor > Class > Actor
I have tested the basic functionality, please let me know if you encounter any errors. I will consider making compatibility patches if the other plugin is free to use (or one I own, such as a Yanfly product) and unobfuscated. Otherwise, other authors are free to modify this code to make it compatible with theirs so long as I am still credited.
View attachment 326935
<Level Cap Eval>
code
cap = code
</Level Cap Eval>
JavaScript code in this notetag will be executed any time the actor gains experience. The cap variable will initially have whatever value is determined by the plugin parameter. You can perform mathematical operations on it or use any other code to change its value entirely. Its final value will be used as the actor's level cap. There is also a user variable to refer to the actor whose level cap is being determined.
Terms and Credits
Free for non-commercial and commercial use. Credit ATT_Turan.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
I have tested the basic functionality, please let me know if you encounter any errors. I will consider making compatibility patches if the other plugin is free to use (or one I own, such as a Yanfly product) and unobfuscated. Otherwise, other authors are free to modify this code to make it compatible with theirs so long as I am still credited. View attachment 326935 Spoiler: Notetags Actor/Class/Weapon/Armor/State notetag
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...