Could anyone help, maybe? (Coding!)

Hey! So I made a topic about this and it seemed like it was solved, but after playing through my story again, it definitely has not been :sweat_smile:
Basically, I wanted to give the reader the choice to go to different locations, but they only get to choose either 4/6 or 5/6 of the options. Yet it continuously looped, even if you went through every scene. So I shortened it down to three places at a time. It seems to work at first, eliminating one choice, but then by the time you should be finished, it still puts the reader in an endless loop and I have no idea why!

Here’s the script if anyone would be willing to read through!

if (picked_library) {

    SADIE (think_rubchin)
(So where should I go next?)

choice
“Parlor”{

    SADIE (talk_exclaim_yes_happy)
Yes! The parlor is a great choice!

gain picked_parlor

goto parlor

}
“Kitchen”{

    SADIE (idle_happy_loop)
(Foooood. Yes. Absolutely.)

gain picked_kitchen

goto kitchen

}

} elif (picked_parlor) {

    SADIE (think_rubchin)
(So where should I go next?)

choice
“Library”{

    SADIE (idle_awkward_scratch_loop)
(Isn't that where I am already...? Oh well.)

gain picked_library

goto library

}
“Kitchen”{

    SADIE (idle_happy_loop)
(Foooood. Yes. Absolutely.)

gain picked_kitchen

goto kitchen

}

} elif (picked_kitchen) {

    SADIE (think_rubchin)
(So where should I go next?)

choice
“Library”{

    SADIE (idle_shiftweight_neutral_loop)
(Sounds like a good idea.)

gain picked_library

goto library

}“Parlor”{

    SADIE (talk_exclaim_yes_happy)
Yes! The parlor is a great idea!

gain picked_parlor

goto parlor

}

} elif (picked_library THEN picked_parlor) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_library THEN picked_kitchen) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_parlor THEN picked_kitchen) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_parlor THEN picked_library) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_parlor THEN picked_kitchen) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_library THEN picked_parlor) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_library THEN picked_kitchen) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_library THEN picked_parlor) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_parlor THEN picked_library) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_parlor THEN picked_kitchen) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_kitchen THEN picked_library) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} elif (picked_kitchen THEN picked_parlor) {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

} else {

    NARRATOR 
You are about to get an option to explore another area! 
It's pretty much the same deal, you only get to go to 2/3 places, so choose wisely!

    SADIE (think_rubchin)
(Let's try going somewhere else for a change.)

choice
“Stables”{

    SADIE (react_holdface_happy)
(That's a great idea!)

gain picked_stables

goto stables

}
“Garden”{

    SADIE (idle_happy_loop)
(Ooh, that's a good idea!)

gain picked_garden

goto garden

}
“Amphitheater”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_amphitheater

goto amphitheater

}

}

This is added at the end of each scene.

1 Like

Its cause you copy and paste the coding a lot. You put

This 3 times. Or more.
You need to do a label for ending.
“Done”{

    SADIE (think_rubchin)
(That could be fun...!)

gain picked_Done

goto label Done

}
[

1 Like

I think. Help @JemU776

1 Like

You should read this guide to understand how the coding works: DARA’S GUIDE: Enable/Disable Choice Options with Conditions

1 Like

Thank you! I’ll check it out— I tried to search for a forum going over it but must’ve missed it. Thanks!! (:

And thank you @Danielle318 !

1 Like

@Dara.Amarie

Figured it out after looking at the thread + some trial and error, so I just wanted to say thank you again for linking it!! (:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.