Open skill menu for a specific actor via script call

Hello, I am looking for a way to open Scene_Skill for a specific actor via script call.

This is what I use:
SceneManager.push(Scene_Skill);

But this opens the Skill menu of the first actor in the party. How can I open the menu for the second or the third actor?
Try this in a Script command:
JavaScript:
// member index 0 is leader, 1 is second actor, etc
var m = $gameParty.members()[1];
if (m) {  // if they exist
  $gameParty.setMenuActor(m);
  SceneManager.push(Scene_Skill);
}
I think this is all that's necessary for RMMV, but if you have problems with it not loading the face image correctly then try this sort of thing instead~
// actor to select (leader is index 0) const m = $gameParty.members()[3]; if (m) { // if they exist // set menu actor $gameParty.setMenuActor(m); // go to equip scene when their face is loaded ImageManager.loadFace(m.faceName()) .addLoadListener(SceneManager.push .bind(SceneManager, Scene_Equip) ); }

Original thread: https://forums.rpgmakerweb.com/threads/open-skill-menu-for-a-specific-actor-via-script-call.137634/