I'm getting the message:
Starting at line 136 the code (cutting out dialog for readability) is:While running game code:
File "game/script.rpy", line 138, in script
if kLike < 35:
SyntaxError: invalid syntax (game/script.rpy, line 138)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 138, in script
if kLike < 35:
File "C:\Users\Ember\Downloads\renpy-7.1.3-sdk\renpy\ast.py", line 1762, in execute
if renpy.python.py_eval(condition):
File "C:\Users\Ember\Downloads\renpy-7.1.3-sdk\renpy\python.py", line 1942, in py_eval
code = py_compile(code, 'eval')
File "C:\Users\Ember\Downloads\renpy-7.1.3-sdk\renpy\python.py", line 674, in py_compile
raise e
SyntaxError: invalid syntax (game/script.rpy, line 138)
(All of the options end with a functioning jump command)
the kLike points are defined at the start as being 50 and I'm accessing this to test from a route that should put me in the 'else' section.label K_Met:
"The area boots up around you."
if kLike < 35:
$ kGreetCold = renpy.random.choice(("1", "2", "3"))
if kGreetCold == "1":
...
if kGreetCold == "2":
...
if kGreetCold == "3":
...
elif kLike > 36 and < 45:
$ kGreetSad = renpy.random.choice(("1", "2", "3"))
if kGreetSad == "1":
...
if kGreetSad == "2":
...
if kGreetSad == "3":
...
elif kLike > 60 and < 75:
$ kGreetHappy = renpy.random.choice(("1", "2", "3"))
if kGreetHappy == "1":
...
if kGreetHappy = "2":
...
if kGreetHappy == "3":
...
elif kLike > 76:
$ kGreetJoy = renpy.random.choice(("1", "2", "3"))
if kGreetJoy == "1":
...
if kGreetJoy == "2":
...
if kGreetJoy == "3":
...
else :
$ kGreet = renpy.random.choice(("1", "2", "3"))
if kGreet == "1":
...
if kGreet == "2":
...
if kGreet == "3":
...
If anyone can help I would really appreciate it.
(The indents aren't showing up. Trying to fix it but if you can see this message I haven't managed yet)