Please note that our last 2025 shipping date for printed books will be 16th December. Orders placed after that will be sent in January. EBooks are unaffected.
Scene_CheatMenu.prototype.onCommandOk = function() { const index = this._commandWindow.index(); switch (index) { case 0: this.commandGold(); break; case 1: this.commandPartyStats(); break; case 2: this.commandItems(); break; case 3: this.commandTeleport(); break; case 4: this.popScene(); break; } };
let cheatMenuEnabled = true; SceneManager.onKeyDown = function(event) { if (cheatMenuEnabled && event.key === 'F8') { event.preventDefault(); SceneManager.push(Scene_CheatMenu); } }; Overriding SceneManager.onKeyDown is fine, but you might also use Input system or a common event. 4. Creating a Scene for the Cheat Menu RPG Maker MV scenes inherit from Scene_MenuBase or Scene_Base . Minimal cheat menu scene: function Scene_CheatMenu() { this.initialize.apply(this, arguments); } Scene_CheatMenu.prototype = Object.create(Scene_MenuBase.prototype); Scene_CheatMenu.prototype.constructor = Scene_CheatMenu; rpg maker mv cheat menu plugin
Scene_CheatMenu.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this); }; Scene_CheatMenu
const CHEAT_ENABLED = Utils.isOptionValid('debug'); // only in test play // Or use a plugin parameter: /* @param EnableCheatMenu * @type boolean * @default true */ Also, warn the player that using cheats might break balance or achievements. /*: * @plugindesc Simple Cheat Menu - Press F8 * @author You * @help No config needed. */ (function() { const _SceneManager_onKeyDown = SceneManager.onKeyDown; SceneManager.onKeyDown = function(event) { _SceneManager_onKeyDown.call(this, event); if (event.key === 'F8') { event.preventDefault(); SceneManager.push(Scene_CheatMenu); } }; Minimal cheat menu scene: function Scene_CheatMenu() { this