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

1 Like

Need help with this! I have two choices:

Meet the guys or meet the girls.

If the reader meets the guys first, they get a small special scene. Same for meeting the girls first.
But it says the girls choice is an unexpected string/error. Help?

Hi, I’m writing a story and I’m having trouble with keeping the character the way that the readers are customizing them and the name that they gave them. How do I fix this?

SO BELOW I HAVE MY OUTLINE FOR IT BUT IT’S NOT WORKING CAN YOU HELP ME FIX IT PLEASE?

choice
“Outfit 1”{
@character is dustoff_loop
@character changes into classic 1
goto DECIDE
}
“Outfit 2”{
@character is dustoff_loop
@character changes into classic 2
goto DECIDE
}
“Outfit 3”{
@character is dustoff_loop
@character changes into classic 3
}

if(choice is “Outfit 1”){
@character is dustoff_loop
@character changes into classic 1
goto DECIDE
}
elif(choice is “Outfit 2”){
@character is dustoff_loop
@character changes into classic 2
goto DECIDE
}
else(choice is “Outfit 3”){
@character is dustoff_loop
@character changes into classic 3
}

label DECIDE
character(think)
Should I wear this?

choice
“YES!”{
continue
}
“NAH!”{
goto MENU
}

Follow this. You do not need to remember the outfit choice unless you are changing out of the outfit and back into it again.

Thank you very much

Okay i did that but when i start to write the script for the next episode it shows the default outfit that i made her with, is that normal to see on my end even when i refresh it?

If you’re viewing from the portal, yes. It generally shows whatever the default outfit is.

Test it out in the app to make sure it works out on all ends.

alright thank you

I’m trying to incorporate if/else into a conversation as if she did this so that’s her response and else that’s her other response . only the first response is working. this is my first time using if/else.

This is the code.

if (heavana_point) {

MC (talk_apathetic)
I had to bare down and grit my teeth and give polite service.

}
else {
MC (talk_apathetic)
I gave her a piece of my mind and a smack of the hand.

}

Are you using gains or points?

gains.

Can you clarify what you mean by only the first response is working?

that she says the first conversation from if selection

It worked when I used if/else for another moment so I don’t know why it’s not working now.

try to reset your story progress :slight_smile:

thanks it worked.

Hey,

I have a theoretical question.
If I use “The choice name and option method” in the current episode, can I refer back to that choice in later episodes?

For eg. MC is in a situation with a boy where she must choose between being affectionate or being cold to him. If she chooses to be affectionate, and that means she invites him to a party, if she chooses to be cold, the boy will still go to that party, but someone else invites him.
The party scene will happen in a later episode.
If I label this choice, then can I refer back to it in that later episode?

So my code would look something like this:

In the current episode:

choice (situation)
“Affectionate” {
blablabla

} “Cold” {
blablabla

}

In the party episode:

if (situation is “Affectionate”) {

GIRL
Hey, I’m glad you are here!
blablabla

} else {

GIRL
How come you are here?
blablabla
}

Yep, you’re good.

1 Like