Parsing script failed, did I do something wrong with identation?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
yierqi
Newbie
Posts: 11
Joined: Wed May 23, 2018 7:50 pm
Completed: ~none~
Projects: ~many~
Organization: somewhere over the rainbow
IRC Nick: 127
Soundcloud: 127
itch: yierqi
Location: somewhere over the rainbow
Contact:

Parsing script failed, did I do something wrong with identation?

#1 Post by yierqi »

Hello, I've been getting this error when I write down my code. I'm not sure if I'm doing something wrong, I am relatively new to this ;u;

Code: Select all

[code]
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/script.rpy", line 63: expected statement.
    mc = "u-um...okay." 
       ^

File "game/script.rpy", line 64: expected statement.
    mc = "then, should we talk about Mark Lee?" 
       ^

Ren'Py Version: Ren'Py 6.99.14.3.3347
Thu May 24 14:17:31 2018
[/code]

(from)

Code: Select all

    show mcblush: 
        yalign 0.6

    mc = "u-um...okay." 
    mc = "then, should we talk about Mark Lee?" 
    
    show RWAE: 
          yalign 0.6
          
    e "no you ugly, die"
I've heard from many forums about making sure to put four spaces for each line of code after the ":", so I've made sure to try to do that with my code, but maybe I'm wrong.

As a side question, what exactly does it mean by an "expected statement?"

Sorry for my terribleness in this =u=

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Parsing script failed, did I do something wrong with identation?

#2 Post by Remix »

Code: Select all

mc = "u-um...okay." 
is python, so add a $ at the start...

Code: Select all

$ mc = "u-um...okay." 
If they were meant to be dialogue, just remove the = assignment
Frameworks & Scriptlets:

User avatar
yierqi
Newbie
Posts: 11
Joined: Wed May 23, 2018 7:50 pm
Completed: ~none~
Projects: ~many~
Organization: somewhere over the rainbow
IRC Nick: 127
Soundcloud: 127
itch: yierqi
Location: somewhere over the rainbow
Contact:

Re: Parsing script failed, did I do something wrong with identation?

#3 Post by yierqi »

Thank you!

Post Reply

Who is online

Users browsing this forum: Google [Bot]