SCRIPT ERRORS you just can't seem to fix!

You’re amazing! Thank you. It worked :blush:

1 Like

So I’ve been trying to create a scene where I use the selfie overlay, I have already got the players skin tones however I keep getting errors, I was wondering if you would help me, here it is:
if (sable_skin) {
INT.MC - PHONE with SELFIE FEMALE 6 } elif (chestnut_skin) {

INT.MC - PHONE with SELFIE FEMALE 6 } elif (dark_skin) {

INT.MC - PHONE with SELFIE FEMALE 5 } elif (rosewood_skin) {

INT.MC - PHONE with SELFIE FEMALE 5 } elif (mocha_skin) {

INT.MC - PHONE with SELFIE FEMALE 5 } elif (umber_skin) {

INT.MC - PHONE with SELFIE FEMALE 4 } elif (toffee_skin) {

INT.MC - PHONE with SELFIE FEMALE 3 } elif (taupe_skin) {

INT.MC - PHONE with SELFIE FEMALE 3 } elif (honey_skin) {

INT.MC - PHONE with SELFIE FEMALE 3 } elif (caramel_skin) {

INT.MC - PHONE with SELFIE FEMALE 3 } elif (tan_skin) {

INT.MC - PHONE with SELFIE FEMALE 3 } elif (beige_skin) {

INT.MC - PHONE with SELFIE FEMALE 1 } elif (olive_skin) {

INT.MC - PHONE with SELFIE FEMALE 2 } elif (fair_skin) {

INT.MC - PHONE with SELFIE FEMALE 1 } elif (lightocre_skin) {

INT.MC - PHONE with SELFIE FEMALE 2 } elif (porcelain_skin) {

INT.MC - PHONE with SELFIE FEMALE 1 } elif (dune_skin) {

INT.MC - PHONE with SELFIE FEMALE 2 } elif (light_skin) {

INT.MC - PHONE with SELFIE FEMALE 1 } elif (ivory_skin) {

INT.MC - PHONE with SELFIE FEMALE 1 } else {

INT.MC - PHONE with SELFIE FEMALE 1 }

Each elif and the else should all be on their own separate lines

if (sable_skin) {
INT.MC - PHONE with SELFIE FEMALE 6

} elif (chestnut_skin) {
INT.MC - PHONE with SELFIE FEMALE 6

} elif (dark_skin) {
INT.MC - PHONE with SELFIE FEMALE 5

and so on…

When I first typed it I put it like that, it kept getting the same script error saying the { didn’t have a matching } but I’ll try that again, thank you!

You also need to add something after the background name. The background name cannot be the only thing inside the brackets.

Okay, thanks.

It works completely fine now thank you very much!

Also keep this in mind:

Remembering choices using the Choice Name & Option Method:

Remembering choices using flags/gains:

In case ^^

Sorry, I have another question now :sweat:.
I keep getting this error:


And the overlay is approved and everything:

Untitledgenie%20lampoverlay

You will need to reupload the overlay and name it PURPLE GOLD LAMP without the “AND”

You can’t use the word “AND” as an overlay or character name otherwise the script thinks you’re trying to use the AND command.

Wow, thanks for telling me before I published or anything. I didn’t even know that. Does that also apply to the other commands like “THEN” or “WITH” or something?

It applies to “THEN” also but not “WITH”. You can have “WITH” in a character/overlay name.

Currently having trouble adding a second movement in the same line of text by my character. I need her to exit after ending the conversation. It’s telling me I need to add a characters name @ and I have but her name isn’t highlighted. This is the text.

 SIENNA (talk_flirt_charming)
Thank you
(the smile I just let from my face was the flirtiest thing I've ever put off)

( I already know this was going to be a bad beginning)
I must get going now, I’m already late!

@SIENNA_default exits from left to screen right

^^^ the last action is getting an error. Thank you for your help.

You’re using the outfit name. Remove _default

OML I’m an idiot hahaha :joy::joy:🤦🏽🤦🏽

Oh my gosh now her outfit changed on it’s own to her pajamas, I removed that text only to start over and it’s completely changed.

I’m having some trouble fixing her outfit to get back to what she was in before. After I corrected my mistake, her clothes. changed and I cant seem to fix it. !

@GUARD1 walks to spot 1.334 165 100 in 1 AND GUARD1 is run_athletic AND GUARD1 moves to layer 9 AND GUARD 2 walks to spot 1.334 256 -5 in 1 AND GUARD 2 moves to layer 9 AND GUARD1 faces right AND GUARD 2 faces right YRAVEN is scream THEN YRAVEN is scream AND GUARD1 is hug_rear AND GUARD 2 is hug_rear AND GUARD1 faces left
Thats my scripting, but it is telling me " use @CHARACTER walks to x y z in S"
If you could help that would be amazing!

nevermind :grin:


No matter what I do. It doesn’t fix!! I’m going mad here.
All it tells me is

ERROR
There is a { on line 2844 that does not have a matching }

But it does!!

Every starting bracket needs a matching end bracket. You don’t have end brackets to close off those “I’ll try something else” choices.

You need an end bracket } on line 2843 and then another one on line 2867