Can someone help me fix my script? I don't know what's wrong with it


#1

My script is

choice
“Yes!”{
@TAYLOR changes into Baggy Sweater

gain Baggy Sweater
goto afterdg1

}“No.” {
@TAYLOR unpreviews outfit Baggy Sweater
goto dressinggame_pants

}}

but is says ERROR: There is a { on line 2 that does not have a matching } (it’s not actually on line 2 just an example)
and I can’t seem to find out what’s wrong. Can anyone find the problem?


#2

it needs to be:
choice
“Yes!”{
@TAYLOR changes into Baggy Sweater

gain Baggy Sweater
goto afterdg1

}“No.” {
@TAYLOR unpreviews outfit Baggy Sweater
goto dressinggame_pants

}


#3

Oh I forgot to add in:

choice (Eps1Outfit)
“Baggy Sweater”{
@TAYLOR previews outfit Baggy Sweater
@TAYLOR is admire
@pause for a beat
@TAYLOR starts idle

    TAYLOR (think)
(Should I wear this?)

choice
“Yes!”{
@TAYLOR changes into Baggy Sweater

gain Baggy Sweater
goto afterdg1

}“No.” {
@TAYLOR unpreviews outfit Baggy Sweater
goto dressinggame_pants

}}

This is the whole thing. It still has the same error.


#4

It because you have 2 } t the end and should only be 1


#5

That’s a nested choice


#6

It says the { on “Yes”!{ does not have a match. I don’t know what’s wrong with it.


#7

Oh my bad… lol duh… sorry…


#8

It’s most likely an error within that line. Can you send me a screenshot of the script


#9


#10

Try not doubling up brackets til the end of the nested choice


#11

Ok thanks let me try that.


#12

It still doesn’t work :frowning:


#13

Hmm, can you post the whole choice code


#14

Choice - Outfit {

INT. WALKINCLOSET - DAY
@follow TAYLOR to screen center in zone 2 AND TAYLOR does it while walk_exhausted
label dressinggame_pants
@speechbubble reset

    TAYLOR (think)
(I'd like to wear...)

choice (Eps1Outfit)
“Baggy Sweater”{
@TAYLOR previews outfit Baggy Sweater
@TAYLOR is admire
@pause for a beat
@TAYLOR starts idle

    TAYLOR (think)
(Should I wear this?)

choice
“Yes!”{
@TAYLOR changes into Baggy Sweater

gain Baggy Sweater
goto afterdg1

}“No.” {
@TAYLOR unpreviews outfit Baggy Sweater
goto dressinggame_pants

}
}
“Cafe Musician”{
@TAYLOR previews outfit Cafe Musician
@TAYLOR is admire
@pause for a beat

    TAYLOR (think)
(Should I wear this?)

choice
“Yes!” {
@TAYLOR changes into Cafe Musician

gain Cafe Musician
goto afterdg1

}“No.”{
@TAYLOR unpreviews outfit Cafe Musician
@TAYLOR starts idle_arms_crossed
goto dressinggame_pants

}
}

#}

The choice code isn’t finished yet.


#15

The problem is gains. They can’t contain spaces. Try to change it to Baggy_Sweater and Cafe_Musician and it should work without the problems :slight_smile:


#16

It works thank you! :smiley:


#17

Moved to Directing Help & Tips. Thanks for the help folks! Closing topic :smiley:


#18