Using if/elif/else to Remember Past Choices

#1

FIRST AND FOREMOST, to remember choices, you will need to use the if/elif/else code, which looks like this:

if (label1) {
} elif (label2) {
} else {
}

if is always first, elif is always in the middle, and else should always be the last one by itself

if you have 2 options, you only need to use if and else
if (label) {
} else {
}

if you have 3 options, use if then elif then else
if (label1) {
} elif (label2) {
} else {
}

if you have more than 3 options, keep using elif for the middle parts, but always make sure that if is first and else is last
if (label1) {
} elif (label2) {
} elif (label3) {
} elif (label4) {
} else {
}

There are 2 methods to remembering past choices:

1- The choice name and option method
2- Using GAINS

1. Choice Name & Option Method

Name your choice by adding the name next to the word choice and put it inside parentheses. Choice names cannot have spaces: they can only be consisted of letters, numbers, and/or underscores.

Here is an example:

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

NOTES:
This is the best method to use for dressing games!
CLICK HERE for a simple dressing game template!

This method will not work with a customization template or repeated choices:

Customization templates have repeated choices. Inside each choice is a goto that leads back to the label to start the choice over again, so technically whatever choice you tapped on does not get remembered since the choice gets repeated.

Your choice name and option titles need to match exactly

If your choice name is “YUM_food” and your option name is “I LoVe DonuTS!!”, then the format for the if/elif/else needs to be (YUM_food is “I LoVe DonuTS!!”)

Wrap straight brackets around the choice name to reference that option in dialogue

You can use the choice name to reference what the reader chose in dialogue; just wrap straight brackets around the choice name.

CHARACTER
Today I had [FOOD] for lunch.

If the reader chose “Spaghetti”, then they will see:

CHARACTER
Today I had Spaghetti for lunch.

(but be warned that whatever option title is will be what the reader will see)
If the option title was “I want to eat Spaghetti!!”, then readers will see this:

CHARACTER
Today I had I want to eat Spaghetti!! for lunch.

2. USING FLAGS/GAINS

You can have your readers gain certain flags by just using the code: gain flag_name

Here is an example:

NARRATOR
What do you want to drink?

choice
“Orange Juice” {
gain orange_juice

} “Coffee” {
gain coffee

} “Water” {
gain water
}

TO REMEMBER THE ABOVE CHOICE, USE THE IF/ELIF/ELSE CODE WITH JUST THE GAIN NAME INSIDE PARENTHESES ()

if (orange_juice) {
[scene for orange juice here]

} elif (coffee) {
[scene for coffee here]

} else {
[scene for water here]
}

NOTES:

  1. Once a flag is gained, you cannot “un-gain” it. So be sure to not use this method with dressing games. If you do, you will need to put a “yes/no” choice inside each outfit option with the gain inside the “yes” choice. See an example of that HERE
  2. You also cannot use this method with customization templates. A customization template has choices that repeat so you can go back and keep changing your appearance and choosing multiple choices at once. Adding gains to all those choices will result in the reader gaining all of those gains after clicking on all the options.
  3. Gain names cannot have spaces or special characters. They can only have letters, numbers, and/or underscores.
