public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Change Max Level
  • Original author: ovate
  • Original date: April 24, 2018
  • Source thread: https://forums.rpgmakerweb.com/threads/change-max-level.94492/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)

Summary

ChangeMaxLevel - 2015-11-19 Creator name: Alec Overview Allows you to change maximum level.

Archived First Post

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

Features Mentioned

  • 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 最大レベルを変更します

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

License / Terms Note

//This software is released under the MIT License. //http://opensource.org/licenses/mit-license.php /*: * @plugindesc Change maximum level

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.

#rmmv#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar