repl.it
Python

Thanks to Skippy1130 for the messaging function!

fork
loading
Files
  • main.py
  • DemonFight.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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
x = 0
y = 0
xy = 00
dog = True
feather = False
zetwkf = False
gcorpse = False
cname = "Drescol"
bone = False
onzekf = False
onnegtwkf = False
ce = False
bone = True
forests = 0
risk = 0
negthze = False
rc = True
corpse = False
negonnegon = False
sou = False
seeds = False
thnegtw = False
negonnegtw = False
chicken = False
shovel = False
key1 = False
key2 = False
g1un = False
g2un = False
cheese = True
ghost = True
skeleton = True
vase = True
ca = True
clear = 0
import time
import random
import colors
import colorama
from colorama import Fore, Back, Style
print(Style.RESET_ALL)
def message(person, message):
  thing = 0
  for i in range(len(person)):
    letter = person[thing]
    thing += 1
    print(letter, end="")
    time.sleep(0.05)
  print(": ", end="")
  time.sleep(0.15)
  thing = 0
  for i in range(len(message) - 1):
    letter = message[thing]
    thing += 1
    time.sleep(0.05)
    print(letter, end="")
  letter = message[thing]
  thing += 1
  time.sleep(0.05)
  print(letter)
health = 100
attack = 10
def keyF():
	global keyFs
	if keyFs < 8:
		print("You found a key fragment!")
		keyFs += 1
		if keyFs == 8:
			print("You found the final key fragment!")
			print("Make your way back to Orangoose to get the second key!")
		if keyFs < 8:
			print("You need to find")
			print(8 - keyFs)
			print("More key fragments.")
	if keyFs > 7:
		print("There are tress all around you.")
def stats():
	print("------------------------------------------------")
	time.sleep(0.125)
	print("Health:")
	time.sleep(0.125)
	print(health)
	time.sleep(0.125)
	print("Attack:")
	time.sleep(0.125)
	print(attack)
	time.sleep(0.125)
	print("------------------------------------------------")
def goose():
	print(Style.DIM)
	print(Fore.RED  + "                                   ___")
	print("                               ,-''   `.")
	print("                             ,'  _   e )`-._")
	print("                            /  ,' `-._<.===-'")
	print("                           /  /")
	print("                          /  ;")
	print("              _          /   ;")
	print(" (`._    _.-'' ''--..__,'    |")
	print(" <_  `-''                     \ ")
	print("  <`-                          :")
	print("   (__   <__.                  ;")
	print("     `-.   '-.__.      _.'    /")
	print("        \      `-.__,-'    _,'")
	print("         `._    ,    /__,-'")
	print("            ''._\__,'< <____")
	print("                 | |  `----.`.")
	print("                 | |        \ `.")
	print("                 ; |___      \-``")
	print("                 \   --<")
	print("                  `.`.<")
	print("                    `-'")
def forest():
	print("There are tress all around you.")
def wall():
	print("You ran into a magical wall. The wall teleported you back to Orangoose.")
	global x
	global y
	x = 0
	y = 0
def clearing():
	print("There is nothing here or around you.")
print("NOTE: Type all of your answers in lowercase, and most walls have a 4 in their coordinate. \nOrangoose is supposed to be orange, but you can't do orange in python for some reason. Just pretend he's not red but orange.")
stats()
print("There is a magical orange goose standing in front of you.")
goose()
print(Style.RESET_ALL)
message("Orangoose", "Hello. I am Orangoose. You are on a journey to open the two gates (located at 0,-4 and 0,-5).")
name = input("What is your name?")
if name == "Orangoose":
	message("Orangoose", "W H A T?")
	health = health + 10
	stats()
	time.sleep(1)
if name == "Encar":
	message("Orangoose", "Liar.")
if name == "Rainbow Quack":
	message("Orangoose", "LIAR.")
	health -= 99999999999999
	stats()
	time.sleep(1)
