I keep getting this error:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 279, in script
if menuchoices == 3:
File "game/script.rpy", line 279, in <module>
if menuchoices == 3:
NameError: name 'menuchoices' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 279, in script
if menuchoices == 3:
File "C:\Users\Anya\Desktop\renpy-6.99.14.3-sdk\renpy\ast.py", line 1729, in execute
if renpy.python.py_eval(condition):
File "C:\Users\Anya\Desktop\renpy-6.99.14.3-sdk\renpy\python.py", line 1919, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Users\Anya\Desktop\renpy-6.99.14.3-sdk\renpy\python.py", line 1912, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 279, in <module>
if menuchoices == 3:
NameError: name 'menuchoices' is not defined
Windows-8-6.2.9200
Ren'Py 6.99.14.3.3347
1.0
Sat May 26 17:59:47 2018
Code: Select all
label start:
$ menuchoices = 0
$ foutain = False
$ dance = False
$ benches = False
Code: Select all
label partychoices:
if menuchoices == 3:
jump snackbar
else:
menu:
"Look at the fountain" if fountain == False:
jump fountain
"Sit on the benches" if benches == False:
jump benches
"Go dance" if dance == False:
jump dance
label fountain:
$ fountain = True
$ menuchoices += 1
"something happend"
jump partychoices
label benches:
$ benches = True
$ menuchoices += 1
"something happend"
jump partychoices
label dance:
$ dance = True
$ menuchoices += 1
"something happend"
jump partychoices
label snackbar:
"Something happened"