Text input graphic change

Hello all! I'm looking for some help with accomplishing a specific task. I've found multiple "scripts" but they are dated (2012 or around there) that seem to do what I want, but when attempting to use them I get an error. So either I don't know how to implement a script or they don't work.
When a "script" is referenced on these forums, do I need to just save them in notepad to the js plugins folder with .js extension?? Or how do I make these work?
I'm very new to all of this.
I'll explain what I'm looking to do here:

At the beginning of game, my player would be able to choose one of 5 playable, preset characters. From then on they would be able to collect the other 4 options as party members.
Problem I have is going forward with the game, when it comes to exchanging message inputs with npc, the game makes you choose a static image for each text box.
I need this message box to be dynamic and change based on what character the player chose in the beginning of the game.
I realize that you could do this with conditionals or common events somehow, but it seems way more tedious to remake 5 versions of every conversation with every possible npc interaction....
Correct me if I'm wrong, but there is no simple command to change a message inputs graphic based on variables or something built in to the engine aside from the tedious multiple conversations?
Scripts are usually for VX Ace - for MV and MZ, they're usually called plugins, so it's possible that if you're downloading VX Ace scripts, they won't work in MZ.

Assuming that the character chosen by the player will always be the party leader, you can use Visustella Message Core to set the face image of a message to the first party member's face image using the code \PartyFace[1] in the text box.

You can see the plugin help for more details; the plugin can be found in Visustella's free sample project: https://visustella.itch.io/visumz-sample.

Original thread: https://forums.rpgmakerweb.com/threads/text-input-graphic-change.155389/