Help With Really complicated coding please

I can’t find the error, it was right until I changed like one thing and I thought I changed it back but I can’t find it :sweat_smile:
Okay I figured out 1 problem but there are still others, please help
I know nesting is like a big no-no but how else should I do this?

gain pro_xe
}

    NARRATOR
Which character would you like?

choice
“Fem body” {
input What’s Your Name?|What’s Your Name?|Done(YOU2)
NARRATOR
Would you like fem clothes or masc clothes?
choice
“Fem Clothes”{
NARRATOR
Do you wear glasses?
choice
“Yes” {
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain fem_fem_g_m
goto fem1
}
“No” {
gain fem_fem_g
goto fem1
}
}
“No”{
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain fem_fem_m
goto fem1
}
“No” {
@pause for .2
goto fem1
}
}
}
“Masc Clothes” {
NARRATOR
Do you wear glasses?
choice
“Yes” {
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain fem_masc_g_m
goto fem1
}
“No” {
gain fem_masc_g
goto fem1
}
}
“No” {
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain fem_masc_m
goto fem1
}
“No” {
@pause for .2
gain fem_masc
goto fem1
}
}
}
“No preference” {
@pause for .2
NARRATOR
Do you wear glasses?
choice
“Yes” {
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain glasses1_m
goto fem1
}
“No” {
gain glasses1
goto fem1
}
}
“No” {
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain modest1
goto fem1
}
“No” {
@pause for .2
goto fem1
}
}

}
}
“Masc body” {
input What’s Your Name?|What’s Your Name?|Done(YOU)
NARRATOR
Would you like fem clothes or masc clothes?
choice
“Fem Clothes” {
NARRATOR
Do you wear glasses?
choice
“Yes” {
NARRATOR
Do you modest clothes?
choice
“Yes” {
gain masc_fem_g_m
goto masc1
}
“No” {
gain masc_fem_g
goto masc1
}
}
“No” {
NARRATOR
Do you wear modest clothes?
choice
“Yes” {
gain masc_fem_m
goto masc1
}
“No” {
gain masc_fem
goto masc1
}
}
“Masc Clothes” {
NARRATOR
Do you wear glasses?
choice
“Yes” {
NARRATOR
Do you cover your hair?
choice
“Yes” {
gain masc_masc_g_m
goto masc1
}
“No” {
gain masc_masc_g
goto masc1
}
}
“No” {
NARRATOR
Do you cover your hair?
choice
“Yes” {
gain masc_masc_m
goto masc1
}
“No” {
gain masc_masc
goto masc1
}
}
}
“No preference” {
NARRATOR
Do you wear glasses?
choice
“Yes” {
NARRATOR
Do you cover your hair?
choice
“Yes” {
gain glasses_m
goto masc1
}
“No” {
gain glasses
goto masc1
}
}
“No” {
NARRATOR
Do you cover your hair?
choice
“Yes” {
gain modest
goto masc1
}
“No” {
@pause for .2
goto masc1
}
}
}
}

Update: I finally got it to work! I needed to copy and paste it into pages and color code everything but it works :tired_face:

Hi.
Nested choices aren’t neccessarily a no-no, but to use to many at once is making coding more complicated than it needs to be.
And you have lots of nested choices. Only on the first choice alternative I count not one, not two but three!. That makes a lot of brackets to keep track of.

Instead of making so many branches try putting the different choices under seperate labels and use gotos to make it easier to keep track.

If I’ve interrpreted your script right, you have the choice of being either a female MC or a male MC and thereby two storyline branches(?)
You’re also asking the same questions for both branches but without changing the scene(?) Then you can reuse some labels for both branches.

My suggestion is to put the different choices under their own labels, keeping the clothes and glasses choices seperate.

But if you still want to do nesting, the secret is that for every nested choice is to know the base choice system
choice
"Alt 1"{
scene
}
"Alt 2"{
scene
}

What happens when nesting is that you just put this sequence within the first alt once again before the last bracket of the alt.

choice <-first choice
"Alt 1"{ <-- first choice alt
scene
choice <—nested choice
"Alt 1"{
scene
}
"Alt 2"{
scene
}<— nested choice last bracket
} - <—first alt bracket

"Alt 2"{ <-- first choice 2-d alt
scene
}

<3

1 Like

Closing due to one month of inactivity :slight_smile: