[MV] Face Images in dialogue that change dynamically based on current outfit

So, changing the actor's default face image and SV and TV sprites (for example, as part of a clothing-swap event or system) is clear. But what if I had a bunch of emotions used for dialogues, and I wanted those faces to dynamically reflect the actor's current clothing?

I can have a face image PNG for each emotion and clothing set (and make sure that each emotion corresponds to a specific place in the matrix, uniform across all clothing sets), and I can have a variable that tracks which outfit the actor is currently wearing. But at my level, the only way I can think of to actually show the right face/clothing combination in the dialogue is to use extremely cumbersome conditional trees that will bloat dialogue events out of control.

So, is there a plugin out there that allows for a macro that can be used in Text boxes to display the matrix position of a PNG that dynamically changes based on a variable?

Or else, maybe this is built into the software and I'm a big ole dummy. 🙂
If you use Yanfly's Message Core AND their Extended Message Pack 1, you should be able to do this.
http://www.yanfly.moe/wiki/Message_Core_(YEP)
http://www.yanfly.moe/wiki/Extended_Message_Pack_1_(YEP)

Let's say it's actor 1 and the face index you want to use is 2 (the face index starts from 0 on the upper left). So you would use \af[1]\faceindex[2] in the Show Text box (see the plugin's help for these commands).
I can work with this! Thank you very much. We can close or lock the thread, my issue is more or less resolved.

Original thread: https://forums.rpgmakerweb.com/threads/mv-face-images-in-dialogue-that-change-dynamically-based-on-current-outfit.121763/