I'm working on a game, and up to this point it's all been going rather well. I'm having errors in two different places, and even after jigging around a bit I can't seem to solve them. I did a quick search of the forum and I couldn't see anything relevant (though there's a chance I might have overlooked something), so I'm kinda hoping you guys will be able to help me figure this out. The first error occurs here:
Code: Select all
menu:
"Yes..." if $ tessrelationship >= 105:
jump DAY_2EVENINGALECHOUSEN1
"Yes..." if $ tessrelationship <= 104:
$ tessrelationship +=0
"Is that not obvious? Why else would I be here?":
$ tessrelationship -=5
The same error occurs with the following:
Code: Select all
menu:
"In that case.... let's go." if skiptoclass = True:
$ suerelationship +=5
jump DAY_3CLASS
"In that case... let's go." if skiptoclass = False:
$ suerelationship +=5
jump DAY_3CAFETERIA
"I don't walk with girls.":
$ suerelationship -=5
jump DAY_3BEFORESCHOOLGATES
There's also another one after this point which I havn't been able to test, because I can't actually get to that point. It follows the same formatting as above though, which I started using after reading the Ren'Py language reference on the wiki.
Thanks in advance for any help you can give.
EDIT: Here's the traceback:
Code: Select all
I'm sorry, but an uncaught exception occurred.
SyntaxError: invalid syntax (game/game/script.rpy, line 187)
While running game code:
- script at line 186 of D:\bcb\game/game/script.rpy
-- Full Traceback ------------------------------------------------------------
File "D:\renpy-6.11.2\renpy\bootstrap.py", line 270, in bootstrap
File "D:\renpy-6.11.2\renpy\main.py", line 310, in main
File "D:\renpy-6.11.2\renpy\main.py", line 93, in run
File "D:\renpy-6.11.2\renpy\execution.py", line 259, in run
File "D:\renpy-6.11.2\renpy\ast.py", line 1133, in execute
File "D:\renpy-6.11.2\renpy\exports.py", line 371, in menu
File "D:\renpy-6.11.2\renpy\python.py", line 994, in py_eval
File "D:\renpy-6.11.2\renpy\python.py", line 243, in py_compile
SyntaxError: invalid syntax (game/game/script.rpy, line 187)
While running game code:
- script at line 186 of D:\bcb\game/game/script.rpy
Ren'Py Version: Ren'Py 6.11.2b