Setting event graphics on dynamic party order

I'm trying to figure out if there's a way to give a placeholder event the graphics of specific party members so that cut scene are more dynamic.
I know that I can use
Code:
set_graphic($game_actors[x].character_name, $game_actors[x].character_index)
for example to give the placeholder event the graphic of the actors where x is their place in the database so my question isn't that. Since I'm giving the player the ability to change the order of party members as well as the total party makeup, Instead, how do I do this for specific party members in terms of their current order?
So for example, how would I express "give this event the graphic of the actor currently second or third in the party list"?

I wasn't sure if this is a Learning Ruby/RGSSx issue or a Script Support thing since I'm not asking about a specific script, so if this is in the wrong place I apologize.
there is no need for scripts - you can use the condition "actor exists" for different actors on different event pages, and give each page the sprite of the actor.
Only one page will exist, but that would be one which actor is in the party - and if you make one event with one page per actor this way, the entire party will be visible (in different positions in that case of course)
Just so I'm clear, does that mean there's no equivalent script call or element that keeps track of who's in which follower position?
I ask because as per the board rules I tried searching for answers before asking and I did come across this thread which sites the method I described and says you can also use "$game_party.followers[index]". But I wasn't sure how to word the expression as plugging that into the set_graphic variable was just causing me to get a crashing error.
Of course there is a way to keep track of the party index - both by script or by events. I didn't mention that because I thought that would not matter.

In events you can check that by control variable, game data section (load the ID of party member index X into the variable).
I don't know how the script equivalent is spelled, but you'll just call the same function as the game interpreter does.
After about an hour of trial and error I figured out that what I was looking for was $game_party.members, but I still had to point it to the character name and index.
So the script call would be
Code:
 set_graphic($game_party.members[x].character_name, $game_party.members[x.character_index)
where 'x' is the party slot, (and 0 is the leader). This way it's reading from the slot rather than the actors in the slot and the same command yields different results depending on who's active in the part and the order they're in.

Original thread: https://forums.rpgmakerweb.com/threads/setting-event-graphics-on-dynamic-party-order.80671/