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


#309

Thank you for the hint regarding line 104 :smiley:

And…I got this before the choice…


#310

You must always have dialogue before a choice. You can’t have anything between dialogue and the word choice


#311

Oh dear. Really? This easy? :smiley:
I will never get behind those features. Thank you a lot!


#312

After I came across this I haven’t came across any problems with my choices. Thxs for this amazing template!!!


#313

Version:1.0 StartHTML:000000221 EndHTML:000021796 StartFragment:000007141 EndFragment:000021688 StartSelection:000007141 EndSelection:000021684 SourceURL:https://forums.episodeinteractive.com/u/kweenKori/activity

So here’s the deal…
In the next chapter, there’s flashbacks and the clothes that the main performance was wearing that day must be the same as in the flashback. How do I do?

label halloween_dressing_game

    NAME (idle)
(What should I wear?)
    NAME (admire_happy)
(Oh my god, WhAt ShOuLd |italic| I |reset| wEaR?!?!)

choice “Angel” {
goto angel

} “Cat” {
goto cat

} “Cowgirl” {
goto cowgirl

} “Demon” {
goto demon

} “FireWoman” {
@NAME is dustoff_neutral_loop
@NAME changes into FIREWOMAN
goto are_you_f_sure

} “Dame Nature” {
goto dame_nature

} “Gladiator” {
goto gladiator

} “Lolita” {
goto lolita

} “Nurse” {
goto nurse

} “Pilot” {
@NAME is dustoff_neutral_loop
@NAME changes into PILOT
goto are_you_f_sure

} “Pirate” {
goto pirates

} “Princess” {
@NAME is dustoff_neutral_loop
@NAME changes into PRINCESS_1
goto are_you_f_sure

} “Police” {
@NAME is dustoff_neutral_loop
@NAME changes into POLICE
goto are_you_f_sure

} “Skeleton” {
goto skeleton

} “A la Victorienne!” {
goto victorian

} “Witch” {
goto witch

} “Let’s say it a…” {
@NAME is dustoff_neutral_loop
@NAME changes into ZOMBIE
goto are_you_f_sure

} “Doctor” {
@NAME is dustoff_neutral_loop
@NAME changes into DOCTOR
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label angel

    NARRATOR (MK)
Here's the Angel costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Shy” {
@NAME is dustoff_neutral_loop
@NAME changes into ANGEL_1
goto are_you_f_sure

} “Goldie” {
@NAME is dustoff_neutral_loop
@NAME changes into ANGEL_2
goto are_you_f_sure

} “Deadly” {
@NAME is dustoff_neutral_loop
@NAME changes into ANGEL_3
goto are_you_f_sure

} “Dark” {
@NAME is dustoff_neutral_loop
@NAME changes into ANGEL_6
goto are_you_f_sure

} “Sky” {
@NAME is dustoff_neutral_loop
@NAME changes into ANGEL_7
goto are_you_f_sure

} “Snow” {
@NAME is dustoff_neutral_loop
@NAME changes into ANGEL_5
goto are_you_f_sure

} “D-D-DONE!!” {
goto are_you_f_sure

}

label cat

    NARRATOR (MK)
