Switching file names for facesets?

In my game, I have a pair of siblings as the main characters. The player picks one of them as their player character, and the other becomes an NPC.

If possible, I'd really like to avoid having to make a conditional branch every time I want to show their faces in a text box. The easiest way for me to do that is to switch which face file refers to which character. I'm wondering if there's a way to do that using Javascript. Is is possible to rename the files in this way? Or does anyone know an easier way to make this happen?

Thanks!
No, the easiest way is to add one oft the messaging Plugins that adds textcodes for changing faces, and then use the textcode for "display face of actor 1" whereever you need that.

Changing the filename is actually much more difficult than that.
Not to mention you can have several games going at once, and changing file names would affect all games, not just that one.

There is a plugin that ships with the engine, called More Escape Codes, that lets you specify an actor id, and it will show the face assigned to that actor. This would require that you set up ONE actor in the database, and use the Change Actor Images / Class / Name / etc commands to customise them after the player chooses, rather than having them both set up and doing a Change Party Members to add/remove as needed.

Original thread: https://forums.rpgmakerweb.com/threads/switching-file-names-for-facesets.86089/