179 Likes
How do i remember outfit choices
If/elif problem
How to save dress choices
Manna's Help Thread: For coding, directing and more
How do I make clothing choices remember in the next scene or chapter?
Help gain script trouble (better for me to show you)
Choices From One Chapter Affecting The Other?
Having Trouble Remembering Choices
Multiple Love Interests
"Stupid" questions that never get answered? Get The Help Here!
QUESTIONS? Ask them here, someone will answer them!
HELP! Remembering choices
Need help with remembering outfits
HOW TO: Simple Choices
Freckles and glasses
I need help, please respond
Gain help please
I NEED HELP! If/Elif/Else
I need help deciding on something related to my story
Trouble with remembering a past choice
How: important choice inside another important choice
Need help giving readers and option to read certain parts of the story
"Stupid" questions that never get answered? Get The Help Here!
Remembering Outfit Choices Template!
I need help with advanced choices!
Choice errors?!
Help with Gains?!
Help with choice coding!
How do you let characters choose love choices
Need help with choices from one chapter to another (ifs, elses, gains, label, goto)
Remembering Choices of Previous Chapter
How do you use if/elif
Remembering outfit choices from previous chapters
Input Choices, more options
I'm having issues with if/else statement/method
How do I have if elif else
Need help with choices playing out over multiple chapters
Plz help keeps getting stuck at one bit
Need assistance with dressing game
Labelling in directing
Need help with advance choices and different enddings for me
Why isn't this choice working?
How to add Tattoos, Piercings, & Freckles to CC in Story?
Remembering Choices from Another Chapter/Episode
Help with if and gains! not working :(
How to do this? Choices
I Need Help With 2 Things
Need help figuring out how to code something
Choices, if, else, choice BRANCHING ERROR... meh
Choices, if, else, choice BRANCHING ERROR... meh
Past choices - if/elif/else help
Script Help - Remebering choices
Remembering Choices Not Working
Advanced directing and choices help?
STARTING A STORY... (most essential things?)
Impactful choices
Dressing game Error created from templet
Simple choices that affect the story
"List" of Helpful Threads
Flags for my story
I need some help?!
If/elf/else - How does it work?
If/elf/else - How does it work?
If/elf/else - How does it work?
Flashback error
Need Coding help AGAIN! Please help!
Couple matching outfits HELP WANTED
Outfit choices to remember from past
The difference between "if" and "elif"
ERROR unexpected expression: did you leave out the word "choice", or forget to put a character name in ALL CAPS?
How to label one choice option? Can I?
Directing/Coding Help Here!
How do you gain reset?
Need help with customization and choises!
Outfit Choices that will affect character reaction
Help with remember choice?!
Help with remember choice?!
Choice help please?!?!?
Remembering choices with outfits isn't working?
How to remember a choice?
Thread for the sharing of templates!
Help with gain / flags?
How to remember choices further!
How to remember choices (probably part 2663712480220165126577)
How to remember choices (probably part 2663712480220165126577)
Help with branched choice!
Trying to add gain's
I am terrible at coding can someone help?
What do I do to know the reader's choice?
Dara Amarie's Official Help Thread! [closed]
Future Episodes for my story: Ink - Remembering Female and Male Customization (CLOSED)
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Rude’s Here to Help! Ask your questions babes 💙
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Rude’s Here to Help! Ask your questions babes 💙
Dara Amarie's Official Help Thread! [closed]
:grin: Resources for Creators
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
SCRIPT ERRORS you just can't seem to fix!
Yay's Official Help Thread (CODING HELP, AND MORE!)
SCRIPT ERRORS you just can't seem to fix!
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
SCRIPT ERRORS you just can't seem to fix!
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Who wants to help me with choices that matter?
HELP ME I AM SO CONFUSED WRITE NOW (lmao get it write? since I'm- eh you get it)
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Help w/ Remembering Choices
Advanced choice help
Help with elif/if on script
Does anyone know how to have a choice affect the story?
Somebody help me with this mannequin
Big choices in story
The Points System
I need help remembering!
I need help with the points system/ remembering past choices / gains
Choice Not Being Remembered
I really need someone to help me with a few questions i have about creating a story
Branching on episode
How do I do "Or" in Episode?
"Stupid" questions that never get answered? Get The Help Here!
"Stupid" questions that never get answered? Get The Help Here!
Do you need help? Well help is here!
I need help with the "dressing up" aspect of choices on Episode
Help? (Again) Errors? :fearful:
Keeping same outfit to next episode, help?
Complex choices
"Stupid" questions that never get answered? Get The Help Here!
Making Choices - advanced
Automatically to the first option of the choice
"Stupid" questions that never get answered? Get The Help Here!
Directing Help and Assistance From a Purple Ghost For All Your Episode Needs
Manna's Help Thread: For coding, directing and more
I need help with outfit choices
"Stupid" questions that never get answered? Get The Help Here!
How can you remember a past choice
Character mentions another characters choice, please help!
Directing Help and Assistance From a Purple Ghost For All Your Episode Needs
Using more than one gain in choices
A coding question regarding conditions
I'm having trouble with changing outfits (HELP)
PROPS: how to use them
I need help - In need of some assistance
Remembering Choices Error
Need help with advanced choices!
Using advanced choices. (The simple ones,)
HELP ME "There is a { on line 1398 that does not have a matching }" HELP ME
Reader Choices and other issues :/
The Points System
Remembering past choices
It's Not Working
There is a { on line 750 that does not have a matching
Winter - Here to Help: Advice & Questions!
If/elif/else /gains HELP
A Guide to Typed-in Choices
"Stupid" questions that never get answered? Get The Help Here!
How do I put a remembered choice?
If, elif, else problem
Help me with this error on remembering choices
Choice Issue with gain
If/Elif/Else Between Episodes
Adding gem choices
Writers portal issue - PLS HELP IF YOU CAN!
I need help saving choices
How to Remember Choices?
Help with If, Elif, Else!
Directing Help please!:)
Trouble with remembering past choices
Directing Problem: Smooth Directing
Needing help please
Help With Remembering Choices!
Gem Choice for Dressing Up - Directing HELP!
Choices Carrying Over Between Episodes
"Stupid" questions that never get answered? Get The Help Here!
How to continue a label from a previous choice
Help with Remembering Choices
Unexpected String :(
How do I get my choice to be remembered
REMEMBERING! choices HELPPPPP
How to let them choose gender?
Can anyone explain me about the gains and the ifs?
Tara explains: How to have choices that matter without any complex coding!
Tara explains: How to have choices that matter without any complex coding!
Can I have empty gains
How do I get the characters outfits to change depending on a choice
Help with my script error please
Rude’s Here to Help! Ask your questions babes 💙
"Stupid" questions that never get answered? Get The Help Here!
Choice Issue with gain
Skipping Over Branches // Help Me Please
Rude’s Here to Help! Ask your questions babes 💙
How to make your relationships effect the ending of your story?
Really need help with my script
Is it possible....?
How do you put a choice in one episode and then make them remember it in the next episode?
Three different cliffhangers
Remebering Choices
I Have A Question For Choices
Can anyone help me with my problem?
STUPID SMART QUESTION, that need answering
"Stupid" questions that never get answered? Get The Help Here!
Help with remembering outfit!
How to carry choices through next episodes?
Help with remembering outfit!
Help me please 😭
How do I get my choice to be remembered
Need help with coding please :-)
Need help with coding please :-)
Need help with the choices script
Remembering a choice for clothing
Im trying to remeber choice
How can I carry the same character through the whole story?
Rude’s Here to Help! Ask your questions babes 💙
Remembering Choices Issue Pls help
Looking for help with complex choices
WHy is this error occuring?!
How do I make a choice from a previous episode continue?
How to use the if/elif/else coding?
How to use the if/elif/else coding?
I'm having trouble with choices
Please help me ;-;
Having Trouble Remembering Choices
In need of gain help lol
How do i make readers remember choice
ERROR unexpected IF: if
Remembering past choices help
Help! How to remove certain clothing to give to another character?
The dressing game
Remembering Outfits
Mini game branching help
There is no choice option
There is no choice option
Need Help with Choice within Choice PLEASE!
PLEASE HELP! Choices & Branching
Remeber choice needed
"Stupid" questions that never get answered? Get The Help Here!
Branching and points
Can someone help me please!
Different choice ideas?
Having Trouble Remembering Choices
Remembering Choices, Help me with this!
Can someone pick out what's wrong with this?
Remembering a choice
Question about choices and labels
Help with if / else choice please!
SCRIPT ERRORS you just can't seem to fix!
Episode has a hate for the Buzzed Hair
I have a question for past choices
Help Remembering Past Choices
SCRIPT ERRORS you just can't seem to fix!
SCRIPT ERRORS you just can't seem to fix!
Merging complex choices
Remembering past choices in different episodes?
Remembering a choice and dialogue folling
"Stupid" questions that never get answered? Get The Help Here!
Need help with clothing choice
How do a let readers make a choice that lasts the whole story?
SCRIPT ERRORS you just can't seem to fix!
"Stupid" questions that never get answered? Get The Help Here!
Choice Template Needed
Help me please i need help so bad
"Stupid" questions that never get answered? Get The Help Here!
This is stupid but I need help URGENTLY!
Remembering Multiple Choices
How do you remember past WRITTEN in choices?
Help Remembering Past Choices Scene
SCRIPT ERRORS you just can't seem to fix!
I really don't understand labels,
FRECKLES CUSTOMISATION Xx
Bringing gains/labels into next chapter
"Stupid" questions that never get answered? Get The Help Here!
Need help with outfit choices please!
Remembering Choices throughout the whole story!
How do you change a characters name temporarily mid scene?
Can choices carry over?
I am not sure if this is the right place or not
"Stupid" questions that never get answered? Get The Help Here!
Remembering choices? Can't make her change into the outfit she chose
Hey do I use a gain to lock and unlock speicals scenes
"Stupid" questions that never get answered? Get The Help Here!
Use "Ifs" For outfits
Script help (again)
How do I fix this error?
[Creator's Contest] Missed Connections
QUESTIONS? Ask them here, someone will answer them!
Please could someone help with remembering choices?
Remembering Outfit Choice
Can anyone give me a good script template or advice for a good clothing SCENE?
How to make choices effect the episode or the future episode
How to make choices effect the episode or the future episode
I Need Help Directing
Somebody help me with if elif else
Labels, character point, and remembering choices
Help with locked choices
If code not working
Closet / Outfit Game Help [Dress Up Game Troubleshooting]
How to have different branches in a story?
"Stupid" questions that never get answered? Get The Help Here!
Needing help with coding
Coding Error | Help Needed
Remember dressing choice problem 😒
When choosing a choice and it goes to the next episode?
Using Clues in my story?
How do I "Rember" an Outfit for a different episode?
How do I "Rember" an Outfit for a different episode?
Remembering choices... I don't get it!
Labels playing the same scene
Choices that will lead you to different chapters?
Remembering Who You Saw
#2

but I’ve never used “else” cuz it didn’t work at all :confused:

#3

If you’re using gains, you have to remember to reset story progress. Otherwise it should always work.

2 Likes
#4

Can you do that on mobile?

#5

Mobile creation? No you can’t. This is only for directing using the script in the writer’s portal online.

#6

alright thank you!

OUTFIT CHOICE,help
#7

do u have to use [ outfit changing scene] ?

#8

No you replace that with your outfit changing script scene.

#9

oh what? sorry im vv confused now

#10

[outfit changing scene] gets replaced with the script/commands to have your character change into the outfits

so this:

choice
"Short Dress" {
[outfit changing scene]

changes into this: (or whatever you want)

choice
"Short Dress" {
@CHARACTER changes into Outfit
@CHARACTER is blush
1 Like
How to do choices with clothes
#11

ohhh thanks :pray:t4: :sparkling_heart:

#12

How do you reset gains

#13

You can’t, unfortunately.

Script Troubles
#14

hi , I’m a little confused and i need your help.
it keeps saying that error and i don’t know what to do.

#15

What’s after the “hell no” choice in your script?

#16

nothing , but another label.

#17

Then there should be 1 more ending bracket at the end:

}
“Hell no!” {

goto choosing_outfits

}
}

1 Like
#18

Thank you so much!!! it finally worked :heart:

#19

i’m sorry to bother you again but i have come across another problem.

1 Like
#20

“else” needs to be by itself

} else {