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?
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?