Guest User

SUPER LIVER ADVENTURE 12!

a guest
Dec 5th, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.86 KB | None | 0 0
  1. #SUPER LIVER ADVENTURE 12!
  2.  
  3. from sys import exit
  4. from random import randint
  5.  
  6. quips = ["Welcome!",
  7. "have a wonderful day",
  8. "Livers are cool!",
  9. "this text was chosen at random",
  10. "Writen in python",
  11. "woo, splash text!",
  12. "Notch loves ez!",
  13. "Almost dragon free!"]
  14.  
  15. print quips [randint (0, len(quips) -1)]
  16.  
  17. def first_thing () :
  18.     print "You are a liver, congratulations! You should do some liver stuff now."
  19.     print "Here comes some blood, what should you do?"
  20.     filterblood = raw_input (">")
  21.  
  22.     if filterblood == "filter" or "filter blood" or "filter the blood":
  23.         return 'second_thing'
  24.        
  25.     elif filterblood == "who cares":
  26.         print "I care, be more considorate!"
  27.         return "first_thing"
  28.        
  29.     else:
  30.         print "Sorry, no (Hint, it is your main purpose!)"  
  31.         return "first_thing"
  32.        
  33. def second_thing () :
  34.     print "You are now filtering the blood, good for you!"
  35.     print "oh no! There is too much aldosterone! what would that do?"
  36.     fluidz = raw_input (">")
  37.  
  38.     if fluidz == "fluid retension" or "Keeping fluids":
  39.         return 'third_thing'
  40.        
  41.     else:
  42.         print "nope! (hint, what does aldosterone do?)"
  43.         return "second_thing"
  44.        
  45. def third_thing () :
  46.     print "Oh no!, that's bad!"
  47.     print "What should you do about that aldosterone?"
  48.     metabolize = raw_input (">")
  49.  
  50.     if metabolize == "metabolize" :
  51.         return 'fourth_thing'
  52.  
  53.     else:
  54.         print "BRZZZZ, wrong!"
  55.         return "third_thing"
  56.        
  57. def fourth_thing () :
  58.     print "super duper!"
  59.     print "the aldosterone has been taken care of, no problems at the current moment"
  60.     print "..."
  61.     print "..."
  62.     print "..."
  63.     print "After a couple of months a problem arises, you are inflamed, what could this be?"
  64.     hepatitis = raw_input (">")
  65.  
  66.     if hepatitis == "hepatitis":
  67.         return 'fifth_thing'
  68.        
  69.     else:
  70.         return "fourth_thing"
  71.  
  72. def fifth_thing () :
  73.     print "OH NO! Hepatitis!"
  74.     print "What could have caused this?"
  75.     idunno_somthing = raw_input (">")
  76.  
  77.     if idunno_somthing == "infection" or "an infection" :
  78.         print "neat, thats no good."
  79.         print "thank you for coming"
  80.         exit (0)
  81.        
  82.     elif idunno_somthing == "sex" or "drugs" or "rock n roll":
  83.         print "very funny, what specificly caused it?"
  84.         return "fifth_thing"
  85.        
  86.     else:
  87.         return "fifth_thing"
  88.  
  89.  
  90. ROOMS = {
  91.     'first_thing': first_thing,
  92.     'second_thing': second_thing,
  93.     'third_thing': third_thing,
  94.     'fourth_thing': fourth_thing,
  95.     'fifth_thing': fifth_thing
  96. }
  97.  
  98. def runner(map, start):
  99.     next = start
  100.     while True:
  101.         room = map[next]
  102.         print "\n--------"
  103.         next = room()
  104.        
  105. runner(ROOMS, 'first_thing')
  106.  
  107. #if you steal my stuff, credit me.
  108.  
Add Comment
Please, Sign In to add comment