Hi Imperf3kt, thanks for the help. One question! When I try to load Inigo, the secret route, I get this error:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 1354, in script
if persistent.routes_seen = 4:
SyntaxError: invalid syntax (game/script.rpy, line 1354)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 1354, in script
if persistent.routes_seen = 4:
File "C:\Users\taure\Documents\Renpy\renpy\ast.py", line 1656, in execute
if renpy.python.py_eval(condition):
File "C:\Users\taure\Documents\Renpy\renpy\python.py", line 1748, in py_eval
code = py_compile(code, 'eval')
File "C:\Users\taure\Documents\Renpy\renpy\python.py", line 584, in py_compile
raise e
SyntaxError: invalid syntax (game/script.rpy, line 1354)
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Heart Fragment DEMO
This is what the code looks like.
Code: Select all
menu:
"Kei":
jump kei
"Clive":
jump clive
"Shannon":
jump shannon
"Jasper":
jump jasper
"Inigo":
if persistent.routes_seen = 4:
jump inigo
else:
"This route can only be unlocked by achieving all other good endings."
"Good luck. You'll get there soon!"
menu:
"Kei":
jump kei
"Clive":
jump clive
"Shannon":
jump shannon
"Jasper":
jump jasper
label kei:
if not persistent.route_01:
$ persistent.route_01 = True
$ persistent.routes_seen += 1
"This is where Kei's route begins. Look forward to it in the full version of the game!"
return
else:
return
label clive:
if not persistent.route_02:
$ persistent.route_02 = True
$ persistent.routes_seen += 1
"This is where Clive's route begins. Look forward to it in the full version of the game!"
return
else:
return
label shannon:
if not persistent.route_03:
$ persistent.route_03 = True
$ persistent.routes_seen += 1
"This is where Shannon's route begins. Look forward to it in the full version of the game!"
return
else:
return
label jasper:
if not persistent.route_04:
$ persistent.route_04 = True
$ persistent.routes_seen += 1
"This is where Jasper's route begins. Look forward to it in the full version of the game!"
return
else:
return
label inigo:
"This is where Inigo's route begins. Look forward to it in the full version of the game!"
return
I have a feeling I'm probably missing something very simple... I'm sorry for being such a bother here.
Edit: I thought I had arranged the else and ifs in the wrong order so I changed things up a bit to see if that would fix it, and now get this error when launching the game.
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 1391: expected statement.
else:
^
File "game/script.rpy", line 1432: expected statement.
else:
^
File "game/script.rpy", line 1473: expected statement.
else:
^
File "game/script.rpy", line 1514: expected statement.
else:
^
Ren'Py Version: Ren'Py 6.99.12.4.2187