Rpg Maker Mv Cheat Menu Plugin OnlineWindow_CheatMenu.prototype.drawCheatMenu = function() { this.contents.clear(); for (var i = 0; i < this.cheatMenu.length; i++) { var menu = this.cheatMenu[i]; this.drawText(menu.name, 0, i * 24, 192, 24); } }; var alias_GameSystem_cheatMenu = Game_System.prototype.cheatMenu; Game_System.prototype.cheatMenu = function() { CheatMenu.show(); }; rpg maker mv cheat menu plugin Scene_CheatMenu.prototype.initialize = function() { Scene_Menu.prototype.initialize.call(this); this.cheatMenuWindow = new Window_CheatMenu(); this.addWindow(this.cheatMenuWindow); }; Window_CheatMenu function Scene_CheatMenu() { this.initialize.apply(this, arguments); } Scene_CheatMenu.prototype = Object.create(Scene_MenuBase.prototype); Scene_CheatMenu.prototype.constructor = Scene_CheatMenu; Scene_CheatMenu.prototype.initialize = function() { Scene_MenuBase.prototype.initialize.call(this); }; Scene_CheatMenu.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); const commands = ['+10k Gold', 'Heal Party', 'Max Level', 'Exit']; const window = new Window_Command(commands); window.setHandler('ok', () => { switch(window.index()) { case 0: $gameParty.gainGold(10000); break; case 1: $gameParty.members().forEach(a => { a.hp = a.mhp; a.mp = a.mmp; }); break; case 2: $gameParty.members().forEach(a => a.changeLevel(99, false)); break; case 3: this.popScene(); break; } this.popScene(); }); window.setHandler('cancel', () => this.popScene()); this.addWindow(window); }; for (var i = 0
Copyright © 2010-2025 RobotSoft Software - All Rights Reserved.
Web: https://www.robot-soft.com Email: |