DARA’S GUIDE: Typed-in Choices

Please visit my website for more templates and guides!
https://www.dara-amarie.com/

Typed-in Choices

the code:

input Question? | Question? | Done (ANSWER)

  1. “Question?” can be replaced by whatever you want your typed-in choice question to be. Most people use “What is your name?” to let readers type in their own names. Notice how Question? is repeated. You need to add in your question twice in the code.

  2. The word “Done” can be anything you want it to be. This is the button you tap when you have completed typing in your choice. It can say “Finished”, “Unlock”, “Okay”, etc…

  3. ANSWER inside of the parentheses () is what you are going to refer to the answer to. When you want your character’s to talk about the typed-in response, wrap straight brackets around the ANSWER, like this: [ANSWER].

  4. The input code does not show on the web previewer. You will need to test this code using the app

Here are some examples:

input What is your name? | What is your name? | Done (NAME)
input What is the password? | What is the password? | Unlock (PASSWORD)
input Enter the 4 digit code. | Enter the 4 digit code. | Activate! (CODE)
input Text your boyfriend. | Text your boyfriend. | Send (TEXT)

	NARRATOR
[NAME] is such a pretty name!
[PASSWORD] is not the correct password.
You typed in: [CODE]. That is incorrect.
	BOYFRIEND
What did you mean when you sent me “[TEXT]”?

“Unlocking” typed-in choices!

Here I’ll show you how to “unlock” things by typing in the passcode, where readers cannot continue unless they type in the right words or numbers.
You’ll need to use labels, gotos, and the if/else code.

label unlock_code

input What is the passcode? | What is the passcode? | Unlock(CODE)

if (CODE is “Apple”) {

		NARRATOR
	Correct! You’ve unlocked the door!

} else {

		NARRATOR
	Code incorrect.
	Please try again.

goto unlock_code

}

NOTE: “Apple” needs to be whatever your actual passcode is.

Typed-in Names on Top of Speech Bubbles

​You can do either one of these to get the typed-in name on top of the character’s speech bubble:

  1. Replace the “ANSWER” in the code with the character’s script name, or
  2. Put the “ANSWER” as the display name of the character. You’ll continue to use the character’s script name in the script. (see image below for example)

nzofus

172 Likes
label background_code

INT. CODE LETTER 
@pause for 10

label unlock_code

input What is the passcode? | What is the passcode? | Unlock(CODE)

if (CODE is “Apple”) {
		NARRATOR
	Correct! You’ve unlocked the door!

} else {
		NARRATOR
	Code incorrect.
	Please try again.
    Would you like to see the code again?
choice
"Yes" {
goto background_code
} "No" {
goto unlock_code
}
}

Add a label before the background, then when they get the code wrong add in a choice to see the background again or not.

9 Likes

No problem :blush:

2 Likes

image

15 Likes

What does your script look like. The problem is probably something your entered before or after the label.

2 Likes

You have NARRATOR right before the label with no dialogue. Add dialogue or remove NARRATOR.

1 Like

So in the scene, the character is taking a quiz and this is the last question of the quiz but it won’t show up in the preview. Is this normal? Here’s the script:

NARRATOR
Question 5: Who is your favorite god and why?

input Who is your favorite god and why?| Who is your favorite god and why?| Put down (ANSWER)

typed in input codes do not work in the web previewer. You’d have to test it out in the app.

1 Like

Oh ok tysm!

I am trying to label the naming the character part but i do not know how to name it

Bless you. God bless

Nevermind I figured it out

It’s coming up with an error: expected dialogue
Here’s my code:

Blockquote LILLIAN ROSEBERRY (talk_think_neutral)
(Well I know her name is Kylie, just what is her last name?)
(empty line)
input What is Kylie’s Last Name? | What is Kylie’s Last Name? | Enter [KYLN]
(empty line)
@LILLIAN ROSEBERRY starts listen_phone_confused

1 Like

input What is Kylie’s Last Name? | What is Kylie’s Last Name? | Enter (KYLN)

I’ve done that but then in the app when i try to put it in a sentence such as

Kylie (KYLN) does not match on our servers. Call disconnecting in 3…
2…
1…

It comes up with

Kylie (KYLN) does not match on our servers. Call disconnecting in 3…
2…
1…

like it wont say the input name

Actually I figured it out, thanks x

1 Like

I tried to do the name script, but it did not work

Test it on the app

2 Likes

ok