Error code:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 1610, in script
menu:
File "game/script.rpy", line 1616, in <module>
"Deny" if Denial == True:
NameError: name 'Denial' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 1610, in script
menu:
File "D:\Renpy\renpy-6.99.12.4-sdk\renpy\ast.py", line 1459, in execute
choice = renpy.exports.menu(choices, self.set)
File "D:\Renpy\renpy-6.99.12.4-sdk\renpy\exports.py", line 828, in menu
if renpy.python.py_eval(condition) ]
File "D:\Renpy\renpy-6.99.12.4-sdk\renpy\python.py", line 1749, in py_eval
return py_eval_bytecode(code, globals, locals)
File "D:\Renpy\renpy-6.99.12.4-sdk\renpy\python.py", line 1743, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 1616, in <module>
"Deny" if Denial == True:
NameError: name 'Denial' is not defined
Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
NSE: Halloween Special 1.4
Code: Select all
#Major events
$ Bad_End = False
$ Tea_Party = False
$ Claustrophobia = False
$ Floating = False
$ Denial = FalseSo here's a check before a menu option;
Code: Select all
if Tea_Party == True:
if Claustrophobia == True:
$ Denial = True
Code: Select all
menu:
"Fight":
jump MarcusFight
"Deny" if Denial == True:
jump MarcusDeny
"Panic":
$ Bad_End_Points += 1
$ Random_Points += 1
jump MarcusPanic
Any help will be greatly appreciated!