I am using alanzdr's Only Character Survivor Menu for a game jam game I am working on and it does everything I need it to except for one thing- it doesn't have the save menu as a menu option. I am coding illiterate, so I have no idea how I would add that to it. Can someone please help me do it?
MV Need Help Adding Save Menu To A Custom Main Menu Plugin
Javascript/Plugin SupportHere's the fix.
JavaScript:
//=============================================================================
// OCS_Menu_Save_Option.js
//=============================================================================
/*:
* @plugindesc Add the Save Game Option to this menu.
* @author "Fixed" by Kyonides Arkanthes
*/
Window_OcsMenuComand.prototype.makeCommandList = function() {
this.addCommand(TextManager.item, "item");
this.addCommand(t_document, "document");
this.addCommand("Save", "save");
this.addCommand(t_exit, "gameEnd");
}
Scene_Menu.prototype.createCommandWindow = function() {
this._commandWindow = new Window_OcsMenuComand();
this._commandWindow.setHandler("item", this.commandItem.bind(this));
this._commandWindow.setHandler("document", this.commandDocument.bind(this));
this._commandWindow.setHandler('save', this.commandSave.bind(this));
this._commandWindow.setHandler("gameEnd", this.commandGameEnd.bind(this));
this._commandWindow.setHandler("cancel", this.popScene.bind(this));
this.addWindow(this._commandWindow);
};
That did the trick! Thanks, @kyonides!
Original thread: https://forums.rpgmakerweb.com/threads/need-help-adding-save-menu-to-a-custom-main-menu-plugin.165061/