Help with a script error

Need some help, I’ve got a script error:

this is my script:

Blockquote

readerMessage Every time you shop the clothes will be put into your closet.
SOFIA (think_rubchin)
(What do I want to wear?)
label dressing_game_2
NARRATOR
Your closet:
choice (OUTFIT_1)
“Outfit 1” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_1
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_1
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 2” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_2
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_2
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 3” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_3
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_3
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 4” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_4
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_4
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 5” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_5
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_5
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} ">>> " {
goto dressing_game_3
}
label dressing_game_3
NARRATOR
Your closet:
choice (OUTFIT_6)
“Outfit 6” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_6
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_6
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 7” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_7
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_7
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 8” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_8
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_8
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 9” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_9
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_9
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 10” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_10
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_10
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
} "<<< " {
goto dressing_game_2
}
label dress_game_done

Here it should be

“Outfit 10” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_10
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_10
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} "<<< " {
goto dressing_game_2
}
label dress_game_done

1 Like

Thank you!

1 Like

You are welcome :wink:
With a long dressing game, it’s easy to miss one }

1 Like

Yeah! :smiley:

I still have an error.

I see that you changed it a little
You need to put an } before the label dress_game_done.

Copy this

readerMessage Every time you shop the clothes will be put into your closet.
SOFIA (think_rubchin)
(What do I want to wear?)
label dressing_game_2
NARRATOR
Your closet:
choice (OUTFIT_1)
“Outfit 1” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_1
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_1
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 2” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_2
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_2
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 3” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_3
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_3
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 4” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_4
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_4
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 5” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_5
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_5
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} ">>> " {
goto dressing_game_3
}
label dressing_game_3
NARRATOR
Your closet:
choice (OUTFIT_6)
“Outfit 6” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_6
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_6
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 7” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_7
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_7
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 8” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_8
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_8
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 9” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_9
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_9
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 10” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_10
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_10
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
} "<<< " {
goto dressing_game_2
}
}
label dress_game_done

Still got an error. I want the <<< to be on the left and outfit 10 to be on the right it just says that outfit 10 is missing choice or branch

Can you paste what you have now, please?

readerMessage Every time you shop the clothes will be put into your closet.
SOFIA (think_rubchin)
(What do I want to wear?)
label dressing_game_2
NARRATOR
Your closet:
choice (OUTFIT_1)
“Outfit 1” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_1
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_1
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 2” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_2
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_2
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 3” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_3
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_3
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 4” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_4
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_4
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 5” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_5
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_5
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} ">>> " {
goto dressing_game_3
}
label dressing_game_3
NARRATOR
Your closet:
choice (OUTFIT_6)
“Outfit 6” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_6
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_6
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 7” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_7
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_7
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 8” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_8
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_8
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 9” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_9
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_9
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} "<<< " {
goto dressing_game_2
}
} “Outfit 10” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_10
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_10
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
}label dress_game_done

I believe this will work, the label has to be on a different line

readerMessage Every time you shop the clothes will be put into your closet.
SOFIA (think_rubchin)
(What do I want to wear?)
label dressing_game_2
NARRATOR
Your closet:
choice (OUTFIT_1)
“Outfit 1” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_1
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_1
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 2” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_2
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_2
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 3” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_3
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_3
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 4” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_4
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_4
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} “Outfit 5” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_5
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_5
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_2
}
} ">>> " {
goto dressing_game_3
}
label dressing_game_3
NARRATOR
Your closet:
choice (OUTFIT_6)
“Outfit 6” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_6
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_6
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 7” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_7
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_7
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 8” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_8
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_8
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} “Outfit 9” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_9
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_9
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
} "<<< " {
goto dressing_game_2
} “Outfit 10” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_10
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_10
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
}
label dress_game_done

Still an error on option 10

Try again please I found the other issue :sweat_smile:

1 Like

I think i fixed it. I left it like down below and the dressing game works correctly:
} "<<< " {
goto dressing_game_2
}
“Outfit 10” {
@SOFIA is dustoff_neutral_loop
@SOFIA changes into SOFIA_outfit_10
@SOFIA is think_rubchin
NARRATOR
Is this what you want to wear?
choice “Yes!” {
gain Outfit_10
goto dress_game_done
} “No, let me see the other options.” {
goto dressing_game_3
}
}
label dress_game_done

Yes it was the part I edited here moments ago before I asked you to try again

1 Like

Oh okay ahha glad we could fix it, thanks for your help!

1 Like

I’ve got an error on mine but can’t think why (I’ve put in bold the line that is saying wrong)