Here's the Cats costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Goth” {
@NAME is dustoff_neutral_loop
@NAME changes into CAT_1
goto are_you_f_sure

} “Velvet” {
@NAME is dustoff_neutral_loop
@NAME changes into CAT_2
goto are_you_f_sure

} “Sweet!” {
@NAME is dustoff_neutral_loop
@NAME changes into CAT_3
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label cowgirl

    NARRATOR (MK)
Here's the Cowgirl costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Yee” {
@NAME is dustoff_neutral_loop
@NAME changes into COWGIRL_1
goto are_you_f_sure

} “Haw” {
@NAME is dustoff_neutral_loop
@NAME changes into COWGIRL_2
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label demon

    NARRATOR (MK)
Here's the Demon costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Demonic” {
@NAME is dustoff_neutral_loop
@NAME changes into EVIL_1
goto are_you_f_sure

} “Angelic” {
NARRATOR (MK)
Sorry, this outfit is unavailable because Heather will wear it.
goto demon

} “Pinky” {
@NAME is dustoff_neutral_loop
@NAME changes into EVIL_3
goto are_you_f_sure

} “Shadow” {
@NAME is dustoff_neutral_loop
@NAME changes into EVIL_4
goto are_you_f_sure

} “Leprechaun” {
@NAME is dustoff_neutral_loop
@NAME changes into EVIL_5
goto are_you_f_sure

} “Night” {
@NAME is dustoff_neutral_loop
@NAME changes into EVIL_6
goto are_you_f_sure

} “666” {
@NAME is dustoff_neutral_loop
@NAME changes into EVIL_7
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label dame_nature

    NARRATOR (MK)
Here's the ~Nature~ costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Daugther of Dame Nature” {
@NAME is dustoff_neutral_loop
@NAME changes into FORESTGIRL_1
goto are_you_f_sure

} “Dame Nature herself” {
@NAME is dustoff_neutral_loop
@NAME changes into FORESTGIRL_2
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label gladiator

    NARRATOR (MK)
Here's the Gladiators costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Shadow” {
@NAME is dustoff_neutral_loop
@NAME changes into GLADIATOR_1
goto are_you_f_sure

} “Shade of Grey” {
@NAME is dustoff_neutral_loop
@NAME changes into GLADIATOR_2
goto are_you_f_sure

} “Fierce” {
@NAME is dustoff_neutral_loop
@NAME changes into GLADIATOR_3
goto are_you_f_sure

} “Gold” {
@NAME is dustoff_neutral_loop
@NAME changes into GLADIATOR_4
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label lolita

    NARRATOR (MK)
Here's the Lolita costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Little Red Riding Hood” {
@NAME changes into LOLITA_1
goto are_you_f_sure

} “Baby Doll” {
@NAME is dustoff_neutral_loop
@NAME changes into LOLITA_2
goto are_you_f_sure

} “Cerisette” {
@NAME is dustoff_neutral_loop
@NAME changes into LOLITA_3
goto are_you_f_sure

} “Vampire” {
@NAME is dustoff_neutral_loop
@NAME changes into LOLITA_4
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label nurse

    NARRATOR (MK)
Here's the Nurse costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Deep Blue” {
@NAME is dustoff_neutral_loop
@NAME changes into NURSE_girl1
goto are_you_f_sure

} “Aqua” {
@NAME is dustoff_neutral_loop
@NAME changes into NURSE_girl2
goto are_you_f_sure

} “Navy” {
@NAME is dustoff_neutral_loop
@NAME changes into NURSE_girl3
goto are_you_f_sure

} “Light blue” {
@NAME is dustoff_neutral_loop
@NAME changes into NURSE_girl4
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label pirates

    NARRATOR (MK)
Here's the Pirate costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Honey” {
@NAME is dustoff_neutral_loop
@NAME changes into PIRATE_1
goto are_you_f_sure

} “Mauve” {
@NAME is dustoff_neutral_loop
@NAME changes into PIRATE_2
goto are_you_f_sure

} “Girly” {
@NAME is dustoff_neutral_loop
@NAME changes into PIRATE_3
goto are_you_f_sure

} “Mermaid tail” {
@NAME is dustoff_neutral_loop
@NAME changes into PIRATE_4
goto are_you_f_sure

} “Kaki” {
@NAME is dustoff_neutral_loop
@NAME changes into PIRATE_5
goto are_you_f_sure

} “Ombrageuse” {
@NAME is dustoff_neutral_loop
@NAME changes into PIRATE_6
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label skeleton

    NARRATOR (MK)
Here's the Skeleton costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Pink Neon” {
@NAME changes into SKELETON_1_2
goto are_you_f_sure

} “Green Neon” {
@NAME is dustoff_neutral_loop
@NAME changes into SKELETON_2_2
goto are_you_f_sure

} “Gold Skeleton” {
@NAME is dustoff_neutral_loop
@NAME changes into SKELETON_3_2
goto are_you_f_sure

} “Silver” {
@NAME is dustoff_neutral_loop
@NAME changes into SKELETON_4_2
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label victorian

    NARRATOR (MK)
Here's the Victorian Style costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “Cerulean” {
@NAME is dustoff_neutral_loop
@NAME changes into VICTORIANSTYLE_1
goto are_you_f_sure

} “Burgundy” {
NARRATOR (MK)
Sorry, this choice is locked because Kadijah will wear this outfit.
goto victorian

} “Lavender coat” {
@NAME is dustoff_neutral_loop
@NAME changes into VICTORIANSTYLE_3
goto are_you_f_sure

} “Silk purple” {
@NAME is dustoff_neutral_loop
@NAME changes into VICTORIANSTYLE_4
goto are_you_f_sure

} “Angeline” {
@NAME is dustoff_neutral_loop
@NAME changes into VICTORIANSTYLE_5
goto are_you_f_sure

} “Wish me luck” {
@NAME is dustoff_neutral_loop
@NAME changes into VICTORIANSTYLE_6
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label witch

    NARRATOR (MK)
Here's the Witch costumes. What do you want to wear?
|underline| Don't forget, there will be a time at the end of the chapter, you'll get to do screenshots! |reset| :)

