MV [YEP Main Menu Manager] Common Event Actor Bind

What I want to do is have a main menu command that selects an actor, and then saves their ID in a game variable for use in a comment event called by the command. How would I do this? Is this feasible?
When you select an actor from the pause menu, that sets the game's internal "menu actor". You can then reference that in your event.

For setting that up with YEP Main Menu Manager, I found this old post of mine on Steam (source):
Important plugin parameters for the party chat menu item:
  • Ext: 1
  • Main Bind: this.commandPersonal.bind(this)
  • Actor Bind: this.callCommonEvent.call(this)
Just change the Ext number to the ID of your "party chat" common event. Then in the common event itself:
  • Control Variables > Set > Script > $gameParty.menuActor()._actorId
    (This stores the selected actor's ID in a variable.)

  • Then use Conditional Branch > Variable to separate out the possible party members' replies.
I think you could just use a script condition on the branches if you wanted and avoid having to set the variable; I just prefer to keep script calls to a minimum (keeps things tidier). ^_^'
(Obviously the event can do whatever you like, it doesn't have to be "party chat".)
When you select an actor from the pause menu, that sets the game's internal "menu actor". You can then reference that in your event.

For setting that up with YEP Main Menu Manager, I found this old post of mine on Steam (source):

(Obviously the event can do whatever you like, it doesn't have to be "party chat".)
Can commands like name change and remove actor be called from $gameParty.menuActor()?
Those commands don't allow you to specify the actor by variable, so you'd need a script call (or a bunch of branches). $gameParty.menuActor() returns a Game_Actor reference, so you can do all the usual things with that in a Script command, e.g.
  • Change Party Member (remove):
    $gameParty.removeActor($gameParty.menuActor().actorId());
  • Change Name:
    $gameParty.menuActor().setName("The Hero");
Is that what you meant? 😅

Original thread: https://forums.rpgmakerweb.com/threads/yep-main-menu-manager-common-event-actor-bind.153822/