Advertisement
liamwazhere

EAGLE

Apr 10th, 2012
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.96 KB | None | 0 0
  1. import sys
  2.  
  3. def roomCA(key, life, door_open, roomBA, roomDA):
  4.  
  5.    
  6.     if 0 == door_open:
  7.         print """You are in a vast hallway, pillars depicting howling beast and flying serpents reach to the shady ceiling. Light pierces through the window to where you stand. You see three doors, one east, one west, and one north which is locked."""
  8.    
  9.     else:
  10.         print """You are in a vast hallway, pillars depicting howling beast and flying serpents reach to the shady ceiling. Light pierces through the window to where you stand. You see three doors, one east, one west, and one north which is locked."""
  11.    
  12.     direc = raw_input('> ')
  13.    
  14.     if 'west' in direc:
  15.         print "You walk through a cobweb filled hall.\n"
  16.         roomBA(key, life, door_open, roomBA, roomDA)
  17.    
  18.     elif 'west' in direc and roomAB == '0':
  19.         print " There is no need to go there again!\n"
  20.         roomCA(key, life, door_open, roomBA, roomDA)
  21.    
  22.    
  23.     elif 'east' in direc:
  24.         print "You walk through a cobweb filled hall.\n"
  25.         roomDA(key, life, door_open, roomBA, roomDA)
  26.        
  27.     elif 'east' in direc and roomDA == 0:
  28.         print " There is no need to go there again!\n"
  29.         roomCA(key, life, door_open, roomBA, roomDA)
  30.    
  31.     elif 'north' in direc and key >= 1:
  32.         print " You unlock the door, losing the key and go down a long staircase."
  33.         key -= 1
  34.         roomCB(key, life, 1)
  35.         # There is no need to put the other values in for I will make it so one cannot come back to CA
  36.     elif 'north' in direc and key == 0:
  37.         print "You aproach a moss covered wooden door, in strugling to open is you realize it is locked."
  38.         roomCA(key, life, door_open, roomBA, roomDA)
  39.    
  40.     else:
  41.         print "The stone pillars glare into your indecisive soul."
  42.         roomBA(key, life, door_open, roomBA, roomDA)
  43.  
  44.  
  45.  
  46.  
  47. def roomBA(key, life, door_open, roomBA, roomDA):
  48.     print "Keese are flying around you hissing and sitting on the perches of boarded windows in a cold cramped room."
  49.    
  50.     direc = raw_input('1. fight keese\n2. go east\n> ')
  51.    
  52.     if direc == '1' or direc == 'fight keese':
  53.    
  54.         direc = raw_input('\n1. swing sword\n 2. block\n> ')
  55.        
  56.         if direc == '1' or direct == 'swing sword':
  57.             life -=1
  58.             key +=1
  59.             print " You killed the keese, and gained a key! But you lost a heart. Time to go back to the last room."
  60.             roomCA(key, life, door_open, 1, roomDA)
  61.        
  62.         elif direct == '2' or direc == 'block':
  63.             key += 1
  64.             print " You blocked and then killed the keese! You gained a key, so you return to the last room."
  65.             roomCA(key, life, door_open, 1, roomDA)    
  66.            
  67.         else:
  68.             ganon('The keese kill you')
  69.    
  70.     elif direc == '2' or direc == 'go east':
  71.         roomCA(key, life, door_open, roomBA, roomDA)
  72.        
  73.     else:
  74.         ganon('The keese kill you')
  75.        
  76.        
  77.  
  78.  
  79.  
  80. def roomDA(key, life, door_open, roomBA, roomDA):
  81.     print "Stalfoses, warriors made of bone, lurk between large pillars is a short room, you crouch so you can fit."
  82.    
  83.     direc = raw_input('1. sneak\n2. attack\n> ')
  84.                
  85.     if direc == '1' or direc == 'sneak':
  86.    
  87.         direc = raw_input('1. left\n2. right\n> ')
  88.        
  89.         if direc  == '1' or direc == 'left':
  90.             life -=1
  91.             key +=1
  92.             print "You stumble into a pot, the crashing noise springs an attack from your back. You take damage but are able to fight the monster off recieving a key, you walk out of the room."
  93.             roomCA(key, life, door_open, roomBA, 1)    
  94.        
  95.         elif direc == '2' or direc == 'right':
  96.             key += 1
  97.             print " You jump on a unsuspecting Stalfose, it throws you to the ground. As it raises his sword to slice you, you kick it's legs from underneath him. He falls to the ground, you get up cut the sword out of its hand and kick his skull off. It drops a key and you make your way back to the last room."
  98.             roomCA(key, life, door_open, roomBA, 1)
  99.          
  100.         else:
  101.             ganon('You stumble into a stalfose who cuts you down.')
  102.          
  103.            
  104.     elif direc == '2' or direc == 'attack':
  105.         key +=1
  106.         print "You confront a Stalfose, it grits it's teeth and swings it's sword. Blocking upward, you swing to the side taking off it's arm. It swings again, prepared you sheild bash the foe knocking it to the ground and breaking the bonfd of the spell that keeps it together. You retreive a key and return to the last room."
  107.         roomCA(key, life, door_open, roomBA, 1)
  108.        
  109.     else:
  110.         ganon('You stumble into a stalfose who cuts you down.')    
  111.  
  112.  
  113.  
  114.  
  115.  
  116. def ganon(strg):
  117.     print strg, ", I guess Ganon is happy."
  118.     exit(0)
  119.    
  120.    
  121.    
  122.    
  123.    
  124.    
  125. # Lets start the game
  126. key = 0
  127. life = 3
  128. door_open = 0
  129. roomBA = 0
  130. roomDA = 0
  131.  
  132. roomCA(key, life, door_open, roomBA, roomDA)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement