DARA’S GUIDE: Typed-in Choices

Bump :gorilla:

1 Like

Bump

Okay, I have a question. The other day I was reading the story “College-ish” and I came across a choice where it let me select an image that went along with the the name. I was wondering what the coding was to do something like that.

Haven’t read the story but maybe it could be this: A Basic Guide to Tappable Overlays AND: A Guide to Creating Text from Overlays

2 Likes

Thank you so much!

Wait so does it look like this?

@pause for a beat
input What is your name? | What is your name? | Done (NAME)

              NARRATOR
      Wow! [NAME] is such a pretty name!

(is it necessary to put the @pause for a beat there?)

you don’t need to put pause for a beat there :slight_smile:

It isn’t working

are you checking this on the Web Preview? If so, type-in choices are not working there, you need to test it on your phone

Hi I was wondering if @Dara.Amarie or @Apes can help me with this code…
I have a scene where it involves reader input. They have to help someone fill in the blanks on a statement they are typing, So they have to type in the missing word. This is what I have so far, I know it is not right because when I preview it only the bit about answer is incorrect appears, so I would like some help to get the rest in.
NARRATOR
Can you help out Detective Jones with the missing words?

    NARRATOR (DETECTIVE JONES)
During my visit I noticed some strange behaviour from Miss Simpson, upon offering me a glass of ...
Hmm what did she offer me again?

label Guess_Missing_Word_1

input What is the Missing Word? | What is the Missing Word? | Guess(MISSING WORD)

if (MISSING WORD is “Water”) {

    NARRATOR
Correct! You've guessed the Missing Word.

} else {
NARRATOR
Answer is incorrect.
Please try again.

goto Guess_Missing_Word_1

}

@overlay MISSING WORD 1 create
@overlay 6088026729218048_MISSING WORD 1 shifts to 167 228
@overlay 6088026729218048_MISSING WORD 1 scales to 0.406 0.406
@overlay MISSING WORD 1 opacity 1 in 2
@overlay MISSING WORD 1 moves to layer 2
NARRATOR (DETECTIVE JONES)
Yes that’s right.

Don’t use spaces. Use underscores so change it to: MISSING_WORD

2 Likes

Thank you so much for this guide! But I still have a question: Does this work with elif and else too? Thanks in advance for all of your help.

Yes it does

1 Like

Thank you so much!

Thats just what happens with the web previewer.

The name will be remembered for readers and if you test your story in the app.

1 Like

Bump :cake5:

2 Likes

Bump :blob_sun:

1 Like

Bump :kiwi:

1 Like

Bump :desert_island:

Try entering FIRSTNAME on the character’s DISPLAY NAME box.