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?
MV [YEP Main Menu Manager] Common Event Actor Bind
Javascript/Plugin SupportWhen 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):
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");
Original thread: https://forums.rpgmakerweb.com/threads/yep-main-menu-manager-common-event-actor-bind.153822/