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

Please visit my website for more templates and guides!
https://www.dara-amarie.com/

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 that if you use this method with dressing games, you will need to put a “yes/no” choice inside each outfit option with the gain inside the “yes” choice. Click Here for a Dressing Game with Flags.
  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.
262 Likes
If/elif problem
How to save dress choices
How do I make clothing choices remember in the next scene or chapter?
Manna's Help Thread: For coding, directing and more
Help gain script trouble (better for me to show you)
Choices From One Chapter Affecting The Other?
"Stupid" questions that never get answered? Get The Help Here!
Having Trouble Remembering Choices
How to add Tattoos, Piercings, & Freckles to CC in Story?
Multiple Love Interests
How to deal with choices?
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
Dara Amarie's Official Help Thread! [closed]
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 :/
DARA’S GUIDE: 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
DARA’S GUIDE: 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
What do I do to know the reader's choice?
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 :(
I am terrible at coding can someone help?
Trying to add gain's
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
SCRIPT ERRORS you just can't seem to fix!
"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
Choices help once again pleaseee
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
Dara Amarie's Official Help Thread! [closed]
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!
Labels playing the same scene
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?
STARTING A STORY... (most essential things?)
Remembering a choice and dialogue folling
"Stupid" questions that never get answered? Get The Help Here!
Need help with clothing choice
Labels, character point, and remembering choices
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?
Remembering Who You Saw
[Creator's Contest] Missed Connections
QUESTIONS? Ask them here, someone will answer them!
Plz help keeps getting stuck at one bit
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
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
Help with branched choice!
Remembering choices... I don't get it!
Help with gain / flags?
How to remember choices (probably part 2663712480220165126577)
How to remember choices (probably part 2663712480220165126577)
Need help with choices playing out over multiple chapters
Thread for the sharing of templates!
Choices that will lead you to different chapters?
How to remember a choice?
Remembering choices with outfits isn't working?
Choice help please?!?!?
Flag Command Trouble
Help with remember choice?!
Help with remember choice?!
Outfit Choices that will affect character reaction
Outfit choices to remember from past
How do I "Rember" an Outfit for a different episode?
How do I "Rember" an Outfit for a different episode?
Couple matching outfits HELP WANTED
Need Coding help AGAIN! Please help!
Need help with customization and choises!
Help with locked choices
How do you gain reset?
Remembering Choices Not Working
"Stupid" questions that never get answered? Get The Help Here!
Flashback error
How to label one choice option? Can I?
ERROR unexpected expression: did you leave out the word "choice", or forget to put a character name in ALL CAPS?
Using Clues in my story?
When choosing a choice and it goes to the next episode?
If/elf/else - How does it work?
If/elf/else - How does it work?
If/elf/else - How does it work?
Remember dressing choice problem 😒
How do I have if elif else
I'm having issues with if/else statement/method
Can someone explain gains to me?
Dara Amarie's Official Help Thread! [closed]
The difference between "if" and "elif"
Coding Error | Help Needed
Error: There is a { on line 416 that does not have a matching }
SCRIPT ERRORS you just can't seem to fix!
How do a let readers make a choice that lasts the whole story?
Dara Amarie's Official Help Thread! [closed]
"Stupid" questions that never get answered? Get The Help Here!
Dara Amarie's Official Help Thread! [closed]
So I'm trying to do a branch choice but I don't know how I would put this
Needing help with coding
Dara Amarie's Official Help Thread! [closed]
"Stupid" questions that never get answered? Get The Help Here!
Aaliyah's Honest Reviews! :black_heart:
How to have different branches in a story?
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Episode questions help
Closet / Outfit Game Help [Dress Up Game Troubleshooting]
Dara Amarie's Official Help Thread! [closed]
If code not working
Struggling to remember outfits
Somebody help me with this mannequin
Does anyone know how to have a choice affect the story?
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Remembering outfits and replacing with a duplicate
Coding error? gain coices
HOW TO: Simple Choices
HELP ME I AM SO CONFUSED WRITE NOW (lmao get it write? since I'm- eh you get it)
"Stupid" questions that never get answered? Get The Help Here!
Gain help please
Dara Amarie's Official Help Thread! [closed]
Who wants to help me with choices that matter?
What is this type of choice?
Help with elif/if on script
Advanced choice help
Need help with remembering outfits
I need help, please respond
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
HELP! Remembering choices
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Yay's Official Help Thread (CODING HELP, AND MORE!)
SCRIPT ERRORS you just can't seem to fix!
Struggling to remember outfits
Flags for my story
Freckles and glasses
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
URGENT! Label Error!
I need some help?!
"Stupid" questions that never get answered? Get The Help Here!
Dara Amarie's Official Help Thread! [closed]
Help needed fast!
Help! If/elif/else
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Remembering Choices from Another Chapter/Episode
QUESTIONS? Ask them here, someone will answer them!
Can someone please help me with this previous outfit issue? What the hell is happening?
Rude’s Here to Help! Ask your questions babes 💙
Coding Error Help Please
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
Dara Amarie's Official Help Thread! [closed]
Can you use if/elif/else for four choices?
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
:grin: Resources for Creators
Dara Amarie's Official Help Thread! [closed]
Rude’s Here to Help! Ask your questions babes 💙
How to make choices matter?
Dara Amarie's Official Help Thread! [closed]
Can someone help?1
Dara Amarie's Official Help Thread! [closed]
Dara Amarie's Official Help Thread! [closed]
I'm having problems with the if/elif
Code help pleasee
Dara Amarie's Official Help Thread! [closed]
"List" of Helpful Threads
Dara Amarie's Official Help Thread! [closed]
Future Episodes for my story: Ink - Remembering Female and Male Customization (CLOSED)
Is this the correct format for Flags/Gains
Someone please help me out
Remembering outfit choices from previous chapters
If And else Error! :( help?!
Simple choices that affect the story
Dressing game Error created from templet
Impactful choices
How do you use if/elif
Unexpected expression, help, please
Change clothes according to choice. And the character's reflection will be worn her choices
Remembering Choices of Previous Chapter
Need help with choices from one chapter to another (ifs, elses, gains, label, goto)
How do you let characters choose love choices
Need help giving readers and option to read certain parts of the story
Help with choice coding!
Advanced directing and choices help?
Help with Gains?!
Script Help - Remebering choices
Past choices - if/elif/else help
Choices, if, else, choice BRANCHING ERROR... meh
Choices, if, else, choice BRANCHING ERROR... meh
Gains and Advanced Choices
Why isn't this choice working?
I Need Help With 2 Things
To remember the outfit choice
Expected Dialog With a Gain! Don't understand and need help
How to do this? Choices
Help with if and gains! not working :(
Remembering Choices ~
Need help with advance choices and different enddings for me
Labelling in directing
Need assistance with dressing game
Remembering Outfit Choices Template!
Choice errors?!
Can someone tell me what to do to fix this?
Could I get some assistance with an overlay idea I have
Trouble with remembering a past choice
I NEED HELP! If/Elif/Else
I need help deciding on something related to my story
How to undo dressing choice?
Remembering choices- not working?
Need directing help as fast as possible plz
I need help episode: else error I need help ARGHHHHHHHHH
Please help, script error
HOW TO: Customize Characters
HELP: Forum Ultimate Go-Tos 😊
Dressing game choice, need help!
If/Elif/Else Choice Help
Reader Opinions?
Help I'm Really Stuck
Adding clothing items in the middle of an episode
Spot Directing, Overlays, and Getting Started!
I want an art scene in my story but I have an issue
𝓤𝓼𝓮𝓯𝓾𝓵 𝓛𝓲𝓷𝓴 𝓜𝓪𝓼𝓽𝓮𝓻 𝓛𝓲𝓼𝓽 - every useful thread you could think of!
How can I make a choice to be remembered?
Helpful Links :blush:
Clothing problem
I'll help you with directing. ❤️
Big meaningful choices
:sparkles: Ava's Help Thread! :sparkles:
DARA’S GUIDE: The Points System
DARA’S GUIDE: Enable/Disable Choice Options with Conditions
Need Outfit Changing Help!
HOW TO: Create points counter at the end of the chapter
Help with CC again
If/elif/else option keeps choosing else option
Dressing game error in the first choice
How do we remember choices and make them affect in the next episode?
Love interest she/he
Testing Problem
DARA’S GUIDE: The Points System
How: important choice inside another important choice
Big choices in story
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
I need help with advanced choices!
"Stupid" questions that never get answered? Get The Help Here!

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

2 Likes

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

6 Likes

Can you do that on mobile?

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

2 Likes

alright thank you!

1 Like

No you replace that with your outfit changing script scene.

1 Like

[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
2 Likes

How do you reset gains

You can’t, unfortunately.

2 Likes

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

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

1 Like

nothing , but another label.

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

}
“Hell no!” {

goto choosing_outfits

}
}

3 Likes

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

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

1 Like

“else” needs to be by itself

} else {

1 Like

I don’t get it , could you explain it a little more in depth?

It’s all explained in the guide above. The word “else” needs to be by itself with nothing in parentheses next to it.

1 Like

okay, thanks again,