Advertisement
Dangermann

game

Dec 17th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.70 KB | None | 0 0
  1. #==========================================================================================================
  2. # Program : Text-based Adventure Game
  3. # Description: gives you set choices for you to go by, allowing you to change the course of the adventure.
  4. # Author : Cameron Yates
  5. # Date : 12/5/17
  6. #==========================================================================================================
  7.  
  8. import sys
  9. import string
  10. import random
  11. import time
  12.  
  13. Adventure = 0
  14. choice = ""
  15.  
  16.  
  17. def slow_type(str):
  18. for letter in str:
  19. sys.stdout.write(letter)
  20. time.sleep(.06)
  21.  
  22.  
  23. def slower_type(str):
  24. for letter in str:
  25. sys.stdout.write(letter)
  26. time.sleep(.3)
  27.  
  28. def fast_type(str):
  29. for letter in str:
  30. sys.stdout.write(letter)
  31. time.sleep(.04)
  32.  
  33. def faster_type(str):
  34. for letter in str:
  35. sys.stdout.write(letter)
  36. time.sleep(.02)
  37.  
  38.  
  39.  
  40.  
  41. def adventure2_6_choice():
  42. print("")
  43. print("1 -- Try to call out for help.")
  44. print("2 -- Run through the doorway to the outside.") #drop to the world below, making it difficult for exobius to keep his control on you, innevitably losing his grip.
  45. print("3 -- Accept your newfound power.") #path of the destructive can happen beyond here
  46. choice = input("")
  47. print("")
  48.  
  49. if choice == "1":
  50. print("")
  51. slow_type("You cry for help, hoping that someone will come to your aid.")
  52. print("")
  53. slow_type("Exobius is starting to take hold.")
  54. print("")
  55. slow_type("Your vision is almost totally faded, your body feels like it's escaped it.")
  56. print("")
  57. slow_type("You breath one big breath of air, thinking it could be your last.")
  58. print("")
  59. slower_type("This seems to be it.......")
  60. print("")
  61. time.sleep(5)
  62. slow_type("The light has come back to your vision...you're alive.")
  63. print("")
  64. slow_type("Exobius seems to be just ahead of you, grappled by a spririt.")
  65. print("")
  66. slow_type("???: You foolish soul...")
  67. fast_type("BEGONE!!!")
  68. print("")
  69. time.sleep(.5)
  70. slow_type("The spirit has thrown him through the doorway, you hear a ghastly cry from exobius slowly fade away.")
  71. print("")
  72. slow_type("???: are you alright?")
  73. print("")
  74. slow_type("You explain to him that you felt like you were dead just seconds ago.")
  75. print("")
  76. slow_type("???: You're in the skies of forgotten souls, I don't know who that was but from hearing your distress it sounded like it tried to hurt you.")
  77. print("")
  78. slow_type("???: I don't know how you got here, but you look like you came from the world below.")
  79. print("")
  80. slow_type("He looks at you with concern.")
  81. print("")
  82. slow_type("???: You must suffer from amnesia.")
  83. print("")
  84. slow_type("???: There is a group of people that may be able to help you, if you want to know who you are. ")
  85. print("")
  86. slow_type("He seems to want to help you, and he just saved you from death.")
  87. print("")
  88. slow_type("On top of that, it's likely this place isn't meant to be traversed by people like you.")
  89. print("")
  90. slower_type("...")
  91. slow_type("You think that it's best to trust him.")
  92. print("")
  93. seer1()
  94. if choice == "2":
  95. slow_type("You sprint for the doorway with the light still blinding you.")
  96. print("")
  97. slow_type("The light begins to clear up and you could see the clouds for a moment before seeing the you ran out of ground to run on.")
  98. print("")
  99. slow_type("Your descent is fast, the wind blasts past your face and the Exobius you've been hearing is screeching in pain.")
  100. print("")
  101. slow_type("It feels like your body has regained normaility, but now your plummeting straight down, clouds still the only thing encasing your vision.")
  102. print("")
  103. time.sleep(3)
  104. slow_type("Finally you can see something, it looks to be water in the middle of civilization, but it's this unearthly strange hue of purple.")
  105. print("")
  106. slow_type("You keep descending hoping that you will survive this.")
  107. print("")
  108. slow_type("You land into it, almost getting sucked in before you're brought to the top of this substance you've happened upon.")
  109. print("")
  110. world1()
  111. if choice == "3":
  112. slow_type("He has become one with your soul, giving you a feeling of power you've never had before.")
  113. print("")
  114. slow_type("He seems to have allowed you control.")
  115. print("")
  116. slow_type("The wall behind you has broken apart into a cyan portal.")
  117. print("")
  118. slow_type("Exobius: go through")
  119. time.sleep(1)
  120. print("")
  121. print("1 -- Listen to his order.")
  122. print("2 -- Go through the doorway.")#path of the detructive is possible
  123. choice = input("")
  124. print("")
  125. if choice == "1":
  126. print("")
  127. slow_type("You step through and enter into this space that pulls you through like a typhoon.")
  128. print("")
  129. slow_type("Fantastical creatures seem to roam this place. You don't have enough time to make out what they are.")
  130. print("")
  131. slow_type("Before you knew it you have gotten to the other side.")
  132. print("")
  133. Adventure_volcano()
  134. if choice == "2":
  135. print("")
  136. slow_type("You disobey, and turn a 180 and run through the doorway.")
  137. print("")
  138. slow_type("You come to see that you're up in the clouds, outside the building is a bare piece of earth jutting out that you almost ran off of.")
  139. print("")
  140. slow_type("A strange force has pulled you enough to not fall off.")
  141. print("")
  142. slow_type("Exobius: You want to commit suicide all of a sudden!?")
  143. print("")
  144. slow_type("Exobius: If you wanted to take the scenic route you just had to ask, were not that pressed for time.")
  145. print("")
  146. slow_type("Your feet feel light and you begin to float.")
  147. print("")
  148. slow_type("Exobius: move your head to direct the flight, move to the west.")
  149. print("")
  150. scenic_route()
  151.  
  152.  
  153. def start_menu():
  154. print("**play in fullscreen**")
  155. slow_type("This game is determined by your choices.")
  156. print("")
  157. slow_type("There are two different kinds of choices, yes and no, and a choice selection.")
  158. print("")
  159. slow_type("For a choice selection you are given a set number of choices.")
  160. print("")
  161. slow_type("You simply give the number of the choice you want to do.")
  162. print("")
  163. print("type 'start' to begin ")
  164. print("")
  165. start = input("")
  166. print("")
  167.  
  168. global Adventure
  169. if start.lower() == "start":
  170. Adventure += 1
  171.  
  172. def seer1():
  173. global Adventure
  174. slow_type("???: Most surface dwellers don't trust spirits like me.")
  175. print("")
  176. slow_type("???: Come outside, I'll take you staight to them.")
  177. print("")
  178. slow_type("You come outside, seeing that this building is one big stone brick block on a bare piece of earth.")
  179. print("")
  180. slow_type("There's not much you can see besides a hive of clouds.")
  181. print("")
  182. slow_type("This spirit has pulled a cloud towards the cliffside.")
  183. print("")
  184. slow_type("???: Don't worry about falling through, I made it so that you can be on it.")
  185. print("")
  186. slow_type("You get on it and it feels as solid as stone.")
  187. print("")
  188. slow_type("He gets floats close by you.")
  189. print("")
  190. slow_type("The cloud begins moving up like the incline to a hill.")
  191. print("")
  192. slow_type("???: since you trust me, I'll trust you, my name is kinlo, formerly the slayer of giants.")
  193. print("")
  194. slow_type("Kinlo: But since my physical form has wasted away I've been up in the skies.")
  195. print("")
  196. slow_type("Kinlo: It's what happens to every surface dweller, their form eventually fades.")
  197. print("")
  198. slow_type("He looks a bit embarrassed, at least as much as a bunch of light with bright eyes can show.")
  199. print("")
  200. slow_type("Kinlo: I'm going on about too many things aren't I?")
  201. print("")
  202. slow_type("You look at him with confusion.")
  203. print("")
  204. slow_type("Kinlo: I guess I am.")
  205. print("")
  206. time.sleep(3)
  207. slow_type("Kinlo: Do you know anything about this world?")
  208. print("")
  209. slow_type("You shake your head.")
  210. print("")
  211. slow_type("Kinlo: hmm....")
  212. print("")
  213. time.sleep(2)
  214. slow_type("Kinlo: Maybe ")
  215. slower_type("...")
  216. time.sleep(2)
  217. print("")
  218. time.sleep(.05)
  219. slow_type("You see a large blue velvet building peaking out of a thin cloud.")
  220. print("")
  221. slow_type("Kinlo: It's right there, soon you'll get all the answers you'll need.")
  222. print("")
  223. slow_type("The building has a small door with a standing space in front of it. Everything was made of a carpet-like fabric, even the door.")
  224. print("")
  225. slow_type("Kinlo: It may seem a little bizzare, but these people won't even try to hurt you.")
  226. print("")
  227. slow_type("He opens the door, letting you through first.")
  228. print("")
  229. slow_type("You go through and it is a large room, with small blue light fixtures scattered around the walls.")
  230. print("")
  231. slow_type("This place feels like a maze and you don't have any clue where to go.")
  232. print("")
  233. slow_type("Kinlo: Sorry, forgot to mention that not only the seers reside here.")
  234. print("")
  235. slow_type("He signals you to go ahead.")
  236. print("")
  237. slow_type("You pass by several doors, the lights are so scattered that patches of darkness are common through this hall.")
  238. print("")
  239. slow_type("It wasn't too long before kinlo opened the door you needed to go through, again letting you through first.")
  240. print("")
  241. slow_type("This room is small compared to the great hall from just a moment ago.")
  242. print("")
  243. slow_type("5 individuals in cloaks stand at the end of this room.")
  244. print("")
  245. slow_type("Seer 1: We knew you'd come.")
  246. print("")
  247. slow_type("Seer 2: If you want us to show you who you are, you must trust us.")
  248. print("")
  249. slow_type("Seer 3: Without your trust it will be impossible.")
  250. print("")
  251. time.sleep(1)
  252. slow_type("Kinlo Whispers to you.")
  253. print("")
  254. slow_type("Kinlo: Just let them place their hand on your head, it may bring some pain, but they would never let you die.")
  255. print("")
  256. slow_type("You ask him if it's really just 'some pain'.")
  257. print("")
  258. slow_type("Kinloe: I mean what I say.")
  259. print("")
  260. slow_type("What do you have to lose?")
  261. print("")
  262. slow_type("You walk forward and tell them that you trust them.")
  263. print("")
  264. slow_type("The seers walk up to you and place their hands on your head in a circle formation.")
  265. print("")
  266. slow_type("You feel totally disconected, and feel like you've been ushered into yet another different world.")
  267. print("")
  268. demo()
  269. Adventure = 2000000000000000000000000
  270.  
  271.  
  272. def world1():
  273. slow_type("You're laying on it, not knowing what to do with yourself.")
  274. print("")
  275. slow_type("A random citizen goes up to you, big and burly with a black beard and short hair.")
  276. print("")
  277. slow_type("Citizen: uh... why are you in the fountain?")
  278. print("")
  279. slow_type("You're confused how this gelationous substance is anything close to a fountain.")
  280. print("")
  281. slow_type("Citizen: A witch of sorts came and changed every fountain to......this.")
  282. print("")
  283. slow_type("Citizen: You should get out of that soon, you might get stuck there if you don't.")
  284. print("")
  285. slow_type("You try to bring yourself up, but this thing pulls you straight back.")
  286. print("")
  287. time.sleep(2)
  288. slow_type("Citizen: can you not get out?")
  289. print("")
  290. slow_type("You struggle more but it's the force that brings you back is too strong.")
  291. print("")
  292. slow_type("Citizen: Here, let me help.")
  293. print("")
  294. slow_type("He pulls you up so easily that you feel like less of a man.")
  295. print("")
  296. slow_type("You wonder who he is")
  297. print("")
  298. slow_type("Citizen: Me? I'm pulloh Agnit Garhat Wadowu Givew ")
  299. fast_type("Erkal Polob Talcer Zora Kimser Sulas ")
  300. faster_type("Duruit Messiah Lorenzo Camryn Marquise Dominik Ramiro Leonidas" )
  301. print("")
  302. slow_type("He takes a massive breath.")
  303. print("")
  304. slow_type("Cryjacks. ")
  305. time.sleep(1)
  306. slow_type("Man for short.")
  307. time.sleep(2)
  308. print("")
  309. slow_type("You're just...confused.")
  310. print("")
  311. slow_type("Man: Really, just call me man, it makes it all easier.")
  312. print("")
  313. slow_type("You already forgot every part of his real name.")
  314. print("")
  315. slow_type("Man: You fell from the sky, you're lucky this caught your fall.")
  316. print("")
  317. slow_type("Man: I don't know about the people that come from up there too well, but they surely aren't supposed to look like you.")
  318. print("")
  319. slow_type("You look at yourself as much as you can wondering if you're some strange alien creature. turns out you're not.")
  320. print("")
  321. slow_type("Man: How'd you get down here?")
  322. print("")
  323. print("")
  324. print("What do you tell him?")
  325. print('1 -- "Do I have to tell you?" ')
  326. print("2 -- Tell him.")
  327. print("3 -- Leave in silence.")
  328. choice = input("")
  329. if choice == "1":
  330. print("")
  331. slow_type("Man: Well no, not if you don't want to. I'm just a very curious person.")
  332. print("")
  333. slow_type("Man: But if you don't want to tell me that, could you at least tell me your name?")
  334. print("")
  335. slow_type("Now that he mentions it, what is your name?")
  336. print("")
  337. slow_type("Wait....who are you")
  338. demo()
  339. Adventure = 2000000000000000000000000
  340. if choice == "2":
  341. print("")
  342. slow_type("You tell him exactly how you got here.")
  343. print("")
  344. time.sleep(2)
  345. slow_type("Man: Wow, that's suprising.")
  346. print("")
  347. slow_type("Man: I didn't think such a well remembered hero would do something so naive.")
  348. print("")
  349. slow_type("Man: Do you need medical attention?")
  350. print("")
  351. slow_type("You shouldn't really need any, your fall didn't bring you any damage and whatever exobius did to you hasn't left you damaged.")
  352. print("")
  353. slow_type("Man: You must be pretty strong then.")
  354. print("")
  355. slow_type("Man: What is your name mystery guy.")
  356. print("")
  357. slow_type("Huh, come to think of it what even is your name.")
  358. print("")
  359. slow_type("Wait....who even are you.")
  360. demo()
  361. Adventure = 2000000000000000000000000
  362. if choice == "3":
  363. print("")
  364. slow_type("You slowly walk away.")
  365. print("")
  366. slow_type("He stands where he is calling to you.")
  367. print("")
  368. slow_type("Man: hey why are you leaving.")
  369. print("")
  370. slow_type("You stay silent.")
  371. time.sleep(.5)
  372. print("")
  373. slow_type("Man: HEY!!!")
  374. print("")
  375. time.sleep(1)
  376. slow_type("Still, you are silent.")
  377. print("")
  378. slow_type("You keep walking on with man seeming to have given up screaming to you.")
  379. print("")
  380. slow_type("You notice the city's massive size, this place seems to have a lot you can do and see.")
  381. print("")
  382. slow_type("Maybe someday you should explore this place for yourself.")
  383. demo()
  384. Adventure = 2000000000000000000000000
  385. def Adventure_volcano():
  386. print("")
  387. slow_type("You have come to the bottom of the path up this giant mountain.")
  388. print("")
  389. slow_type("You cannot see too far ahead of it, and two eight foot tall orcs stand in your way of going any further.")
  390. print("")
  391. slow_type("Exobius: I would take you straight to the evil you must destroy, but after reading into your mind it looks like you have no combat experience whatsoever.")
  392. print("")
  393. slow_type("Exobius: There are many monsters that will stand in your way, but knowing you, I'm sure you will take the challenge.")
  394. print("")
  395. slow_type("The orcs sneer at you.")
  396. print("")
  397. slow_type("Exobius: you have a sword on your back, unsheath it.")
  398. print("")
  399. slow_type("The sword is white with a gold lining and emerald gems running through the middle of the blade.")
  400. print("")
  401. slow_type("It's not light but you wield it with ease.")
  402. print("")
  403. slow_type("Exobius: these orcs are slower then turtles, you can slay them without any trouble.")
  404. print("")
  405. slow_type("You go into a quick battle with the orcs.")
  406. print("")
  407. slow_type("Moving fast you slice and dice the both of them before they were able to get a scractch on you with their axes.")
  408. print("")
  409. slow_type("They've been chopped up to the point of mortal wounding.")
  410. print("")
  411. slow_type("Exobius is totally stunned at your fighting skill.")
  412. print("")
  413. slow_type("Exobius: I may have underestimated you, but these orcs are the taste of the four course cuisine.")
  414. print("")
  415. slow_type("You ask him who this evil lies at the end of this adventure.")
  416. print("")
  417. slow_type("Exobius: I have only heard of him as people have heard of me, in words of legend.")
  418. print("")
  419. slow_type("Exobius: This legend has incited chaos unto this world that has caused monuments to fall, cities to crumble, parts of the world to be left in ruin.")
  420. print("")
  421. slow_type("Exobius: It's actions have only caused more and more havoc, and it has been a while since his last attack.")
  422. print("")
  423. slow_type("Exobius: No one knows for sure, but one of these days he may bring forth an onslaught to destroy everything.")
  424. print("")
  425. slow_type("Exobius: To be honest I thought I'd have to completely take your body but that'd be evil. Knowing you I thought you could wield my power, looks like I wasn't wrong.")
  426. print("")
  427. slow_type("Exobius: Let's trudge onward shall we?")
  428. demo()
  429. Adventure = 20000000000000000
  430.  
  431. def scenic_route():
  432. print("")
  433. slow_type("You fly to the west, descending past the clouds in order to see the world below.")
  434. print("")
  435. slow_type("The world has opened up and a you see a vast landscape.")
  436. print("")
  437. slow_type("You're tempted to go down there to get a closer look.")
  438. print("")
  439. slow_type("Exobius: You should see a great mountain in a while, and no stops along the way, we are wasting time as it is.")
  440. print("")
  441. slow_type("Well, guess you can't even if you wanted to.")
  442. print("")
  443. slow_type("It does look really nice, the world below.")
  444. print("")
  445. slow_type("Maybe one day you really can see this place for yourself.")
  446. print("")
  447. slow_type("These creatures that fly around you are so mythical, being ridden by things of etheral nature.")
  448. print("")
  449. slow_type("They look like a brother to the kamodo dragon, with a special tone to their scales.")
  450. print("")
  451. slow_type("These creatures seem curious as to how you're flying but don't seem to bother you.")
  452. print("")
  453. Adventure = 200000000000000
  454. Adventure_volcano()
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465. def demo():
  466. global Adventure
  467. time.sleep(2)
  468. print("")
  469. slow_type("Sorry to say, but that's as far as you can go.")
  470. print("")
  471. slow_type("Thanks for playing.")
  472. Adventure = 200000000000000
  473.  
  474.  
  475. while Adventure == 0: #game starts
  476. start_menu()
  477.  
  478.  
  479.  
  480. while Adventure == 1: # the adventure in the sky begins.
  481. slow_type("You awake from what feels like a short slumber.")
  482. print("")
  483. slow_type("The room is lit by the open doorway bringing in a dim light.")
  484. print("")
  485. slow_type("The stone bricks look ancient, covered in a moss that looks almost as old.")
  486. print("")
  487. slow_type("???: Heed my Voice for I am Exobius.")
  488. print("")
  489. slow_type("Your vision is blurring and your body feels light.")
  490. print("")
  491. slow_type("Do you want to try speaking to him?")
  492. print("")
  493. choice = input("")
  494. if choice.lower() == "yes":
  495. print("")
  496. Adventure = 3
  497. if choice.lower() == "no": #you will be able to keep this the person behind this Exobius from taking over
  498. print("")
  499. Adventure = 2 #you do not get any exposition of the world, the Exobius or how you got here. essentially skipping it
  500.  
  501. while Adventure == 2:
  502. slow_type("Your body feels incredibly light.")
  503. print("")
  504. slow_type("Your vision has totally blacked out.")
  505. print("")
  506. slow_type("Exobius: This will be over soon.")
  507. print("")
  508. print("")
  509. time.sleep(2)
  510. adventure2_6_choice()
  511.  
  512.  
  513. while Adventure == 3:
  514. slow_type("What do you say to it?")
  515. print("")
  516. print("1 -- 'Who are you?'") #explains himself
  517. print("2 -- 'Your voice sounds familiar...'") #explains how you got here
  518. print("3 -- 'Where am I?'") #explains the world
  519. choice =input("")
  520. print("")
  521. if choice == "1":
  522. Adventure = 4
  523. if choice == "2":
  524. Adventure = 5
  525. if choice == "3":
  526. Adventure = 6
  527.  
  528.  
  529. while Adventure == 4: # similar code to Adventure(5) and (6)
  530. slow_type("Exobius: I am an ancient warrior from time long ago.")
  531. print("")
  532. time.sleep(1)
  533. slow_type("Exobius: I surpassed all that came before me and none have matched up to that even now.")
  534. print("")
  535. slow_type("Exobius: Monsters used to be terrified of me when I was one of the living.")
  536. print("")
  537. slow_type("Exobius: Enough talking about myself, You must leave this room and go to the outside.")
  538. print("")
  539. slow_type("Exobius: And you're going to need my power to go anywhere in this world you've happened into.")
  540. print("")
  541. slow_type("How do you react?")
  542. adventure2_6_choice()
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549. while Adventure == 5: #similar code to Adventure(4) and Adventure(6)
  550. slow_type("Exobius : I see you remember how you got here, so that means you know what world you are in.")
  551. print("")
  552. slow_type("You're not sure what he's talking about and ask him to refresh your memory.")
  553. print("")
  554. slow_type("Exobius: You came here through a rift from another world not like this one, and you're here for a reason.")
  555. print("")
  556. slow_type("Exobius: You are what people from your world would call, 'A wildcard,' and I'm willing to take a chance.")
  557. print("")
  558. slow_type("Exobius: I am a warrior from time long ago, they had called me 'exobius' in my prime.")
  559. print("")
  560. slow_type("Exobius: You're a perfect vessel for my power, as I've spoken to you I've take more of a hold of your body.")
  561. print("")
  562. slow_type("How do you react?")
  563. adventure2_6_choice()
  564.  
  565. while Adventure == 6:
  566. print("")
  567. slow_type("Exobius: This world is caught in turmoil, stuck in a peril that requires a warrior of power to arise above all else.")
  568. print("")
  569. slow_type("Exobius: A classic hero tale that I've lived myself.")
  570. print("")
  571. slow_type("Exobius: I must take you somewhere that an evil monster lives that has brought forth all the chaos.")
  572. print("")
  573. slow_type("Exobius: If you're what I expected you would let me take full control.")
  574. print("")
  575. slow_type("How do you react?")
  576. adventure2_6_choice()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement