Advertisement
gdoria21

Untitled

May 22nd, 2019
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.14 KB | None | 0 0
  1. import random
  2. def battlesimulator3(n,b):
  3. pokemon1health = 50
  4. pokemon2health = 50
  5. Random = random.randint(15, 20)
  6. Random2 = random.randint(5, 10)
  7. enemyrandom = random.randint(15,20)
  8. enemyrandom2 = random.randint(5,20)
  9. print "Jr.Trainer: Stop right there. I'm challenging you!"
  10. while pokemon1health or pokemon2health <= 0:
  11. print n,'(your pokemon) has',pokemon1health,'health and',b,'(enemy pokemon) has',pokemon2health,'health'
  12. print 'will you attack, heal, or switch poekmon?(attack, heal, switch)'
  13. battlesimulatorchoice1 = raw_input()
  14. if battlesimulatorchoice1 == 'attack':
  15. pokemon2health = pokemon2health - Random
  16. print 'you hit',b,'for ',Random,' health!'
  17. elif battlesimulatorchoice1 == 'heal':
  18. pokemon1health = pokemon1health + Random2
  19. print 'you healed for ',Random2,' health!'
  20. elif battlesimulatorchoice1 == 'switch':
  21. print 'Which Pokemon do you want to use?(Charizard, Pikachu, Victorybell, or Goldduck)'
  22. battlesimulatorchoice2 = raw_input()
  23. n = battlesimulatorchoice2
  24. pokemon1health = 50
  25. else:
  26. print 'this is not an option'
  27. if pokemon2health <= 0:
  28. print 'You win!',b,'has fainted!'
  29. exit()
  30. break
  31. battlesimulatorenemymove = random.choice(['attacked','healed','attacked'])
  32. if battlesimulatorenemymove == 'attacked':
  33. pokemon1health = pokemon1health - enemyrandom
  34. print b,'hit you for ',enemyrandom,' health!'
  35. elif battlesimulatorenemymove == 'healed':
  36. pokemon2health = pokemon2health + enemyrandom2
  37. print b,'healed for ',enemyrandom2,' health!'
  38. if pokemon1health <= 0:
  39. print 'you lose! your pokemon fainted!'
  40. exit()
  41. break
  42. def battlesimulator(n,b):
  43. pokemon1health = 50
  44. pokemon2health = 50
  45. Random = random.randint(15, 20)
  46. Random2 = random.randint(5, 10)
  47. enemyrandom = random.randint(15,20)
  48. enemyrandom2 = random.randint(5,20)
  49. while pokemon1health or pokemon2health <= 0:
  50. print n,'(your pokemon) has',pokemon1health,'health and',b,'(enemy pokemon) has',pokemon2health,'health'
  51. print 'will you attack, heal, or switch poekmon?(attack, heal, switch)'
  52. battlesimulatorchoice1 = raw_input()
  53. if battlesimulatorchoice1 == 'attack':
  54. pokemon2health = pokemon2health - Random
  55. print 'you hit',b,'for ',Random,' health!'
  56. elif battlesimulatorchoice1 == 'heal':
  57. pokemon1health = pokemon1health + Random2
  58. print 'you healed for ',Random2,' health!'
  59. elif battlesimulatorchoice1 == 'switch':
  60. print 'Which Pokemon do you want to use?(Charizard, Pikachu, Victreebel, or Golduck)'
  61. battlesimulatorchoice2 = raw_input()
  62. n = battlesimulatorchoice2
  63. pokemon1health = 50
  64. else:
  65. print 'this is not an option'
  66. if pokemon2health <= 0:
  67. print 'You win!',b,'has fainted!'
  68. break
  69. battlesimulatorenemymove = random.choice(['attacked','healed','attacked', 'switch'])
  70. if battlesimulatorenemymove == 'attacked':
  71. pokemon1health = pokemon1health - enemyrandom
  72. print b,'hit you for ',enemyrandom,' health!'
  73. elif battlesimulatorenemymove == 'healed':
  74. pokemon2health = pokemon2health + enemyrandom2
  75. print b,'healed for ',enemyrandom2,' health!'
  76. elif battlesimulatorenemymove == 'switch':
  77. b = random.choice([enemy_names])
  78. print "The opponent has switched his Pokemon out with", b
  79. if pokemon1health <= 0:
  80. print 'you lose! your pokemon fainted!'
  81. break
  82.  
  83. def pokemon_tower():
  84. print "You enter the lobby Pokemon Tower you have to get to the last floor in order to get the Poke Flute"
  85. print "You walk up the stairs to the second floor of the Tower"
  86. print "The room is quiet and on your right side you see a Channeler! You must fight"#fight battle
  87. enemy_names = {
  88. 1 : 'Gastly'
  89. }
  90. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  91. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  92. battlesimulator(n, b)
  93.  
  94. print "You have Won! You go up the stairwell in order to get the Poke Flute which is on the top floor."
  95. print "Another Channeler approaches and gets into battle position. You also get into battle position."
  96. enemy_names = {
  97. 1 : 'Gastly',
  98. 2 : 'Gastly'
  99. }
  100. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  101. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  102. battlesimulator(n, b)
  103.  
  104. print "After beating Channeler you must go up the stairwell on the right."
  105. print "Another Channeler shows up and you must fight"
  106. enemy_names = {
  107. 1 : 'Haunter'
  108. }
  109. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  110. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  111. battlesimulator(n, b)
  112.  
  113. print "After going up another stairwell you see a Rocket Trainer who is taunting you to fight so you get into a battle position."
  114. enemy_names = {
  115. 1 : 'Zubat',
  116. 2 : 'Zubat',
  117. 3: 'Golbat'
  118. }
  119. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  120. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  121. battlesimulator(n, b)
  122.  
  123. print "You beat the Rocket Trainer! But there are two more floors in order to get the Poke Flute."
  124. print "After you climb the stairs another Rocket Trainer appears. The fight begins!"
  125. enemy_names = {
  126. 1 : 'Zubat',
  127. 2 : 'Rattata',
  128. 3 : 'Raticate',
  129. 4 : 'Zubat'
  130. }
  131. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  132. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  133. battlesimulator(n, b)
  134.  
  135. print "You beat him you climb the stairs to the final floor where a ghost attacks and the Silph Scope activates, revealing a level 30 Marowak. It may look like a great addition to your team, but this spirit can't be caught, so all you can do is defeat it. Once the battle is over, the mother Marowak's spirit is calmed and departs to the afterlife, finally able to rest in peace. Take the stairs to the top floor... right into a group of Rockets."
  136. print "After they run off, you talk to Mr. Fuji and he takes you to his home at the foot of the tower."
  137. print "Mr. Fuji takes you to his house right outside Pokemon Tower and gives you the Poke Flute which lets awake sleeping Pokemon"
  138. print "Congratulations you have beaten the game!"
  139.  
  140. def battle3():
  141. print "You have found another key that a trainer dropped. Would you like to pick it up? (Yes, No)"
  142. if raw_input() == 'Yes':
  143. print "You take the key and put it in your pocket"
  144. else:
  145. print "You are forced to pick up the key in order to continue"
  146. print "Down the hall you see an elevator and you use the key you just picked up to open it. You enter and go up the elevator"
  147. print "There you see the the leader of the Rocket Gang Giovanni!"
  148. print "You must fight him in order to get into Pokemon Tower"
  149. enemy_names = {
  150. 1 : 'Onix',
  151. 2 : 'Rhyhorn',
  152. 3 : 'Kangaskhan'
  153. }
  154. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  155. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  156. battlesimulator(n, b)
  157. print "You beat Giovanni and pick up the Silph Scope! You see an elevator and go up to the first floor of Pokemon Tower"
  158. pokemon_tower()
  159.  
  160. def battle2():
  161. print "On the right side of the hallaway you see an elebvator and open it with the key you picked up. You go up the stairwell."
  162. print "You see a trianer on the otherside of the hall when leaving the elevator and he apporaches you to fight and you get into battle stance"
  163. enemy_names = {
  164. 1 : 'Ekans',
  165. 2 : 'Sandshrew',
  166. 3 : 'Arbok'
  167. }
  168. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  169. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  170. battlesimulator(n, b)
  171. battle3()
  172.  
  173.  
  174. def battle1():
  175. print "You see a stairwell on the left and you go up it"
  176. print "As you enter the room a trainer pops out and scares you! You must fight him in order to advance!"
  177. enemy_names = {
  178. 1 : 'Grimmer',
  179. 2 : 'Koffing'
  180. }
  181. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  182. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  183. battlesimulator(n, b)
  184. battle2()
  185.  
  186.  
  187. def Rocket_Hideout():
  188. print "You have entered Rocket Hideout!"
  189. print "You head straight down the hall. There you see a Rocket Trainer. You have to Fight Him"
  190. enemy_names = {
  191. 1 : 'Drowzee',
  192. 2 : 'Machop'
  193. }
  194. b = random.choice(enemy_names)#This makees it so the enemy chooses a random pokemon to start the battle
  195. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  196. battlesimulator(n, b)
  197. print "You have find a key that the trainer dropped. Would you like to pick it up? (Yes, No)"
  198. if raw_input() == 'Yes':
  199. print "You take the key and put it in your pocket"
  200. battle1()
  201. else:
  202. print "You are forced to pick up the key in order to continue"
  203. battle1()
  204.  
  205.  
  206.  
  207.  
  208. def Celadon():
  209. trainer_one = 'Lass'
  210. trainer_two = 'Beauty'
  211. trainer_three = 'Jr. Trainer'
  212. trainer_four = 'Cooltrainer'
  213. trainers_in_gym = trainer_one, trainer_two, trainer_three, trainer_four
  214. leader = 'Erika'
  215. option = raw_input("You are walking toward the Celadon City Gym door. Do you wish to proceed?")
  216. if option == 'yes':
  217. print "Welcome to the the Celadon City Pokemon Gym."
  218. elif option == 'no':
  219. print "See you soon."
  220. else:
  221. print "Please choose an answer."
  222. print "The leader of this gym is %s, the Natural Loving Princess."%leader
  223. print "You continue and you notice two trainers of the gym."
  224. path_left = trainer_one
  225. path_right = trainer_two
  226. path_option = raw_input("Choose your path: path 1 or path 2?")
  227. if path_option == 'path1':
  228. print "You have came across %s. "%path_left
  229. if path_option == '1':
  230. print"You have came across %s. "%path_left
  231. if path_option == 'path2':
  232. print "You have came across %s. "%path_right
  233. if path_option == '2':
  234. print "You have came across %s. "%path_right
  235. #battle scene is about to begin
  236. print "She says, 'Hey! You are not allowed in here! Let's battle!'"
  237. enemy_names = {
  238. 1 : 'Victreebel',
  239. 2 : 'Vileplume',
  240. 3 : 'Tangela'
  241. }
  242. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Goldduck)")
  243. battlesimulator(n, enemy_names)
  244. Rocket_Hideout()
  245.  
  246.  
  247.  
  248.  
  249. def route7():
  250. entry_celadon2 = raw_input("Move through here to Celadon City > 'continue' ")
  251. if entry_celadon2 == 'continue':
  252. print "You begin to enter Celadon City!"
  253. Celadon()
  254.  
  255. def route8():
  256. entry_celadon1 = raw_input("Move through here to Celadon City > 'continue' ")
  257. if entry_celadon1 == 'continue':
  258. print "You begin to enter celadon city!"
  259. Celadon()
  260.  
  261.  
  262. def lavander_town():
  263. print "Lavander Town is full of people and things to do."
  264. shop = raw_input("Would you like to enter the shop? >'yes' >'no'")
  265. if shop == 'yes':
  266. print "you enter the shop and are imediately greeted by a clerk."
  267. antidote = raw_input("Would you like to buy a potion? >'yes' >'no'")
  268. if antidote == 'yes':
  269. print "you have received the potion and have exited the building."
  270. elif antidote == 'no':
  271. print "You exit the store with nothing."
  272. elif shop == 'no':
  273. print "you answer no and continue going about your day."
  274. print "You head into Mr. Fuji's house and it appears that he is not there. Someone who is standing outside of his house says that he has been taken by some ghost type pokemon and has been brought to the pokemon tower."
  275. print "You decide to hold off on that battle till later."
  276. next1 = raw_input("Route 8- 'continue 8', or Route 7- 'continue 7' ")
  277. if next1 == 'continue 8':
  278. route8()
  279. elif next1 == 'continue 7':
  280. route7()
  281.  
  282.  
  283. def route10():
  284. path = raw_input("You enter route 10 and it's beautiful, but there are two ways to go. 'straight', or take the 'eastern' path!")
  285. if path == 'straight':
  286. print "You head forward and run directly into a Jr. Trainer!"
  287. print "She says, 'Let's battle!' "
  288. #Enter batte Code Here ***********************
  289. print "You continue on your journey and can finally see the sign for Lavander Town!"
  290. lavander_town()
  291. elif path == 'eastern':
  292. print "You head down the eastern path and make it through safely without any trouble."
  293. print "A small sign is up ahead. It reads, 'Lavander Town' "
  294. lavander_town()
  295.  
  296.  
  297. def stairs1():
  298. stairs1 = raw_input("There is a small set of stairs that seem to be the correct direction. type > 'continue' >")
  299. if stairs1 == 'continue':
  300. print "After heading down the stairs, there is hiker and he wants to battle!!!"
  301. #Enter battle code Right Here * * * * * * * * * * * * *
  302. print "You make your way out of the tunnel. The daylight hurts your eyes because you were without it for so long!"
  303. route10()
  304. else:
  305. print "That is not an option!"
  306. stairs1()
  307.  
  308. def rock_tunnel():
  309. print "You enter the rock tunnel and it is rather hard to see through the dust and fog."
  310. stairs1()
  311. #Gambler Battle
  312.  
  313. def Cerulean():
  314. print "Welcome to Cerulean city"
  315. print
  316. print "There are a lot of places to visit in Cerulean City"
  317. print "First let's visit the bike shop"
  318. print "Type 'bike' to enter"
  319. bike = raw_input()
  320. if bike == "bike":
  321. print "Welcome to the bike shop"
  322. print "Owner: Hey there! Just wanted to let you know that a bike is a great way to travel around"
  323. print "Would you like to buy a bike?"
  324. buy = raw_input()
  325. if buy == "yes":
  326. print "Bike has been added to your items"
  327. print "Owner: Thank you for purchasing a bike. Hope you can find great use to ride around the city."
  328. print "type 'exit bike' to leave the shop"
  329. bike_exit = raw_input()
  330. if bike_exit == "exit bike":
  331. print "You have exited the bike shop."
  332. print "Visit the gym"
  333. print "type 'gym'"
  334. gym = raw_input()
  335. if gym == "gym":
  336. print "Welcome to Cerulean city gym"
  337. print "Misty: So you want the badge you will have to go through me first"
  338. print "You have defeated her"
  339. print "You have earned the Cascade Badge"
  340. print "You now leave Cerulean"
  341. rock_tunnel()
  342.  
  343.  
  344. def exit():
  345. print "Jr.Trainer: Good battle"
  346. print
  347. print "Type 'Cerulean'"
  348. lav = raw_input()
  349. if lav == 'Cerulean':
  350. Cerulean()
  351. else:
  352. print "that is not an option"
  353. enemy_names = "oddish"
  354. #battle function
  355.  
  356. def Pewtercity():
  357. print "Welcome to Pewter city"
  358. print "There are a lot places to go"
  359. print "First go to the musuem"
  360. print "type 'musuem' to go inside"
  361. musuem = raw_input()
  362. if musuem == "musuem":
  363. print "There are a lot of artifacts like the fossils of rare pokemon. type 'explore' to explore the museum."
  364. explore1 = raw_input()
  365. if explore1 == "explore":
  366. print "Scientist: Hello you interested in Pokemon." #similar to the last game we made gave the user the option to say yes and no with different outcomes.
  367. print "type 'yes' or 'no'"
  368. yes = raw_input()
  369. if yes == "yes":
  370. print "Scientist: Well since your a fan. Have this Old Amber"
  371. elif yes == "no":
  372. print "Sceintist: Well it's never too late"
  373. print "type 'exit' to leave the museum"
  374. mus_ex = raw_input()
  375. if mus_ex == "exit":
  376. print "You exited the musuem"
  377. print "You can always revisit this city if you need any help"
  378. print "To continue you poke journey. type 'continue' to go to route 9"
  379. con1 = raw_input()
  380. if con1 == "continue":
  381. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  382. battlesimulator3(n,enemy_names)
  383.  
  384. def route2():
  385. print "You found the entrance to route 2."
  386. print
  387. print "There are a lot of things in this forest."
  388. print
  389. print "type 'search' to find out what is on route 2"
  390. route2 = raw_input() #This allows the player to type in the command and continue the story
  391. if route2 == "search":
  392. print "Good Job! you found HP up"
  393. print "The HP up has been added to your bag"
  394. print "There is still a lot to explore"
  395. print
  396. print "type explore to find more items to help you a long the way"
  397. exlpore = raw_input()
  398. if exlpore == "explore":
  399. print "Good job! You found found a moon stone"
  400. print
  401. print "The moon stone has been added to your bag"
  402. print "To continue on your adventure. You must go to Pewter city. Type 'continue' to go to Pewter city"
  403. con = raw_input()
  404. if con == "continue":
  405. Pewtercity()
  406.  
  407.  
  408. def engine():
  409. import random
  410. enemy_names = {
  411. 1 : 'Poliwag'
  412. }
  413.  
  414.  
  415. print ""
  416. print ""
  417. print "You encounter an engineer!"
  418. print ""
  419. print ""
  420. print "Engineer: I challenge you!"
  421. print ""
  422. print ""
  423. b = enemy_names#This makees it so the enemy chooses a random pokemon to start the battle
  424. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  425. battlesimulator(n, b)
  426. print "You continue through the road"
  427. print ""
  428. print ""
  429. print "A sleeping pokemon blocks the way!"
  430. print ""
  431. print ""
  432. print "let's keep going!"
  433. route2()
  434.  
  435. def happy():
  436. print "You are walking through route 11"
  437. print ""
  438. print ""
  439. print "Something is moving along the grass!"
  440. print ""
  441. print ""
  442. print "A Gambler pops out! He wants to fight!"
  443. print ""
  444. print ""
  445.  
  446. import random
  447.  
  448. enemy_names = {
  449. 1 : 'Pikachu',
  450. 2 : 'Golduck'
  451. }
  452.  
  453. b = random.choice(enemy_names)
  454. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  455. battlesimulator(n, b)
  456.  
  457.  
  458. print ""
  459. print ""
  460. print "You keep walking along the grass"
  461. print ""
  462. print ""
  463. print "*grass moves*"
  464. print ""
  465. print ""
  466. print "Youngster: Hey! Let's fight!"
  467. print ""
  468. b = random.choice(enemy_names)
  469. n = raw_input("Choose a Pokemon to start the fight - (Charizard) (Victreebel) (Pikachu) (Golduck)")
  470. battlesimulator(n, b)
  471. engine()
  472.  
  473.  
  474.  
  475. happy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement