Advertisement
Guest User

Untitled

a guest
Jul 28th, 2012
3,318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. prof = 'OAK'
  2. prompt = '>'
  3. roadChoice = 'lab'
  4. labChoice = 'na'
  5. bourChoice = 'na'
  6. map = 'n'
  7. scientist = 'scientist'
  8. pidgy2 = 'f'
  9. pidgy = "pidgy"
  10. pikachu = "pikachu"
  11.  
  12. class Pokemon(object):
  13. sName = "pidgy"
  14. nAttack = 5
  15. nHealth = 10
  16. nEvasion = 1
  17.  
  18.  
  19. def __init__(self, name, atk, hp, evd):
  20. self.sName = name
  21. self.nAttack = atk
  22. self.nHealth = hp
  23. self.nEvasion = evd
  24.  
  25.  
  26. def fight(target, self):
  27. target.nHealth - self.nAttack
  28.  
  29.  
  30.  
  31. def battle():
  32. print "A wild appeared"
  33. #pikachu = Pokemon("Pikafaggot", 18, 80, 21)
  34. pidgy = Pokemon("Pidgy", 18, 80, 21)
  35. pidgy.fight(pikachu)
  36. #pikachu.fight(pidgy)
  37.  
  38. def road():
  39. global readChoice
  40. print "where too? lab, neighbour, grass, home?"
  41. roadChoice = raw_input(prompt)
  42. if roadChoice == 'lab':
  43. lab()
  44. elif roadChoice == 'bour':
  45. bour()
  46. elif roadChoice == 'grass':
  47. battle()
  48. else:
  49. print "say again? Lab, neighbour, grass, home?"
  50. road()
  51.  
  52. def lab():
  53. global labChoice
  54. print "%r: Hello how can I help you?" %scientist
  55. labChoice = raw_input(prompt)
  56. if labChoice == 'no':
  57. road()
  58. elif labChoice =='oak':
  59. print "%r: Oh! You must be %r! You are here to see %r! Right this way!" %(scientist, name, prof)
  60. grab()
  61. else:
  62. print"huh? Say again?"
  63. lab()
  64.  
  65. def grab():
  66. global pidgy
  67. if pidgy2 == 'na':
  68. print "OAK: Hello there %r! Here to get your first pokemon it seems!" %name
  69. print "%r: Well, %r sorta' took all the POKEMON, so here is a Pidgey!" %(prof, name)
  70. print "%r Obtained a Pidgey!" %name
  71. print "%r: 'igh peace nigga" %prof
  72. pidgy = 'y'
  73. road()
  74. else:
  75. print "%r: How is the Pidgey doing %r?" %(prof, name)
  76. print "%r: you should go to Veridian city and pick up some shit for me" %prof
  77. road()
  78.  
  79.  
  80.  
  81. def bour():
  82. global map
  83. global bourChoice
  84. if map == 'n':
  85. print "oh, hello! How can I help you? Do you need a map?"
  86. bourChoice = raw_input(prompt)
  87. else:
  88. print "What else do you need?"
  89. bourChoice = raw_input(prompt)
  90. if bourChoice == "yes":
  91. print "oh! Well here is a map! don't tell %r" %rival
  92. print "You have obtained a map!"
  93. map = 'y'
  94. bour()
  95. elif bourChoice == "no":
  96. print "fine fuck off"
  97. road()
  98. else:
  99. print "huh? Say again."
  100. bour()
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. print "%r: Hello there! Welcome to the world of POKEMON!" %prof
  109. print "My name is %r! People call me the POKEMON PROF!" %prof
  110.  
  111. print "%r:This world is inhabited by creatures called POKEMON! For some" %prof
  112. print "people, POKEMON are pets. Others use them for fights. Myself..."
  113. print "I study POKEMON as a profession. "
  114.  
  115. print "%r: First, what is your name?" %prof
  116. name = raw_input(prompt)
  117. print "%r: Right! So your name is %r" %(prof, name)
  118.  
  119. print "%r: This is my grandson. He's been your rival since you were a baby." %prof
  120. print "...Erm, what is his name again?"
  121. rival = raw_input(prompt)
  122. print "%r That's right! I remember now! His name is %r" %(prof, rival)
  123.  
  124. print "%r: %r Your very own POKEMON legend is about to unfold! A world of dreams and adventures with POKEMON awaits! Let's go!" %(prof, name)
  125. road()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement