Maker Mv Cheat Menu Plugin __hot__ - Rpg
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; } };
Scene_CheatMenu.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this); }; rpg maker mv cheat menu plugin
Scene_CheatMenu.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this.createCommandWindow(); }; Scene_CheatMenu
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; switch (index) { case 0: this.commandGold()