&ui BLACK_LEFT_ARROW create and ui BLACK_LEFT_ARROW scales to 0.8 0.8 in 0 and ui BLACK_LEFT_ARROW shifts to 7 187 in 0 and ui BLACK_LEFT_ARROW opacity 1 in 0
&ui BLACK_RIGHT_ARROW create and ui BLACK_RIGHT_ARROW scales to 0.8 0.8 in 0 and ui BLACK_RIGHT_ARROW shifts to 250 187 in 0 and ui BLACK_RIGHT_ARROW opacity 1 in 0
&ui CHOOSE_THIS_PURPLE create and ui CHOOSE_THIS_PURPLE scales to 0.4 0.4 in 0 and ui CHOOSE_THIS_PURPLE shifts to 75 110 in 0 and ui CHOOSE_THIS_PURPLE opacity 0 in 0

tappable
“BLACK_LEFT_ARROW” {
&ui CHOOSE opacity 0.8 in 0.1
goto tap_outfit_5
} “BLACK_RIGHT_ARROW” {
&ui CHOOSE_THIS_PURPLE opacity 0.8 in 0.1
goto tap_outfit_1
}

label tap_outfit_1
@ELLIE =1
################## CHANGE OUTFIT NAME TO YOUR 1ST OUTFIT ###############
@ELLIE changes into ELLIE_Work Choice 1

tappable
“BLACK_LEFT_ARROW” {
goto tap_outfit_5
} “BLACK_RIGHT_ARROW” {
goto tap_outfit_2
} “CHOOSE_THIS_PURPLE” {
goto tap_outfit_choose
}

label tap_outfit_2
@ELLIE =2
################## CHANGE OUTFIT NAME TO YOUR 2ND OUTFIT ###############
@ELLIE changes into ELLIE_Work Choice 2

tappable
“BLACK_LEFT_ARROW” {
goto tap_outfit_1
} “BLACK_RIGHT_ARROW” {
goto tap_outfit_3
} “CHOOSE_THIS_PURPLE” {
goto tap_outfit_choose
}

label tap_outfit_3
@ELLIE =3
################## CHANGE OUTFIT NAME TO YOUR 3RD OUTFIT ###############
@ELLIE changes into ELLIE_Work Choice 3

tappable
“BLACK_LEFT_ARROW” {
goto tap_outfit_2
} “BLACK_RIGHT_ARROW” {
goto tap_outfit_4
} “CHOOSE_THIS_PURPLE” {
goto tap_outfit_choose
}

label tap_outfit_4
@ELLIE =4
################## CHANGE OUTFIT NAME TO YOUR 4TH OUTFIT ###############
@ELLIE changes into ELLIE_Work Choice 4

tappable
“BLACK_LEFT_ARROW” {
goto tap_outfit_3
} “BLACK_RIGHT_ARROW” {
goto tap_outfit_5
} “CHOOSE_THIS_PURPLE” {
goto tap_outfit_choose
}

label tap_outfit_5
@ELLIE =5
################## CHANGE OUTFIT NAME TO YOUR 5TH OUTFIT ###############
@ELLIE changes into ELLIE_Work Choice 5
tappable
“BLACK_LEFT_ARROW” {
goto tap_outfit_4
} “BLACK_RIGHT_ARROW” {
goto tap_outfit_1
} “CHOOSE_THIS_PURPLE” {
goto tap_outfit_choose
}

label tap_outfit_choose
&ui BLACK_LEFT_ARROW opacity 0 in 0.1 and ui BLACK_RIGHT_ARROW opacity 0 in 0.1 and ui CHOOSE_THIS_PURPLE opacity 0 in 0.1
@pause for 2
@zoom on 0 0 to 112% in 0
ELLIE (think_rubchin)
Is this the one?
choice
“Yes!” {
readerMessage Follow @dara.amarie.ep on Instagram! with messageTitle Arrows Dressing Game Template Credit
@ELLIE is idle_handsonhips_neutral_loop
} “No, let me try the others” {
&ELLIE is idle_handsonhips_neutral_loop and ui BLACK_LEFT_ARROW 1 in 0.1 and ui BLACK_RIGHT_ARROW opacity 1 in 0.1 and ui CHOOSE_THIS_PURPLE opacity 0.8 in 0.1
if (ELLIE =1) {
goto tap_outfit_1
} elif (ELLIE =2) {
goto tap_outfit_2
} elif (ELLIE =3) {
goto tap_outfit_3
} elif (ELLIE =4) {
goto tap_outfit_4
} else {
goto tap_outfit_5
}
}