Help! Script Error (for no reason?)

community
general
coding
mustread

#1

Hey guys I’m making a clothing game but with lipstick colors and it appears that I have an error in my script without apparent reason… What am I doing wrong? Is it just an error for something else and it just assumed it was this?

Script%20Error


#2

Labels cannot be inside of brackets. You’re if/elif/else should only have just the goto’s inside

if (choice_red_lipstick) {
goto red_gloss
} elif (choice_burgundy_lipstick) {
goto burgundy_gloss
}

and so on…


#3

But it won’t work like I want it to if I remove the labels…

Let me explain… I have a label for the whole lipstick color “game” where I have in total, 7 choices of lipstick shades. And I want the character to pick a lipstick shade and then I want them to be asked if they want gloss to that lipstick shade (for every lipstick shade), but I want it to be after the choose their final shade, not every time they’re revewing a shade.

These are the screenshots of my script:

Screenshots

script%202 script%203 script%204 script%205

And this is the actual script if you need it:

Script

label lipstick_color

SHAY (think_rubchin)
What color lipstick should I wear?

choice
“Red”{
@SHAY changes lip color into Red Matte
gain choice_red_lipstick
}“Burgundy”{
@SHAY changes lip color into Red Deep Matte
gain choice_burgundy_lipstick
}“Plum”{
@SHAY changes lip color into Plum Matte
gain choice_pink_lipstick
}“Violet”{
@SHAY changes lip color into Violet Matte
gain choice_violet_lipstick
}“Pink”{
@SHAY changes lip color into Pink Hot Matte
gain choice_pink_lipstick
}“Rose”{
@SHAY changes lip color into Rose Matte
gain choice_rose_lipstick
}“Nude”{
@SHAY changes lip color into Rose Light Nude Matte
gain choice_nude_lipstick
}

if (choice_red_lipstick){
goto red_gloss

label red_gloss

@SHAY changes lip color into Red Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Red Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}elif (choice_burgundy_lipstick){
goto burgundy_gloss

label burgundy_gloss

@SHAY changes lip color into Red Deep Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Red Deep Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}elif (choice_plum_lipstick){
goto plum_gloss

label plum_gloss

@SHAY changes lip color into Plum Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Plum Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}elif (choice_violet_lipstick){
goto violet_gloss

label violet_gloss

@SHAY changes lip color into Violet Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Violet Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}elif (choice_pink_lipstick){
goto pink_gloss

label pink_gloss

@SHAY changes lip color into Pink Hot Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Pink Hot Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}elif (choice_rose_lipstick){
goto rose_gloss

label rose_gloss

@SHAY changes lip color into Rose Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Rose Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}elif (choice_nude_lipstick){
goto nude_gloss

label nude_gloss

@SHAY changes lip color into Rose Light Nude Gloss

SHAY (flirt_wink_atcamera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
Shay changes lip color into Rose Light Nude Matte

SHAY (kiss_blow_happy)
Matte lips it is!
}
}


#4

You forgot @ In the “no” option : You wrote SHAY changes… it should be @SHAY
Try to change that.

If it still doesnt work then it must be because the label can’t be inside the if…

Try someting like this : (and see if it works that way)

if (choice_red_lipstick){
goto red_gloss
} elif (choice_burgundy_lipstick){
goto burgundy_gloss
}

label red_gloss

@SHAY changes lip color into Red Gloss

SHAY (flirt_wink_camera)
Should I wear gloss?

choice
“Yes”{
SHAY (kiss_blow_happy)
Glossy lips it is!
}“No”{
@SHAY changes lip color into Red Matte

}
goto continue
label … (the other options

label continue (for you to keep writing the rest of the story after the choice)

I hope it helps :sparkling_heart:


#5

Thank you so much I’ve already solved it though :heart: