Announcement

Collapse
No announcement yet.

Choice within a choice error (label)

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Choice within a choice error (label)



    Hey guys, I have a problem with my scripting and was hoping You may help, because I am just beginning to get into directing. I attempted to create a choice within a choice and get a label in there, but the error says "You cannot have a label inside if/then statements or { }"

    Someone also said that if a choice inside a choice is created, the system doesn't always pick up on the real error and just picks on something completely else. I'm not sure what I'm doing wrong, so could anyone perhaps point me in the right direction?


    Thank You so much.

    #So, this is the main story.

    PASSERBY
    (WTF?)

    #This is the first choice out of three for the main story, and this is where I get the error.

    choice (passerby)
    "Seduce him to get him to give you a ride home."{

    [A lot of dialog, etc. here, then they move to a different background.]

    JESSICA (disappointed)
    Can I change the song?

    PASSERBY (talk_happy_smile)
    Be my guest.

    label change_music

    JESSICA (think)
    (What should I change it to?)

    choice
    "Spacey." {

    [Dialog etc. here]

    }"Peaceful." {

    [Dialog etc. here]

    }"Romantic." {

    [Dialog etc. here]

    } "Chillaxing." {

    [Dialog etc. here]

    } "Dreamy." {

    [Dialog etc. here]

    }
    JESSICA (eyeroll_subtle)
    (Is this | italic |really | reset |what I want to play?)

    choice
    "Don't question my music style ever again." {

    JESSICA (eyeroll)
    (Well, it's better than it was before.)

    } "You're right. This is complete trash." {

    redo change_music

    }


  • #2
    Originally posted by slytherix View Post
    Someone also said that if a choice inside a choice is created, the system doesn't always pick up on the real error and just picks on something completely else.
    This only applies when you get the error message "ERROR: There is a { that does not have a matching }", and there can be many factors for this error, not just choices within choices.

    But in your case, you are getting the error message "You cannot have a label inside if/then statements or { }" which is telling you exactly what the error is. You cannot have labels inside of brackets. You will need to place that label outside of the choice and put a goto inside the choice that leads to that label.


    choice (passerby)
    "Seduce him to get him to give you a ride home."{

    [A lot of dialog, etc. here, then they move to a different background.]

    JESSICA (disappointed)
    Can I change the song?

    PASSERBY (talk_happy_smile)
    Be my guest.

    goto change_music
    }

    label change_music

    JESSICA (think)
    (What should I change it to?)


    Comment


    • #3
      That does make much more sense, yeah.
      Thank You so much for helping once again, I really appreciate that.

      Comment

      Working...
      X