Script Error: Unexpected String


#1

Hey! Can someone please help with this:

I feel like I’ve tried everything to fix it!


#2

For starters… What’s going on with your brackets on line 998? Even though the error is further down, could that be affecting it?


#3

well, it was a default command for outfits, but it wasn’t working so a basically just did a bit of trial and error until i “fixed” it :sweat_smile:. Honestly, I’m new to this whole coding thing so I really need some help! :tired_face:


#4

Ooh we’ve all been there. Trial and error is the most effective way I learnt. Glad you got it fixed :slightly_smiling_face:


#5

Oh, no I fixed line 998, but 1004 is still a problem. Is 998 affecting 1004?


#6

I think you have a few too many curly brackets on a few lines


#7

What’s it actually saying the error is now?


#8

its still saying Unexpected STRING :slight_smile:


#9

yes I agree, but when i try to remove them they say errors messages


#10

Hey there @eden_12847, this Sydney the Moderator. Welcome to the forums! :smiley:

I’ve moved this topic to Directing Helps and Tips since it’s about scripting. If you have questions about anything, feel free to PM me and make sure to check out our Forum Tutorial for more info about where to correctly create topics. :wink:


#11

@Dara.Amarie @RudeInception @Apes Can one of you help here? :slight_smile:


#12

If you remove the {} on line 998 (which you need to remove), what error message do you get?
Also move the @pause for a beat on line 992 to line 993. Notice how it hasn’t gone purple like your other “pause for a beat’s”? Put it on it’s own line and see if that’s the issue. (And definitely still remove the {} on line 998)


#13

Hi!
This is what happens when I remove the {} from 998 and move the @pause. It didn’t really make a difference for the other script error:


#14

Sorry if I was unclear. I meant separate the @pause for a beat and the }, so keep } on line 993 and put the @pause separately (it should go purple when you save like the one on line 1011).
So:
}
@pause for a beat

If that’s still causing you an issue- we’ll probably need to see the rest of your script as if it’s actually a missing } as the message says, that could be right at the bottom.


#15

Are you using episode outfit template?


#16

Yes


#17

Usually you nee to make A LOT of changes in that template Wich can cause some mistakes or something. I am more than happy to provide a template if you are interested :rofl: