"Unexpected DIALOG"


#1

Hey guys! I have a small problem. I’m currently writing a script and I wanted to do a dressing game but when I try to save my script it says: Unexpected DIALOG?

Can you please help me? :frowning:

This is my script:

@HAIR is think

label choosing_outftit

    HAIR (talk_think)
(Let's see...)

choice

"Red+Beige"{

@HAIR is dustoff_loop

@HAIR changes into RED_SOPHIA

"Black+Blue"{

@HAIR is dustoff_loop

@HAIR changes into BLUE_SOPHIA

"Pink+Brown"{

@HAIR is dustoff_loop

@HAIR changes into RED_SOPHIA

choice

"Choose this outftit"{

}

"Try something else" {

}

Thank you ! :wink: :smiley:


#2

In 1, 2, and 3 you need to add a closing bracket (}).
And in 4 and 5, you will eventually need to add some code, but I do not think that contributed to the error.


#3

I tried to do what you told me but it says: Unexpected sequence: You cannot use a director command (starting with @) here.

My script is this:

label choosing_outftit

    HAIR (talk_think)
(Let's see...)

choice

@HAIIR is dustoff_loop

@HAIR changes into RED_SOPHIA

}
“Black+Blue”{

@HAIR is dustoff_loop

@HAIR changes into BLUE_SOPHIA

}
“Pink+Brown”{

@HAIR is dustoff_loop

@HAIR changes into PINK_SOPHIA

}

choice

"Choose this outftit"{

}

"Try something else" {

}


#4

You dropped your first choice, after the word choice.


#5

CORRECTION you wrote “choice” and then an animation before the options, you need to write it right away

Also, did you mean to write HAIIR? (2 I’s)


#6

I corrected it but it’s still saying : unexpected … :frowning:


#7

Can you show me a screen shot of the script and error message?


#8

label choosing_outftit

    HAIR (talk_think)
(Let's see...)

choice

"Red+Beige"{

@HAIR is dustoff_loop
@HAIR changes into RED_SOPHIA

}
“Black+Blue”{

@HAIR is dustoff_loop

@HAIR changes into BLUE_SOPHIA

}
“Pink+Brown”{

@HAIR is dustoff_loop

@HAIR changes into PINK_SOPHIA

}

choice

"Choose this outftit"{

}

"Try something else" {

}

Still not working, I corrected it and now it says : unexpected DIALOG: Red+beige… ;/


#9

Is there space between the word “choice” and the first option? I know it doesn’t recognize them together if there’s space and it comes out as unexpected garbage (or some other stuff)


#10

fullsizeoutput_4


#11

Can you also send me a picture of the script (a little above the choice)? I am not catching what the error may be.


#12

No :frowning: and also here is a screenshot of my script,


#13


#14

It needs to look like this:

choice
"Red+Beige" {

You can’t skip a whole line between the word choice and the first option.

Also you need to have some kind of dialogue right before that 2nd choice to choose the outfit or not.


#15

I’m sorry for bothering you. :frowning: It’s still not working, can you please send me an example of my script with the correction.
The first error I corrected it but the dialog thing isn’t working.


#16

You need to have dialogue before a choice.

HAIR
Is this what I want?

choice
“Choose this outfit” {

}
“Try something else” {

}


#17

@follow HAIR to screen center in zone 2

@HAIR is think

label choosing_outftit

    HAIR (talk_think)
(Let's see...)

choice
“Red+Beige” {

@HAIR is dustoff_loop
@HAIR changes into RED_SOPHIA

}

"Black+Blue"{

@HAIR is dustoff_loop

@HAIR changes into BLUE_SOPHIA

}

"Pink+Brown"{

@HAIR is dustoff_loop

@HAIR changes into PINK_SOPHIA

}

    HAIR
Is this what I want?

choice
“Choose this outfit” {

}
“Try something else” {

}

I did the exact same thing , but it’s saying now: Expected character or change scene fullsizeoutput_7


#18

Just like with the whole “you can’t skip a whole line between choice and the first option”… You can’t skip a whole line between an ending bracket and the next choice option.

So if you did this:

}

"Black+Blue" {

You need to get rid of that line in between and make it look like this:

}
"Black+Blue" {

And you need to do this with all of the choice options.


#19

Omg, thank you so much! It’s finally workinggg ! :smiley: Yeah, you were right I skipped a line between choice and the first option, thank u sm I really appreciate your help, I know understand my errors!
<3.

Thank youu!


#20

You’re welcome! :smile: