})();
SceneManager.onKeyDown = function(event) { if (cheatMenuEnabled && event.key === 'F8') { event.preventDefault(); SceneManager.push(Scene_CheatMenu); } };
Scene_CheatMenu.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this); }; rpg maker mv cheat menu plugin
Instead of simple command windows, you can use or list selectors .
Window_CheatMenu.prototype = Object.create(Window_Menu.prototype); Window_CheatMenu.prototype.constructor = Window_CheatMenu; })(); SceneManager
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; } };
var alias_GameSystem_cheatMenu = Game_System.prototype.cheatMenu; Game_System.prototype.cheatMenu = function() { CheatMenu.show(); }; Instead of simple command windows
A cheat menu allows players (or testers) to:
var alias_GameSystem_initialize = Game_System.prototype.initialize; Game_System.prototype.initialize = function() { alias_GameSystem_initialize.call(this); CheatMenu.initialize(); };
$gamePlayer.reserveTransfer(mapId, x, y, direction, fadeType); SceneManager.goto(Scene_Map);