Practical question about character selection

So, allowing a player to choose a particular avatar is relatively easy through the use of choices at the start of the game and doing things like changing the actor...but it seems like that's going to run into some pretty significant problems with games designed to be relatively in-depth.

So, to make it super simple, let's say I want to give players the choice of hair color: Brown, blond, grey or bald. I create sprites for each and face icons for each. I can create an event at the start of the game to give the player the choice of hair color and it will set their actor sprite to the appropriate color or lack of hair.

But then, a few scenes later I need them to say something and I'd like to put a surprised expression on their face...but I don't know which face the player is going to be using, so how do I assign the right one to the "display text" command?

And then later on I need the character to put on a disguise as a soldier. I change their actor sprite to the appropriate faceless goon sprite so they can walk around...but then when they need to change back...how could the game know what their hair color should be?


The only way I can figure out how to do this would be to set a variable based on the player's choice and then create a conditional branch which will read the variable.

This seems like a nightmare...that means if you've got four choices you've got to create 4 branches each time you want to have dialogue displayed with the character's face. It's not necessarily impossible, but I can only imagine the opportunity for screw-ups.
Is there any more practical way to do it?
Check out http://sumrndm.site/character-creator-ex/
Sadly, I don't think there is an alternate way to do this, Unless there is a Plugin which lets you assign pre-defined Character Sheets. Its really simple if you keep the wording short, I don't see how this is a problem. Ex : Character 1 with Hair 1 and Costume 1 = C11.. So on.


All you need to do is trigger Control Switches to turn on, to tell you which Character has been selected. So lets say if Player has a choice of x Characters with x Hairstyles and x Costumes, All you need to do is event all the possible combinations and declare Control Switches On for every option. Then you could check the Char Selected and revert back to the settings, Later on situationally.

Also, Be sure to check out Plugins by SumRandomDude, I remember some kind of a Pre-Char Creation Plugin created by him. That might help you.
@oriongates
you're not the first to think so, and there have been solutions.

1) first possibility
Please check the different messaging plugins available, they add additional text codes to the show text command.
and some of them include text codes for pictures and faces that change the show text from a fixed picture to a picture based on actors.

2) second possibility
another solution is to organise your facesets - all emotions of a specific actor are on a single facesheet. Then the player selection at the beginning selects which facesheet to use, and to select an emotion you only change the index on the facesheet but not the filename. That can be done with using the script equivalent of the show text command which allows replacing the fixed data with variable structures.

there are a few other solutions as well, like not using the fact option of the show text command but a show picture before it, or a bust replacement plugin and so on.

Original thread: https://forums.rpgmakerweb.com/threads/practical-question-about-character-selection.117245/