Advertisement
baggiepr

Adventure Game by Robin Y6 Orchard Lea

Jan 28th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.47 KB | None | 0 0
  1. from time import sleep
  2. hp=5
  3. hg=7
  4. print("welcome to the tunnel of dungons")
  5. name=input("type in the name of your adventurer")
  6. print("welcome",name,"to the tunnel of dungons")
  7. print("you see a trol eating rotton flesh")
  8. event1=input("type s to slay or r to run")
  9. if event1=="s":
  10.     print("the troll grabs his club and misses you")
  11.     sleep(5.0)
  12.     print("you draw your bow and you fire at the trol")
  13.     hp=+5
  14.     hg=+7
  15. else:
  16.     print("you run out of the way")
  17.     hp=+0
  18.     hg=-1
  19. print("your hitpoints are at",hp,"and your hunger is at",hg,)
  20. sleep(5.0)
  21. print("you reach a cliff and there is poison zombies at the bottom")
  22. event2=input("type p to parashoot down and kick the zombies out the way or j to jump down and get killed")
  23. if event2=="p":
  24.     print("you go down and slay the zombies")
  25.     hp=hp+3
  26.     hg=hg-0.5
  27. else:
  28.     print("you carefully jump down and die")
  29.     hp=hp-8
  30.     hg=hg-8
  31. print("you have",hp,"hitpoints and",hg,"hunger witch is ok")
  32. event3=input("there staring at you is a knight")
  33. sleep(5.0)
  34. print("type t to talk to the knight or s to slay the knight")
  35. if event3=="t":
  36.     print("you say that you can help him and you ask him for his name")
  37.     sleep(5.0)
  38.     print("the knight reply's my name is steve and i came here to slay the flame bird")
  39. else:
  40.     print("you kill the knight and run for your life")
  41.     hp=hp-1
  42.     hg=hg-2
  43. print("you find a crosbow and 2 bolts")
  44. sleep(5.0)
  45. event4=input("you find a ladder coverd in hard stone")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement