Using if/elif/else to Remember Past Choices

#375

if (undecided_nihan) {
NARR
Text.
choice “Plant a kiss.” {

} “Do nothing.” {

}

}elif(accept_nihan) {
NARR
Text.
choice “Plant a kiss.” {

} “Do nothing.” {

}
}else {

}

1 Like
#376

Thank you so much!!! :grin::star_struck:

#377

@Apes
How do you make it so 2 gains can be used in a choice.

Because if my readers chose to have these people as her friends. And she chose to be nice to Maria. How can you make it so the reader can read a branch which has both of these choice gains.

#378

if (gain name and gain name){
Scene here
}else{
You can leave this blank if there is no scene for the other gains
}

1 Like
#379

I am allowing the reader to change the main characters hair for an outfit. How do I make the readers original hair style come back from the initial CC ?

#380

1 Like
#381

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?

#382

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?

#383

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
}

#384

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

#385

Thank you very much

#386

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?

#387

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.

#388

alright thank you

#389

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.

#390

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.

}

#391

Are you using gains or points?

#392

gains.

#393

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

#394

that she says the first conversation from if selection