This is an error I constantly see myself running into as i work on my game (something I've only been doing for like 2 or 3 week only so far, yes I am a super novice^^;;) I searched the forums extensively as well as reread the tutorial, wiki, ect, played w/ the indentation & tried various other things to see if I could figure what I'm doing wrong myself but I just haven't been able to so now I wish to ask you all, the experts what I'm I doing wrong? why I'm i getting this type of error?I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/park.rpy", line 8, in script
if desk == "tae":
File "game/park.rpy", line 8, in python
if desk == "tae":
NameError: name 'desk' is not defined
Code: Select all
menu:
"yes":
u "hello?"
"no":
$ desk = "tae"
u "i'll just take it to the front desk"
jump mmenu
Code: Select all
if desk == "tae":
u "*could the phone from the library be his?*"
u "why don't you try the library?"
t "huh? why?"
menu:
"I saw it":
u "What does your phone look like?"
t "It's a white samsung"
u "I found a phone like that while at the libaray a while ago. I gave it to the front desk"
t "The library! of course! come w/ me!"
u "hay...wait....uwahh!!!"
jump taem_date2
"It's a hunch":
u "It's just a hunch..."
t "ah...okay I'll try that"
if dress == "tm":
t "ah...okay I'll try that, thank you for helping me"
u "Hope he finds it..."
jump mmenu
else:
t "*sigh* I'm sorry again, excuse me"
u "poor dude..."
u "maybe I should do something else"
jump mmenu
thanks in advance for any help