DARA’S GUIDE: Remember Choices with if/elif/else

lol thanks so much! I was very confused for a second

so if I use a label can that same label be used in different episodes? for example I want my choice to effect a later episode how would I go about doing that?

You’re mixing labels with gains/naming choices. Labels are a different thing.

And to remember it a choice you need to use one of this methods, and yes you can use it in later episodes :slight_smile:

1 Like

perfect! thank you!

This helped me a lot thank you!

But I get an error I don’t understand. It looks like this in the script:

if (back_in_time is “Option 1”) {
scene here
} elif (back_in_time is “Option 2”) {
scene here
} else {
scene here
}


And when I press save it says: There is a { on line 3060 that does not have a matching }

I want to something to happen based on which outfit the reader choosed earlier (It’s all in the same episode)
So back_in_time is the label and option 1, option 2 and option 3 is what I wrote in the dressing choose.


Btw the dressing choice looked like this:

label back_in_time

@YOU is think_rubchin
YOU
(What should I wear?

choice (back_in_time)
"Option one"{

scene here & character changes into outfit

}“Option two”{

scene here & character changes into outfit

}“Option three”{

scene here & character changes into outfit

}

YOU (think_rubchin)
(Should I wear this?)

choice
"Yes"{

scene here

}“Try something else”{

goto back_in_time

}


So what am I doing wrong? And how do I fix it?

there’s no error in your script, can you show the screenshot?

you may want to change this tho:

Here’s a screenshot. Sorry if it’s confusing, I’m doing some sort of fashion contest.

So basically, I want the jury to react different ways depending on which outfit outfit the reader choosed earlier in the episode with the if/elif/else method.

(It’s kinda hard to see the text in the script so if you click on the picture it looks better.)

And what do you mean by change “Option 1,2,3”? That I should try naming them differently?

I tried changing the options to pink, rose and red instead but I still get the same error.

I’ve written if and elif like you can see in the screenshot above, and then I’ve written else like this. And ended it with } .

Namnl%C3%B6s

@iconicllama line 3149, you need @ before the zoom

Thank you so much! But I still get the same error? I really don’t get what’s wrong. :thinking:

If you can PM your whole script, I will have look :slight_smile:

Ok tysm, just a fair warning the story is pretty weird lol. I’m doing it for my friends :slight_smile:

But also…
How do I pm you my script? Hehe I’ve never done that before.

Thankyou so much!
How would it go for this scene
Label Outfit
Choice “born to rule” }
@GIZELLE is dustoff_loop
@GIZELLE changes into GIZELLE_born_to_rule
@GIZELLE is dustoff_loop
} “Simple and Stylish” {
@GIZELLE is dustoff_loop
@GIZELLE changes into GIZELLE_stylish
@GIZELLE is dustoff_loop
}
@GIZELLE is strike_a_pose

NARRATOR
Is this the right outfit?
choice “YES” {
GIZELLE (talk_handsonhips)
Duh, I look bae AF.
} “NO” {
@GIZELLE is dismayed
GIZELLE (dismayed)
I NEED TO CHANGE NOW!
Goto outfit

Can try this:

label outfit_01

GIZELLE (think)
(What should I wear today?)

choice (OUTFIT)
“born to rule”{
@GIZELLE is dustoff_loop
@GIZELLE changes into GIZELLE_born_to_rule
@GIZELLE is dustoff_loop
} “Simple and Stylish” {
@GIZELLE is dustoff_loop
@GIZELLE changes into GIZELLE_stylish
@GIZELLE is dustoff_loop
}
@GIZELLE is strike_a_pose

NARRATOR
Is this the right outfit?
choice “YES” {
GIZELLE (talk_handsonhips)
Duh, I look bae AF.
} “NO” {
GIZELLE (dismayed)
I NEED TO CHANGE NOW!
goto outfit_01
}

#continue writing script here

So, to remember this outfit choice, later in your script you’d write something like this:

if ( OUTFIT is “born to rule”) {
[scene for GIZELLE wearing the GIZELLE_born_to_rule outfit choice here]

} else {
[scene for GIZELLE wearing the GIZELLE_stylish outfit choice here]
}

How do i fix this?

Ok, first, don’t use curly brackets for the choice name use ( )
you need to move PREMIUM choice inside the } {

there’s no need for if/elif/else here, your character will wear what it will be chosen
but else part needs to be on its own

}else{

}

you need a dialogue before the word choice on line 112

Tried using () before asking and it said an error about dialogue.

you need to delete the space between choice and first option I forgot to mention that

1 Like

I’ll try that.