Changing a messages graphics based on a variable

Last time I ran into this problem, I tried to avoid using scripts because they were intimidating, but my antiscript solution ended up being tedious and not looking as nice as it could have. I'm hoping that someone here could help me out with this:

The basic idea is that you, the player, can choose the gender of the character, which changes the graphic sprite used. That's easy enough. Where I run into issues is trying to include dialogue that the player character is involved in. Long story made short, I want to know if I could use a script call to create the message box as normal with the picture being controlled by a variable.
It's been a long time since I use VX Ace, but I think it's doable with switch.
Basically you can turn on certain switch based on your gender selection.
If you choose male, turn on "Male" switch. If you choose female, turn on "Female" switch.
In every dialogue where the character is involved, you can put conditional branch.

If "Male" is on, show a text message with male face.
If "Female" is on, show a text message with female face.

It might be somewhat tedious if the character have many dialogues in the game,
but it's the only way I can think of. Maybe there's a better way I don't know of.

Hope this helps!
It's been a long time since I use VX Ace, but I think it's doable with switch.
Basically you can turn on certain switch based on your gender selection.
If you choose male, turn on "Male" switch. If you choose female, turn on "Female" switch.
In every dialogue where the character is involved, you can put conditional branch.

If "Male" is on, show a text message with male face.
If "Female" is on, show a text message with female face.

It might be somewhat tedious if the character have many dialogues in the game,
but it's the only way I can think of. Maybe there's a better way I don't know of.

Hope this helps!
I'd considered that, but it's incredibly inefficient and doesn't really solve the greater problem.
you need to add a message script that has those options - it can't be done with a simple script call, but there are more than enough people who wanted the same for it to be included as textcode uptions in messaging scripts (basically a textcode to use a face based on party/actor data).

the most commonly used are Modern Algebra's Advanced Text System or Yanfly's Message Script.
I consider the ATS to be the better one (has much more animation options), but others prefer Yanfly's because they already have other scripts from him installed.
Try Hime's "Placeholder Graphics" script, it should do exactly what you want. Link here
you need to add a message script that has those options - it can't be done with a simple script call, but there are more than enough people who wanted the same for it to be included as textcode uptions in messaging scripts (basically a textcode to use a face based on party/actor data).

the most commonly used are Modern Algebra's Advanced Text System or Yanfly's Message Script.
I consider the ATS to be the better one (has much more animation options), but others prefer Yanfly's because they already have other scripts from him installed.
Try Hime's "Placeholder Graphics" script, it should do exactly what you want. Link here
I'll look into these and get back to you. Thanks!

Edit:
If anyone else has this problem, there's also an option here:

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-a-messages-graphics-based-on-a-variable.129481/