Chapter has error, but my coding seems correct to me?!?

Hi Episode Community!
I was coding an outfit choice, and the first part was fine and I didn’t get any warnings for an error. I copied and pasted the same code and changed the choice’s names (from Outfit 1 to Outfit 2) and changed the outfit my character is supposed to change into. Somehow, I got an error, even though my previous code was correct…

The error says stuff like “Choices must follow a dialogue immediately, not a branch” or something like “There’s a “{” in line __ without a matching “}”.”
Even though I have all the brackets I need, I checked multiple times.
Also, I wrote the word “choice” above them.

I may have done something wrong, but if I did, then why wasn’t I told so the first time I wrote this code?

I’ll put the code down below, if you detect something, please let me know. Thanks, everyone in advance!

My 1st Code

choice
“Outfit 1” {

@MC is undress_top
@MC is undress_bottom
@MC changes into MC_RANDOM

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!” {

goto CONTINUE

} “No, let me see the other outfits.” {

goto OUTFIT_CHANGE

}
}

This is correct (it doesn’t give any errors) Now here is my second code.

2nd Code

choice
“Outfit 2” {

@MC is undress_top
@MC is undress_bottom
@MC changes into MC_RANDOM2

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!” {

goto CONTINUE

} “No, let me see the other outfits.” {

goto OUTFIT_CHANGE

}
}

Again, thank you, everyone, in advance :smiling_face_with_three_hearts:

2 Likes

Hey!
I think you shouldn’t put word choice before outfit 2

choice
“Outfit 1” {

@MC is undress_top
@MC is undress_bottom
@MC changes into MC_RANDOM

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!” {

goto CONTINUE

} “No, let me see the other outfits.” {

goto OUTFIT_CHANGE

}
} “Outfit 2” {

@MC is undress_top
@MC is undress_bottom
@MC changes into MC_RANDOM2

    NARRATOR
Do you want to wear this?

choice
“Yes, I love it!” {

goto CONTINUE

} “No, let me see the other outfits.” {

goto OUTFIT_CHANGE

}
}

Try this script!

3 Likes

Aghh thank you sooo much, it worked. I thought I had to put it on each choice because the error window says I may have forgotten to use it somewhere.

You’re a lifesaver :sob: :weary: :revolving_hearts:

2 Likes

Ohh Glad that I could help, girl! :smiling_face_with_three_hearts:

2 Likes

Moved to Directing Help and Tips since this isn’t a bug. 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. :smiley:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.