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
LillyR
January 1, 2020, 9:38pm
2
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.
PinchofMagic:
choice (todays_outfit)
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! Happy writing!
1 Like
Hello @PinchofMagic this is Sydney the moderator. Welcome to the forum! 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.
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
PinchofMagic:
choice (todays_outfits)
Is there dialogue above this? And there needs to be choices below it.
PinchofMagic:
choice }“Denim Dreams”{
PinchofMagic:
choice }“Animal Lover”{
I don’t think you don’t need choice infront of this.
2 Likes
You just put choice with the choice name in front of the first one, like this:
PinchofMagic:
WILLOW (talk_think_neutral)
What should I wear?
choice (todays_outfits)
“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
}
Nick
Closed
January 5, 2020, 7:44pm
12
Closed : Marked as solved by thread op