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.
I cannot figure out what could be causing this error
Whenever I get to the point where a menu should open up, I get this error instead
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/Raymond.rpy", line 387, in script
"Draw your sword" if RChassword == "false":
SyntaxError: invalid syntax (game/Raymond.rpy, line 445)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/Raymond.rpy", line 387, in script
"Draw your sword" if RChassword == "false":
File "C:\Program Files (x86)\renpy-6.17.7-sdk\renpy\ast.py", line 1363, in execute
choice = renpy.exports.menu(choices, self.set)
File "C:\Program Files (x86)\renpy-6.17.7-sdk\renpy\exports.py", line 622, in menu
if renpy.python.py_eval(condition) ]
File "C:\Program Files (x86)\renpy-6.17.7-sdk\renpy\python.py", line 1416, in py_eval
return eval(py_compile(source, 'eval'), globals, locals)
File "C:\Program Files (x86)\renpy-6.17.7-sdk\renpy\python.py", line 477, in py_compile
raise e
SyntaxError: invalid syntax (game/Raymond.rpy, line 445)
386label RCornationMenu:
387 menu:
388 "Draw your sword" if RChassword == "false":
389 $ RChassword = "true"
390 "You draw your sword from its sheath, thankful that it's included in your formal uniform."
391 call RCRoundAdvance
392 jump RCornationMenu
444 "Charge [M]'s attacker" if RCLocation == "stage" and RMAlive == "true" and RCProtectingM = "false":
445 $ RCProtectingM = "true"
446 "You rush King [M]'s attacker and your shoulder connects solidly with him. He lets out an 'oof' and tumbles to the ground beneath you, dropping his sword in the process."
447 call RCRoundAdvance
Your help is really appreciated, this freaking error is making me tear my hair out x.x