User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 456,541 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,273 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 839 | Replies: 2
Reply
Join Date: Oct 2007
Posts: 2
Reputation: remmoc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
remmoc remmoc is offline Offline
Newbie Poster

newbie text game

  #1  
Oct 14th, 2007
hey ive been working on a txt game... btw im using python 2.3. i am trying to have a requirement for each 'room' or function, i want it so the user has to pick up an object into their inventory before they can go on to the next room. here is my game http://www.privatepaste.com/ce0kCf6Bz5 ive tried a good amount of stuff i think what i do have so far would work but i cant actually make call it or w/e figure out how to use it. this is the part ive been working on

require = ("Running Shoes", "Special Water")
has_all_needed = True
for item in require:
    if item not in inventory:
        has_all_needed = False
if not has_all_needed:
    track()        
else:
    weight_room()
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Posts: 2
Reputation: remmoc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
remmoc remmoc is offline Offline
Newbie Poster

Re: newbie text game

  #2  
Oct 14th, 2007
i figured it out...
Reply With Quote  
Join Date: Aug 2005
Posts: 1,196
Reputation: Ene Uran is on a distinguished road 
Rep Power: 6
Solved Threads: 67
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Veteran Poster

Re: newbie text game

  #3  
Oct 14th, 2007
Good for you!
drink her pretty
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Python Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Python Forum

All times are GMT -4. The time now is 4:57 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC