Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # name: Kipland Melton
- # date started: 10/4/17
- import random
- import time
- import sys
- PlayerName = ""
- playerHP = 100
- PlayerClass = ""
- classList = [1,2,3,4]
- gameList = [1,2,3]
- if playerHP <= 0:
- print("Game Over!")
- sys.exit()
- classRand = random.choice(classList)
- DirectStart = ""
- def PlayerHealth():
- print("""\nCurrent Health = """ +str(playerHP))
- def GameStart():
- print("Welcome to Holmescraft!")
- random.choice(gameList)
- def PlayerCombat():
- print("You've encountered a Monster!")
- time.sleep(1)
- input("What is your next move?: ")
- def PlayerClassInp():
- if PlayerClass == "Warrior":
- print("""\n""" + PlayerName + """, you are a """ + PlayerClass + """, born with a fiery heart of vengeance.
- You awaken at the end of a dirt path, surrounded by trees. You are in
- rags, and the only possessions you have are a rusted shortsword,
- a compass, and a dry-rotted leather knapsack to contain them.""")
- if PlayerClass == "Cleric":
- print("""\n""" + PlayerName + """, you are a """ + PlayerClass + """, born with a natural attunement of
- magic. You awaken at the end of a dirt path, surrounded by trees. You are in
- rags, and the only possessions you have are a small cloth talisman, a compass,
- mand a dry-rotted leather knapsack to contain them.""")
- if PlayerClass == "Hunter":
- print("""\n""" + PlayerName + """, you are a """ + PlayerClass + """, born with a gift of exceptional agility
- and steadiness. You awaken at the end of a dirt path, surrounded by trees.
- You are in rags, and the only possessions you have are a wooden longbow,
- a compass, and a dry-rotted leather knapsack to contain them.""")
- if PlayerClass == "Random":
- from HolmescraftRandomClass import RandomClass
- RandomClass()
- GameStart()
- print(".")
- time.sleep(.4)
- print("..")
- time.sleep(.4)
- print("...")
- time.sleep(.4)
- PlayerName = input("What is your name, traveler?: ")
- PlayerClass = input("""\nWhat class would you like to be?\n-Warrior\n-Cleric\n-Hunter\n-Random
- Enter your choice: """)
- PlayerClassInp()
- PlayerHealth()
- DirectStart = int(input("""\n1: Follow the path (North)
- 2: Go into the woods (West)
- 3: Go into the woods (East)
- 4: Go into the woods (South)
- Enter your choice: """))
- if DirectStart == 1:
- print("""\nYou walk roughly a mile. You see a disturbingly large silhouette
- in the distance. You approach it and it attacks you.\n
- The monster deals an ungodly amount of damage.\nPlayer Health = 0\nGame Over!""")
- elif DirectStart == 2:
- input("""\nYou walk roughly half a mile. Stepping over thorns, deep mudholes,
- you feel fatigued. You take a break by sitting on a stump.\nYou are facing west.\n\n""")
- elif DirectStart == 3:
- input("""\nYou walk roughly half a mile. Stepping over thorns, deep mudholes,
- you feel fatigued. You find an abandoned ranch and you take shelter within it.
- \nYou are facing East.\n\n""")
- elif DirectStart == 4:
- input("""\nYou walk roughly half a mile. You approach onto a beach and see
- a beached ship with some sort of creature in the distance.\nYou are facing south.\n\n""")
- -----HolmescraftDirectStart-----
- DirectStart = ""
- def Directional1():
- if DirectStart == "1":
- print("""You walk roughly a mile. You see a disturbingly large silhouette
- in the distance.""")
- if DirectStart == "2":
- print("""You walk roughly half a mile. Stepping over thorns, deep mudholes,
- you feel fatigued. You take a break by sitting on a stump.\nYou are facing
- west.""")
- if DirectStart == "3":
- print("""You walk roughly half a mile. Stepping over thorns, deep mudholes,
- you feel fatigued. You find an abandoned ranch and you take shelter within it.
- \nYou are facing East.""")
- if DirectStart == "4":
- print("""You walk roughly half a mile. You approach onto a beach and see
- a beached ship with some sort of creatures in the distance.\nYou are facing
- south.""")
- -----HolmescraftRandomClass-----
- ### Holmescraft random class generator
- import random
- classlist = [1,2,3,4]
- classRand = random.choice(classlist)
- playerHP = 100
- PlayerName = ""
- def RandomClass():
- if classRand == 1:
- PlayerClassR = "Warrior"
- print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a fiery heart of vengeance.
- You awaken at the end of a dirt path, surrounded by trees. You are in
- rags, and the only possessions you have are a rusted shortsword,
- a compass, and a dry-rotted leather knapsack to contain them.""")
- if classRand == 2:
- PlayerClassR = "Cleric"
- print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a natural attunement of
- magic. You awaken at the end of a dirt path, surrounded by trees. You are in
- rags, and the only possessions you have are a small cloth talisman, a compass,
- and a dry-rotted leather knapsack to contain them.""")
- if classRand == 3:
- PlayerClassR = "Hunter"
- print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a gift of exceptional agility
- and steadiness. You awaken at the end of a dirt path, surrounded by trees.
- You are in rags, and the only possessions you have are a wooden longbow,
- a compass, and a dry-rotted leather knapsack to contain them.""")
- if classRand == 4:
- PlayerClassR = "Pizza Wizard"
- print("""\n""" + PlayerName + """You are a """ + PlayerClassR + """, born with a gift of skin like mozzarella,
- and atunement for pizza magic. You awaken at the end of a dirt path, surronded
- by trees. You are in rags, and the only possessions you have are a staff made
- of pizza crust, a compass, and a dry-rotted leather knapsack to contain them.""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement