Expected statement?!

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
Oreosama

Expected statement?!

#1 Post by Oreosama »

This is the sentence I have entered:

menu:
"It's great, Maria!":
jump love

"It's... I don't know what to say?":
jump unknown


And then the error:

On line 380 of D:\Renpy\love story/game/script.rpy: expected statement.
"It's... I don't know what to say?":
^
What does it mean ?

Mizuiru
Newbie
Posts: 11
Joined: Fri Aug 07, 2009 5:44 pm
Contact:

Re: Expected statement?!

#2 Post by Mizuiru »

Have you indented your lines? Python is very specific about how much white space you have to put before each statement.

Generally, each line in a chain of logic should have an additional four spaces in front of it, like so:

Code: Select all

menu:
    "It's great, Maria!":
        jump love
    "It's... I don't know what to say?":
        jump unknown
This code worked for me, let me know if it fixes your problem. :)

Taken from the menu example here.

Oreosama

Re: Expected statement?!

#3 Post by Oreosama »

Now it's saying

On line 113 of D:\Renpy\Crystal Lake/game/script.rpy: jump statement does not expect a block. Please check the indentation of the line after this one.
jump love
^

:S

oreosama

Re: Expected statement?!

#4 Post by oreosama »

Wait, nevermind! I was putting spaces BEHIND the jumps, not IN FRONT of it xD (I am blonde)

Thanks for your help ^_^

Mizuiru
Newbie
Posts: 11
Joined: Fri Aug 07, 2009 5:44 pm
Contact:

Re: Expected statement?!

#5 Post by Mizuiru »

No problem, glad it's working! Feel free to post again if there's anything else you need.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot], Sugar_and_rice