This is how you code choosing you name and last name:
@CHARACTER enters from left to screen center
NARRATOR
So… what’s your FIRST name?
label first_name_input
input What’s Your First Name?|What’s Your First Name?|Done(NAME)
if (NAME is “”) {
NARRATOR
You do need a name.
goto first_name_input
} else {
continue
}
NARRATOR
So… what’s your LAST name?
label last_name_input
input What’s Your Last Name?|What’s Your Last Name?|Done(LASTNAME)
if (LASTNAME is “”) {
NARRATOR
You do need a name.
goto last_name_input
} else {
continue
}
Remember to change @CHARACTER to whoever you are naming!
EXAMPLE OF RESULT:
NARRATOR
Hi! Is you name [NAME] [LASTNAME]?
If you want your reader to make sure they spell their name right, and if they wanted to change it before it is their name in the story forever, simply do:
@CHARACTER enters from left to screen center
NARRATOR
So… what’s your FIRST name?
label first_name_input
input What’s Your First Name?|What’s Your First Name?|Done(NAME)
if (NAME is “”) {
NARRATOR
You do need a name.
goto first_name_input
} else {
continue
}
NARRATOR
So… what’s your LAST name?
label last_name_input
input What’s Your Last Name?|What’s Your Last Name?|Done(LASTNAME)
if (LASTNAME is “”) {
NARRATOR
You do need a name.
goto last_name_input
} else {
continue
}
NARRATOR
Is your name [NAME] [LASTNAME]?
choice “Yes”{
NARRATOR
You may continue on with the story!
}“No” {
NARRATOR
We’ll take you back to the start!
goto first_name_input
}
If you only want the reader to choose their last name or their first name, just copy half of the code.