Next time, you can copy your code into your comment, choose it and hit Preformatted text button.
About the name variable:
When you create or set a variable, you don’t need ${}. Do *create name "Unknown"
, or *create name ""
.
For inputting text, you just need *input_text name
(see here).
I suggest giving a player a set of names in addition to player-created name, to give examples of normal names in your setting.
Example:
What is your name?
*fake_choice
#Horacio.
*set name "Horacio"
#Irene.
*set name "Irene"
#Sara.
*set name "Sara"
#Summer.
*set name "Summer"
#Let me write down my name.
*input_text name
I’m a little confused with your role and background variables. If your character only needs one background, use a single variable mc_background instead if several separate true/false variables:
*create mc_background "unknown"
in startup;
let the player to choose a background:
What is your background?
*fake_choice
#I am a runaway.
*set mc_background "runaway"
#I am a student.
*set mc_background "student"
For displaying background in stats, you can do this:
Background: ${mc_background}
Or this:
Your background
*line_break
*if (mc_background = "student")
You are a bookish student.
*if (mc_background = "runaway")
You run away from home when you were still a baby.
*if (mc_background = "unknown")
It is unknown.
If you character can, for example, have more when 1 role (be both a healer and an animal handler), you need several true/false variables.
Like this:
*create animal_handler false
*create healer false
Let the MC choose a role:
What do you want to do?
*choice
#I want to practice healing.
*set healer true
*goto healing_practice
#I want to tame a wild animal.
*set animal_handler true
*goto tame_animal
I think someone in the comments has already explained how to display this type of variables in stats.