Change Max Level

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
631
Reaction score
1,065
First Language
English
Primarily Uses
N/A
ChangeMaxLevel - 2015-11-19

Creator name: Alec

Overview
Allows you to change maximum level.

Features
- Able to change max level with a parameter
- Short code

Code:
//=============================================================================
// ChangeMaxLevel.js
//=============================================================================
//
//Copyright (c) 2015 Alec
//This software is released under the MIT License.
//http://opensource.org/licenses/mit-license.php
 
/*:
 * @plugindesc Change maximum level
 * @author Alec
 *
 * @param newMaxLevel
 * @desc Set max level
 * @default 99
 */
/*:ja
 * @plugindesc 最大レベルを変更します
 * @author Alec
 *
 * @param newMaxLevel
 * @desc 最大レベル
 * @default 99
 */
 
 
(function() {
    Game_Actor.prototype.maxLevel = function() {
        var parameters = PluginManager.parameters('ChangeMaxLevel');
        var newMaxLevel  = Number(parameters['newMaxLevel'] || 0);
        console.log(parameters);
        console.log(newMaxLevel);
        return newMaxLevel;
    };
 
    Game_Actor.prototype.paramBase = function(paramId) {
        if (this._level < this.currentClass().params[paramId].length) {
            return this.currentClass().params[paramId][this._level];
        }
        else {
            var maxLevel = this.currentClass().params[paramId].length - 1;
            var sub = this.currentClass().params[paramId][maxLevel] - this.currentClass().params[paramId][0];
            return this.currentClass().params[paramId][maxLevel] + sub / maxLevel * (this._level - maxLevel);
        }
    };
 
})();
Credit and Thanks: Alec

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/vcjblyeduf2um5l/ChangeMaxLevel.js?dl=1
 

Attachments

Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

JDgoldvox wrote on Mr. Detective's profile.
hey, could u help me with a problem? basically, How do I delete a character from a map after a cut scene is over? I am really new with RPG maker MV. Please help!
The most rewarding part of making custom body character parts is absolutely not making the masks work. Somebody please put me out of my misery.
Any commercial devs here ever mess with Gamejolt? Been contemplating making my games available there but don't know if it's worth the effort or not.
Social distancing taught me of how much of not a loner I am. Dammit, I miss seeing my friends...
Happy 4th of July all. Anybody have plans? Mine here is staying home away from the virus. Still a nice 3 day weekend.

Forum statistics

Threads
99,262
Messages
963,606
Members
130,856
Latest member
superfluffy
Top