You cannot have a label inside If/Then statements or { }


#1

Guys please help. Idk what to do to get rid of this error message? I am in the process of letting the reader make choices on her customization.


#2

You have to upload the error, click on the problem and it’ll send you to the part of the script with the problem.


#3

This looks like you made a choice using (if_UmberSkin1) you chose this then go to Umber skin color, That’s not how the label for Character Customization works. you should only have goto_labels.


#4

Did you put customisation inside the choice?

You can’t have any labels inside the brackets.


#5

Hehe, :zipper_mouth_face:


#6

thank you!!! that worked


#7

If you can’t have a label inside brackets, then how do dressing games work? Don’t you have a label at the beginning of the games and when you like, want to look through them all, choose the last option that’s something like “choose something else”, it should look like

label outfit

choice
“this one” {

@char change into outfit

}
“this one” {

@char change into outfit

}
(and however many your heart desires)

and then at the very end its like

does char wanna wear this?

choice
“ye” {

congrats

}
“nay”{

goto label outfit

}

so…? how can we not put goto labels inside brackets?

PS, this is theoretical. I’m thinking about the choices I want to write and dressing games I want to do, and if it doesn’t work like this, then I am madly confused


#8

You can have goto inside choices but you can’t have labels, do you get what I am saying?


#9

…hol up.

choice
“choice”{

label

}

not okay.

choice
“choice”{

goto label

}

is okay.

I got it. Thanks fam


#10

That doesn’t look right though :confused:


#11

cause i’m not specific at all. its is super generalized and spaced out. Does this look better?

dialogue of somekind
choice
“choice”{
label
}

not okay

dialogue of somekind
choice
“choice”{
goto label
}

is okay


#12

Try something like this

label outfi_choice

Dialog

choice
“Outfit 1”{

@CHAR changes into OUTFIT
goto outfit_yes

}“Outfit 2”{

@CHAR changes into OUTFIT
goto outfit_yes

}

label outfit_yes

Dialog

choice
“Yes”{
Dialog
goto end_choice

}“No”{
Dialog
goto outfit_choice
}

label end_choice

Dialog


#13

Heard! See, I was skipping steps. Like I said, it was totally theoretical, so.


#14

Yeah I get it


#15