I'm having trouble with a particular "if" statement.
if transport == "subway":
if where == "corridor":
jump o80
if where == "waiting rm":
jump o80
if where == "lounge":
jump o81
if where == "office":
jump o81
As you can see, I added even more separations after the first if statement to fit it better with the story. I had other "if" statements other than this one, for example:
if transport == "bus":
j n "redacted"
scene bg bus
with dissolve
s "redacted"
show s5
These worked perfectly fine, and I was wondering if maybe it wasn't possible to add even more "if" statements below. Thanks in advance!
Here's the traceback:
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 1252, in script
if transport == "rail":
File "game/script.rpy", line 1252, in <module>
if transport == "rail":
NameError: name 'transport' is not defined
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 1252, in script
if transport == "rail":
File "/Users/rgs/Desktop/applications/RENPY/renpy/ast.py", line 1612, in execute
if renpy.python.py_eval(condition):
File "/Users/rgs/Desktop/applications/RENPY/renpy/python.py", line 1482, in py_eval
return eval(py_compile(source, 'eval'), globals, locals)
File "game/script.rpy", line 1252, in <module>
if transport == "rail":
NameError: name 'transport' is not defined
Darwin-14.5.0-x86_64-i386-64bit
Ren'Py 6.99.5.602
Joelle BD 0.0
