Advertisement
Guest User

uh phn hsmgmr

a guest
Oct 14th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.31 KB | None | 0 0
  1. from random import randint
  2.  
  3.  
  4. class Rando:
  5. def rand(num):
  6. rand = randint(1, num)
  7. return rand
  8.  
  9.  
  10. import time
  11.  
  12. time.sleep(2)
  13. print('...')
  14. time.sleep(3.5)
  15. print('Yet another one rises.')
  16. time.sleep(3.5)
  17. print('Welcome, forgotten one.')
  18. time.sleep(2)
  19. print('I am DYMINO. An AI programmed many centuries ago to protect the last of your kind, human.')
  20. time.sleep(3.5)
  21. print('Rendering history ...')
  22. time.sleep(0.7)
  23. print('... PROCESSING 33% ...')
  24. time.sleep(0.5)
  25. print('... PROCESSING 68% ...')
  26. time.sleep(0.5)
  27. print('... PROCESSING 100% ...')
  28. time.sleep(3)
  29. print(
  30. 'In the year 2046, a war broke out, resulting in world collapsing into nuclear fallout. Some of mankind had been preserved in pods as a part of PROJECT FORGOTTEN. You were one such person. Many have others have risen before you and at this point in time humanity is reminiscent to those who existed in the 15th century. All kind of radiated organisms now roam the land so I prithee you be careful. Here, with the essence of these defeated Forgottens, I can imbue their abilities into you.')
  31. time.sleep(7)
  32. print('Now then, choose your essence. Templar / Bogatyr / Magus')
  33.  
  34.  
  35. class CharClass:
  36. def __init__(self, name, hp, renown, bag=None, weapon=None):
  37. self.name = str(name)
  38. self.hp = int(hp)
  39. self.bag = bag
  40. self.renown = int(renown)
  41. self.weapon = str(weapon)
  42.  
  43.  
  44. class Templar(CharClass):
  45. def __init__(self):
  46. super().__init__(name=input('Can you recall your name?'), weapon=input('What weapon do you use?'), hp=2000,
  47. bag={'Hilt, armor, whiskey'}, renown=5)
  48.  
  49. starter = 'Templar'
  50. maxhp = 2000
  51.  
  52.  
  53. class Bogatyr(CharClass):
  54. def __init__(self):
  55. super().__init__(name=input('Can you recall your name?'), weapon=input('What weapon do you use?'), hp=1750,
  56. bag={'Mace, saddle, flasks'}, renown=3)
  57.  
  58. starter = 'Bogatyr'
  59. maxhp = 1750
  60.  
  61.  
  62. class Magus(CharClass):
  63. def __init__(self):
  64. super().__init__(name=input('Can you recall your name?'), weapon=input('What is your talisman?'), hp=1500,
  65. bag={'Bident, charms, chimes, staff'}, renown=3)
  66.  
  67. starter = 'Magus'
  68. maxhp = 1600
  69.  
  70.  
  71. class RampartGolem(CharClass):
  72. def __init__(self):
  73. super().__init__(name='Rampart Golem', hp=1200, bag={}, renown=8)
  74.  
  75.  
  76. class Mutant(CharClass):
  77. def __init__(self):
  78. super().__init__(name='Mutant', hp=1000, bag={}, renown=3)
  79.  
  80.  
  81. class Exile(CharClass):
  82. def __init__(self):
  83. super().__init__(name='Exile', hp=1150, bag={}, renown=7)
  84.  
  85.  
  86. def essence():
  87. sessence = input('?')
  88. if sessence == 'Templar':
  89. print ('You selected Templar as your starting class.')
  90. time.sleep(2)
  91. print (
  92. 'You are an outcasted knight from the New Templar Order of poor renown who collapsed roaming the land. Sturdy, owing to high strength and stout armor.')
  93. champion = Templar()
  94. return champion
  95. elif sessence == 'Bogatyr':
  96. print ('You selected Bogatyr as your starting class.')
  97. time.sleep(2)
  98. print (
  99. 'You are a legend of Slavic legend and a skilled spearman. In your eyes, high dexterity and damage is worth the reduction of armor.')
  100. champion = Bogatyr()
  101. return champion
  102. elif sessence == 'Magus':
  103. print ('You selcted Magus as your starting class.')
  104. time.sleep(2)
  105. print (
  106. 'You are a knowledgeable lone sorcerer who utilizes talismans and charms to channel the mystic arts into powerful, magical attacks.')
  107. champion = Magus()
  108. return champion
  109.  
  110. else:
  111. quit
  112.  
  113. # Champion
  114. return sessence
  115.  
  116.  
  117. def randomenemy():
  118. if Rando.rand(2) < 2:
  119. enem = Exile()
  120. if Rando.rand(2) == 1:
  121. enem = Mutant()
  122. else:
  123. enem = RampartGolem()
  124. # enem = Exile() if Rando.rand(2)<2 and enem==Mutant() elif Rando.rand(2)=1 else RampartGolem()
  125. return enem
  126.  
  127.  
  128. def ranks():
  129. # Rank system (bronze, silver, gold)
  130. if champion.renown >= 10:
  131. print ('You have recieved the Copper rank!')
  132. champion.maxhp += 100
  133.  
  134. if champion.renown >= 15:
  135. print ('You have recieved the Bronze rank!')
  136. champion.maxhp += 100
  137.  
  138. if champion.renown >= 20:
  139. print ('You have recieved the Silver rank!')
  140. champion.maxhp += 100
  141.  
  142. if champion.renown >= 25:
  143. print ('You have recieved the Gold rank!')
  144. champion.maxhp += 100
  145.  
  146. if champion.renown >= 30:
  147. print ('You have recieved the Platinum rank!')
  148. champion.maxhp += 100
  149.  
  150. if champion.renown >= 10:
  151. print ('Congratulations, you have recieved the Diamond rank!')
  152. champion.maxhp += 100
  153.  
  154.  
  155. def charAttack():
  156. randomize = Rando.rand(20)
  157. if randomize >= champion.renown - enem.renown:
  158. print('You ready your', champion.weapon, '!')
  159. print('You attacked with your', champion.weapon, '!')
  160. if champion.starter == 'Templar':
  161. randomizeR = Rando.rand(250)
  162.  
  163. if champion.starter == 'Bogatyr':
  164. randomizeR = Rando.rand(320)
  165.  
  166. if champion.starter == 'Magus':
  167. randomizeR = Rando.rand(400)
  168. print('for', randomizeR, 'HP!')
  169.  
  170. enem.hp -= randomizeR
  171. # enemy attacked -HP
  172.  
  173. print("The", enem.name, "has", enem.hp, "HP left!")
  174. else:
  175. print('The', enem.name, 'dodged your attack!')
  176.  
  177.  
  178. def enemAttack():
  179. randomize = Rando.rand(20)
  180. if randomize >= enem.renown - champion.renown:
  181. print ('-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-')
  182. print ('The enemy recoils.')
  183. if enem.name == 'Rampart Golem':
  184. randomizeD = Rando.rand(300)
  185. elif enem.name == 'Mutant':
  186. randomizeD = Rando.rand(200)
  187. elif enem.name == 'Exile':
  188. randomizeD = Rando.rand(350)
  189. print ('The', enem.name, 'hit for', randomizeD, 'HP!')
  190. champion.hp -= randomizeD
  191. print ('You now have', champion.hp, 'HP.')
  192. else:
  193. print ('You dodged the enemys attack!')
  194.  
  195.  
  196. def Attacks():
  197. if champion.starter == 'Templar':
  198. print (champion.weapon)
  199. # attack
  200. print ('Campbell Soup')
  201. # healing item
  202. print ('Bag')
  203. # inventory
  204. print ('Run')
  205. # pass
  206.  
  207. attackop = input('-=-=-=-= Select an Option =-=-=-=-')
  208. if attackop == (champion.weapon):
  209. charAttack()
  210. if attackop == 'Campbell Soup':
  211. print ('You healed 250HP from the Campbell Soup!')
  212. champion.hp += 250
  213. if attackop == 'Bag':
  214. print (champion.bag)
  215. if attackop == 'Run':
  216. pass
  217.  
  218. if champion.starter == 'Bogatyr':
  219. print (champion.weapon)
  220. print ('Vodka Flask')
  221. # healing item
  222. print ('Bag')
  223. print ('Run')
  224.  
  225. attackop = input('-=-=-=-= Select an Option =-=-=-=-')
  226. if attackop == (champion.weapon):
  227. charAttack()
  228. if attackop == 'Vodka Flask':
  229. print ('You healed 255HP from the Vodka!')
  230. champion.hp += 255
  231. if attackop == 'Bag':
  232. print (champion.bag)
  233. if attackop == 'Run':
  234. pass
  235.  
  236. if champion.starter == 'Magus':
  237. print (talisman)
  238. # magic attack
  239. print ('Potions of Regeneration')
  240. # healing item
  241. print ('Bag')
  242. print ('Run')
  243.  
  244. attackop = input('-=-=-=-= Select an Option =-=-=-=-')
  245. if attackop == (talisman):
  246. charAttack()
  247. if attackop == 'Potion of Regeneration':
  248. print ('You healed 300HP from the Potion of Regeneration!')
  249. champion.hp += 300
  250. if attackop == 'Bag':
  251. print (champion.bag)
  252. if attackop == 'Run':
  253. pass
  254.  
  255.  
  256. enem = randomenemy()
  257. champion = essence()
  258.  
  259. while True:
  260. if enem.hp <= 0:
  261. print ('-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-')
  262. print (enem.name, 'FALLEN.')
  263. champion.renown += enem.renown
  264. print ('RENOWN EMBRACED.')
  265. print ('-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-')
  266. enem = randomenemy()
  267. if champion.hp <= 0:
  268. print ('YOU DIED')
  269. print ('Final Renown Total:', champion.renown)
  270.  
  271. Attacks()
  272. enemAttack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement