Advertisement
Guest User

randomizer script

a guest
Mar 19th, 2021
1,858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. begin mort_randomizer
  2.  
  3. short i
  4. short n
  5.  
  6. long test
  7.  
  8. if ( mort_randomized_done == 1 )
  9. StopScript mort_randomizer
  10. Return
  11. endif
  12.  
  13. set test to test + 1
  14.  
  15. set n to Random 50
  16.  
  17. if ( n == rand_aurielshield )
  18. elseif ( n == rand_denstagmer )
  19. elseif ( n == rand_dragonbone )
  20. elseif ( n == rand_eleidon )
  21. elseif ( n == rand_fang )
  22. elseif ( n == rand_hasedoki )
  23. elseif ( n == rand_mentor )
  24. elseif ( n == rand_phynaster )
  25. elseif ( n == rand_randagulf_l )
  26. elseif ( n == rand_randagulf_r )
  27. elseif ( n == rand_saviors )
  28. elseif ( n == rand_scourge )
  29. elseif ( n == rand_shadows )
  30. elseif ( n == rand_tenpace )
  31. elseif ( n == rand_vampring )
  32. elseif ( n == rand_volendrung )
  33. elseif ( n == rand_shimsil )
  34. elseif ( n == rand_magebane )
  35. elseif ( n == rand_slurring )
  36. elseif ( n == rand_shadowsting )
  37. elseif ( n == rand_whitewalker )
  38. elseif ( n == rand_d_battleaxe )
  39. elseif ( n == rand_d_boots )
  40. elseif ( n == rand_d_claymore )
  41. elseif ( n == rand_d_club )
  42. elseif ( n == rand_d_cuirass )
  43. elseif ( n == rand_d_dagger )
  44. elseif ( n == rand_d_daikatana )
  45. elseif ( n == rand_d_facegod )
  46. elseif ( n == rand_d_faceinsp )
  47. elseif ( n == rand_d_faceterror )
  48. elseif ( n == rand_d_gaunt_l )
  49. elseif ( n == rand_d_gaunt_r )
  50. elseif ( n == rand_d_greaves )
  51. elseif ( n == rand_d_katana )
  52. elseif ( n == rand_d_longbow )
  53. elseif ( n == rand_d_longsword )
  54. elseif ( n == rand_d_mace )
  55. elseif ( n == rand_d_pauldron_l )
  56. elseif ( n == rand_d_pauldron_r )
  57. elseif ( n == rand_d_shield )
  58. elseif ( n == rand_d_towershield )
  59. elseif ( n == rand_d_shortsword )
  60. elseif ( n == rand_d_spear )
  61. elseif ( n == rand_d_staff )
  62. elseif ( n == rand_d_tanto )
  63. elseif ( n == rand_d_wakizashi )
  64. elseif ( n == rand_d_waraxe )
  65. elseif ( n == rand_d_warhammer )
  66. else
  67. if ( i == 1 )
  68. set rand_aurielshield to n
  69. elseif ( i == 2 )
  70. set rand_denstagmer to n
  71. elseif ( i == 3 )
  72. set rand_dragonbone to n
  73. elseif ( i == 4 )
  74. set rand_eleidon to n
  75. elseif ( i == 5 )
  76. set rand_fang to n
  77. elseif ( i == 6 )
  78. set rand_hasedoki to n
  79. elseif ( i == 7 )
  80. set rand_mentor to n
  81. elseif ( i == 8 )
  82. set rand_randagulf_r to n
  83. elseif ( i == 9 )
  84. set rand_phynaster to n
  85. elseif ( i == 10 )
  86. set rand_saviors to n
  87. elseif ( i == 11 )
  88. set rand_scourge to n
  89. elseif ( i == 12 )
  90. set rand_shadows to n
  91. elseif ( i == 13 )
  92. set rand_tenpace to n
  93. elseif ( i == 14 )
  94. set rand_vampring to n
  95. elseif ( i == 15 )
  96. set rand_shadowsting to n
  97. elseif ( i == 16 )
  98. set rand_shimsil to n
  99. elseif ( i == 17 )
  100. set rand_slurring to n
  101. elseif ( i == 18 )
  102. set rand_whitewalker to n
  103. elseif ( i == 19 )
  104. set rand_d_battleaxe to n
  105. elseif ( i == 20 )
  106. set rand_d_boots to n
  107. elseif ( i == 21 )
  108. set rand_d_claymore to n
  109. elseif ( i == 22 )
  110. set rand_d_club to n
  111. elseif ( i == 23 )
  112. set rand_d_cuirass to n
  113. elseif ( i == 24 )
  114. set rand_d_dagger to n
  115. elseif ( i == 25 )
  116. set rand_d_daikatana to n
  117. elseif ( i == 26 )
  118. set rand_d_facegod to n
  119. elseif ( i == 27 )
  120. set rand_d_faceinsp to n
  121. elseif ( i == 28 )
  122. set rand_d_faceterror to n
  123. elseif ( i == 29 )
  124. set rand_d_gaunt_l to n
  125. elseif ( i == 30 )
  126. set rand_d_gaunt_r to n
  127. elseif ( i == 31 )
  128. set rand_d_greaves to n
  129. elseif ( i == 32 )
  130. set rand_d_katana to n
  131. elseif ( i == 33 )
  132. set rand_d_longbow to n
  133. elseif ( i == 34 )
  134. set rand_d_longsword to n
  135. elseif ( i == 35 )
  136. set rand_d_mace to n
  137. elseif ( i == 36 )
  138. set rand_d_pauldron_l to n
  139. elseif ( i == 37 )
  140. set rand_d_pauldron_r to n
  141. elseif ( i == 38 )
  142. set rand_d_shield to n
  143. elseif ( i == 39 )
  144. set rand_d_shortsword to n
  145. elseif ( i == 40 )
  146. set rand_d_spear to n
  147. elseif ( i == 41 )
  148. set rand_d_staff to n
  149. elseif ( i == 42 )
  150. set rand_d_tanto to n
  151. elseif ( i == 43 )
  152. set rand_d_towershield to n
  153. elseif ( i == 44 )
  154. set rand_d_wakizashi to n
  155. elseif ( i == 45 )
  156. set rand_d_waraxe to n
  157. elseif ( i == 46 )
  158. set rand_d_warhammer to n
  159. elseif ( i == 47 )
  160. set rand_magebane to n
  161. elseif ( i == 48 )
  162. set rand_volendrung to n
  163. elseif ( i == 49 )
  164. set rand_randagulf_l to n
  165. endif
  166.  
  167. set i to i + 1
  168. endif
  169.  
  170.  
  171. DisablePlayerControls
  172.  
  173. if ( i > 49 ) ; don't forget to update this when you add items ya dingus
  174. EnablePlayerControls
  175.  
  176. bm_chest_eddard_03->AddItem "mort_count_item" 1
  177. Contain_bm_hollowstump->AddItem "mort_count_item" 2
  178. "contain_corpse_pop00"->AddItem "mort_count_item" 3
  179. "de_p_chest_balfell"->AddItem "mort_count_item" 4
  180. "de_r_chest_01_tel_fyr"->AddItem "mort_count_item" 5
  181. "divayth_fyr_closet"->AddItem "mort_count_item" 6
  182. "dwrv_chest_divayth07"->AddItem "mort_count_item" 7
  183. "dwrv_closet_dragon"->AddItem "mort_count_item" 8
  184. "urn_ash_brinne00_unique"->AddItem "mort_count_item" 9
  185. "urn_ash_nan00_unique"->AddItem "mort_count_item" 10
  186. "golena sadri_a"->AddItem "mort_count_item" 11
  187. "delvam andarys"->AddItem "mort_count_item" 12
  188. "koffutto gilgar"->AddItem "mort_count_item" 13
  189. mort_rat1->AddItem "mort_count_item" 14
  190. mort_rat2->AddItem "mort_count_item" 15
  191. mort_chest_gothren->AddItem "mort_count_item" 16
  192. "fryssa"->AddItem "mort_count_item" 17
  193. mort_rat4->AddItem "mort_count_item" 18
  194. "Dagoth Irvyn"->AddItem "mort_count_item" 19
  195. skeleton_aldredaynia->AddItem "mort_count_item" 20
  196. mort_rat7->AddItem "mort_count_item" 21
  197. dwrv_chest00_kjeld->AddItem "mort_count_item" 22
  198. mort_rat8->AddItem "mort_count_item" 23
  199. daedroth_menta_unique->AddItem "mort_count_item" 24
  200. mort_rat9->AddItem "mort_count_item" 25
  201. mort_rat10->AddItem "mort_count_item" 26
  202. mort_rat11->AddItem "mort_count_item" 27
  203. mort_rat12->AddItem "mort_count_item" 28
  204. mort_rat13->AddItem "mort_count_item" 29
  205. "lich_barilzar"->AddItem "mort_count_item" 30
  206. mort_rat14->AddItem "mort_count_item" 31
  207. mort_rat15->AddItem "mort_count_item" 32
  208. "galos farethi"->AddItem "mort_count_item" 33
  209. "thief dead 01"->AddItem "mort_count_item" 34
  210. "relas arothan"->AddItem "mort_count_item" 35
  211. "dead de male_berandas"->AddItem "mort_count_item" 36
  212. "severa magia"->AddItem "mort_count_item" 37
  213. mort_chest_udyr->AddItem "mort_count_item" 38
  214. "wizard dead 01"->AddItem "mort_count_item" 39
  215. mort_rat16->AddItem "mort_count_item" 40
  216. "mort_chest_dren"->AddItem "mort_count_item" 41
  217. "mort_chest_telvanni"->AddItem "mort_count_item" 42
  218. "mort_chest_hlaalu"->AddItem "mort_count_item" 43
  219. "mort_chest_redoran"->AddItem "mort_count_item" 44
  220. "Gathal Llethri"->AddItem "mort_count_item" 45
  221. "com_chest_02_durgok"->AddItem "mort_count_item" 46
  222. "bolvyn venim"->AddItem "mort_count_item" 47
  223. "dreugh_koal"->AddItem "mort_count_item" 48
  224. "mort_chest_aundae"->AddItem "mort_count_item" 49
  225.  
  226. set mort_randomized_done to 1
  227. StopScript mort_randomizer
  228. endif
  229.  
  230. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement