HELP with a custom equip menu im doing.

Hi all!

So, I'm into the task to recreate or mimic the default equip command from the menu (ESC key) with my own by making in with common events.

So when using the default equip command on the menu it goes like this. Equip command --> choose actor --> you get to the equip menu.

In my recreation, I know that I can call the equip scene with
Code:
SceneManager.push(Scene_Equip)
; but im missing the part where I select the actor prior to calling the scene. So when I call the scene, It will call the equip scene with the first actor, not letting me chose which actor I want to select.

So how can I select an actor before calling the scene? Im adequate with coding, but i cant find that part where anywhere.

Thank you!
JavaScript:
Game_Party.prototype.setMenuActorId = function(actorId) {
  this._menuActorId = actorId;
}

Then call it like this:

JavaScript:
$gameParty.setMenuActorId(SomeId);

Or if you don't care about using internal variables by force ignoring the encapsulation...

JavaScript:
$gameParty._menuActorId = SomeId;

In the latter example you wouldn't need the new function at all.
@kyonides

Thank you!!!! worked perfectly. I wasted one day and a half and could´nt find it, and it was just a simple line.

Where should I have been looking for the answer, which .js file?

Thank you again!
rpg_objects.js but in order to get a grasp of how it works internally you gotta check out the rpg_scenes.js and study it for quite some time as well.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-custom-equip-menu-im-doing.159396/