I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 36: invalid syntax
practice points = 0
^
File "game/script.rpy", line 37: invalid syntax
happiness points = 0
^
File "game/script.rpy", line 38: invalid syntax
spirit satisfaction = 0
^
File "game/script.rpy", line 68: invalid syntax
happiness points += 1
^
File "game/script.rpy", line 115: invalid syntax
happiness points += 1
^
File "game/script.rpy", line 341: invalid syntax
happiness points -= 1
^
File "game/script.rpy", line 616: invalid syntax
spirit satisfaction += 1
^
File "game/script.rpy", line 620: invalid syntax
spirit satisfaction -= 1
^
File "game/script.rpy", line 775: invalid syntax
happiness points += 1
^
File "game/script.rpy", line 780: invalid syntax
happiness points -= 1
^
File "game/script.rpy", line 966: invalid syntax
practice points += 1
^
File "game/script.rpy", line 967: invalid syntax
spirit satisfaction +=1
^
File "game/script.rpy", line 972: invalid syntax
spirit satisfaction -= 1
^
Ren'Py Version: Ren'Py 6.99.14.1.3218
Sat Jun 02 10:44:16 2018
Here is some of the code where the errors are:
Code: Select all
init:
python:
def max_points(*values):
return [ i for i, v in enumerate(values) if v == max(values) ]
$ practice points = 0
$ happiness points = 0
$ spirit satisfaction = 0
menu:
"Wake up.":
$ happiness points += 1
jump choice1_yes
"Nah, just a little bit more sleep.":
jump choice1_no
menu:
"Invite him to sit and have breakfast.":
$ happiness points += 1
jump choice2_yes
"Nah, he must've had food already.":
jump choice2_no
Please help me fix these.
Thanks