message("Orangoose", "Good luck!")
time.sleep(1)
keyFs = 0
while True:
	clear += 1
	direction = input("north, south, east, or west?")
	if direction == "north":
		y = int(y) + 1
	if direction == "south":
		y = int(y) - 1
	if direction == "east":
		x = int(x) + 1
	if direction == "west":
		x = int(x) - 1
	x = str(x)
	y = str(y)
	xy = x + "," + y
	print(xy)
	if xy == "0,0":
		if keyFs < 8:
			if corpse == False:
				print("You say hi to Orangoose.")
				if health < 100:
					health = 100
					print("He heals you to full health.")
					print("What a nice goose.")
			if corpse == True:
				message("Orangoose", "What is that in your arms?")
				print("Orangoose's beady little eyes stare into yours. He looks like he is about to cry.")
				print("You hand him the corpse.")
				message("Orangoose", "No... That's impossible. No. No. Did you do this?")
				didit = input("Did you do it?")
				if didit == "yes":
					message("Orangoose", "You? How could you? I'm sorry I have to do this.")
					print("Orangoose and everything around you fades away into nothingness. You only see black.")
					print("And that's how it'll be forever.")
					time.sleep(5)
					break
				if didit == "no":
					message("Orangoose", "Makes sense. Only something with power from the underworld could do such a thing.")
					print("The ground rumbles.")
					message("Orangoose", "What is that?")
					print("The ground breaks and falls around you.")
					print("There is fire where the land should be.")
					message("Orangoose", "OH. H*CK.")
					print("Something large emerges from the flame.")
					message("Demon", "Hello adventurer. Hello little goose.")
					print("Start fighting at: https://tinyurl.com/zerkdemon !")
					break
		if keyFs == 8:
			if key2 == False:
				message("Orangoose", "Oh h*ck! You found all 8 key fragments! ")
				print("Orangoose takes the key fragments from your hand.")
				print("He spins his wings in circles and a magical anvil forms from the light.")
				message("Orangoose", "Aaaaannnddddd... Done! I fixed up your key! You can take it!")
				print("Orangoose hands you the second key.")
				key2 = True
	if xy == "0,1":
		if ghost == True:
			if attack < 12:
					print("A ghost is here. Because your attack is lower than 12, you take 15 hitpoints.")
					health -= 10
			if attack > 11:
				print("A ghost is here. With one slash of your sword, you kill it.")
				print("You gain 10 health.")
				health += 10
				ghost = False
		if ghost == False:
			print("There are tress and mist all around you.")
	if xy == "0,2":
		if zetwkf == False:
			keyF()
			zetwkf = True
		if zetwkf == True:
			forest()
	if xy == "0,3":
		print("You see and old shack.")
		print("You find some seeds in the shack. You decide to keep them.")
		seeds = True
	if xy == "0,4":
		wall()
		x = 0
		y = 0
	if xy == "1,0":
		if onzekf == False:
			keyF()
			onzekf = True
		if onzekf == True:
			forest()
	if xy == "1,1":
		forest()
	if xy == "1,2":
		forest()
	if xy == "1,3":
		print("You find an abandonded shovel. You keep it.")
		shovel = True
		attack += 2
	if xy == "1,4":
		wall()
	if xy == "2,0":
		if dog == True:
			print("There is a doggo standing in front of you.")
			dq = input("Do you keep the doggo?")
			if dq == "yes":
				print("The doggo joins you.")
				attack += 5
				dog = False
			if dq == "no":
				print("You deny the doggo. That makes it A N G E R Y.")
				health -= 90
				print("The doggo bites you.")
				dog = False
		if dog == False:
			forest()
	if xy == "2,1":
		print("You see an abandoned cabin in the distance.")
		print("There is no way for you to enter.")
		if chicken == True:
			print(cname + " runs inside. A few moments laterm they run back out with a potion in their beak. They hand it to you. You drink it and gain 2 attack and 10 health.")
			attack += 2
			health += 10
	if xy == "2,2":
		clearing()
	if xy == "2,3":
		clearing()
	if xy == "2,4":
		wall()
	if xy == "3,0":
		print("There is a gaint hole in front of you.")
		if sou == False:
			jump = input("Do you jump in?")
			if jump == "yes":
				if health > 119:
					print("You jump down the hole. You hit the ground and take 110 hitpoints.")
					health -= 110
					stats()
					print("You look around you. There are bones everywhere. You find an abandoned sword in a stone. The sword is glowing.")
					if attack > 30:
						print("You grab the sword and pull it from the stone. You have gained 20 attack, and the sword of unnobtainium!")
						sou = True
						attack += 20
						print("Your vision begins to blur. Your eyes roll to the back of your head. Everything goes black. You wake up on the surface, with the sword still in your hands.")
					else:
						print("You grab the hilt of the sword and attempt to pull it out of the stone. You are not strong enough. The hilt suddenly catches on fire and burns your hand. You cant put the fire out. Your hand falls off. You lose 10 attack.")
						attack -= 10
						print("Your vision begins to blur. Your eyes roll to the back of your head. Everything goes black. You wake up on the surface.")
				else:
					print("You jump down the hole. Both of your legs break on impact. You take 120 damage.")
			if jump == "no":
				if health > 119:
					print("You might want to come back later...")
				if health < 120:
					print("Good choice.")
				if health == 119:
					print("You might want to come back when you are healthier...")
	if xy == "3,1":
		print("There is a giant cannyon in front of you. There is nothing in it but rocks.")
	if xy == "3,2":
		keyF()
	if xy == "3,3":
		forest()
	if xy == "3,4":
		wall()
	if xy == "4,0":
		wall()
	if xy == "4,1":
		wall()
	if xy == "4,2":
		wall()
	if xy == "4,3":
		wall()
	if xy == "4,4":
		wall()
	if xy == "0,-1":
		forest()
	if xy == "0,-2":
		print("There is a small hill here.")
		if shovel == True:
			if key1 == False:
				print("You dig up the small hill using the shovel that you found.")
				print("You found the first key!")
				key1 = True
		if shovel == False:
			print("You should come back later. This place seems important...")
	if xy == "0,-3":
		forest()
	if xy == "0,-4":
		print("This is the first gate.")
		if key1 == True:
			if g1un == False:
				print("You open the first gate with your key.")
				g1un = True
			if g1un == True:
				print("You stand in the opening of the gate.")
		if key1 == False:
			print("You need the first key before you can open this gate.")
		if key2 == True:
			if g1un == False:
				print("The key you have is for the next gate. It will not work with this one.")
	if xy == "0,-5":
		print("This is the second gate.")
		if g1un == True:
			if key2 == True:
				if g2un == False:
					print("You open the first gate with your key.")
					print("Orangoose sees this, and runs up to you as fast as he can.")
					message("Orangoose", "Well done! You have opened the gates! We can now be free!")
					leave1 = input("Do you leave?")
					if leave1 == "yes":
						print("You and Orangoose head out on your way to freedom.")
						print("THE END.")
						print("By the way, you visited " + forests + " forests.")
						break
					if leave1 == "no":
						message("Orangoose", "Why dont you want to leave? Is something wrong?")
						leave2 = input("Do you leave or kill Orangoose?")
						if leave2 == "leave":
							print("You and Orangoose head out on your way to freedom.")
							print("THE END.")
							print("By the way, you visited " + forests + " forests.")
						if leave2 == "kill" or "Kill orangoose":
							print("You pull out your sword and look at Orangoose")
							message("Orangoose", "What are you doing, " + name + "?")
							print("You lift the sword high over your head and throw it down at Orangoose. With a bright light, Orangoose is gone. Your sword stabs the ground leaving a large hole. You look for Orangoose. Where has he gone?")
							time.sleep(3)
							message("Orangoose", "I thought we were friends. Im sorry, but I need to leave. And you're not coming with me.")
							print("Orangoose appears in front of you.")
							print("Orangoose and everything around you fades away into nothingness. You only see black.")
							print("And that's how it'll be forever.")
							break
					g2un = True
				if g1un == True:
					print("You stand in the opening of the gate.")
		if key1 == False:
			print("You need the first key before you can open this gate.")
		if key2 == True:
			if g1un == False:
				print("The key you have is for the next gate. It will not work with this one.")
	if xy == "1,-1":
		if attack < 15:
			print("A cursed set of armor is here. Because your attack is lower than 15, you take 17 hitpoints.")
			health -= 15
		else:
			if ca == True:
				print("A cursed set of armor is here. You kill it easily.")
				print("You gain 12 health.")
				health += 12
				ca = False
			if ca == False:
				print("There are tress all around you. A shiver goes down your spine.")
	if xy == "1,-2":
		forest()
	if xy == "1,-3":
		if onnegtwkf == False:
			keyF()
			onnegtwkf = True
			if onnegtwkf == True:
				forest()
	if xy == "1,-4":
		wall()
	if xy == "2,-1":
		forest()
	if xy == "2,-2":
		if feather == True:
			forest()
		if feather == False:
			feather = True
			print("You find a strange feather. You pick it up.")
	if xy == "2,-3":
		if ce == True:
			print("There is a large rock here.")
		if ce == False:
			print("There are 5 chicken huddled around a rock here.")
			message("????", "Chickens? Where are you?")
			print("A wizard runs towards the chickens and picks them up. He dosen't seem to notice you. Suddenly, he dissapears, and so do the chickens.")
			if chicken == True:
				print(cname + " runs up to the rock. This bamboozled him just as much as you.")
				message(cname, "Cluck cluck cluck!!")
				print("You run over to " + cname + ". You see there is a book right next to where he is standing. A book with the name 'Encar' on the front.")
				time.sleep(2)
				piccup = input("Do you pick up the book?")
				if piccup == "yes":
					print("You pick up Encar's book. You flip through the pages looking for something that might hint at who he is.")
					time.sleep(1)
					print("What? Your attack increases!")
					attack += 5
					stats()
				if piccup == "no":
					print("Ok.")
			if chicken == False:
				print("What a strange little event there.")
			ce = True
	if xy == "2,-4":
		wall()
	if xy == "3,-1":
		print("There is one singular tree here. Ok then.")
		if dog == False:
			print("Your dog runs right into it. His face collides with the tree with a clang. The tree falls over.")
			time.sleep(3)
			message("Dog", "Bork Bork Bork Bork Bork Bork!")
			time.sleep(1)
			print("The dog is pointing out that the tree is fake.")
			time.sleep(1)
			print(".")
			time.sleep(1)
			print(".")
			time.sleep(1)
			print(".")
			time.sleep(1)
			print("The doggo has a good point.")
			kicc = input("Do you kick the fake tree?")
			if kicc == "yes":
				print("You kicked it. Literally nothing happened.")
			if kicc == "no":
				print("OK.")
	if xy == "3,-2":
		if thnegtw == False:
			keyF()
			thnegtw = True
		if thnegtw == True:
			forest()
	if xy == "3,-3":
		if cheese == True:
			print("You find a peice of cheese in the shape of a unigon.")
			if feather == True:
				print("You stick the feather in the cheese and eat it.")
				health += 5
				attack += 5
				stats()
				cheese = False
				feather = False
				print("Why are you like this?")
			if feather == False:
				print("You eat the cheese.")
				print("Y U M M M")
				health += 5
				cheese = False
	if xy == "3,-4":
		wall()
	if xy == "4,-1":
		wall()
	if xy == "4,-2":
		wall()
	if xy == "4,-3":
		wall()
	if xy == "4,-4":
		wall()
	if xy == "-1,0":
		forest()
	if xy == "-2,0":
		forest()
	if xy == "-3,0":
		if negthze == False:
			keyF()
			negthze = True
		if negthze == True:
			forest()
	if xy == "-4,0":
		wall()
	if xy == "-1,1":
		forest()
	if xy == "-2,1":
		print("There are flowers all around you.")
	if xy == "-3,1":
		print("There are chicken tracks here.")
		if seeds == True:
			if chicken == False:
				print("You place the seeds you have in the chicken tracks. Suddenly, a chicken runs up to you.")
				ccccc = input("Do you want to keep the chicken?")
				if ccccc == "yes":
					chicken = True
					print("The chicken joins you.")
					cname = input("What do you want to name the chicken?")
					if cname == "Buddy":
						print("The chicken loves the name!")
						print("You gain 1 health. It's not much, but its all the chicken can do for you.")
						health += 1
					if cname is not "Buddy":
						print("The chicken likes the name.")
					print("You gain 2 attack")
					attack += 2
			if chicken == True:
				print(cname + " runs around in it's premade tracks.")
		if seeds == False:
			print("You should keep an eye on this place.")
	if xy == "-4,1":
		wall()
	if xy == "-1,2":
		forest()
	if xy == "-2,2":
		forest()
	if xy == "-3,2":
		print("There is a very large tree in front of you.")
	if xy == "-4,2":
		wall()
	if xy == "-1,3":
		if attack < 9:
			print("A spooky scary skeleton is here. Because your attack is lower than 9, you take 10 hitpoints.")
			health -= 10
		else:
			if skeleton == True:
				print("A spooky scary skeleton is here. It's easy to kill, due to it's fragile bones.")
				print("You gain 6 health.")
				health += 6
				skeleton = True
			if skeleton == False:
				print("There are tress and mist all around you.")
	if xy == "-2,3":
		forest()
	if xy == "-3,3":
		if vase == True:
			print("There is a vase in front of you.")
			vasef = input("Do you smash it?")
			if vasef == "yes":
				print("You smash the vase. Something inside of you burns. You fall forward onto the vase and lose 15 health.")
				health -= 15
				vase = False
			if vasef == "no":
				print("Probably a good idea.")
		if vase == False:
			forest()
	if xy == "-4,3":
		wall()
	if xy == "-1,4":
		wall()
	if xy == "-2,4":
		wall()
	if xy == "-3,4":
		wall()
	if xy == "-4,4":
		wall()
	if xy == "-1,-1":
		if negonnegon == False:
			keyF()
			negonnegon = True
		if negonnegon == True:
			forest()
	if xy == "-2,-1":
		forest()
	if xy == "-3,-1":
		if risk == 0:
			print("You feel an evil presence near you.")
			sponge = input("Do you speak to it?")
			if sponge == "yes":
				print("Something is approaching...")
				risk += 1
			if sponge == "no":
				print("That is wise.")
		if risk > 0:
			forest()
	if xy == "-4,-1":
		wall()
	if xy == "-1,-2":
		if negonnegtw == False:
			keyF()
			negonnegtw = True
		if negonnegtw == True:
			forest()
	if xy == "-2,-2":
		forest()
	if xy == "-3,-2":
		if rc == False:
			forest()
		if rc == True:
			print("You find a rainbow powder on the ground.")
			snort = input("Do you snort it?")
			if snort == "no":
				print("Oh.")
			if snort == "yes":
				print("You snort the powder.")
				message("??????", "T H E  C R A C K  I S  R A I N B O W")
				print("You gained 3 attack!")
				attack += 3
	if xy == "-4,-2":
		wall()
	if xy == "-1,-3":
		print("There is a bone on the ground here.")
		if dog == False:
			if bone == True:
				print("You hand the bone to your doggo.")
				print("You gained 3 attack!")
				bone = False
			if bone == False:
				forest()
	if xy == "-2,-3":
		if corpse == False:
			print("There is a corpse of a duck laying in front of you. The blood is fresh and you notice something strange about the duck.")
			corpse = input("Do you keep the corpse?")
			if corpse == "yes":
				print("Interesting.")
				corpse = True
			if corpse == "no":
				print("You left the corpse.")
		if corpse == True:
			print("There are bloody tress all around you.")
	if xy == "-3,-3":
		forest()
	if xy == "-4,-3":
		wall()
	if xy == "-1,-4":
		wall()
	if xy == "-2,-4":
		wall()
	if xy == "-3,-4":
		wall()
	if xy == "-4,-4":
		wall()
	
	if health < 1:
		print("You died!")
		break
	if attack < 1:
		print("Orangoose runs up to you.")
		message("Orangoose", "Oh h*ck! It seems as if you can't battle any more due to your attack! Take this potion.")
		if random.randint(1,10) == 1:
			print("You start to feel dizzy.")
			message("Orangoose", "OH NO! The potion isn't working! It's... It's....")
			print("You died!")
			break
		else:
			attack = 5
			message("Orangoose", "Whew! The potion worked! you now have 5 attack!")
	y = int(y)
	if y < -6:
		print("You hit a barrier teleporting you back to 0,0.")
		x = 0
		y = 0
	if risk == 1:
		message("[email protected]&#)#", "http://tinyurl.com/yourlifeisatrisk")
		risk += 1
	print(Fore.BLACK+"------------------------------------------------------------")
	print(Style.RESET_ALL)
Fetching token
?