Randomized sprite actor speaking in dialogue

Hi all.

So my question pertains to dialogue. In the beginning of my game, I have the player be able to choose from 16 sprites. The problem I have later, is that when in dialogue for your character's face to show, you need to pick the image, which is something I don't know.

Is this a case where I need to have 16 if statements any time I need my character to talk?
Hime had a plugin for MV that allows you to use a placeholder portrait that would automatically get replaced during gameplay - you could see if that works in MZ (by itself or via Project FOSSIL).

You can also check out the VisuStella Message Core, I'm certain they have escape codes to show the party leader's portrait.

Original thread: https://forums.rpgmakerweb.com/threads/randomized-sprite-actor-speaking-in-dialogue.166597/