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 ?
Expected statement?!
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.
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.
Re: Expected statement?!
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:
This code worked for me, let me know if it fixes your problem. :)
Taken from the menu example here.
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
Taken from the menu example here.
Re: Expected statement?!
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
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
Re: Expected statement?!
Wait, nevermind! I was putting spaces BEHIND the jumps, not IN FRONT of it xD (I am blonde)
Thanks for your help ^_^
Thanks for your help ^_^
Re: Expected statement?!
No problem, glad it's working! Feel free to post again if there's anything else you need.
Who is online
Users browsing this forum: Google [Bot], Semrush [Bot], Sugar_and_rice