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

I’ll try that.

I’m stuck with this. My chapter is saved but the branch is not connecting. What do I do?
@Apes @Dara.Amarie

SCRIPT:
if (go_or_leave is “Spend the night with Addison and try on her special dress” ){

EXT. MG DINER - NIGHT
@transition fade in black
@pan to zone 2
@pause for a beat
@transition fade out black

INT. COFFEE SHOP FROM STAGE OL - NIGHT
@transition fade in black
@pan to zone 2

@ADDISON changes into ADDISON_dress
@ADDISON enters from left to screen left and ADDISON faces right
@YOU enters from left to screen right and YOU faces left

} elif (go_or_leave is “Decline and go home”){

nothing is right here, yet.

}

Change the last option to else

Ok, thanks

Sorry for the dumb question, but what are gains and flags for?

Gains/flags are used for remembering past choices.

P.S Once a flag is gained, you cannot “un-gain” it.

However, you can show your support for losing gains/flags here: FEATURE : Lose Gains

So, to sum it up:

2 Likes

Bump! :wink: :grin:

So I thought I had this issue figured out but I was wrong. Every time I do the remember choice outfit, the character changes into last outfit. I reset the game progress and the APP and still the same thing happens.

This is the choice:

label 1_dressinggame

    LEANNA
What do I want to wear?

choice “Shorts” {

@LEANNA changes into Leanna-shorts1

goto confirm_dg1

} “Dress” {

@LEANNA changes into Leanna-Dress

goto confirm_dg1

} “Pants” {

@LEANNA changes into Leanna-pants1

goto confirm_dg1

}

label confirm_dg1

    LEANNA
Do I want to wear this?

choice
“Yes.” {

} “No.” {

goto 1_dressinggame

}

This is the remember script:

if (Leanna-shorts1 is “shorts”){

@LEANNA changes into Leanna-shorts1

} elif (Leanna-Dress is “dress”){

@LEANNA changes into Leanna-Dress

} else {

@LEANNA changes into Leanna-pants1
}

You didn’t do the method right.

NARRATOR
What do you want to eat?

choice ( FOOD )
“Spaghetti” {

} “Donuts” {

} “Sandwich” {
}

TO REMEMBER THE ABOVE CHOICE, USE THE IF/ELIF/ELSE CODE WITH THIS FORMAT: (choice_name is "Option Name")

if ( FOOD is “Spaghetti”) {
[scene for spaghetti choice here]

} elif ( FOOD is “Donuts”) {
[scene for donuts choice here]

} else {
[scene for sandwhich choice here]
}

choice (CLOTHING)
The other stuff then this
if ( CLOTHING is “the clothing name here”) {

}

1 Like

is this right?

NARRATOR (YOU)
Should i invite him?

if (choice is “invite him” ) {

@pan to zone 2 THEN pan to zone 3
@zoom reset
@speechbubble is 131 236 to 74% with tail_top_right
@YOU walks to spot 0.893 191 128 THEN YOU starts talk_greet
@SKY starts talk_greet
YOU (talk_awkward)
Would you like to come to my party?
@speechbubble reset
SKY (talk_happy_agree)
Sure!
@YOU starts talk_happy_smile
@SKY starts talk_happy_agree

INT. BLUE SCHOOL HALLWAY - DAY
@transition fade in
@pause for 3

Camera - Zone 3, 2-Shot {

@cut to zone 3
@KIA stands upscreen right AND KIA faces left
@NORA stands upscreen left AND NORA faces right
@NORA spot 0.920 113 172
@KIA spot 0.938 214 168
@KIA starts talk_gossip
@NORA starts talk_flirt
KIA
There already getting along.
NORA
Love.

} else {

INT. BLUE SCHOOL HALLWAY LOCKERS - DAY
@transition fade in
@pause for 3
@cut to zone 3
@SKY spot 0.875 263 145
@YOU spot 0.848 166 150
@zoom reset
NARRATOR (YOU)
(I think i should go back)
@YOU starts idle_awkward THEN YOU starts run_jog
@YOU starts run_fall

INT. BLUE SCHOOL HALLWAY - DAY
@transition fade in
@pause for 3

Camera - Zone 3, 2-Shot {

@cut to zone 3
@KIA stands upscreen right AND KIA faces left
@NORA stands upscreen left AND NORA faces right
@NORA spot 0.920 113 172
@KIA spot 0.938 214 168
@KIA starts talk_repulsed
@NORA starts talk_repulsed
@zoom reset

INT. BLUE SCHOOL HALLWAY LOCKERS - DAY
@transition fade in
@pause for 3
@cut to zone 3
@SKY spot 0.875 263 145
@SKY starts talk_repulsed

}

I need help!

Remove the exclamation point.

How do you make choices cross over into other chapters if they made the choice that will affect things earlier in the story?

Choices that you want remembered (by using the methods mentioned in the beginning of this thread) will carry over across all Episodes of your story : )

I’m confused, here’s my situation. At the beginning of the story you can choose if you’re late to school or not, this seriously affects the second chapter. How do I bring that choice to the second chapter?

Example:

In Episode 1:

NARRATOR
Go early or go late to school?

choice
“Early” {
gain early_for_school

} “Late” {
gain late_for_school

}

NARR
Bla bla bla…

Then later on, in any episode (2, 3, 4, 17, etc), if you want this choice remembered, you’d write:

if ( early_for_school ) {
[scene for choosing to go early to school goes here]

} else {
[scene for choosing to go late to school goes here]
}

You can even include this remembered choice MORE than once (however many times you want)

P.S This is an example using the gain method.

If you want clothes remembered, then it’s better to use the choice name and option method, when you’re asking “Yes” or “No”, should this item be worn or not? (Also this method carries over to ANY episode you want)

2 Likes

Thank you!

1 Like

Wait hang on! So this:
if ( early_for_school ) {
[scene for choosing to go early to school goes here]

Do I write out the whole scene under there? or do I label it? or what?

Yes, you would write out a scene for it.

Example:

if ( early_for_school ) {

YOU
OMG I’m so glad I was early!

YOU
I can’t believe the whole class showed up late and now they’re all sitting in detention.

YOU
Luckily for me, I scored bonus points with the teacher.

YOU
Yep, the year’s off to a great start.

YOU
Bla bla bla…and so on.

} else {

NARR
Scene here for showing up late, bla bla bla

}

Like this : )

Or you could include a goto under them which leads to a label outside and using that, you can write out choices : )

Then add another goto at the end that leads back to the main story line : )

Hope this helps and I hope I don’t come off as confusing… :sweat_smile:

1 Like