No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
yeah, I'm just keeping this thread open because I have another wrinkle. In my code [code=python]def prompt_house(): global gold prompt_hou = raw_input('>') if prompt_hou == 'examine table': print '''There are a lot of car magazines here. You flip through them and find 5 gold.''' gold = gold+5 prompt_house() [/code] (or … |
|
[URL="http://corvettecraz92.pastebin.com/f59db1508"](new code)[/URL] so, my new error message is 'local variable 'gold' refferenced before assignment.' now what? |
|
yeah, another one...but this time in python! yay, more errors! :) first off, [URL="http://corvettecraz92.pastebin.com/f65e1cd3c"]here's the code..[/URL] (based off of chris99's code...the only example i could find for a text adventure game!) Now, my problem is where it says [code=python] elif prompt_p == 'examine sign': print """Behold the mysterious grating! For … |
|
I'm making a text adventure game, and it's actually coming along quite nicely...the only thing is, I want to be able to return to the previous screen whenever I want. Say that in my game, I go north. I want to be able to go south, back to my main … |