repl.it
@MetaMan/

Pokemon Adventure Game

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
import time
import sys
stageOne = 255
stageTwo = 120
stageThree = 45
noEvo = 120
chance = 0.05
print 'Before you start the game, a quick notice.'
time.sleep(3)
print 'If the text gets too much, just click the little arrow in the upper right hand corner of the text box and the text will clear, with the code running like normal.'
time.sleep(5)
print 'In order for the game to work, when the game asks you to make a choice, you must type it in EXACTLY as it asks you to, with no numbers unless asked.'
time.sleep(5)
agree = raw_input('Do you agree? (type yes or no)')
if (agree == 'yes'):
	time.sleep(2)
	print 'You are recieving a call from the Tigora Region\'s own Proffesor Hawthorne!'
	time.sleep(3)
	print 'Hello! Hawthorne here! Its so nice to meet you at long last!'
	time.sleep(3)
	print 'I heard from your folks you\'ve been into Pokemon since you were little.'
	time.sleep(3)
	knowPokemon = raw_input('Do you know what Pokemon are?')
	knowPokemon = knowPokemon.lower()
	time.sleep(2)
	if (knowPokemon == 'yes'):
		print 'Great! I knew you would!'
		time.sleep(2)
	if (knowPokemon == 'no'):
		print 'That\'s okay! Pokemon is short for Pocket Monsters. They are creatures that inhabit this Earth in enourmous numbers. Some people use them as pets, while others travel and battle with them. The latter is called a Pokemon Trainer.'
		time.sleep(7)
	print 'Before you arrive in the beautiful Tigora Region, I need a few pieces of information to put on your trainer card.'
	time.sleep(2)
	print 'First, what is your name?'
	time.sleep(1)
	name = raw_input('Please input your name')
	print 'Got it, your name is ' + name + '.'
	time.sleep(2)
	print name + '! What a wonderful and invigorating name! Makes me want to just get up and challenge the nearest person to a Pokemon Battle!'
	time.sleep(4)
	print 'okay ' + name + '. Next I need your gender'
	time.sleep(1)
	gender = raw_input('please input your gender as either boy or girl')
	time.sleep(1)
	gender = gender.lower()
	print 'So you\'re a ' + gender + '.'
	time.sleep(1)
	print 'Alright! That should do it. So you\'re a ' + gender + ' and you\'re name is ' + name + '. And since you\'re starting out on your Pokemon journey, you must be 11 years old.'
	time.sleep(5)
	print 'Alright ' + name + ', I can\'t wait to see you when you get here. Hawthorne signing off!'
	time.sleep(4)
	print 'one week later...'
	time.sleep(5)
	print 'Mom: Honey! Wake up! There\'s someone here to see you!'
	time.sleep(3)
	wakeup = raw_input('do you want to get up? (yes or no)')
	time.sleep(2)
	if (wakeup == 'yes'):
		print 'You get out of bed and go to answer the door.'
	if (wakeup == 'no'):
		print name + ': FIVE MORE MINUTES MOM!'
		time.sleep(2)
		print 'Mom: ' + name + ', get your lazy butt out here right now!'
		time.sleep(3)
		print 'You wearily get out of bed and go to answer the door.'
	time.sleep(3)
	print 'The person at the door is none other than Proffesor Hawthorne!'
	time.sleep(3)
	print 'Hawthorne: ' + name + '! So good to finally see you in person!'
	time.sleep(2)
	print 'Now before you go out on your great Pokemon Adventure, you might want to get dressed.'
	time.sleep(3)
	print 'You go to your room and get dressed.'
	time.sleep(2)
	print 'Mom: Great! Oh you\'re such a handsome ' + gender + ' when you dress like that.'
	time.sleep(2)
	if (gender == 'boy'):
		print 'You\'re almost ready to go out on your adventure. You\'re just missing you\'re backpack. Why don\'t you go and get it?'
		time.sleep(4)
	print 'You go and grab your backpack from your closet and meet Proffesor Hawthorne out front.'
	if (gender == 'girl'):
		print 'You\'re almost ready to go out on your adventure. You\'re just missing you\'re handbag. Why don\'t you go and get it?'
		time.sleep(4)
		print 'You go and grab your handbag from your bedside table and meet Proffesor Hawthorne out front.'
	time.sleep(3.5)
	bagslot1 = 'none'
	bagslot2 = 'none'
	bagslot3 = 'none'
	bagslot4 = 'none'
	bagslot5 = 'none'
	bagslot6 = 'none'
	bagslot7 = 'none'
	bagslot8 = 'none'
	bagslot9 = 'none'
	bagslot10 = 'none'
	print 'Hawthorne: Great! You\'re all set. Let\'s go.'
	time.sleep(2)
	print 'First we will go to Route 1, which is just south of your house. That\'s where I will teach you to catch Pokemon.'
	time.sleep(3.5)
	print 'You and the Proffesor arrive at Route 1'
	time.sleep(2)
	print 'The Proffesor pulls out a Pokeball and hands it to you.'
	time.sleep(2.5)
	print 'Hawthorne: This is a Pokeball. It is where your Pokemon that you don\'t want out will hang around until you need them.'
	time.sleep(3.5)
	print 'You can also use Pokeballs to catch Pokemon. You simply throw the Pokeball at the Pokemon and the Pokeball will do the rest.'
	time.sleep(4)
	print 'There are many different types of Pokemon. But all Pokemon fall into a specific type category.'
	time.sleep(2.5)
	print 'The types, in alphabetical order, are Bug, Dark, Dragon, Electric, Fairy, Fighting, Fire, Flying, Ghost, Grass, Ground, Ice, Normal, Poison, Psychic, Rock, Steel, and Water.'
	time.sleep(5.75)
	print 'I have three Pokemon here for you to choose from to be your partner for your journey.'
	time.sleep(2)
	print 'Well actually I will give you one Pokemon and you can evolve it into one of three different Pokemon.'
	time.sleep(2)
	print 'Here. Its name is Eevee. It can evolve into a Vaporeon(1), a Water Type, with the Water Stone, Jolteon(2), an Electric Type, with the Thunder Stone, and Flareon(3), a Fire Type, with the Fire Stone.'
	time.sleep(6)
	starterChoice = raw_input(
	    'Type the number corresponding to the evolution you pick.(1, 2, or 3)')
	if (starterChoice == '1'):
		starter = 'Vaporeon'
	if (starterChoice == '2'):
		starter = 'Jolteon'
	if (starterChoice == '3'):
		starter = 'Flareon'
	print name + ' obtained an Eevee!'
	pokemon1 = 'Eevee'
	pokemon1Level = 5
	pokemon2 = 'none'
	pokemon2Level = 0
	pokemon3 = 'none'
	pokemon3Level = 0
	pokemon4 = 'none'
	pokemon4Level = 0
	pokemon5 = 'none'
	pokemon5Level = 0
	pokemon6 = 'none'
	pokemon6Level = 0
	time.sleep(1)
	print 'Hawthorne: Ah! ' + starter + '. I was always fond of that one.'
	time.sleep(1.5)
	if (starterChoice == '1'):
		stone = 'Water'
	if (starterChoice == '2'):
		stone = 'Thunder'
	if (starterChoice == '3'):
		stone = 'Fire'
	print 'Hawthorne: So I will give you the ' + stone + ' stone...'
	time.sleep(4.6)
	print 'SUDDENLY, FROM OUT OF THE TREES...'
	time.sleep(4)
	print '???: Hand over the stones, Proffesor!'
	time.sleep(1.5)
	print '???: We of Team Chronos will steal the evolutionary stones to power our righteous mission!'
	time.sleep(3)
	print 'Hawthorne: That man is from Team Chronos. They\'re an evil organization bent of capturing the most powerful Pokemon in existence.'
	time.sleep(4.5)
	print 'Chronos Grunt: We may seem evil to you, but far from it! Now, Are you gonna hand over those stones or are we gonna have to do this the hard way?'
	time.sleep(4)
	print 'Hawthorne: Oh Dear! I don\'t have any Pokemon now that I gave you that Eevee. You will have to use it to protect me. Don\'t worry, I will coach you through battling.'
	time.sleep(5)
	print 'CHRONOS GRUNT WANTS TO BATTLE!'
	eeveeHealth = 20
	eeveeMaxHealth = 20
	opponentHealth = 20
	xpNeeded = 20
	eeveeXP = 0
	time.sleep(3)
	print 'Chronos Grunt: GO! Natu!'
	print name + ': GO! Eevee!'
	while (eeveeHealth > 0 and opponentHealth > 0):
		choice = raw_input(
		    'Eevee can use one of two moves: Tackle(1) and Growl(2) Please type the number of the attack you would like to use.'
		)
		if (choice == '1'):
			from random import randint
			tackleDamage = randint(5, 13)
			opponentHealth = opponentHealth - tackleDamage
			opponentTackleDamage = randint(5, 8)
			time.sleep(2)
			if (opponentHealth >= 0):
				print 'Eevee used Tackle. It did', tackleDamage, 'to opposing Natu, leaving it at', opponentHealth, 'health.'
			if (opponentHealth <= 0):
				print 'Eevee used Tackle. It did', tackleDamage, 'to opposing Natu, leaving it at 0 health. Natu Faints!'
				time.sleep(3)
				print 'Eevee gained 50 XP'
				eeveeXP = 50
				while (eeveeXP >= xpNeeded):
					time.sleep(2)
					pokemon1Level = pokemon1Level + 1
					print 'Level Up! Eevee reached level', pokemon1Level
					eeveeMaxHealth = eeveeMaxHealth + 2
					eeveeXP = eeveeXP - xpNeeded
					xpNeeded = xpNeeded * 1.5
				winyesno = 'true'
		if (choice == '2'):
			opponentTackleDamage = opponentTackleDamage - 2
			if (opponentTackleDamage <= 0):
				opponentTackleDamage = 1
			print 'Eevee used Growl! Natu\'s attack was reduced!'
		if (opponentHealth > 0):
			opponentMoveChoice = randint(0, 1)
			if (opponentMoveChoice == 1):
				eeveeHealth = eeveeHealth - opponentTackleDamage
				if (eeveeHealth > 0):
					print 'Natu used Tackle. It did', opponentTackleDamage, 'to opposing Eevee, leaving it at', eeveeHealth, 'health.'
				if (eeveeHealth <= 0):
					print 'Natu used Tackle. It did', opponentTackleDamage, 'to opposing Eevee, leaving it at 0 health. Eevee faints!'
					winyesno = 'false'
	if (winyesno == 'true'):
		print 'Chronos Grunt: Darn! You may have won the battle, but Team Chronos will win the war!'
		time.sleep(3)
		print 'Chronos Grunt: Now, time to make my escape!'
	if (winyesno == 'false'):
		print 'Chronos Grunt: HAHAHA! Stand aside, foolish boy! Your kind stand no chance against Team Chronos!'
	time.sleep(3)
	print 'The Chronos Grunt fled into the trees...'
	time.sleep(4)
	print 'Hawthorne: Thank You for saving me. Here\'s a little reward for your hard work.'
	time.sleep(3)
	print name + ' obtained 3000 pokedollars'
	money = 3000
	time.sleep(3)
	print 'Hawthorne: You have proved you are ready to embark on your Pokemon Adventure.'
	time.sleep(3)
	print 'Hawthorne: First I will give you some items you can use for your adventure.'
	time.sleep(3)
	print name + ' obtained 5 Pokeballs!'
	bagslot1 = 'Pokeballs'
  bagslot1amount = 5
	time.sleep(2)
	print name + ' put the Pokeballs in slot 1 of the bag.'
	time.sleep(2)
	print 'Hawthorne: And some Potions. You use Potions to restore your Pokemon\'s health. Here, I will heal that Eevee for you.'
	time.sleep(4)
	print 'Eevee was healed!'
	eeveeHealth = eeveeMaxHealth
	time.sleep(3)
	print name + ' put the Potions in slot 2 of the bag.'
	time.sleep(2)
	bagslot2 = 'Potions'
  bagslot2amount = 3
	print 'Hawthorne: Farewell, ' + name + '! I wish you great luck! You will want to head to Spellerburg City, the site of the first gym, the Normal Type Gym. The Gym Leader there, Crystal, will point you on your way.'
	time.sleep(6.5)
	while (choice != 'n'):
		choice = raw_input(
		    'You can either check your Pokemon(p), check your bag(b), or do neither(n)'
		)
		choice = choice.lower()
		time.sleep(3)
		if (choice == 'p'):
			print 'Pokemon 1: ' + pokemon1 + '. Level:', pokemon1Level
			print 'Pokemon 2: ' + pokemon2 + '. Level:', pokemon2Level
			print 'Pokemon 3: ' + pokemon3 + '. Level:', pokemon3Level
			print 'Pokemon 4: ' + pokemon4 + '. Level:', pokemon4Level
			print 'Pokemon 5: ' + pokemon5 + '. Level:', pokemon5Level
			print 'Pokemon 6: ' + pokemon6 + '. Level:', pokemon6Level
		if (choice == 'b'):
			print 'Bag Slot 1: ' + bagslot1 + ' Amount: ' + bagslot1amount
			print 'Bag Slot 2: ' + bagslot2 + ' Amount: ' + bagslot2amount
			print 'Bag Slot 3: ' + bagslot3 + ' Amount: ' + bagslot3amount
			print 'Bag Slot 4: ' + bagslot4 + ' Amount: ' + bagslot4amount
			print 'Bag Slot 5: ' + bagslot5 + ' Amount: ' + bagslot5amount
			print 'Bag Slot 6: ' + bagslot6 + ' Amount: ' + bagslot6amount
			print 'Bag Slot 7: ' + bagslot7 + ' Amount: ' + bagslot7amount
			print 'Bag Slot 8: ' + bagslot8 + ' Amount: ' + bagslot8amount
			print 'Bag Slot 9: ' + bagslot9 + ' Amount: ' + bagslot9amount
			print 'Bag Slot 10: ' + bagslot10 + ' Amount: ' + bagslot10amount
	print 'You say farewell to Hawthorne and head into the Route 2 forest.'
	time.sleep(3)
	print 'There are grass and bug pokemon everywhere. Ghost Pokemon hang around in the shadows around a beaten and winding road leading deeper into the forest. Flying Pokemon soar high overhead.'
	time.sleep(5)
	activePokemon = pokemon1
	while (choice != 'w'):
		choice = raw_input(
		    name +
		    ' can either attempt to catch Bug or Grass Pokemon(b), attempt to catch a Ghost Pokemon(g), attempt to catch a Flying Pokemon(f), or walk forward on the road(w). Enter the letter of the choice you make.'
		)
		choice = choice.lower()
		chance = 0.05
		if (choice == 'b'):
			randomNumber = randint(0, 2)
			if (randomNumber == 0):
				wildPokemon = 'Burmy'
				rate = stageOne
			if (randomNumber == 1):
				wildPokemon = 'Shuckle'
				rate = noEvo
			if (randomNumber == 2):
				wildPokemon = 'Sunkern'
				rate = stageOne
		if (choice == 'g'):
			randomNumber = randint(0, 2)
			if (randomNumber == 0):
				wildPokemon = 'Rotom'
				rate = noEvo
			if (randomNumber == 1):
				wildPokemon = 'Phantump'
				rate = stageTwo
			if (randomNumber == 2):
				wildPokemon = 'Gastly'
				rate = stageOne
		if (choice == 'f'):
			randomNumber = randint(0, 2)
			if (randomNumber == 0):
				wildPokemon = 'Hoppip'
				rate = stageOne
			if (randomNumber == 1):
				wildPokemon = 'Fletchling'
				rate = stageOne
			if (randomNumber == 2):
				wildPokemon = 'Yanma'
				rate = stageTwo
		randomNumber = randint(2, 5)
		wildPokemonLevel = randomNumber
		Extra = 1
		print 'A Wild Pokemon jumped out at you!'
		time.sleep(2)
		print 'GO! ' + pokemon1 + '!'
		time.sleep(2)
		print 'You are facing a wild ' + wildPokemon + ' at level', wildPokemonLevel
		escape = False
		while (escape != True):
			time.sleep(2)
			choice = raw_input(
			    'You can either (a)throw a Pokeball, (b)run, or (c)throw a rock. Type the letter corresponding to the choice you pick.'
			)
			choice = choice.lower()
			if (choice == 'b'):
				randomNumber = randint(0, 1)
				if (randomNumber == 0):
					escape = False
					print 'You failed to get away!'
				if (randomNumber == 1):
					escape = True
					print 'You escaped without harm!'
			if (choice == 'a'):
				equation = (rate * wildPokemonLevel * Extra) / 100
				equation = int(equation * chance)
				catchNumber = randint(0, equation)
				if (catchNumber == 1):
				  print 'Conglaturations! You caught the Pokemon!'
				  escape = True
				  if (pokemon2 == 'none'):
				    pokemon2 == wildPokemon
				  elif (pokemon2 != 'none'):
				    if (pokemon3 == 'none'):
				      pokemon3 = wildPokemon
				    elif (pokemon3 != 'none'):
				      if (pokemon4 == 'none'):
				        pokemon4 == wildPokemon
				      elif (pokemon4 != 'none'):
				        if (pokemon5 == 'none'):
				          pokemon5 == wildPokemon
				        elif (pokemon5 != 'none'):
				          if (pokemon6 == 'none'):
				            pokemon6 == wildPokemon
				          elif (pokemon6 != 'none'):
				            releaseNumber = raw_input ('Please choose a Pokemon to release from your party.(Type a 2,3,4,5,6)')
				            if (releaseNumber == '2'):
				              pokemon2 = wildPokemon
				            if (releaseNumber == '3'):
				              pokemon3 = wildPokemon
				            if (releaseNumber == '4'):
				              pokemon4 = wildPokemon
				            if (releaseNumber == '5'):
				              pokemon5 = wildPokemon
				            if (releaseNumber == '6'):
				              pokemon6 = wildPokemon
				else:
				  print 'The pokemon escaped!'
			if (choice == 'c'):
			  print name+' threw a rock! '+wildPokemon+' became enraged!'
			  chance = chance * 0.75
	print name+' walked deeper into the forest. The shadows grow longer and the calls of the bird pokemon grows fainter and farther away.'
	time.sleep(3)
	print 'Suddenly, as the shadows grow so long they seem to envelop '+name+', '+name+' breaks into a clearing. The sunshine shines bright on the roofs of a group of small run-down shacks formed into a rough U shape, with a huge mansion, equally run down, at the end opening of the U.'
	time.sleep(5)
	print 'The clearing seems mysterious and forboding for some reason that '+name+' cannot explain.'
	time.sleep(2)
	print 'As '+name+' walks closer, people begin to come out of the houses. They have terrified expressions on their faces, worry lines etched into their faces.'
	time.sleep(3.5)
	print 'One of the people approach '+name+' and say: \"Are you with the bad men?\"'
	time.sleep(2)
	choice = raw_input('Type yes or no')
	if (choice == 'yes'):
	  time.sleep(2)
	  print 'The man stands up tall and says: \"No you\'re not! You aren\'t dressed like them. They wear long white and black labcoats with big letter C\'s on them.'
	if (choice == 'no'):
	 time.sleep(2)
	 print 'Good'
	time.sleep(3)
	print 'You are a Pokemon trainer, aren\'t you?'
	time.sleep(2)
	choice = raw_input('type yes or no')
	time.sleep(2)
	if (choice == 'yes'):
	 print 'Oh good! You can help drive them out!'
	if (choice == 'no'):
	 if (gender == 'boy'):
	   print 'Yes you are! I can see the Pokeballs at your belt!'
	 if (gender == 'girl'):
	   print 'yes you are! I can see the Pokeballs in the pockets of your blouse!'
	time.sleep(3)
	print 'Please, can you go to their base and make them leave? They have been stealing everything from us. Normally we are a peaceful mining town. The mine is just down the path in the forest. But then one day, they came. They burned down several houses, and damaged the rest. They stole all of the evolutionary stones we had planned to take to Spellerburg city and sell.'
	time.sleep(7)
	print name+' leaves and travels into the forest in the direction pointed out by the locals.'
	time.sleep(2)
	print 'After a great deal of walking, you arrive in a clearing in the forest. You\'re eyes are getting tired, and your pack is beginning to feel heavy. You begin to consider lying down for a rest.'
	time.sleep(4)
	choice = raw_input('Do you want to rest? (type a 1 for yes or a 2 for no)')
	choice = choice.lower()
	time.sleep(2)
  if (choice == '2'):
    time.sleep(3)
    print 'you decide to forge forwards'
	if (choice == '1'):
	  print 'you choose to take a nap...'
	  time.sleep(3)
	  print 'All your Pokemon were healed!'
	  eeveeHealth = eeveeMaxHealth
  time.sleep(3)
  choice = raw_input('As you press forward, you notice a commotion coming from a clearing in the distance. Do you check it out?(type yes or no)')
  choice = choice.lower()
  time.sleep(2.5)
  if (choice == 'yes'):
    print 'You creep forward, pokeball at the ready, peering through the grass into the clearing'
    time.sleep(2)
    print 'You hear footsteps coming towards the bush where you are hiding'
  if (choice == 'no'):
    print 'You hear a loud crashing noise coming through the undergrowth towards you.'
    time.sleep(2)
    print 'You duck behind a tree and stand waiting for whoever, or whatever, it is to come to you.'
  time.sleep(2)
  print 'Two team chronos grunts emerge from the clearing, running at a full sprint. The first one spots you and halts. The second one runs into him and looks up, about to retort angrily until he locks eyes with you.'
  time.sleep(5)
  print 'Team Chronos Grunt: Hey! What do you think you\'re doing here! This mine is for Team Chronos Only! I\'ll teach you not to mess with us the hard way!'
  time.sleep(3)
  print 'TEAM CHRONOS GRUNT WANTS TO BATTLE!'
  time.sleep
?