HOW TO: Nested Choices


#1

Hi there!
I will talk about how nested choices are done : )

Here’s a sample of what a generic nested choice looks like:

NARR
What choice would you like to pick?

choice
“Choice one” {

    NARR
You chose CHOICE1.

gain CHOICE1

} “Choice two”{

    NARR
You chose CHOICE2.

}

    NARR
And what is the second choice that you would like to pick?

choice
“Choice A” {

    NARR
You chose CHOICEA.

gain CHOICEA

} “Choice B”{

    NARR
You chose CHOICEB.

}

if (CHOICE1){
if (CHOICEA){

    NARR 
The scene for CHOICE1 and CHOICEA would occur here.

} else {

    NARR 
The scene for CHOICE1 and CHOICEB would occur here.

#notice below this line there are TWO closing braces
}} else {

if (CHOICEA) {

    NARR 
The scene for CHOICE2 and CHOICEA would occur here.

}else {

    NARR 
The scene for CHOICE2 and CHOICEB would occur here.

}
}

@pause for a beat

So, an example would be:

NARR
What type of ice cream flavor do you want?

choice
“Chocolate” {

    NARR
    You chose chocolate.

gain CHOCOLATE

} “Vanilla”{

    NARR
    You chose vanilla.

}

    NARR
    And would you like sprinkles?

choice
“Yes” {

    NARR
    You chose to add sprinkles.

gain SPRINKLES

} “No”{

   NARR
   You chose to add no sprinkles.

}

if (CHOCOLATE){
if (SPRINKLES){

NARR
The scene for chocolate flavored ice cream with sprinkles goes here.

} else {

NARR
The scene for chocolate flavored ice cream with no sprinkles goes here.

#notice below this line there are TWO closing braces
}} else {

if (SPRINKLES) {
NARR
The scene for vanilla flavored ice cream with sprinkles goes here.

}else {

NARR
The scene for vanilla flavored ice cream with no sprinkles goes here.

}
}

@pause for a beat

Of course, the nested choice you write will include more dialogue and more detail, this is a pretty simple one : )

I hope this helps :sparkling_heart:


#2

I scripted it just like your example. The writer portal did not say that there was an error but when I preview it, it goes through both the "if"s instead of just one. Please help


#3

You absolute gem… Jem :laughing: :heart:


#4

Hi, it should work!
Did you try re-setting the flags?
Here’s how to do it:



Hope it does work for you :green_heart:


I really need help with keeping Choices Between Stories
#5

Thanks!


#6

Thanks so much
This saved me alot of time


#7

No problem : )
Thank you for showing support by liking <3
It means a lot to me :sunglasses::heart: