Adding links in main menu ?

Hello.
I'm using the simplemenu script in RpgMakerMV and would like to make an "inventory" link in the in-game menu aswell.
How do I do it ?

Here's the "FAQ" for the inventory script (ESI Grid Inventory):
//=============================================================================
// Script Call
//=============================================================================
* This plugin has a single script call.
* SceneManager.gotoGridScene();
* This will open up the grid inventory scene.
*
//=============================================================================
// Exports
//=============================================================================
* For those who use a type of main menu manager, you can pass the grid inventory
* scene with 'Scene_GridInventory'. If you don't like the script call.
//=============================================================================


Here is the menuscript i'm using:

//=============================================================================
// MrTS_EmptyMenu.js
//=============================================================================

/*:
* @plugindesc Removes actor data and moves command window.
* @author Mr. Trivel
*
* @param Show Gold Window
* @desc Show Gold Window? True/False
* Default: True
* @default True
*
* @param Command X
* @desc Comannd Window's X position. Is evaluated.
* Default: Graphics.boxWidth/2 - this._commandWindow.width/2
* @default Graphics.boxWidth/2 - this._commandWindow.width/2
*
* @param Command Y
* @desc Command Window's Y position. Is evaluated.
* Default: Graphics.boxHeight/2 - this._commandWindow.height/2
* @default Graphics.boxHeight/2 - this._commandWindow.height/2
*
* @param Gold X
* @desc Gold Window's X position. Is evaluated.
* Default: this._commandWindow.x
* @default this._commandWindow.x
*
* @param Gold Y
* @desc Gold Window's Y position. Is evaluated.
* Default: this._commandWindow.y + this._commandWindow.height
* @default this._commandWindow.y + this._commandWindow.height
*
* @help
* --------------------------------------------------------------------------------
* Terms of Use
* --------------------------------------------------------------------------------
* Don't remove the header or claim that you wrote this plugin.
* Credit Mr. Trivel if using this plugin in your project.
* Free for commercial and non-commercial projects.
* --------------------------------------------------------------------------------
* Version 1.0
* --------------------------------------------------------------------------------
*
* --------------------------------------------------------------------------------
* Version History
* --------------------------------------------------------------------------------
* 1.0 - Release
*/

(function() {
var parameters = PluginManager.parameters('MrTS_EmptyMenu');
var paramShowGold = (parameters['Show Gold Window'] || "True").toLowerCase() === "true";
var paramCommandX = String(parameters['Command X'] || "Graphics.boxWidth/2 - this._commandWindow.width/2");
var paramCommandY = String(parameters['Command Y'] || "Graphics.boxHeight/2 - this._commandWindow.height/2");
var paramGoldX = String(parameters['Gold X'] || "this._commandWindow.x");
var paramGoldY = String(parameters['Gold Y'] || "this._commandWindow.y + this._commandWindow.height");

var _SceneMenu_createStatusWindow = Scene_Menu.prototype.createStatusWindow;
Scene_Menu.prototype.createStatusWindow = function() {
_SceneMenu_createStatusWindow.call(this);
this._statusWindow.x = Graphics.boxWidth - this._statusWindow.width;
this._statusWindow.visible = false;
};

var _SceneMenu_createCommandWindow = Scene_Menu.prototype.createCommandWindow;
Scene_Menu.prototype.createCommandWindow = function() {
_SceneMenu_createCommandWindow.call(this);
this._commandWindow.x = eval(paramCommandX);
this._commandWindow.y = eval(paramCommandY);
};

var _SceneMenu_createGoldWindow = Scene_Menu.prototype.createGoldWindow;
Scene_Menu.prototype.createGoldWindow = function() {
_SceneMenu_createGoldWindow.call(this);
this._goldWindow.visible = paramShowGold;
this._goldWindow.x = eval(paramGoldX);
this._goldWindow.y = eval(paramGoldY);
};

var _SceneMenu_commandPersonal = Scene_Menu.prototype.commandPersonal;
Scene_Menu.prototype.commandPersonal = function() {
_SceneMenu_commandPersonal.call(this);
this._statusWindow.visible = true;
};




var _SceneMenu_commandFormation = Scene_Menu.prototype.commandFormation;
Scene_Menu.prototype.commandFormation = function() {
_SceneMenu_commandFormation.call(this);
this._statusWindow.visible = true;
};

var _SceneMenu_onPersonalCancel = Scene_Menu.prototype.onPersonalCancel;
Scene_Menu.prototype.onPersonalCancel = function() {
_SceneMenu_onPersonalCancel.call(this);
this._statusWindow.visible = false;
};

var _SceneMenu_onFormationCancel = Scene_Menu.prototype.onFormationCancel;
Scene_Menu.prototype.onFormationCancel = function() {
_SceneMenu_onFormationCancel.call(this);
this._statusWindow.visible = false;
};



// this will push skill, equip or status depends on which you selected.
Scene_Menu.prototype.commandPersonal = function() {
this._statusWindow.setFormationMode(false);
switch (this._commandWindow.currentSymbol()) {
case 'skill':
SceneManager.push(Scene_Skill);
break;
case 'equip':
SceneManager.push(Scene_Equip);
break;
case 'status':
SceneManager.push(Scene_Status);
break;

}
};
Scene_ItemBase.prototype.showSubWindow = function(window) {
window.x = this.isCursorLeft() ? Graphics.boxWidth - window.width : 0;
window.show();
window.activate();
};

})();

How can I add a Inventory link to this menu ?

Thank you.
Add this as a new plugin.

Note the lines with // have some instructions for you:

Code:
(function() {

var _Window_MenuCommand_makeCommandList = Window_MenuCommand.prototype.makeCommandList;
Window_MenuCommand.prototype.makeCommandList = function() {
    _Window_MenuCommand_makeCommandList.call(this);
    this.addCommandAt(0, "My Inventory", 'inventory');
    //Change 0 to the index that you want to insert the command at
    //Change My Inventory to the label that you want to show
};

Window_Command.prototype.addCommandAt = function(index, name, symbol, enabled, ext) {
    if (enabled === undefined) {
        enabled = true;
    }
    if (ext === undefined) {
        ext = null;
    }
    this._list.splice(index, 0, { name: name, symbol: symbol, enabled: enabled, ext: ext});
};


var _Scene_Menu_createCommandWindow = Scene_Menu.prototype.createCommandWindow;
Scene_Menu.prototype.createCommandWindow = function() {
    _Scene_Menu_createCommandWindow.call(this);
    this._commandWindow.setHandler('inventory', this.commandInventory.bind(this));
};

Scene_Menu.prototype.commandInventory = function() {
    SceneManager.push(Scene_GridInventory);
};


})()
Thanks, but it still dosent show up in the menu :/
Works fine for me.

2018-06-06 12_31_14-Test Project.png


Can you share a screenshot of your Plugin Manager?
Huh.. strange . Tried allocating it aswell.
Any errors if you press F8 during playtest?

Did you rename "MrTS_EmptyMenu.js" to "simplemenu.js"? If you rename a plugin, it can cause errors by not being able to read the parameters.

Does it work with all other plugins turned off? (leave the Grid Inventory, Mr Trivel, and my extension on)?
I have named it to "MrTS_EmptyMenu.js" again, but still no luck.
Turned off all other plugins, still not working.
Yes, there is error's . see attachment
Rpg maker 1.5.1
Well... Now i'm feeling pretty dumb.. lol
Forgot the last bracket's in your script ! "})()"

Thank you very much for the help !
Perfect - glad it works!

Original thread: https://forums.rpgmakerweb.com/threads/adding-links-in-main-menu.96194/