In the game that I am making, I make use of a lot of different character states, like gender and clothing, that lead to a lot of different character portraits.
I need some way of dynamically controlling these portraits within text boxes without using huge amounts of conditional branches.
Now, I have figured out how to do this with script calls (see attached).
Essentially, you set a game variable to a string which contains the name of the png file you are referencing. From there, as long as all of your faces contain the same emotions in the same order, you can swap out the appropriate portrait entirely based on previous events that user has selected.
The downside to this is that you lose all of the functionality of the Show Text call in your event editor. No nifty colors, no timing, events don't wait for the text to finish, sound effects will play out of order, etc. Or, at least, I don't know how.
I think it would be nice to be able to have a new Control character to use within the Show Text call. So in the plugin, you would set the variable everything is linked to, then have a control character like \P[n] where n is a value from 0-7 which references the specific facial expression you want to select.

I need some way of dynamically controlling these portraits within text boxes without using huge amounts of conditional branches.
Now, I have figured out how to do this with script calls (see attached).
Essentially, you set a game variable to a string which contains the name of the png file you are referencing. From there, as long as all of your faces contain the same emotions in the same order, you can swap out the appropriate portrait entirely based on previous events that user has selected.
The downside to this is that you lose all of the functionality of the Show Text call in your event editor. No nifty colors, no timing, events don't wait for the text to finish, sound effects will play out of order, etc. Or, at least, I don't know how.
I think it would be nice to be able to have a new Control character to use within the Show Text call. So in the plugin, you would set the variable everything is linked to, then have a control character like \P[n] where n is a value from 0-7 which references the specific facial expression you want to select.
