Advertisement
baggiepr

Adventure Coding by Niamh

Jan 29th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.94 KB | None | 0 0
  1. from time import sleep
  2. import random
  3. def pause():
  4.     input("Press return to continue")
  5. bag=[]
  6. health=10
  7. xp=0
  8. name=input("Type in your adventurers name")
  9. sleep(2.0)
  10. print("Welcome",name,"to the White Horse Adventure")
  11. sleep(3.0)
  12.  
  13. print (""" You walk into the paddock to get your pony, all the horses are grazing. One horse in paticular, a new horse, catches your eye, it is a pure white palamino with a hint of pink round his eyes.""")
  14. sleep(2.0)
  15. event1=input("Type a to visit the white horse or b to take back your pony")
  16. if event1=="a":
  17.     print("You visit the white horse and feed it a carrot")
  18.     sleep=(2.0)
  19.     print("The horse goes down on its front legs and you climb on its back")
  20.     sleep=(2.0)
  21.     xp=xp+2
  22. else:
  23.     print("You walk towards the gate with your pony")
  24.     sleep=(2.5)
  25.     print("The white horse comes over and spooks your pony. You get kicked! With a sore leg, you get on the white horse's back.")
  26.     sleep=(2.0)
  27.     health=health-1
  28.     xp=xp+1
  29. print("You have",health,"health and",xp,"xp")
  30. sleep=(2.0)
  31. print("The horse gallops off into the forest. You hold on tightly as you bounce around on its bare back, not noticing where it is taking you")
  32. sleep=(2.5)
  33. event2=input("Type s to shout and stop the horse or l to let it take you into the forest")
  34. if event2=="s":
  35.     print("You shout and the horse bucks you off but still stands waiting for you.")
  36.     print("you pat the horse and say sorry but you dont want to get back on. You take off your belt and loop it on the horses neck to lead him")
  37.     sleep=(2.0)
  38.     print("It takes you into what looks like a wall with vines on it, but when you look closer, it is a secret entrance into a magic garden")
  39.     health=health-1
  40.     xp=xp+1
  41. else:
  42.     print("You carry on but soon notice you are in the forest. You bring the horse back to walk.")
  43.     print("It takes you into what looks like a wall with vines on it, but when you look closer, it is a secret entrance into a magic garden")
  44.     xp=xp+2
  45. print("You have",health,"health and",xp,"xp")
  46. pause=(2.0)
  47. print("The garden is truly amazing. Little fairies lounge on purple mushrooms, and a sparkling waterfall gushes into a pool of clear water. You notice a little fairy with a dark blue dress fly towards you")
  48. print("You have",health,"health and",xp,"xp")
  49. event3=input("You hop off the white horses back, press w to wave to the fairy or e to explore")
  50. if event3=="w":
  51.     print("You wave at the fairy and she comes over")
  52.     pause=(2.0)
  53.     print("She greets you and says her name is Indigo. You tell her about the horse and she smiles")
  54.     pause=(1.0)
  55.     print("She tells you she was expecting you and asks you to get back on the horse, you do")
  56. else:
  57.     print("You walk around for a bit. In the corner of you eye, you can see a little blue ball floating in the air")
  58.     pause=(2.0)
  59.     print("It's a little fairy! She tells you she has been expecting you, and asks if you could get back on the horse, so you do")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement