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'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 732, in script
if g3_point <=5 :
SyntaxError: invalid syntax (game/script.rpy, line 734)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 732, in script
if g3_point <=5 :
File "C:\Users\d5.d257\Downloads\renpy-7.3.2-sdk\renpy\ast.py", line 1830, in execute
if renpy.python.py_eval(condition):
File "C:\Users\d5.d257\Downloads\renpy-7.3.2-sdk\renpy\python.py", line 2033, in py_eval
code = py_compile(code, 'eval')
File "C:\Users\d5.d257\Downloads\renpy-7.3.2-sdk\renpy\python.py", line 690, in py_compile
raise e
SyntaxError: invalid syntax (game/script.rpy, line 734)
Windows-8-6.2.9200
Ren'Py 7.3.2.320
jo 1.0
Tue Aug 20 17:04:23 2019
Uh, well.. += and -= is for increasing and decreasing a numeric variable. A <= or >= is saying "less than or equal to" or "greater than or equal to" - it is a comparison command.
label bethtalk:
hide scienceTeacher
show beth_happy
if g3_point <=5:
jump bethtalkintro
elif g3_point >=5 and if g3_point <=20:
jump bethtalk1
elif g3_point >=20 and if g3_point <60:
jump bethtalk2
elif g3_point >=60 and if g3_point <100:
jump bethtalk3
elif g3_point >=100 and if g3_point <150:
jump bethtalk4
elif g3_point >=150 and if g3_point <200:
jump bethtalk5
elif g3_point >=200 and if g3_point <10000:
jump bethtalk6
else:
jump science1
namastaii wrote: ↑Wed Aug 21, 2019 12:06 am
Uh, well.. += and -= is for increasing and decreasing a numeric variable. A <= or >= is saying "less than or equal to" or "greater than or equal to" - it is a comparison command.
Oh okay that's for clearing that out for me I wasn't 100% sure
Thanks everyone, removing the extra if was the cause. Also fixed the indentation, the indentations were only like that because i was trying to find out where i messed up and thought it was because they were not spouse to be together.