Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.89 KB | None | 0 0
  1. Module Module1
  2.  
  3. Dim userweapon As String = ""
  4.  
  5. Dim Creatures() As String = {"goblin", "man", "orc", "elf", "creature", "being", "troll", "giant", "bandit", "archer", "swordsman", "ranger", "trekker", "wanderer", "wizard", "adventurer",
  6. "entity", "ghost", "skeleton", "zombie", "spirit", "protegent 360 antivirus software", "demigod", "vampire", "warper", "dragon", "snake", "spider", "beast", "sorcerer", "ant", "B O I"}
  7.  
  8. Dim CreaturesDesc() As String = {"small", "large", "slim", "slimy", "long", "bored-looking", "tired-looking", "colourful", "shiny", "angry", "furious", "ravenous", "insane", "injured", "proud-looking", "strong",
  9. "powerful", "muscular", "incredible", "impressive", "dangerous", "weird-looking", "strange", "shadowy", "shifty", "ridiculous-looking", "crazed", "long-armed", "long-legged", "sickly",
  10. "diseased", "yucky", "vile", "exuberant", "alert", "dirty", "filthy", "depressed", "sophisticated", "suspicious", "confused-looking", "boistrous", "devious", "super"}
  11.  
  12.  
  13. Sub Forward()
  14. Console.ForegroundColor = ConsoleColor.Red
  15. Console.WriteLine("Forward")
  16. Console.ForegroundColor = ConsoleColor.Gray
  17. End Sub
  18.  
  19.  
  20. Function RandomItem(ByVal succarray As Array)
  21. Return succarray(Math.Floor(Rnd() * succarray.Length))
  22. End Function
  23.  
  24. Sub Engagements(ByVal WinChance As Decimal, ByVal FleeChance As Decimal)
  25. Console.WriteLine("What will you do? Fight (1) or flee (2)?")
  26.  
  27. Dim RandomDeathCombatStart() As String = {"How unfortunate!", "Uh Oh!", "Oops!", "Oh dear!", "How could this happen?", "What bad luck!", "How unfair!", "What a cruel twist of fate!", "Luck was not on your side.",
  28. "Fate was not kind to you.", "Looks like you werent skilled enough!", "What a cruel end!", "What an unlucky end!", "Your efforts were in vain!"}
  29.  
  30. Dim RandomKillCombatEnd() As String = {"Wow!", "Amazing!", "Incredible!", "Stunning!", "What a fight!", "What a battle!", "That was intense!", "That was insane!", "What a display of skill!", "What a display of power!",
  31. "How did you do that!?", "Simply epic!", "Awesome work!", "Unbelievable!"}
  32.  
  33. Dim RandomDeathCombat() As String = {RandomItem(RandomDeathCombatStart) & " Your efforts were in vain - your opponent has struck a killing blow!", RandomItem(RandomDeathCombatStart) &
  34. " Your enemy dashes around much faster than you can see and swiftly executes you!", RandomItem(RandomDeathCombatStart) & " Your foe punches dirctly through your heart.",
  35. RandomItem(RandomDeathCombatStart) & " The enemy beats you to the ground and rips your head off.", RandomItem(RandomDeathCombatStart) & " The enemy kills you in a single hit.",
  36. RandomItem(RandomDeathCombatStart) & " The foe defeats you with the agility of a " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & " and the power of a " & (RandomItem(CreaturesDesc)) & (RandomItem(Creatures)) & "!",
  37. RandomItem(RandomDeathCombatStart) & " The foe defeats you as if it were a " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & "."}
  38.  
  39. Dim RandomKillCombat() As String = {RandomItem(RandomKillCombatEnd) & " You shred the enemy with brutal speed and efficiency with your " & userweapon & ".",
  40. RandomItem(RandomKillCombatEnd) & " You rip the enemy to pieces in a split second with only a single blow from your " & userweapon & ".",
  41. RandomItem(RandomKillCombatEnd) & " You use a spell to teleport behind the enemy and then thrust your " & userweapon & " into it, ending its life.",
  42. RandomItem(RandomKillCombatEnd) & " You distract the foe with a hologram spell before decapitating it with a swift strike.",
  43. RandomItem(RandomKillCombatEnd) & " You kill it with the speed of a " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & " and the power of a " & " " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & ".",
  44. RandomItem(RandomKillCombatEnd) & " You annihilate its useless defence with an overpowering blow, leaving it dead on the ground.",
  45. RandomItem(RandomKillCombatEnd) & " Using the spirit of the " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & ", you obliterate its molecular structure in a single hit.",
  46. RandomItem(RandomKillCombatEnd) & " You think back to the times when you trained with the " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & ". Newly imbued with power, you send the enemy straight to the eternal void.",
  47. RandomItem(RandomKillCombatEnd) & " Your master, the " & (RandomItem(CreaturesDesc)) & " " & (RandomItem(Creatures)) & ", taught you exactly what to do in this situatuon. You erase the enemys puny existance with a magic empowered critical strike."}
  48.  
  49. Dim userinput = Console.ReadLine
  50. If userinput = "1" Then
  51. If Rnd() < WinChance Then
  52. Console.WriteLine(RandomItem(RandomKillCombat))
  53. Console.ReadLine()
  54. End
  55. Else
  56. Console.WriteLine(RandomItem(RandomDeathCombat))
  57. GameOver()
  58. End If
  59. ElseIf userinput = "2" Then
  60. If Rnd() < FleeChance Then
  61. Console.WriteLine("You left successfully.")
  62. Else
  63. Console.WriteLine("You can not outrun your foe.")
  64. GameOver()
  65. End If
  66. End If
  67. End Sub
  68.  
  69. Sub GameOver()
  70. Console.ForegroundColor = ConsoleColor.Red
  71. Console.WriteLine("YOU ARE DEAD")
  72. Console.ReadLine()
  73. End
  74. End Sub
  75.  
  76. Function Weapon() As String
  77.  
  78. Dim Weaponarray() As String = {"Sword", "Flail", "Crossbow", "Dagger", "Stick", "Claymore", "Halberd", "Katana", "Longsword", "Bow", "Spear", "Scimitar", "War Hammer", "Greatsword", "Lance", "Mace", "Glaive", "Pike", "Staff",
  79. "Protegent 360 antivirus"}
  80.  
  81. Dim WeaponModifiersarray() As String = {"accurate", "basic", "crude", "savage", "big", "large", "small", "tiny", "broken", "blunt", "common", "concealed", "hidden", "custom-made", "deadly", "defensive", "offensive", "explosive", "magic", "cursed", "enchanted",
  82. "fearsome", "heavy", "huge", "laser-firing", "flame-emitting", "flame-spewing", "plasma-emitting", "lighting-shooting", "thunder-causing", "hefty", "overweight", "thermonuclear", "void", "peculiar", "wooden", "steel",
  83. "sharpened", "primitive", "spiritual", "ultimate", "spiked", "flexible", "useless", "stupid", "non-functional", "over-powered", "precious", "special"}
  84.  
  85. Dim Randomwep = Rnd()
  86.  
  87. If Randomwep > 0.9 Then
  88. Return (RandomItem(Weaponarray))
  89. ElseIf Randomwep > 0.6 Then
  90. Return (RandomItem(WeaponModifiersarray) & " " & (RandomItem(Weaponarray)))
  91. ElseIf Randomwep > 0.2 Then
  92. Return (RandomItem(WeaponModifiersarray) & " " & (RandomItem(WeaponModifiersarray) & " " & (RandomItem(Weaponarray))))
  93. Else
  94. Return (RandomItem(WeaponModifiersarray) & " " & (RandomItem(WeaponModifiersarray) & " " & (RandomItem(WeaponModifiersarray) & " " & (RandomItem(Weaponarray)))))
  95. End If
  96.  
  97. End Function
  98.  
  99.  
  100. Sub Main()
  101.  
  102. Randomize()
  103.  
  104. Dim RandomDeath() As String = {"You trip on a small stick and break your neck in a comical fashion.",
  105. "You take one step and die from the cancer you never knew you had.",
  106. "Unfortunately, you are ambushed and assasinated by ninja bandits.",
  107. "Unfortunately, you anger a level 999 wizard who strikes you down with a wicked spell.",
  108. "Unfortunately, you anger a paticularly irate creature which ravenously tears you to shreds without giving you a chance.",
  109. "What a twiste of fate! You stumble upon a flesh-eating ants nest. They swarm and consume in only a moment.",
  110. "Oh Dear! You find out you have a fatal fruit allergy by eating some off a nearby tree.",
  111. "Oops! You accidently step on a magical spell, set up to kill adventurers that incinerates you in an instant.",
  112. "H E H A S C O M E .",
  113. "I T S H I M ."}
  114.  
  115. Dim Words() As String = {"putrid", "disgusting", "revolting", "assualting", "horrible", "violating", "sickening", "toxic", "repulsive"}
  116. Dim Followup() As String = {" scent attacks your senses.",
  117. " scent assaults your senses.",
  118. " smell violates your nose.",
  119. " armoa wafts around the air.",
  120. " scent hangs in the air.",
  121. " aroma hangs in the air.",
  122. " scent makes the air thicc.",
  123. " stench makes the air thicc.",
  124. " stench hangs in the air.",
  125. " stench insults your very being.",
  126. " aroma insults your very being."}
  127.  
  128. Dim EncounterANGRY() As String = {"It lunges at you and you just barely evade it.", "It starts yelling as loud as it can.", "It looks primed and ready to fight...", "It assumes a fighting stance.",
  129. "It stares at you with fierce eyes...", "The look it gives you tells you its not mucking about.", "Seems like this could be bad...", "Seems like a fight is ahead of you..."}
  130.  
  131. Dim EncounterFRIENDLY() As String = {"It simply wishes you well on your journey.", "It gives you a friendly nod of greeting", "Wow its cheering and shouting encouragement about how well you are doing.",
  132. "It offers a bowl of food to you. You take it and store it for your journey.", "It asks if you would like to sit by its fire with it. You politely decline and carry on your way.",
  133. "It gives you a friendly wave! How nice!", "Its initially startled by your appearance but quickly realises what you are and flashes you a smile.", "It says hey and passes by you"}
  134.  
  135. Dim EncounterCALM() As String = {"You approach. It doesnt even look up at you...", "It silently passes you...", "It produces no sound at all as it passes by...", "Its eerie nature is visible even from a great distance...",
  136. "You feel a chill pass down your spine as you pass it...", "It observes you silently as you pass...", "It watches you from above as you pass beneath it...", "It just watches...",
  137. "It freezes completely as you approach. Perfectly motionless...", "It creepily chuckles to itself as you walk by...", "It spookily whispers to itself as you pass by..."}
  138.  
  139. Dim EncounterDEAD() As String = {"Most certainly dead. Looks like it was killed by a " & Weapon(), "Totally pale and lifeless. You pray whatever killed it isnt still around...",
  140. "Killed by a " & Weapon() & ". Brutal", "Drained of all its blood. You hope never to see the thing that did this...", "Looks like it was killed by a " & Weapon(),
  141. "Looks like a " & Weapon() & " killed it. Thank god. You didnt want to deal with it...", "Could have been a" & Weapon() & "? But it also could have been a " & Weapon() & "...",
  142. "A " & Weapon() & "? A " & Weapon() & "? No must have been a " & Weapon()}
  143.  
  144. ' Dim Health As Integer = 100
  145. ' Dim Shield As Integer = 0
  146. ' Dim Attack As Integer = 20
  147.  
  148. Console.ForegroundColor = ConsoleColor.Green
  149. Console.WriteLine("Please input your name:")
  150. Console.ForegroundColor = ConsoleColor.Gray
  151. Dim username As String = Console.ReadLine
  152.  
  153. Dim class1 = ""
  154. Dim class2 = ""
  155. Dim class3 = ""
  156.  
  157. Do Until class1 <> class2 And class1 <> class3 And class2 <> class3
  158. class1 = UCase(RandomItem(Creatures))
  159. class2 = UCase(RandomItem(Creatures))
  160. class3 = UCase(RandomItem(Creatures))
  161. Loop
  162.  
  163. Console.WriteLine()
  164. Console.ForegroundColor = ConsoleColor.Green
  165. Console.WriteLine("Pick your class: ")
  166. Console.ForegroundColor = ConsoleColor.Gray
  167. Console.WriteLine(class1 & " ---> +10 to Attack, -30 from health (1)")
  168. Console.WriteLine(class2 & " ---> +3 to Attack, -10 from health (2)")
  169. Console.WriteLine(class3 & " ---> No Change (3)")
  170.  
  171. Dim userinput = Console.ReadLine
  172. Dim userclass As String = ""
  173. If userinput = "1" Then
  174. userclass = class1
  175. ' Health = 8
  176. ' Attack = 12
  177. ElseIf userinput = "2" Then
  178. userclass = class2
  179. ' Attack =
  180. ElseIf userinput = "3" Then
  181. userclass = class3
  182. End If
  183.  
  184. Dim weapon1 = ""
  185. Dim weapon2 = ""
  186. Dim weapon3 = ""
  187.  
  188. Do Until weapon1 <> weapon2 And weapon1 <> weapon3 And weapon2 <> weapon3
  189. weapon1 = UCase(Weapon())
  190. weapon2 = UCase(Weapon())
  191. weapon3 = UCase(Weapon())
  192. Loop
  193.  
  194. Console.WriteLine()
  195. Console.ForegroundColor = ConsoleColor.Green
  196. Console.WriteLine("Choose your weapon: ")
  197. Console.ForegroundColor = ConsoleColor.Gray
  198. Console.WriteLine(UCase(weapon1) & " (1)")
  199. Console.WriteLine(UCase(weapon2) & " (2)")
  200. Console.WriteLine(UCase(weapon3) & " (3)")
  201.  
  202. userinput = Console.ReadLine
  203. If userinput = "1" Then
  204. userweapon = weapon1
  205. ElseIf userinput = "2" Then
  206. userweapon = weapon2
  207. ElseIf userinput = "3" Then
  208. userweapon = weapon3
  209. End If
  210.  
  211. Console.WriteLine()
  212. Console.ForegroundColor = ConsoleColor.Green
  213. Console.WriteLine("YOU ARE: ")
  214. Console.ForegroundColor = ConsoleColor.Yellow
  215. Console.WriteLine((UCase(username) & ", THE " & UCase(RandomItem(CreaturesDesc)) & " " & userclass & " WITH A " & UCase(userweapon)))
  216. Console.ForegroundColor = ConsoleColor.Gray
  217. Console.ReadLine()
  218.  
  219. Console.WriteLine("You are in the middle of nowhere. Which way would you like to go?")
  220. Console.WriteLine("Forward(1), Back(2), Left(3) or Right(4)?")
  221.  
  222. userinput = Console.ReadLine
  223.  
  224. If userinput = "1" Then
  225.  
  226. If Rnd() < 0.95 Then
  227.  
  228. Forward()
  229.  
  230. Dim Random = Rnd()
  231.  
  232. Dim Creature1 = ""
  233. Dim Creature2 = ""
  234. Dim Creature3 = ""
  235.  
  236. Do Until Creature1 <> Creature2 And Creature1 <> Creature3 And Creature2 <> Creature3
  237. Creature1 = UCase(RandomItem(Creatures))
  238. Creature2 = UCase(RandomItem(Creatures))
  239. Creature3 = UCase(RandomItem(Creatures))
  240. Loop
  241.  
  242. Console.WriteLine("You arrive in a swamp. The " & RandomItem(Words) & RandomItem(Followup))
  243. Console.WriteLine()
  244. If Random > 0.9 Then
  245. Console.WriteLine("In front of you is a " & Creature1)
  246. ElseIf Random > 0.6 Then
  247. Console.WriteLine("In front of you is a " & RandomItem(CreaturesDesc) & " " & Creature1)
  248. ElseIf Random > 0.3 Then
  249. Console.WriteLine("In front of you is a " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & Creature1)
  250. Else
  251. Console.WriteLine("In front of you is a " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & Creature1)
  252. End If
  253.  
  254. Dim Random1 = Rnd()
  255.  
  256. If Random1 > 0.9 Then
  257. Console.WriteLine("To your left is a " & Creature2)
  258. ElseIf Random1 > 0.6 Then
  259. Console.WriteLine("To your left is a " & RandomItem(CreaturesDesc) & " " & Creature2)
  260. ElseIf Random1 > 0.3 Then
  261. Console.WriteLine("To your left is a " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & Creature2)
  262. Else
  263. Console.WriteLine("To your left is a " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & Creature2)
  264. End If
  265.  
  266. Dim Random2 = Rnd()
  267.  
  268. If Random2 > 0.9 Then
  269. Console.WriteLine("To your right is a " & Creature3)
  270. ElseIf Random2 > 0.6 Then
  271. Console.WriteLine("To your right is a " & RandomItem(CreaturesDesc) & " " & Creature3)
  272. ElseIf Random2 > 0.3 Then
  273. Console.WriteLine("To your right is a " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & Creature3)
  274. Else
  275. Console.WriteLine("To your left is a " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & RandomItem(CreaturesDesc) & " " & Creature3)
  276. End If
  277. Console.WriteLine("Which way would you like to go?")
  278. Console.WriteLine("Forward(1), Left(2) or Right(3)?")
  279.  
  280. Else
  281. Console.ForegroundColor = ConsoleColor.Red
  282. Console.WriteLine(RandomItem(RandomDeath) & " YOU ARE DEAD.")
  283. Console.ReadLine()
  284. End
  285.  
  286. End If
  287. '-------------------------------------------------------------------------------------------------------------ROUTE 1
  288.  
  289. userinput = Console.ReadLine
  290. If userinput = "1" Or userinput = "2" Or userinput = "3" Then
  291. Dim Creature1 As String = ""
  292. Dim RandomChar = Rnd()
  293.  
  294. If RandomChar < 0.25 Then
  295. Console.WriteLine("The " & Creature1 & " is aggressive!" & " " & RandomItem(EncounterANGRY)) 'ANGERY BOI
  296. Engagements(0.5, 0.5)
  297.  
  298. ElseIf RandomChar < 0.5 Then
  299. Console.WriteLine("Its very friendly." & " " & RandomItem(EncounterFRIENDLY)) 'FRIENDLY BOI
  300. Engagements(0.6, 1)
  301.  
  302. ElseIf RandomChar < 0.75 Then
  303. Console.WriteLine("Its strangely unphased by your prescence." & " " & RandomItem(EncounterCALM)) 'CALM BOI
  304. Engagements(0.7, 1)
  305.  
  306.  
  307. Else
  308. Console.WriteLine("Upon closer inspection, it seems to be dead." & " " & RandomItem(EncounterDEAD)) 'DEAD BOI
  309. Console.WriteLine("What will you do? Loot(1) or Leave(2)?")
  310. End If
  311. End If
  312.  
  313. userinput = Console.ReadLine
  314. If userinput = "1" Then
  315.  
  316. If Rnd() < 0.75 Then
  317. Console.ForegroundColor = ConsoleColor.Yellow
  318. Console.WriteLine("You looted a " & Weapon() & " from the body.")
  319. Console.ForegroundColor = ConsoleColor.Gray
  320. Console.WriteLine("The dead body is making you uneasy...You should leave(1)...")
  321.  
  322. Else
  323.  
  324. Console.WriteLine("You approach the body to loot but it looks like it still has some life in it yet!")
  325. Engagements(0.7, 0.8)
  326. End If
  327. End If
  328.  
  329.  
  330. ElseIf userinput = "2" Then 'OTHER OPTIONS
  331.  
  332. Console.WriteLine("You arrive in a run down town")
  333.  
  334. ElseIf userinput = "3" Then
  335.  
  336. Console.WriteLine("You arrive in a shadowy forest")
  337.  
  338. ElseIf userinput = "4" Then
  339.  
  340. Console.WriteLine("You arrive at a ruined castle")
  341.  
  342. Else
  343.  
  344. Console.WriteLine("Please enter a valid input")
  345.  
  346. End If
  347.  
  348. Console.ReadLine()
  349.  
  350. End Sub
  351.  
  352. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement