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.
Hey still figuring stuff out on renpy, I've set a $ value to a person if you agree or disagree to do that with True/False, but I'm having trouble getting the game to jump to different lines based on if the player chose yes or no.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 309, in script
if $ jshowedroom = True:
SyntaxError: invalid syntax (game/script.rpy, line 309)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 309, in script
if $ jshowedroom = True:
File "D:\Downloads\renpy-7.1.3-sdk\renpy\ast.py", line 1762, in execute
if renpy.python.py_eval(condition):
File "D:\Downloads\renpy-7.1.3-sdk\renpy\python.py", line 1942, in py_eval
code = py_compile(code, 'eval')
File "D:\Downloads\renpy-7.1.3-sdk\renpy\python.py", line 674, in py_compile
raise e
SyntaxError: invalid syntax (game/script.rpy, line 309)
Windows-8-6.2.9200
Ren'Py 7.1.3.1092
BAE School 1.0
Fri Feb 15 00:29:02 2019
Check the picture below
Attachments
Last edited by Nicolajsej123 on Fri Feb 15, 2019 4:50 am, edited 1 time in total.