At the start of my script I have a variable declared as
$ touched_wall = False
And further along I have an option that should activate it, or, if already activated leads to another path.
label walltouch:
if $ touched_wall = true:
jump walltouch2
else:
$ touched_wall = true
And beneath that it goes to the dialogue for that section.
But when I try to set that option in game i get this:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 369, in script
if $ touched_wall = true:
SyntaxError: invalid syntax (script.rpy, line 369)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 369, in script
if $ touched_wall = true:
File "/Users/mike/Downloads/renpy-6.99.8-sdk/renpy/ast.py", line 1648, in execute
if renpy.python.py_eval(condition):
File "/Users/mike/Downloads/renpy-6.99.8-sdk/renpy/python.py", line 1605, in py_eval
code = py_compile(code, 'eval')
File "/Users/mike/Downloads/renpy-6.99.8-sdk/renpy/python.py", line 512, in py_compile
raise e
SyntaxError: invalid syntax (script.rpy, line 369)
Darwin-14.5.0-x86_64-i386-64bit
Ren'Py 6.99.10.1227
Maze 0.0
