Dealing with Cutscenes and Character Variety?

They want the same actor (main actor) occupy the same slot regardless the position in the party, so $game_actors[ID] will be better, assume this "main character" never leave the party. Or actually, leaving or not doesn't matter.
I was aiming for the case where you have a fixed actor (which doesn't always have to be actor ID 1), and random unspecified party members that you might want to have on screen.
if you have a cast that can be shuffled around and always want to bring up the bottom-most party member of the menu, you have to grab it from the party set, not the actors set.
if you have a cast that can be shuffled around and always want to bring up the bottom-most party member of the menu, you have to grab it from the party set, not the actors set.
The problem with your solution is, you use "select" by the character name that it returns an array, then immediately use character_name. Which mean you assume that the character always exists. If the character doesn't exist, it may throw an error of "undefined method character_name for nilClass", so why not directly grab it using the actor data? besides why name? what if this "main character" name is an input from player? The question was about "main character" which I can assume it will always exist in the party.

Oh, frankly, I don't quite understand the whole question.
the name string can be replaced by an array, and grab a group of characters from the party.
it doesn't necessarily have to be 1 character grabbed.

that's just a generic example of how to do it: not use the preset instruction, but manually redirect it to be based on an input by the programmer, which can be modified at will.
The OP doesn't know anything about the script, so how would u expect them to modify? They said it itself if it isn't a straight copy-paste, they wouldn't understand. You said it was an example, I can understand that, but I'd argue the example isn't good enough to begin with.
Sorry for the delay on responses (and for potentially causing argument? 🙁 ).

I decided to plough on with current demo and come back to this particular issue a little later. What I might do is test these scripts in a separate safe environment (an otherwise empty game with just a few thrown together actors) but probably won't get a chance to dedicate to it right away. Are topics kept open for a while before automatically being closed?
Two reasons that the support topic will be closed
> Closed by the OP's request (solved/found another solution/etc)
> Closed due to necropost (3 months old necroposted, so the mod assume that the OP didn't care about the topic anymore).

So yes you can keep this open. I leave my reply here so you don't need to edit your post if you want to add something 😛
I had a thought.

After the player has selected their party at the base or someone joins/leaves the party via eventing, the game could then set a variable Party Member 1, 2, 3, 4 etc. to the Game Data for those slots. Then, my cutscene events (which would be called 'Party Member 1, 2, 3, 4') would have conditional pages for each character.

Example:
Event 'Party Member: 1' would have conditional pages for 'Variable: Party Member 1' and set the graphic based on the number (which would be the ID of the character).
Event 'Party Member: 2' would have conditional pages for 'Variable: Party Member 2'.
And so on.
This way, the same character would never show up twice, as each NPC event is referencing a specific party slot. Whenever I create a new character, I simply copy-paste a page to each of the Party Member events and change the required variable.

The only issue I don't quite know how to solve here is the party formation. If the player was to change the order of their party, then this would skewer the variables entirely because they'd be the same members but now in different slots, unless I had the cutscene also do the 'Set Variable to Game Date Party Slot' stuff so that it updated accordingly.

The other thing I thought of is that I'm using Yanfly's Party Manager, which is great, but allows for the removal and addition of characters whenever Formation is selected, which is exactly what I want when they're at base, however when they're accessing it from the main menu, I'd rather that they could ONLY move characters, rather than having any ability to remove/add them. I'm not sure how/if that would affect my idea here at all but I'd rather not take chances, lol.

What do you think? Would it work?

Original thread: https://forums.rpgmakerweb.com/threads/dealing-with-cutscenes-and-character-variety.102975/