choice “DIE” {
@NAME is dustoff_neutral_loop
@NAME changes into WITCH_1
goto are_you_f_sure

} “KILL” {
@NAME is dustoff_neutral_loop
@NAME changes into WITCH_2
goto are_you_f_sure

} “CURSE” {
@NAME is dustoff_neutral_loop
@NAME changes into WITCH_3
goto are_you_f_sure

} “D-D-DONE!” {
goto are_you_f_sure

}

label are_you_f_sure

@pause for 3 THEN NAME is think_rubchin
@pause for 1.5 THEN NAME is idle_shiftweight_neutral_loop
NARRATOR (MK)
Are you sure that you actually like your |color:darkorange| Halloween costume|reset|?

choice “YASS!” {
goto partayy

} “No let me think again!” {
NAME (talk_shrug_neutral)
Meh…
@NAME is dustoff_neutral_loop
@NAME changes into towel_girl
goto halloween_dressing_game

}


#314

How do I include a point summary and give the option to max out points in the end of the episode?


#315

Okay I’m having an issue with the if/elif/else. At the end of ch1 she’s wearing a outfit and a hair choice, but when I start ch2 her hair isn’t the same. I’m not sure what the issue is because I believe I have written everything correctly.


#316

if (choosing_outfit2 is “New girl”) {
@MELODY changes into New girl

}
elif (choosing_outfit2 is “Cozy”) {
@MELODY changes into Cozy

}
elif (choosing_outfit2 is “Vday”) {
@MELODY changes into Vday
}

elif (choosing_outfit2 is “summer”) {
@MELODY changes into summer
}
else {
@MELODY changes into sporty
}
if (hair2 is “Braids”) {
@MELODY changes hair into Long Double Dutch Braids
}
elif (hair2 is “Classic Bob”) {
@MELODY changes hair into Classic Bob
}
elif (hair2 is “Long Feathered”) {
@MELODY changes hair into Long Feathered
}
elif (hair2 is “Short Wavy Ombre”) {
@MELODY changes hair into Short Wavy Ombre
}
elif (hair2" is Long Straight Loose Solid") {
@MELODY changes hair into Long Straight Loose Solid
}
elif (hair2 is “Wavy Long”) {
@MELODY changes hair into Wavy Long
}
elif (hair2 is “Beach Wave Hair”) {
@MELODY changes hair into Beach Wave Hair
}

if (lipstick2 is “Black Gloss”) {
@MELODY changes mouthColor into Black Gloss

}
elif (lipstick2 is “Purple Deep Gloss”) {
@MELODY changes mouthColor into Purple Deep Gloss
}
elif (lipstick2 is “Ross Gloss”) {
@MELODY changes mouthColor into Rose Gloss
}
elif (lipstick2 is “Pink Hot Glass”) {
@MELODY changes mouthColor into Pink Hot Gloss
}


#317

What does the hair and lipstick choice look like?


#318

** I changed some of the hairs after I posted this

label choosing_outfit2

@speechbubble is 139 282 to 100% with tail_top_right
MELODY (idle_shiftweight_neutral_loop)
(What should I wear?)

choice
“New girl”{

@MELODY walks to spot 1.081 158 125 in zone 2

@MELODY changes into New girl
}
“Cozy”{

@MELODY walks to spot 1.081 158 125 in zone 2

@MELODY changes into Cozy
}
“Vday”{

@MELODY walks to screen center in zone 2

@MELODY changes into Vday
}
“summer”{

@MELODY walks to spot 1.081 158 125 in zone 2

@MELODY changes into summer
}
“sporty”{

@MELODY walks to spot 1.081 158 125 in zone 2

@MELODY changes into sporty
}
@MELODY walks to spot 1.081 158 125 in zone 1

