I'm trying to make a good player creation system in Inform 7 while I'm waiting to get my new computer, and I was wondering if you TIGers could help me with it. You don't really have to know Inform all that well, because the code is very simple. I have a working hair color model script, but I need help figuring out how to allow the player to choose multiple traits. Hair color is not enough.
So far I have this:
-------------------
Getting Started is a room.
Haircolor is a kind of value. The haircolors are red, white, blonde, black, brown, and unknown. Understand "red" or "redhead" or "redheaded" as red. Understand "white" as white. Understand "blonde" or "yellow" or "sandy" as blonde. Understand "black" or "raven" or "dark" as black. Understand "brunette" or "brown" as brown.
A person has a haircolor. The haircolor of the player is unknown.
When play begins:
now the command prompt is "What is the color of your hair?".
After reading a command when the haircolor of the player is unknown:
if the player's command includes "[haircolor]":
now the haircolor of the player is the haircolor understood;
if the haircolor of the player is unknown:
say "You need a hair color. [run paragraph on]";
reject the player's command;
say "[line break]Thank you. We now begin...";
now the command prompt is ">";
move the player to Ivory Lobby;
reject the player's command;
otherwise:
say "Sorry, we're not ready to go on yet. [run paragraph on]";
reject the player's command.
Ivory Lobby is a room.
Instead of examining the player when the haircolor of the player is red:
say "TESTING TESTING"
------
And the Documentation says that
If we had a whole series of things to ask the player about, we might define a whole series of kinds of value
The vocal ranges are soprano, mezzosoprano, contralto...
and use a "construction stage" variable to keep track of the current stage of character-construction, as in
After reading a command when the current construction stage is choosing a vocal range:
...
So if anyone could help with this, it would be fantastic!