Need help with RMMV - Maximum Lvl

● ARCHIVED · READ-ONLY
Started by Khal_raffael 2 posts View original ↗
  1. Hi, im new in this forum. And i speak spanish, sorry my bad english. Anyway. In my project, I'm thinking of promoting classes when the characters reach the level. However, when they reach the maximum level, they can not continue gaining experience until they fulfill a main mission to promote and continue gaining experience and level up. This is why I would like to know what commands to use for this. Thanks for the time.
  2. There is no command for changing max level.

    You could probably use the Script:
    Code:
    $gameActors._data[1].actor().maxLevel = 50
    To change Actor 1's max level to 50, but that would be a bad solution that would stop working as soon as the player saves, exits the game, then reloads his save.

    The better alternative is to use a plugin that overwrites how max level is determined.
    Code:
    Game_Actor.prototype.maxLevel = function() {
        return $gameVariables[this._actorId + 0] || this.actor().maxLevel;
    };
    This allows you to use Variable 1 as the max level of Actor 1, Variable 2 for Actor 2, etc.
    If you're already using variables for something else, you can just replace the "0" in the plugin with some other number, so the plugin will use other variables instead.

    For example, if you want to use variable 10 for Actor 1, 11 for Actor 2, and so on, you should replace "0" with "9".
    You can also remove the "+ 0" part. I only put it in there, so you'd know where to make changes if needed.


    PS: You might want to move your poll to a different thread, because it's got nothing to do with your question or with support in the first place.