Naming A Character

Naming A Character Overview

Allowing the player to name a character is a fun way to personalize a story. There is a specific command to be used in the script for this purpose.

 

Code for Naming a Character:

label name_input

input What’s Your first Name?|What’s Your First Name?|Done(NAME)

if (NAME is “”) {

NARR

You do need a name…

goto name_input

} else {

continue

}

 

IMPORTANT

  • In dialogue, to reference the name that the player has chosen, you have to put brackets around [NAME] - forgetting to do so will include the actual word NAME in the script. Dialogue using this command would look like this:
| MOM

Are you on your way home, [NAME]?
  • We can’t use anything in brackets in choice language. It’s the one instance where [NAME] in brackets would show up as the word NAME with brackets around it in the app, rather than the name that the player had chosen. Keep this in mind when writing/directing choices, and always play through to check in the app!