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.
-
TigerAlpaca
- Regular
- Posts: 38
- Joined: Tue Apr 03, 2018 4:19 am
-
Contact:
#1
Post
by TigerAlpaca » Tue Apr 03, 2018 4:42 am
This is an error I've gotten and I would like some help to solve it.
This is the error-
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 316: expected statement.
"I couldn't help but tense at his touch." :
^
Ren'Py Version: Ren'Py 6.99.14.1.3218
Tue Apr 03 09:38:38 2018
And this is the code it occurs in-
Code: Select all
"I couldn't help but tense at his touch." :
menu:
"Push him off":
jump neutralpath1
"Do nothing":
jump falsepath2
I had to put the colon to prevent another error, but now it's made this one. Some help, please?
-
korova
- Veteran
- Posts: 217
- Joined: Sat Jun 27, 2009 5:15 pm
- Completed: Ivy, Chocolate, Time, Clair Obscur
- Projects: Writing exercises, The House [Nano18]
- Tumblr: korova08
- itch: korova
- Location: Normandie, France
-
Contact:
#2
Post
by korova » Tue Apr 03, 2018 6:07 am
Indentation "rule" : Indent after a colon, don't indent when there is no colon, put colons only when creating blocks is mandatory.
Code: Select all
"I couldn't help but tense at his touch." ## Remove this colon :
menu: ## Don't indent this menu
"Push him off":
jump neutralpath1
"Do nothing":
jump falsepath2
-
TigerAlpaca
- Regular
- Posts: 38
- Joined: Tue Apr 03, 2018 4:19 am
-
Contact:
#3
Post
by TigerAlpaca » Sat Apr 21, 2018 8:27 am
korova wrote: ↑Tue Apr 03, 2018 6:07 am
Indentation "rule" : Indent after a colon, don't indent when there is no colon, put colons only when creating blocks is mandatory.
Code: Select all
"I couldn't help but tense at his touch." ## Remove this colon :
menu: ## Don't indent this menu
"Push him off":
jump neutralpath1
"Do nothing":
jump falsepath2
Thanks, I'll try that now and see if it works
It works, thanks.
Users browsing this forum: Google [Bot]