Sidonis

First Python project

Jan 14th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.38 KB | None | 0 0
  1. from __future__ import print_function
  2. import time
  3.  
  4. print("Made by Christain Orozco Copyright 2018 All Rights Reserved")
  5. time.sleep(5)
  6. print("'So lets begin, what is your name?'")
  7.  
  8. x = raw_input()
  9.  
  10. print("'Nice to meet you' " + x)
  11. time.sleep(3)
  12. print("'So, " + x, "do you know why you've been brought here'? \n[y/n]")
  13. # First player input
  14. y = raw_input()
  15. if y == "y":
  16.     print("'No you don't...'")
  17. else:
  18.  
  19.     print("'Well, I'll tell you.'")
  20.  
  21. time.sleep(2)
  22. print("'So the generic storyline is that there is an evil dark lord who hates humans'")
  23. time.sleep(6)
  24. print("'Here is your magic sword' \n'You can point it and use it like a gun'")
  25. time.sleep(4)
  26. print("+1 Magic Sword")
  27. # Inventory
  28. inv = []
  29. inv.append("Magic Sword")
  30.  
  31. time.sleep(3)
  32. print("Inventory: ", inv)
  33. time.sleep(4)
  34. # training
  35. print("'Want me to train you?'\n 'Or do you want to just skip the tutorial'")
  36. time.sleep(3)
  37. print("Want to train? [y/n]")
  38. train = raw_input()
  39. time.sleep(2)
  40. # Train "choice"
  41. if train == "y":
  42.     print("'Great head to the camp to get started'")
  43. elif train == "n":
  44.     print("'Well then I guess were getting straight into it,\n Follow me to the castle.'")
  45. else:
  46.     print("'I didn't ask for anything other than yes or no... but I take it you don't want to train.!'")
  47. time.sleep(4)
  48.  
  49. print("+1 Super Awesome Spear")
  50. inv.append("Super Awesome Spear")
  51. print("Inventory: ", inv)
  52. time.sleep(3)
  53. print("Here is an awesome mega spear, its magic or something")
  54. # damage and armor/weapons
  55. print("Quick! Throw it at that goblin over there!")
  56. weapdmg = {"spear": 50}
  57. # Combat function
  58. def attack(fightseq):
  59.     for k, v in fightseq.items():
  60.         return ("Your weapon " + k + " did " + str(v) + " points of damage to the enemy")
  61.  
  62. print(attack(weapdmg))
  63. time.sleep(3)
  64. print("Nice job! Now Ill finish it off!")
  65. time.sleep(5)
  66. print("+1 Goblin Tooth")
  67. time.sleep(2)
  68. inv.append("Goblin Tooth")
  69. print(inv)
  70. time.sleep(4)
  71. print("Now that that is over where do you wanna go?\n [castle gate = a, village = b,  forest = c")
  72. # input for the location the player wants to travel
  73. dest = raw_input()
  74.  
  75. if dest == "a":
  76.     time.sleep(5)
  77.     print("Welcome to isolation the biggest castle in all of groundcenter")
  78.     time.sleep(4)
  79.     print("Gaurd: 'HALT! Who goes there!'\n'It is me bigger boss and my friend " + x)
  80.     time.sleep(5)
  81.     print("Gaurd: Okay you may enter, you will be wacthed")
  82.     print("coolio")
  83. elif dest == "b":
  84.     time.sleep(5)
  85.     print("We have made it to the village of Blackwalk\n I wouldn't look folks in the eye here")
  86.     time.sleep(3)
  87.     print("Look! Over there those thugs are attacking that women! What should we do?")
  88.     time.sleep(4)
  89.     print("a- Keep walking and ignore them\n b- Run in blindly and attack them\n c-Threaten them")
  90.     a = raw_input()
  91.  
  92.     if a == "a":
  93.         print("Wow you're not who I thought you were, leaving that poor old women to die...")
  94.     elif a == "b":
  95.         print("Wait slow down! *you get brutally beat and they steal your money as well as the lady's")
  96.     else:
  97.         print("They slowly back off and the woman gives you 10 coins")
  98.  
  99.     inv.append("10 coins")
  100.     print("+ 10 coins")
  101.     time.sleep(4)
  102.     print(inv)
  103.     time.sleep(5)
  104.     print("Well that was an ordeal but you got some coin out of it at least\n even though only one option made sense")
  105.     time.sleep(4)
  106. else:
  107.     # User goes to forest
  108.     time.sleep(5)
  109.     inv.append("Torch")
  110.     print("Its dark here I should light a torch")
  111.     time.sleep(4)
  112.     print("+1 Torch(lit)")
  113.     time.sleep(3)
  114.     print("*As the light intrudes on the darkness you make out the eyes of wolves stalking you*")
  115.     time.sleep(5)
  116.     # Player chooses what to do
  117.     print(
  118.         "What do you do?\n a- Scare them off with the light\n b- Howl and try to befriend them\n c- try and kill them")
  119.     ch = raw_input()
  120.  
  121.     if ch == "a":
  122.         print("They back off and eventually leave you alone")
  123.     elif ch == "b":
  124.         print("They howl back and leave you a gift\n +1 Wolf Horn")
  125.         inv.append("Wolf Horn")
  126.     else:
  127.         print(
  128.             "They slowly start to intrude on you and you strike! Killing one of them but the other three slowly creep in and they attack nearly killing you\n -20hp")
  129.  
  130.     time.sleep(5)
  131.     print("I knew I shouldn't have come here!")
  132.     time.sleep(5)
  133.  
  134. # Coming back to the main file
  135. print("Okay we should head back to base now!")
  136. print(inv)
Advertisement
Add Comment
Please, Sign In to add comment