@pause for a beat

@pause for a beat

    MELODY
(Am I feeling this, or choose something else?)

choice
“Choose this one” {

@speechbubble is 143 198 to 100% with tail_top_right
MELODY (talk_excited_happy)
I love it!
}
“Eww no”{
goto choosing_outfit2
}

@zoom on 174 406 to 211% in 0
label hair_and_lip2
MELODY (think_rubchin)
(Time for makeup and hair.)

choice
“Hairstyle” {
goto hair2
}“Lipstick” {
goto lipstick2
} “This looks good!” {
goto finish2
}
@MELODY starts idle_handsonhips_neutral_loop
NARRATOR
Choose her hairstyle.

label hair2
MELODY
(What should I change)
choice
“Braids” {
@MELODY changes hair into Long Double Dutch Braids
goto hair2
}“Side Braid” {
@MELODY changes hair into Over Shoulder Braid
goto hair2
}“Long Feathered” {
@MELODY changes hair into Long Feathered
goto hair2
}“Small Bun” {
@MELODY changes hair into Small Bun
goto hair2
}“Long Straight Loose Solid” {
@MELODY changes hair into Long Straight Loose Solid
goto hair2
}“Wavy Long” {
@MELODY changes hair into Wavy Long
goto hair2
}
“Sleek Ponytail” {
@MELODY changes hair into Sleek Ponytail
goto hair2
}
“Done”{
goto hair_and_lip2
}
label lipstick2

    NARRATOR
Choose her lip color.

choice
“Black Gloss” {
@MELODY changes mouthColor into Black Gloss
goto lipstick2
} “Purple Deep Gloss” {
@MELODY changes mouthColor into Purple Deep Gloss
goto lipstick2
} “Ross Gloss” {
@MELODY changes mouthColor into Rose Gloss
goto lipstick2
} “Pink Hot Gloss” {
@MELODY changes mouthColor into Pink Hot Gloss
goto lipstick2
}
“Done” {
goto hair_and_lip2
}

label finish2
NARRATOR
Good to go?
choice
“Of course”{
goto story_continue2
} “I have to change something.”{
goto hair_and_lip2
}

label story_continue2


#319

You’re using the label name, which is not correct. You need to name your choice and use that for the if/elif, just like how it says above in the original post of this thread.

Also in the original post of this thread:

The hair and lipstick template you are using will not work.

If you want to use the if/elif/else to remember the hair and lipstick choices, then you need to format the choices just like how you formatted your dressing game choice. (where you click on a choice and it immediately goes to the “are you sure” choice)


#320

Okay so if I did
choice (HOTMESS)
then the choices




Then when I did the remembering I would put
if (“HOTMESS is Vday”) {
@MELODY changes into VDAY
}


#321

if (HOTMESS is “Vday”)

The quotation marks need to be around the option name.


#322

But if I don’t want to make then go back to the OG screen after each hair and lip choice. Is that when I would use gains?


#323

Gains won’t work either. The if/elif/else will not work with customization templates.


#324

Can gains be remembered from past episodes?


#325

yes


#326


Before I carry on with the other 2 choices to choose from (out fit changing choices)
Where am I going wrong?


#327


Before I carry on with the other 2 choices to choose from (out fit changing choices)
Where am I going wrong?


#328

it isn’t working for me i had this

i try it and it always go for if even when i choice something alse

help i’m crying my heart out

i had this choice when the reader choises to used or not just something

choice
“Use Austria” {
JOSEPHINE (talk_shrug)
They said they want to used Austria
LAURENCE (talk_think)
Let’s hope that it won’t come and bite you in the ass.
JOSEPHINE (talk_sheepish)
I hope it won’t
readerMessage -1 Austria
@AUSTRIA -1
gain used_austria
} “Go with no game” {
JOSEPHINE (talk_shrug)
I have no game
LAURENCE (talk_think)
Let’s hope for the best
JOSEPHINE (talk_sheepish)
I hope i could come up with a plan before i arrive at our home planet.
readerMessage +1 Austria
@AUSTRIA +1

gain no_game
}
@JOSEPHINE exits left and LAURENCE exits left
The next scene

EXT. MISTY GAZEBO - NIGHT
if (used_austria) {
AUSTRIA (talk_sad)
No you used
} elif {
AUSTRIA (talk_think)
Sure why not
}

it always ends up in if not elif