Code: Select all
# The game starts here.
label start:
$ magic = False
$ thief = False
show black
Code: Select all
menu:
"Go outside":
jump bobble
"Look around":
jump orb
label orb:
$ magic = True
"This shop's concept is actually interesting yet there are so many things questionable here."
Code: Select all
if magic:
"It came from...Rina's other bag. She left it on the table."
else:
"I must have imagined it."
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 1358, in script
File "game/script.rpy", line 1358, in python
NameError: name 'magic' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Acer\Documents\renpy-6.16.5-sdk\renpy\execution.py", line 288, in run
node.execute()
File "C:\Users\Acer\Documents\renpy-6.16.5-sdk\renpy\ast.py", line 1486, in execute
if renpy.python.py_eval(condition):
File "C:\Users\Acer\Documents\renpy-6.16.5-sdk\renpy\python.py", line 1342, in py_eval
return eval(py_compile(source, 'eval'), globals, locals)
File "game/script.rpy", line 1358, in <module>
if magic:
NameError: name 'magic' is not defined
Windows-7-6.1.7601-SP1
Ren'Py 6.16.5.525
Chrysanthemum Tea 0.0