Code: Select all
[code]
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/killshadow.rpy", line 4, in script
$ sin_points += 1
File "game/killshadow.rpy", line 4, in <module>
$ sin_points += 1
NameError: name 'sin_points' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/killshadow.rpy", line 4, in script
$ sin_points += 1
File "D:\renpy-6.99.12.4-sdk\renpy\ast.py", line 814, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\renpy-6.99.12.4-sdk\renpy\python.py", line 1719, in py_exec_bytecode
exec bytecode in globals, locals
File "game/killshadow.rpy", line 4, in <module>
$ sin_points += 1
NameError: name 'sin_points' is not defined
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Love's Apathy 1.0
here's the code I used in my files:
In Script.rpy...
Code: Select all
default sin_points = 0
And in the part where it's supposed to change the value within the story, after the label start:
Code: Select all
label killshadow:
stop music fadeout 1.0
play music "underwater.mp3"
$ sin_points += 1