More refined control of Faces in Show Text

I am creating a game where the main character's sprite can change based on various circumstances such as what type of armor he is wearing, and eventually, what gender the player picks.

What I am discovering very quickly is that accounting for this in game is requiring me to include mountains of conditional branches in every event.

Is there a plugin somewhere that would let me choose what face to be displayed with a variable or a switch?  Or if not, do some of you have any tips for me on how to do this more easily?

Thanks!

EDIT:

I may have figured out something on my own here, so I'll leave my solution here in case anyone is curious or figures out a better way to do it.

I discovered that you can call the text box manually via the following script:  $gameMessage.setFaceImage('filename',x) ~ where the string in the quotes is the name of the file you're pulling the character's face from and x is a number from 0 to 7 indicating what specific face to pull from the file.

So, all we need to do is replace the file name with a variable containing a string that is the filename we need.  Unfortunately, you have to do this manually also, as far as I can tell.  But this is easy enough.

The syntax is:  var Whatever = "TheNameOfYourFaceSetFile"

So, if you were to call a script and type in this:

var Whatever = "TheNameOfYourFaceSetFile"

$gameMessage.setFaceImage(Whatver,4)

$gameMessage.add("This is a test")

In game, it would display a message in the appropriate event using the fourth image in the TheNameOfYourFaceSetFile.png file that says This is a test.

I think.

EDIT 2:

Okay, so that didn't work like I thought it would.  I don't know what I'm doing wrong, but when I set the string for the variable in any other context but in the script box that is directly calling the text i want, the game promptly forgets all about that variable.  And I get an undefined variable error.

Oy.
I am creating a game where the main character's sprite can change based on various circumstances such as what type of armor he is wearing, and eventually, what gender the player picks.

What I am discovering very quickly is that accounting for this in game is requiring me to include mountains of conditional branches in every event.

Is there a plugin somewhere that would let me choose what face to be displayed with a variable or a switch?  Or if not, do some of you have any tips for me on how to do this more easily?

Thanks!

EDIT:

I may have figured out something on my own here, so I'll leave my solution here in case anyone is curious or figures out a better way to do it.

I discovered that you can call the text box manually via the following script:  $gameMessage.setFaceImage('filename',x) ~ where the string in the quotes is the name of the file you're pulling the character's face from and x is a number from 0 to 7 indicating what specific face to pull from the file.

So, all we need to do is replace the file name with a variable containing a string that is the filename we need.  Unfortunately, you have to do this manually also, as far as I can tell.  But this is easy enough.

The syntax is:  var Whatever = "TheNameOfYourFaceSetFile"

So, if you were to call a script and type in this:

var Whatever = "TheNameOfYourFaceSetFile"

$gameMessage.setFaceImage(Whatver,4)

$gameMessage.add("This is a test")

In game, it would display a message in the appropriate event using the fourth image in the TheNameOfYourFaceSetFile.png file that says This is a test.

I think.

EDIT 2:

Okay, so that didn't work like I thought it would.  I don't know what I'm doing wrong, but when I set the string for the variable in any other context but in the script box that is directly calling the text i want, the game promptly forgets all about that variable.  And I get an undefined variable error.

Oy.
I'm in the same boat you are in.  I also allow the player to change between many different faces and it would be an absolute nightmare having to create separate text messages and condition branches for every player combination.

Shaz made a very useful script that allowed you to insert different faces into the same text message on VX Ace.  I was going to bother her sooner or later to rewrite it into a plug in for MV.  I'll be sure to pass it along to you if she finds the time and doesn't mind rewriting it.
I'm in the same boat you are in.  I also allow the player to change between many different faces and it would be an absolute nightmare having to create separate text messages and condition branches for every player combination.

Shaz made a very useful script that allowed you to insert different faces into the same text message on VX Ace.  I was going to bother her sooner or later to rewrite it into a plug in for MV.  I'll be sure to pass it along to you if she finds the time and doesn't mind rewriting it.
Hey, thanks!
So, if you were to call a script and type in this:

var Whatever = "TheNameOfYourFaceSetFile"

$gameMessage.setFaceImage(Whatver,4)

$gameMessage.add("This is a test")
Well, if you're literally using the code you pasted above, you have a typo in it. Whatever / Whatver

So that definitely won't work. But yes, something like this *should* work. But if you're calling a variable you set within the game, you'd use something like:

$gameVariables.value(var);
Well, if you're literally using the code you pasted above, you have a typo in it. Whatever / Whatver

So that definitely won't work. But yes, something like this *should* work. But if you're calling a variable you set within the game, you'd use something like:

$gameVariables.value(var);

THANK YOU!  I've been trying to figure this out for hours!

You are a gentleman and a scholar, sirrah!
Hey, thanks!
I see this was solved but I still wanted to update you.

Because it seems Shaz has already written the plugin I was referring to.  You can check it out in the RPGmakerWebPlugins folder/Shaz/MoreEscapeCodes.
I see this was solved but I still wanted to update you.

Because it seems Shaz has already written the plugin I was referring to.  You can check it out in the RPGmakerWebPlugins folder/Shaz/MoreEscapeCodes.
I just found out about this, myself.  Thanks for getting back to me!

Original thread: https://forums.rpgmakerweb.com/threads/more-refined-control-of-faces-in-show-text.49359/