Help? Errors with labels

I really do not know how to explain it, but I made a choice earlier in my episode and now I’m writing the consequence of it. In the consequence, there’s a choice, which I could do before but now it says it’s an error?
It says:
“You cannot have a label inside if/then statements or { }”
Can someone check my script and see what I’m doing wrong?

if (choice tell_friends_freddy is “Don’t tell them about the date”) {
@YOU spot 1.35 160 0 in zone 1
@transition fade in
YOU (think_rubchin)
(I need to head over to Freddy’s house soon.)
YOU (think_rubchin)
(What should I wear?)
NARRATOR
Since you chose not to tell Tori and Kenny about the date, you lost the option of Tori helping you and offering her opinion. So, you’ve lost two outfits.
label outfit_choice_1
@YOU is idle
YOU
What should I wear for the date?
choice
“Keep on what you’re wearing” {
@YOU exits right
@YOU changes into YOU_default
@YOU enters from right to spot 1.35 160 0 in zone 1
@pause for a beat
NARRATOR
Do you want to wear this?
choice
“Yes” {
label done
@YOU is primp_neutral
YOU (talk_neutral_atcamera_loop)
Time to go.
@YOU exits left
} “No” {
goto label outfit_choice_1
}
}

} “Simple” {
@YOU exits right
@YOU changes into Simple
@YOU enters from right to spot 1.35 160 0 in zone 1
@pause for a beat
NARRATOR
Do you want to wear this?
choice
“Yes” {
goto label done
} “No” {
goto label outfit_choice_1
}
}

} “Comfy” {
@YOU exits right
@YOU changes into Comfy
@YOU enters from right to spot 1.35 160 0 in zone 1
@pause for a beat
NARRATOR
Do you want to wear this?
choice
“Yes” {
goto label done
} “No” {
goto label outfit_choice_1
}
}

Then the second if statement is pretty similar, except there’s added dialogue and added choices that shouldn’t have an issue.
Is it impossible to have a label in an if statement? Can someone please explain my error? :tired_face:

1 Like

@amberose @xxLoveAaliyah

2 Likes

You can’t have goto’s inside a label. That’s why you’re having an error.

You’re better off using gains for this.

This thread will help you :smirk:

3 Likes

Hello @b.e.c.c.a, this is Sydney the moderator. Welcome to the forum. :smiley: Moved this to Directing Helps and Tips since it involves coding. Make sure to check out our Forum Tutorial for more info about where to correctly create topics, and feel to PM me if there are any questions. :wink:

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