Label help neededd

Hey you guys,

So, my label gets errors and I really don’t know how to solve so, I hope you can help me out.

Okay so here it goes:

    NARRATOR
First school day...

@pause for a beat

label choosing_outfit

JANE (think_rubchin)
(What do I want to wear today?)

choice
“Outfit 1”{

@JANE is dustoff_neutral_loop

@JANE changes into jane_school_outfit_a

@JANE is idle

@pause for a beat

}
“Outfit 2”{

@JANE is dustoff_neutral_loop

@JANE changes into jane_school_outfit_b

@JANE is idle

@pause for a beat

}
“Outfit 3”{

@JANE is dustoff_neutral_loop

@JANE changes into jane_school_outfit_c

@JANE is idle

@pause for a beat

}

@pause for a beat

    JANE (think_rubchin)
(Shall I wear this or try on something else?)

choice
“Choose this outfit”{

    JANE (play_airguitar_energetic_loop)
(Yeah great style, this look rocks!)

    JANE (kiss_blow_happy_atcamera)
(Let's go!)

@JANE exits left

}
“Try on something else first”{

    JANE (think_rubchin)
(Yeah, your absolutely right.)

goto choosing_outfit

}

I have two errors, both from the labels first one says: you cannot have a label inside if/then statements or {} and the second one says: The label “choosing_outfit” does not exists

Hope you can help me out !

@Dara.Amarie

The code before you first label is inside an if statement. Either remove it by using gotos or you’ve forgotten to close the if statement - }.

Hey Laurelle, I don’t understand what you’re saying, can you perhaps give a example? That would be really great!

Somewhere before the what you’ve shown us you have:
if (condition) {

… }

Because your label is inside an if/elif/else statement, it doesn’t exist. You will need to take it out.

if (condition) {
goto choosing_outfit
}

label choosing_outfit

Ah I understand! Thanks so much!!

Glad to help. Did it work?

1 Like

Good to hear that :wink: Yes it worked! Problem is al solved now (finally):sweat_smile:

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