Advertisement
alch1337

THE GAME

Jun 30th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 16.75 KB | None | 0 0
  1. #456 lines without those shitty breaks
  2.  
  3. from sys import exit
  4.  
  5. meat = False
  6. cooked = False
  7. hat = False
  8. sword = False
  9. instinct = False
  10. name = ""
  11. next = ""
  12.  
  13.  
  14. def cthuhlu_room():
  15.  
  16.     print "You see Cthlulu, the Lord of Terror."
  17.  
  18.     print "You are stunned Cthulu reaches you with his hand."
  19.  
  20.     die("You fainted and the Lord of terror ate your face.")
  21.  
  22.  
  23.  
  24. def dragon_room():
  25.     global hat
  26.     global sword
  27.     global instinct
  28.  
  29.     print "You see a mighty dragon in front of you."
  30.  
  31.     print "You feel that you could defeat him!"
  32.  
  33.     if instinct:
  34.  
  35.         print "INSTINCT: Without proper skills and equipment you can't take this fight! If you feel that you have both of these, DESTROY this beast!"
  36.  
  37.     print "What do you want to do? [fight/flee/taunt/suicide]"
  38.  
  39.     next = raw_input("> ")
  40.     if "fight" in next:
  41.  
  42.         if hat and sword:
  43.  
  44.             print "The dragon was a worthy foe. You managed to defeat him before he even saw you! Good job!"
  45.  
  46.             hall_room()
  47.  
  48.         elif hat and not sword:
  49.  
  50.             print "Your fists were to weak to kill the beast!"
  51.  
  52.             die("Dragon ate your heart.")
  53.  
  54.         elif not hat and sword:
  55.  
  56.             print "Without any armor on you were easy to kill for the dragon."
  57.  
  58.             die("Dragon slapped you.")
  59.  
  60.         else:
  61.  
  62.             print "You were too weak!"
  63.  
  64.             die("You suck.")
  65.  
  66.     elif "flee" in next:
  67.  
  68.         print "Somehow you did manage to run from the room before the dragon could notice you. You lucky bastard!"
  69.  
  70.         if instinct:
  71.  
  72.             print "You lost your instinct forever!"
  73.  
  74.         start(False)
  75.  
  76.     elif "taunt" in next:
  77.  
  78.         print "Oh, you're really so silly to taunt the dragon. Death is what you wanted?"
  79.  
  80.         die("You suck.")
  81.  
  82.     elif suicide in next:
  83.  
  84.         print "As you wish."
  85.  
  86.         die("You commited a suicide!")
  87.  
  88.     else:
  89.  
  90.         print "I don't understand you!"
  91.         start(False)
  92.  
  93.  
  94.  
  95. def hall_room():
  96.     global instinct
  97.  
  98.     print "You enter a long hall. You can see an enormous door in front of you. You can also notice a smaller one on the right."
  99.  
  100.     if instinct:
  101.  
  102.         print "INSTINCT: A great evil emerges from the bigger door!"
  103.  
  104.     print "What do you want to do? [open big door/open small door/flee/suicide]"
  105.  
  106.     next = raw_input("> ")
  107.  
  108.     if "open big door" in next:
  109.  
  110.         print "You like big things! I see..."
  111.  
  112.         cthuhlu_room()
  113.  
  114.     elif "open small door" in next:
  115.  
  116.         print "Some people say 'Smaller is better.'. Are you one of them?"
  117.  
  118.         dragon_room()
  119.  
  120.     elif "flee" in next:
  121.  
  122.         print "Seriously? Okay.."
  123.  
  124.         start(False)
  125.  
  126.     elif suicide in next:
  127.  
  128.         print "As you wish."
  129.  
  130.         die("You commited a suicide!")
  131.  
  132.     else:
  133.  
  134.         print "I don't understand you!"
  135.         start(False)
  136.  
  137.  
  138.  
  139. def oldpub_room():
  140.     global instinct
  141.  
  142.     print "You enter a strange room. You smell old irish ale. It looks like an old pub."
  143.  
  144.     print "You can see broken bottles, a few skeletons, some chairs and tables."
  145.  
  146.     if instinct:
  147.  
  148.         print "INSTINCT: Hey! There's an old satchel under on table. Go grab it and look what it contains!"
  149.  
  150.         print "Do you want to listen you this strange voice in your head? [yes/no]"
  151.  
  152.         next = raw_input("> ")
  153.  
  154.         if "yes" in next:
  155.  
  156.             print "You find a journal of someone called 'Stinker!'"
  157.  
  158.             print "22nd May 1969"
  159.  
  160.             print "Seven days has passed since Mary went to look for her husband. We start to worry."
  161.  
  162.             print "I want to go and look for her, but.."
  163.  
  164.             print "---"
  165.  
  166.             print "You can't read more, The words are illegible, because of the Irish ale which probably spilled on the paper.."
  167.  
  168.     print "What do you want to do now? [go back/flee/suicide]"
  169.  
  170.     next = raw_input("> ")
  171.  
  172.     if "go back" in next:
  173.  
  174.         print "A smart decision!"
  175.  
  176.         corridor2_room()
  177.  
  178.     elif "flee" in next:
  179.  
  180.         print "Seriously? Okay.."
  181.  
  182.         start(False)
  183.  
  184.     elif suicide in next:
  185.  
  186.         print "As you wish."
  187.  
  188.         die("You commited a suicide!")
  189.  
  190.     else:
  191.  
  192.         print "I don't understand you!"
  193.         start(False)
  194.  
  195.  
  196.  
  197. def corridor2_room():
  198.  
  199.     print "You enter a large room. It is the shape of octagon."
  200.  
  201.     print "There are three ways that you can take. You can't see where they go."
  202.  
  203.     print "The corridor on the left is completely dark. You notice a small light coming out from the one on the left. There is door between them."
  204.  
  205.     print "What do you want to do? [take left path/take right path/open door/flee/suicide]"
  206.  
  207.     next = raw_input("> ")
  208.  
  209.     if "take left path" in next:
  210.  
  211.         print "You can't see anything. The walls seem to bring themselves closer to each other."
  212.  
  213.         oldpub_room()
  214.  
  215.     elif "take right path" in next:
  216.  
  217.         print "You follow the light. Something smells here.."
  218.  
  219.         fire_corridor(True)
  220.  
  221.     elif "open door" in next:
  222.  
  223.         print "You use your strength to open the door. It makes you tired."
  224.  
  225.         hall_room()
  226.  
  227.     elif "flee" in next:
  228.  
  229.         print "Seriously? Okay.."
  230.  
  231.         start(False)
  232.  
  233.     elif suicide in next:
  234.  
  235.         print "As you wish."
  236.  
  237.         die("You commited a suicide!")
  238.  
  239.     else:
  240.  
  241.         print "I don't understand you!"
  242.         start(False)
  243.  
  244. def chest2_room():
  245.     global instinct
  246.     print "You enter a dark room, which smells like your old unckle Benny."
  247.     print "You see a chest. It looks strange, but you want to open it."
  248.     if instinct:
  249.         print "INSTINCT: A pure evil emerges from the chest. Stay away from it!"
  250.     print "What do you want to do? [open door/open chest/flee/suicide]"
  251.     next = raw_input("> ")
  252.     if "open door" in next:
  253.         print "You open the door and see a pile of barrels in front of you."
  254.         print "You can try to jump over them, or try to break them with your head (you'll probably die)"
  255.         print "What do you want to do? [jump/break/flee/suicide]"
  256.         next = raw_input("> ")
  257.         if "jump" in next:
  258.             print "You try to jump."
  259.             die("You tripped and hit the floor with your head.")
  260.         elif "break" in next:
  261.             print "The barrels are hard, but you manage to destroy them and survive. Good job!"
  262.             corridor2_room()
  263.         elif "flee" in next:
  264.  
  265.             print "Seriously? Okay.."
  266.  
  267.             start(False)
  268.  
  269.         elif suicide in next:
  270.  
  271.             print "As you wish."
  272.  
  273.             die("You commited a suicide!")
  274.  
  275.         else:
  276.  
  277.             print "I don't understand you!"
  278.             start(False)
  279.     elif "open chest" in next:
  280.         print "You use all of your strength to break the lock."
  281.         die("The evil, which was locked in the chest, killed you from the inside.")
  282.     elif "flee" in next:
  283.  
  284.         print "Seriously? Okay.."
  285.  
  286.         start(False)
  287.  
  288.     elif suicide in next:
  289.  
  290.         print "As you wish."
  291.  
  292.         die("You commited a suicide!")
  293.  
  294.     else:
  295.  
  296.         print "I don't understand you!"
  297.         start(False)
  298.  
  299. def pig_room():
  300.     global meat
  301.     print "Something really stinks here. You go further and see a pig."
  302.     print "What do you want to do? [play with the pig/kill the pig/flee/suicide]"
  303.     next = raw_input("> ")
  304.     if "play with the pig" in next:
  305.         print "You play with the pig. it is a very smart pig, which doesnt like you. You paddle the pig up and it takes you to the start."
  306.         print "You're so mad that you kill the pig."
  307.         print "Congratulations! You've acquired a meat!"
  308.         meat = True
  309.         start(False)
  310.     elif "kill the pig" in next:
  311.         print "You're such a bad person, how could you!"
  312.         die("I don't like you anymore!")
  313.     elif "flee" in next:
  314.  
  315.         print "Seriously? Okay.."
  316.  
  317.         start(False)
  318.  
  319.     elif suicide in next:
  320.  
  321.         print "As you wish."
  322.  
  323.         die("You commited a suicide!")
  324.  
  325.     else:
  326.  
  327.         print "I don't understand you!"
  328.         start(False)
  329.  
  330. def fire_corridor(corridor2):
  331.     global meat
  332.     global cooked
  333.  
  334.     print "You see fire, fire and fire."
  335.     if meat == True:
  336.         print "You can cook your meat here."
  337.         print "Do you want to do it? [yes/no]"
  338.         next = raw_input("> ")
  339.         if "yes" in next:
  340.             print "It smells delicious!"
  341.             meat = False
  342.             cooked = True
  343.         elif "no" in next:
  344.             print "Okay.."
  345.  
  346.     print "You go back."
  347.  
  348.     if corridor2:
  349.  
  350.         corridor2_room()
  351.  
  352.     else:
  353.  
  354.         corridor1_room()
  355.  
  356. def hat_room():
  357.     global hat
  358.     print "You enter a room in a shape of a circle. It is very bright in here."
  359.     print "You see a large chest."
  360.     print "Do you want to open it? [yes/no]"
  361.     next = raw_input("> ")
  362.     if "yes" in next:
  363.         print "Congratulations, you've found a hat!"
  364.         hat = True
  365.         print "Defense + 9001"
  366.     elif "no" in next:
  367.         print "You suck, man."
  368.     else:
  369.         print "I don't understand you."
  370.         start(False)
  371.     print "What do you want to do now? [boast about hat/go back/flee/suicide]"
  372.     next = raw_input()
  373.     if "boast about hat" in next:
  374.         print "You're stupid. You're alone, you can't boast. Die."
  375.         die("LOL'D")
  376.     elif "go back" in next:
  377.         print "Smart decision."
  378.         corridor1_room()  
  379.     elif "flee" in next:
  380.  
  381.         print "Seriously? Okay.."
  382.  
  383.         start(False)
  384.  
  385.     elif suicide in next:
  386.  
  387.         print "As you wish."
  388.  
  389.         die("You commited a suicide!")
  390.  
  391.     else:
  392.  
  393.         print "I don't understand you!"
  394.         start(False)
  395.  
  396. def corridor1_room():
  397.     global instinct
  398.     print """You enter a great hall. There are 6 ways to go:
  399.                             |---------|
  400.                            #3         #6
  401.                             |         |
  402.                            #2         #5       X - you
  403.                             |         |
  404.                            #1    X    #4
  405.                             |---| |---|
  406.                                 | |"""
  407.     if instinct:
  408.         print "INSTINCT: I'd chose a way no. 4!"
  409.     print "What do you want to do now? [1/2/3/4/5/6/go back/flee/suicide]"
  410.     next = raw_input("> ")
  411.     if "1" in next:
  412.         print "You have chosen the first way. You see some skeletons."
  413.         pig_room()
  414.     elif "2" in next:
  415.         print "You have chosen the second way. You see a bright light in front of you."
  416.         hat_room()
  417.     elif "3" in next:
  418.         print "You have chosen the third way. You go straight the turn right two times. You open small door."
  419.         chest2_room()
  420.     elif "6" in next:
  421.         print "You have chosen the fourth way. You see Gandalf. He shouts: 'You shall not pass!'"
  422.         print "You go back."
  423.         corridor1_room()
  424.     elif "5" in next:
  425.         print "You have chosen the fifth way. you go straight and then turn left."
  426.         print "You see the back of Gandalf. You can stab him if you want."
  427.         print "Do you want to stab gandalf in his back? [yes/no]"
  428.         next = raw_input("> ")
  429.         if "yes" in next:
  430.             print "You stab Gandalf and watch him as he dies."
  431.             print "You are so sad, that you kill yourself too."
  432.             die("You're a moron.")
  433.         elif "no" in next:
  434.             print "You are a coward!"
  435.         else:
  436.             print "I don't understand you!"
  437.             start(False)
  438.         print "Do you want to go back? [yes/no]"
  439.         next = raw_input("> ")
  440.         if "yes" in next:
  441.             print "You go back."
  442.             corridor1_room()
  443.         elif "no" in next:
  444.             print "You starve to death!"
  445.             die("You're a FUCKING moron.")
  446.         else:
  447.             print "I don't understand you!"
  448.             start(False)
  449.     elif "4" in next:
  450.         fire_corridor(False)
  451.     elif "go back" in next:
  452.         print "You go back."
  453.         start(False)
  454.     elif "flee" in next:
  455.  
  456.         print "Seriously? Okay.."
  457.  
  458.         start(False)
  459.  
  460.     elif "suicide" in next:
  461.  
  462.         print "As you wish."
  463.  
  464.         die("You commited a suicide!")
  465.  
  466.     else:
  467.  
  468.         print "I don't understand you!"
  469.         start(False)
  470.  
  471. def spider_room():
  472.     global instinct
  473.     global sword
  474.     print "You see a giant spider in front of you. You can't believe how big it is."
  475.     print "You feel power emerging from it."
  476.     print "What do you want to do now? [fight/flee/suicide]"
  477.     next = raw_input("> ")
  478.     if "fight" in next:
  479.         if sword:
  480.             print "You've defeated the beast! Congratulations."
  481.             print "You've gained a new power: INSTINCT."
  482.             instinct = True
  483.             print "You go back."
  484.             start(False)
  485.         else:
  486.             print "You didn't manage to kill the beast."
  487.             die("The Spider Queen ate your lungs off")
  488.     elif "flee" in next:
  489.  
  490.         print "You got caught in spider's web and died."
  491.         print "Spider Queen: 'He was delicious!'"
  492.         die("Your pussy was delicious.")
  493.  
  494.     elif suicide in next:
  495.  
  496.         print "As you wish."
  497.  
  498.         die("You commited a suicide!")
  499.  
  500.     else:
  501.  
  502.         print "I don't understand you!"
  503.         start(False)
  504.  
  505. def eric_room():
  506.     global meat
  507.     global cooked
  508.     print "You enter a dark room. You smell death."
  509.     print "You see an old man standing in the corner."
  510.     print "Stranger: 'Hey! You! The ugly one! I am Eric. Behind this door *points at door* you can find a great treasure."
  511.     print "Eric: 'I'm hungry though and I won't let you pass unless you give me pork."
  512.     if meat:
  513.         print "Do you want to give your meat to Eric? [yes/no]"
  514.         next = raw_input("> ")
  515.         if "yes" in next:
  516.             print "Eric: 'It's raw. I don't want it!'"
  517.         elif "no" in next:
  518.             print "You're greedy man. Learn to share."
  519.         else:
  520.             print "I don't understand you!"
  521.             start(False)
  522.     elif cooked:
  523.         print "Do you want to give your cooked meat to Eric? [yes/no]"
  524.         next = raw_input("> ")
  525.         if "yes" in next:
  526.             print "Eric: 'Mmm..delicious! You can go now.'"
  527.             cooked = False
  528.             chest1_room()
  529.         elif "no" in next:
  530.             print "Eric knows you have cooked meat. He kills you and takes the meat."
  531.             die("Learn to share!")
  532.         else:
  533.             print "I don't understand you!"
  534.             start(False)
  535.     else:
  536.         print "What do you want to do now? [have sex with Eric/go back/flee/suicide]"
  537.         next = raw_input("> ")
  538.         if "have sex with Eric" in next:
  539.             die("GAY")
  540.         elif "go back":
  541.             print "Okay."
  542.             start(False)
  543.         else:
  544.             print "I don't understand you."
  545.             start(False)
  546.  
  547. def chest1_room():
  548.     global sword
  549.     print "You enter a really small room. It is the smallest room you've ever seen."
  550.     print "You see a large chest."
  551.     print "Do you want to open it? [yes/no]"
  552.     next = raw_input("> ")
  553.     if "yes" in next:
  554.         print "Congratulations, you've found a sword!"
  555.         sword = True
  556.         print "Damage + 2"
  557.     elif "no" in next:
  558.         print "You suck, man."
  559.     else:
  560.         print "I don't understand you."
  561.         start(False)
  562.     print "What do you want to do now? [sharpen the sword/go back/flee/suicide]"
  563.     next = raw_input()
  564.     if "sharpen the sword" in next:
  565.         print "You're an idiot. You try to sharpen the sword but you accidentaly cut your head off."
  566.         die("LOL'D")
  567.     elif "go back" in next:
  568.         print "Smart decision."
  569.         start(False)  
  570.     elif "flee" in next:
  571.  
  572.         print "Seriously? Okay.."
  573.  
  574.         start(False)
  575.  
  576.     elif suicide in next:
  577.  
  578.         print "As you wish."
  579.  
  580.         die("You commited a suicide!")
  581.  
  582.     else:
  583.  
  584.         print "I don't understand you!"
  585.         start(False)  
  586.  
  587. def die(message):
  588.     global name
  589.     print """
  590. |-------------|
  591. |             |
  592. |      |      |
  593. |    --|--    |
  594. |      |      |
  595. |      |      |
  596. |    R.I.P.   |
  597. |             |
  598. |-------------|
  599. %s, %s""" %(name, message)
  600.     exit(0)
  601.  
  602. def start(first):
  603.     global name
  604.     if first:
  605.         print "Hello Stranger! My name is Jospeh and I'm your guide. I will help you find your way out of here."
  606.         print "Trust me, I'm an engineer. Please remember to type the decisions exactly as given."
  607.         print "What's your name?"
  608.         name = raw_input("> ")
  609.     print "There are 3 doors in the room. One on the right, one in front of you, and one on the left."
  610.     print "Which one do you want to take? [right/opposite/left]"
  611.     next = raw_input("> ")
  612.     if "left" in next:
  613.         spider_room()
  614.     elif "right" in next:
  615.         eric_room()
  616.     elif "opposite" in next:
  617.         corridor1_room()
  618.     else:
  619.         print "Bye!"
  620.         exit(0)
  621.  
  622. start(True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement