How to Open "Equip" Menu for a Specific Actor?

Currently, I'm working on a game that only has one Actor.

I wish to edit the Javascript so that when the "Equip" button is selected from the menu, it goes straight to the Equip screen for my one actor as opposed to going into the "Select an Actor" mode it does after being pushed.

So where should I make edits, and what should those edits be?

Thanks for reading!  🙂  
The main sections of code you'll want to be look at are:

Scene_Menu.prototype.createCommandWindow = function() { this._commandWindow = new Window_MenuCommand(0, 0); this._commandWindow.setHandler('item', this.commandItem.bind(this)); this._commandWindow.setHandler('skill', this.commandPersonal.bind(this)); this._commandWindow.setHandler('equip', this.commandPersonal.bind(this)); this._commandWindow.setHandler('status', this.commandPersonal.bind(this)); this._commandWindow.setHandler('formation', this.commandFormation.bind(this)); this._commandWindow.setHandler('options', this.commandOptions.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);};
Code:
Scene_Menu.prototype.commandPersonal = function() {    this._statusWindow.setFormationMode(false);    this._statusWindow.selectLast();    this._statusWindow.activate();    this._statusWindow.setHandler('ok',     this.onPersonalOk.bind(this));    this._statusWindow.setHandler('cancel', this.onPersonalCancel.bind(this));};
Code:
Scene_Menu.prototype.onPersonalOk = function() {    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;    }};
These are all from the rpg_scences.js file.

The first thing to start with is that you don't have to modify original files, you can create a new plugin file that edits this code external. This is the best practice and keeps you from messing with the source code of the engine itself.

Since you want to go to the Equip scene right away the first line you want to edit is one

this._commandWindow.setHandler('equip', this.commandPersonal.bind(this));As of right now the code calls the function "commandPersonal" which moves your cursor into the area where you select actors from, changing the line to simply this:

this._commandWindow.setHandler('equip', this.onPersonalOk.bind(this));will solve your problem quite well, you can do this for Skills and Status as well with only one repercussion: It still doesn't work.

All of these scenes expect an actor to have been selected from the menu, so we trace back how this is put into the menu in the first place, which is over in rpg_objects.js

Game_Party.prototype.setMenuActor = function(actor) { this._menuActorId = actor.actorId();};This function you want to simply change to this:

Game_Party.prototype.setMenuActor = function() { this._menuActorId = 1; // change 1 if your actor's ID isn't 1.};This should hopefully work out for you, if you're starting scripting and didn't really get what I just said, I recommend checking out https://www.codecademy.com/ as well as http://www.w3schools.com

to learn more about JavaScript.
Spoiler
The main sections of code you'll want to be look at are:

Scene_Menu.prototype.createCommandWindow = function() { this._commandWindow = new Window_MenuCommand(0, 0); this._commandWindow.setHandler('item', this.commandItem.bind(this)); this._commandWindow.setHandler('skill', this.commandPersonal.bind(this)); this._commandWindow.setHandler('equip', this.commandPersonal.bind(this)); this._commandWindow.setHandler('status', this.commandPersonal.bind(this)); this._commandWindow.setHandler('formation', this.commandFormation.bind(this)); this._commandWindow.setHandler('options', this.commandOptions.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);};
Code:
Scene_Menu.prototype.commandPersonal = function() {    this._statusWindow.setFormationMode(false);    this._statusWindow.selectLast();    this._statusWindow.activate();    this._statusWindow.setHandler('ok',     this.onPersonalOk.bind(this));    this._statusWindow.setHandler('cancel', this.onPersonalCancel.bind(this));};
Code:
Scene_Menu.prototype.onPersonalOk = function() {    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;    }};
These are all from the rpg_scences.js file.

The first thing to start with is that you don't have to modify original files, you can create a new plugin file that edits this code external. This is the best practice and keeps you from messing with the source code of the engine itself.

Since you want to go to the Equip scene right away the first line you want to edit is one

this._commandWindow.setHandler('equip', this.commandPersonal.bind(this));As of right now the code calls the function "commandPersonal" which moves your cursor into the area where you select actors from, changing the line to simply this:

this._commandWindow.setHandler('equip', this.onPersonalOk.bind(this));will solve your problem quite well, you can do this for Skills and Status as well with only one repercussion: It still doesn't work.

All of these scenes expect an actor to have been selected from the menu, so we trace back how this is put into the menu in the first place, which is over in rpg_objects.js

Game_Party.prototype.setMenuActor = function(actor) { this._menuActorId = actor.actorId();};This function you want to simply change to this:

Game_Party.prototype.setMenuActor = function() { this._menuActorId = 1; // change 1 if your actor's ID isn't 1.};This should hopefully work out for you, if you're starting scripting and didn't really get what I just said, I recommend checking out https://www.codecademy.com/ as well as http://www.w3schools.com

to learn more about JavaScript.
Hurray! It worked.  😀

And yes, I understood what you said.

I would've figured it out by myself eventually, I'm just.......lazy.... 😛   

Original thread: https://forums.rpgmakerweb.com/threads/how-to-open-equip-menu-for-a-specific-actor.48922/