MZ [Solved] Skipping the Equip button In Equip Scene

EDIT (10/11/2022):
I solved this problem by changing some functions and putting them in a plugin (js file).

****NOTE***** this is a hard overwrite! Even though it goes in a plugin and not the base code it may not play well with other plugins! I'm sure there are is a better way to write this however I built it for my purposes and if someone wanted to turn it into a legit plugin format feel free. I just wanted this here so if others are looking for this info they know what they need/where to start.

That being said this is what I put into a js file in my plugins folder:
Scene_Equip.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this.createHelpWindow(); this.createStatusWindow(); this.createCommandWindow(); this.createSlotWindow(); this.createItemWindow(); this.commandEquip() //< Added this._commandWindow.active = false //< Added this.refreshActor(); };

// This part will make next actor bind work and cancel to take you to the menu and not the equip command.
Scene_Equip.prototype.commandEquip = function() { this._slotWindow.activate(); this._slotWindow.select(0); this._slotWindow.setHandler("pagedown", this.nextActor.bind(this)); //< Added this._slotWindow.setHandler("pageup", this.previousActor.bind(this)); //< Added }; Scene_Equip.prototype.onSlotCancel = function() { this._slotWindow.deselect(); this.popScene(); //< Changed to this };

OLD POST:
I removed the clear and optimize buttons from the equipment scene. So now Im trying to figure out how to skip having to select 'Equip' before switching equipment.

I've tried adding this to the scene create.
this._slotWindow.activate(); this._slotWindow.select(0);

It does skip the equip button but if I select an equipment slot it jumps back to the first slot as if I did select 'Equip'. I'm at a loss as to what to try next. Any help would be appreciated.


Thanks,
Oggy
Solved

Original thread: https://forums.rpgmakerweb.com/threads/solved-skipping-the-equip-button-in-equip-scene.151323/