Confused on writing choices (I'm New)

I’m currently writing a story and confused on my choices. Just take a look at my situation…


choice (todays_outfit)

“Preppy Pink” {

    WILLOW (talk_excited_happy)

I think Preppy Pink is more my style

@WILLOW changes into WILLOW_PREPPY_PINK

readerMessage -5 Unbucks/Unbucks: 5

}“Denim Dreams” {

    WILLOW (talk_excited_happy)

I think Denim Dreams is more my style

@WILLOW changes into WILLOW_DENIM_DREAMS

}“Animal Lover” {

    WILLOW (talk_excited_happy)

I think Animal Lover is more my style

@WILLOW changes into WILLOW_ANIMAL_ LOVER

readerMessage +5 Unbucks/Unbucks:15
}

When I save my story it comes up with the error :

Choices must follow dialog immediately not a branch

It would be amazing if anyone could help me and tell me what I’m doing wrong.

Thankyou

Could you post the script before you have the choice? If you haven’t got dialogue right before then it comes up as an error.

Just above here, there should be some dialogue, like:

WILLOW
What should I wear?

choice (todays_outfit)
“Preppy Pink” {

^Also, note the way I didn’t skip an extra line. You’re allowed to do these:

choice “Option 1”{

OR

choice
“Option 1”{

BUT NOT

choice

“Option 1”{

Hope that helps! :grin: Happy writing!

1 Like

Hello @PinchofMagic this is Sydney the moderator. Welcome to the forum! :smiley: I’ve moved this thread to Directing Helps and Tips since this is about coding. Make sure to check out our Forum Tutorial for more info about creating topics, and feel free to PM me if you’ve got questions. :wink:

2 Likes

Sure I’ll give it a try ty for your help!

Tysm! This is so helpful!

Hey sorry but I’m so confused. I don’t get what I’m doing wrong in my script. I edited it and this is what it came to…


choice (todays_outfits)
WILLOW (talk_think_neutral)
What should I wear?

choice “Preppy Pink”{

    WILLOW (talk_excited_happy)

I think Preppy Pink is more my style

@WILLOW changes into WILLOW_PREPPY_PINK
readerMessage -5 Unbucks/Unbucks: 5

choice }“Denim Dreams”{

    WILLOW (talk_excited_happy)
I think Denim Dreams is more my style

@WILLOW changes into WILLOW_DENIM_DREAMS

choice }“Animal Lover”{

    WILLOW (talk_excited_happy)
I think Animal Lover is more my style

@WILLOW changes into WILLOW_ANIMAL_ LOVER

readerMessage +5 Unbucks/Unbucks:15
}


And the error :
Unexpected expression : Did you leave out the word “choice” , or forget to put a character name is ALL CAPS.

I’m so sorry for replying again.

Cheers

Is there dialogue above this? And there needs to be choices below it.

I don’t think you don’t need choice infront of this.

2 Likes

Thanks for the help!

:wave: You just put choice with the choice name in front of the first one, like this:

:+1:

TYSM! I’ve finished it! You’re a great help. :smiley: :smiley: :smiley: :smiley: :smiley:

1 Like

Closed: Marked as solved by thread op :v: