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:
- 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:
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!