Advertisement
Guest User

Holmescraft

a guest
Jul 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.67 KB | None | 0 0
  1. # name: Kipland Melton
  2. # date started: 10/4/17
  3.  
  4. import random
  5. import time
  6. import sys
  7.  
  8. PlayerName = ""
  9. playerHP = 100
  10. PlayerClass = ""
  11. classList = [1,2,3,4]
  12. gameList = [1,2,3]
  13. if playerHP <= 0:
  14. print("Game Over!")
  15. sys.exit()
  16. classRand = random.choice(classList)
  17. DirectStart = ""
  18.  
  19. def PlayerHealth():
  20. print("""\nCurrent Health = """ +str(playerHP))
  21.  
  22. def GameStart():
  23. print("Welcome to Holmescraft!")
  24. random.choice(gameList)
  25.  
  26. def PlayerCombat():
  27. print("You've encountered a Monster!")
  28. time.sleep(1)
  29. input("What is your next move?: ")
  30.  
  31. def PlayerClassInp():
  32. if PlayerClass == "Warrior":
  33. print("""\n""" + PlayerName + """, you are a """ + PlayerClass + """, born with a fiery heart of vengeance.
  34. You awaken at the end of a dirt path, surrounded by trees. You are in
  35. rags, and the only possessions you have are a rusted shortsword,
  36. a compass, and a dry-rotted leather knapsack to contain them.""")
  37.  
  38. if PlayerClass == "Cleric":
  39. print("""\n""" + PlayerName + """, you are a """ + PlayerClass + """, born with a natural attunement of
  40. magic. You awaken at the end of a dirt path, surrounded by trees. You are in
  41. rags, and the only possessions you have are a small cloth talisman, a compass,
  42. mand a dry-rotted leather knapsack to contain them.""")
  43.  
  44. if PlayerClass == "Hunter":
  45. print("""\n""" + PlayerName + """, you are a """ + PlayerClass + """, born with a gift of exceptional agility
  46. and steadiness. You awaken at the end of a dirt path, surrounded by trees.
  47. You are in rags, and the only possessions you have are a wooden longbow,
  48. a compass, and a dry-rotted leather knapsack to contain them.""")
  49.  
  50. if PlayerClass == "Random":
  51. from HolmescraftRandomClass import RandomClass
  52. RandomClass()
  53.  
  54. GameStart()
  55.  
  56. print(".")
  57. time.sleep(.4)
  58. print("..")
  59. time.sleep(.4)
  60. print("...")
  61. time.sleep(.4)
  62.  
  63. PlayerName = input("What is your name, traveler?: ")
  64.  
  65. PlayerClass = input("""\nWhat class would you like to be?\n-Warrior\n-Cleric\n-Hunter\n-Random
  66. Enter your choice: """)
  67.  
  68. PlayerClassInp()
  69. PlayerHealth()
  70.  
  71. DirectStart = int(input("""\n1: Follow the path (North)
  72. 2: Go into the woods (West)
  73. 3: Go into the woods (East)
  74. 4: Go into the woods (South)
  75. Enter your choice: """))
  76.  
  77. if DirectStart == 1:
  78. print("""\nYou walk roughly a mile. You see a disturbingly large silhouette
  79. in the distance. You approach it and it attacks you.\n
  80. The monster deals an ungodly amount of damage.\nPlayer Health = 0\nGame Over!""")
  81. elif DirectStart == 2:
  82. input("""\nYou walk roughly half a mile. Stepping over thorns, deep mudholes,
  83. you feel fatigued. You take a break by sitting on a stump.\nYou are facing west.\n\n""")
  84. elif DirectStart == 3:
  85. input("""\nYou walk roughly half a mile. Stepping over thorns, deep mudholes,
  86. you feel fatigued. You find an abandoned ranch and you take shelter within it.
  87. \nYou are facing East.\n\n""")
  88. elif DirectStart == 4:
  89. input("""\nYou walk roughly half a mile. You approach onto a beach and see
  90. a beached ship with some sort of creature in the distance.\nYou are facing south.\n\n""")
  91.  
  92. -----HolmescraftDirectStart-----
  93.  
  94. DirectStart = ""
  95.  
  96. def Directional1():
  97. if DirectStart == "1":
  98. print("""You walk roughly a mile. You see a disturbingly large silhouette
  99. in the distance.""")
  100. if DirectStart == "2":
  101. print("""You walk roughly half a mile. Stepping over thorns, deep mudholes,
  102. you feel fatigued. You take a break by sitting on a stump.\nYou are facing
  103. west.""")
  104. if DirectStart == "3":
  105. print("""You walk roughly half a mile. Stepping over thorns, deep mudholes,
  106. you feel fatigued. You find an abandoned ranch and you take shelter within it.
  107. \nYou are facing East.""")
  108. if DirectStart == "4":
  109. print("""You walk roughly half a mile. You approach onto a beach and see
  110. a beached ship with some sort of creatures in the distance.\nYou are facing
  111. south.""")
  112.  
  113. -----HolmescraftRandomClass-----
  114.  
  115. ### Holmescraft random class generator
  116. import random
  117. classlist = [1,2,3,4]
  118. classRand = random.choice(classlist)
  119. playerHP = 100
  120. PlayerName = ""
  121.  
  122. def RandomClass():
  123. if classRand == 1:
  124. PlayerClassR = "Warrior"
  125. print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a fiery heart of vengeance.
  126. You awaken at the end of a dirt path, surrounded by trees. You are in
  127. rags, and the only possessions you have are a rusted shortsword,
  128. a compass, and a dry-rotted leather knapsack to contain them.""")
  129. if classRand == 2:
  130. PlayerClassR = "Cleric"
  131. print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a natural attunement of
  132. magic. You awaken at the end of a dirt path, surrounded by trees. You are in
  133. rags, and the only possessions you have are a small cloth talisman, a compass,
  134. and a dry-rotted leather knapsack to contain them.""")
  135. if classRand == 3:
  136. PlayerClassR = "Hunter"
  137. print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a gift of exceptional agility
  138. and steadiness. You awaken at the end of a dirt path, surrounded by trees.
  139. You are in rags, and the only possessions you have are a wooden longbow,
  140. a compass, and a dry-rotted leather knapsack to contain them.""")
  141. if classRand == 4:
  142. PlayerClassR = "Pizza Wizard"
  143. print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a gift of skin like mozzarella,
  144. and atunement for pizza magic. You awaken at the end of a dirt path, surronded
  145. by trees. You are in rags, and the only possessions you have are a staff made
  146. of pizza crust, a compass, and a dry-rotted leather knapsack to contain them.""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement