Help! error: choices must follow dialog immediately, not a branch


Hey, I’m a new author and I’ve been having a lot trouble with this error when I am creating choices and branches. What I don’t understand is why it say’s dialog must follow after…because I do have dialog after the choice.
I might just be having a dumb moment but can anybody help me out with this?

i am new to coding too, so i am sorry if this isn’t correct!

try to put the } in front of the next “choice”.

so like,

choice
“Yes!” {

CONNIE (talk_exclaim_yes_happy)
Yes please!

goto outfit_done

} "No! {

CONNIE (talk_deny_neutral)
No, thank you!

goto outfit_notdone

}

I tried that, it doesn’t work…thank you though(:

You have to put dialogues or commands before line 277. It cannot directly start with a choice itself.

maybe check out https://www.dara-amarie.com/templates and see the templates there for dressing games. it might helps you understand what you are doing wrong.

1 Like

Uhm can you show an example? because I might have tried that but I’m not sure if I am thinking of the same thing you are saying.

CONNIE (think_rubchin)

1 Like

I will definitely check that out!

1 Like

That isn’t working but thank you for your input!

Move line 275 to line 293

Also, it will give you an error for every choice in that outfit game, so if you want you can paste it all here and I (or someone else) can correct it for you

1 Like

Yup like @EtherealWitch said. And it should be } “overalls” {

that would be very helpful…
I’m not sure if you meant correct my script or the outfit game by dara-amarie but I’m just going to post my script…

choice
“skirt” {

@CONNIE is dustoff_neutral_loop
@CONNIE changes into connieskirt
@CONNIE is dustoff_neutral_loop

    CONNIE (think_rubchin)

(Do I want to wear this?)

    choice 
"Yes!" {
      CONNIE (talk_exclaim_yes_happy)
Yes please!

    goto outfit_done
}


"No!" {
    CONNIE (talk_deny_neutral)
No thank you!

    goto outfit_notdone
  
}

}

choice
“jeans”{

@CONNIE is dustoff_neutral_loop
@CONNIE changes into conniejeans
@CONNIE is dustoff_neutral_loop

    CONNIE (think_rubchin)

(Do I want to wear this?)

    choice 
"Yes!" {
      CONNIE (talk_exclaim_yes_happy)
Yes please!

    goto outfit_done
}


"No!" {
    CONNIE (talk_deny_neutral)
No thank you!

    goto outfit_notdone
  
}

}
choice
“overalls” {

@CONNIE is dustoff_neutral_loop
@CONNIE changes into conniecasual
@CONNIE is dustoff_neutral_loop

    CONNIE (think_rubchin)

(Do I want to wear this?)

    choice 
"Yes!" {
      CONNIE (talk_exclaim_yes_happy)
Yes please!

    goto outfit_done
}


"No!" {
    CONNIE (talk_deny_neutral)
No thank you!

    goto outfit_notdone
  
}

}

goto outfit_notdone
choice
“skirt” {

@CONNIE is dustoff_neutral_loop
@CONNIE changes into connieskirt
@CONNIE is dustoff_neutral_loop

    CONNIE (think_rubchin)

(Do I want to wear this?)

    choice 
"Yes!" {
      CONNIE (talk_exclaim_yes_happy)
Yes please!

    goto outfit_done
}


"No!" {
    CONNIE (talk_deny_neutral)
No thank you!

    goto outfit_notdone
  
}

}

choice
“jeans”{

@CONNIE is dustoff_neutral_loop
@CONNIE changes into conniejeans
@CONNIE is dustoff_neutral_loop

    CONNIE (think_rubchin)

(Do I want to wear this?)

    choice 
"Yes!" {
      CONNIE (talk_exclaim_yes_happy)
Yes please!

    goto outfit_done
}


"No!" {
    CONNIE (talk_deny_neutral)
No thank you!

    goto outfit_notdone
  
}

}
choice
“overalls” {

@CONNIE is dustoff_neutral_loop
@CONNIE changes into conniecasual
@CONNIE is dustoff_neutral_loop

    CONNIE (think_rubchin)

(Do I want to wear this?)

    choice 
"Yes!" {
      CONNIE (talk_exclaim_yes_happy)
Yes please!

    goto outfit_done
}


"No!" {
    CONNIE (talk_deny_neutral)
No thank you!

    goto outfit_notdone
  
}

}

Try using this:

label outfit
CONNIE (think_rubchin)
What do I want to wear?

choice
“Skirt” {
@CONNIE is dustoff_neutral_loop
@CONNIE changes into connieskirt
@pause for 1
}
“Jeans” {
@CONNIE is dustoff_neutral_loop
@CONNIE changes into connieskirt
@pause for 1
}
“Overalls” {
@CONNIE is dustoff_neutral_loop
@CONNIE changes into connieskirt
@pause for 1
}

CONNIE (think_rubchin)

(Do I want to wear this?)

choice
“Yes!” {
CONNIE (talk_exclaim_yes_happy)
Yes please!

}
“No!” {
CONNIE (talk_deny_neutral)
No thank you!

goto outfit
}

1 Like

thank you! i really appreciate it(:

1 Like

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