Advertisement
baggiepr

Adventure Coding by Grace Y6 Hiltingbury

Jan 29th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.49 KB | None | 0 0
  1. from time import sleep
  2. lives=10
  3. experience=0
  4. gold=20
  5. name=input("Type in the name of your apprentice")
  6. print("Welcome",name,"to Ankh Morpork we hope you get the skill you seek")
  7. print("""There is a bunch of gangsters heading your way""")
  8. #sleep(3.0)
  9. event1 = input("press a to attack or press r to runaway")
  10. if event1 == ("r"):
  11.     print("You runaway and wander into a dark wood")
  12. else:
  13.     print("the gangsters beat you up good and in shock you run away into a dark wood")
  14.     gold=gold-10
  15.     experience=experience+2
  16. print("""Theres a rustle in the bushes nearby and the sound of voices""")
  17. #sleep(3.0)
  18. event2 = input("press i to investigate or press r to run back to town")
  19. if event2 == ("i"):
  20.     print("It turns out to be the watch they lead you back to the city and offer you a scholarship")
  21. else:
  22.     print("You don't know the way back to town so you decide to investigate. it turns out to be the watch they lead you back to the city and offer you a scholarship")
  23. event3 = input("Press a to accept it or press d to decline it")
  24. #sleep(3.0)
  25. if event3 == ("a"):
  26.     print("You accept the scholarship but for now you can switch job anytime you like but for now you are in Ankh-Morpork")
  27.     gold=gold+100
  28.     experience=experience+10
  29. else:
  30.     print("You decline but there are still other jobs around Ankh- Morpork")
  31. print("""Theres a salesman nearby offering you a scholarship. Hes selling rich, tangy foods and herbs and mald wine""")
  32. event4 = input("press a to accept or d to decline")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement