Change face portraits in dialogue

Hey all,
Wondering if there's an easy way to change face portraits in-game based on equipment? Essentially I have 2 facesets for a character, identical except for the clothes. I would ideally like to be able to have one faceset swapped for the other in dialogue once an armor is equipped. Is there a way to do this outside of conditional branches on every piece of dialogue this actor is in?
There are a number of ways.

Check out Waynee95's On Equip Eval and SRD's Character Creator. Either of those should be able to do it, but the first would be simpler.
I've used SRD's CCEX in another project, useful there but has a ton of stuff I'm not going to use in this one so I'll check that other one out.
Can only one actor use this piece of armor, or multiple in the party?
Looking at the plugins, not sure they'll do what I want. This armor (as all armors/weapons) will only be usable by one character, but each of my main characters have a full faceset of 8 expressions (some have more than 1 faceset) and I'm kind of thinking conditional branches in the dialogue might be the best way to go, as awful as that sounds. I know I'm definitely not looking forward to poring over all those events...
Looking at the plugins, not sure they'll do what I want.
Why do you say that? It seems like it would be pretty straightforward to me.

You install the On Equip Eval plugin, then put in the armor's notes:
Code:
<Custom On Equip Eval>
user.setFaceImage("filename.png", portraitIndexNumber);
</Custom On Equip Eval>

Then you do a Remove tag that sets it back to their default portrait file.

Then you can just keep your dialogue the same, using Yanfly Message Core \pf[x] and \faceindex[x] to show whatever expressions regardless of which main character it is or which file you currently have their portraits set to.

Am I missing something about what you wanted to do?
It was my need to change the expressions that threw me off here. I'll give this a try tomorrow and see how it goes, it'll open up some neat options for me if it works.

Edit: @ATT_Turan you'll have to forgive me, I'm not a coder so your help has been invaluable. Am I able to put something in there to check for multiple equips? So for instance if armor is equipped, use x image, if helm is equipped, use y image, if armor AND helm are equipped, use z image?


Edit 2: The on equip eval doesn't seem to be working. The portrait remains the characters default in dialogue.

<Custom On Equip Eval>
user.setFaceImage("SasakiDoMaru", 1);
</Custom On Equip Eval>

It doesn't seem to be doing any harm, just isn't changing to the faceset I've selected. I know the plugin does SOMETHING, mainly because it was throwing errors (apparently it doesn't like .png at the end of the filename), just not what I'm needing it to do.

Edit 3: Disregard edit 2. For some reason it's now working.

Original thread: https://forums.rpgmakerweb.com/threads/change-face-portraits-in-dialogue.151081/