HOW TO: Remember Past Choices (if/elif/else)


#247

Okay nevermind I realized my mistake :sweat_smile:


#248

Thanks! :smiley: It works now.


#249

I have a question… I am trying to carry the choices to the next episode. So do I make the choices in the first episode & the if/elif/else in the second episode?

or do I just do it all in the first episode?


#250

you can use them in whichever episode you want :slight_smile:


#251

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


#252

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?


#253

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:


#254

perfect! thank you!


#255

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?


#256

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

you may want to change this tho:


#257

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?


#258

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


#259

@iconicllama line 3149, you need @ before the zoom


#260

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


#261

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


#262

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.


#263

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


#265

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


#266

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]
}


#267

How do i fix this?