fight 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. # fight
  2. if $ARGS[0] = 'start':
  3. cla
  4. inFight = 1
  5. fcolor = rgb(0, 0, 0)
  6. bcolor = rgb(255, 255, 255)
  7. lcolor = rgb(106, 90, 205)
  8. gs 'defence'
  9. gs 'statBat'
  10. if SasoriBody > 2 and healthV <= 0 or SasoriBody > 2 and mannaV <= 0 or SasoriBody > 2 and willpowerV <= 0:
  11. SasoriBody -= 1
  12. gs 'priziv', 'sasori'
  13. '<b><font color="red">Doll crumbled into parts, and immediately entered into battle other doll Sasori.</font></b>'
  14. '<b><font color="red">You''ve heard the sonorous voice Sasori "I have a lot of dolls, you can not win."</font></b>'
  15. elseif SasoriBody = 2 and healthV <= 0 or SasoriBody = 2 and mannaV <= 0 or SasoriBody = 2 and willpowerV <= 0:
  16. SasoriBody -= 1
  17. gs 'priziv', 'sasori1'
  18. '<b><font color="red">Last doll crumbled into pieces and entered the fight Sasori himself.</font></b>'
  19. end
  20. if stunV > 0 and SasoriBody > 1:
  21. stunV = 0
  22. '<b><font color="red">Doll began to move again.</font></b>'
  23. end
  24. if stunV > 0 and SasoriBody = 1:
  25. stunV = 0
  26. '<b><font color="red">again moves Sasori.</font></b>'
  27. end
  28. if GedoMazo = 1 and healthV <= 0 or GedoMazo = 1 and mannaV <= 0 or GedoMazo = 1 and willpowerV <= 0:
  29. GedoMazo = 2
  30. barierV = 0
  31. '<b><font color="green"><<$nameV>> fell to the ground turning into ashes</font></b>'
  32. gs 'priziv', 'tobi'
  33. '<b><font color="green"><<$nameV>> attacked you</font></b>'
  34. end
  35. if health <= 0 and heart = 0 and izanagi = 0:
  36. '<b><font color="red">you lose</font></b>'
  37. xgt 'ender', 'loss'
  38. exit
  39. elseif healthV <= 0 and heartV = 0 and izanagiV = 0:
  40. '<b><font color="green"><<$nameV>> lost</font></b>'
  41. xgt 'ender', 'win'
  42. exit
  43. elseif manna <= 0 and heart = 0 and izanagi = 0:
  44. '<b><font color="red">you lose</font></b>'
  45. xgt 'ender', 'loss'
  46. exit
  47. elseif mannaV <= 0 and heartV = 0 and izanagiV = 0:
  48. '<b><font color="green"><<$nameV>> lost</font></b>'
  49. xgt 'ender', 'win'
  50. exit
  51. elseif willpower <= 0 and heart = 0 and izanagi = 0:
  52. '<b><font color="red">you lose</font></b>'
  53. xgt 'ender', 'loss'
  54. exit
  55. elseif willpowerV <= 0 and heartV = 0 and izanagiV = 0:
  56. '<b><font color="green"><<$nameV>> lost</font></b>'
  57. xgt 'ender', 'win'
  58. exit
  59. end
  60. if izanagiV > 0 and healthV <= 0 or izanagiV > 0 and mannaV <= 0 or izanagiV > 0 and willpowerV <= 0:
  61. izanagiV -= 1
  62. '<b><font color="red"><<$nameV>> simply disappeared</font></b>'
  63. healthV = vitalV * 10 + strenV * 5
  64. mannaV = intelV * magikV + magikV * 100 + vitalV * 10
  65. willpowerV = willV * 10
  66. stunV = 0
  67. if program = 6 and izanagiOnce = 0:izanagiOnce = 1 & unmaterialV = 40 & tobizanagi = 0
  68. '<b><font color="red"><<$nameV>> was in front of you completely healthy. He folded his hands and Arcanum said Izanagi - perfect illusion.</font></b>'
  69. '<b><font color="red">One of his eyes closed for ever, paying for it with a spell.</font></b>'
  70. elseif heartV > 0 and healthV <= 0 or heartV > 0 and mannaV <= 0 or heartV > 0 and willpowerV <= 0:
  71. heartV -= 1
  72. '<b><font color="red"><<$nameV>> staggered and his heart burst</font></b>'
  73. healthV = vitalV * 10 + strenV * 5
  74. mannaV = intelV * magikV + magikV * 100 + vitalV * 10
  75. willpowerV = willV * 10
  76. stunV = 0
  77. '<b><font color="red"><<$nameV>> stood up and rushed into the fray. He has run another heart.</font></b>'
  78. elseif izanagi > 0 and health <= 0 or izanagi > 0 and manna <= 0 or izanagi > 0 and willpower <= 0:
  79. izanagi -= 1
  80. '<b><font color="green">You are gone</font></b>'
  81. health = vital * 10 + stren * 5
  82. willpower = intel * 5 + will * 5
  83. manna = (intel * magik) + magik * 100 + vital * 10 + rikudo
  84. stun = 0
  85. zerkaloV = 0
  86. poisonV = 0
  87. bloodV = 0
  88. '<b><font color="green">Immediately before the enemy appeared completely healthy.</font></b>'
  89. elseif heart > 0 and health <= 0 or heart > 0 and manna <= 0 or heart > 0 and willpower <= 0:
  90. heart -= 1
  91. zerkaloV = 0
  92. poisonV = 0
  93. bloodV = 0
  94. '<b><font color="green">Your heart gave out and snapped.</font></b>'
  95. health = vital * 10 + stren * 5
  96. willpower = intel * 5 + will * 5
  97. manna = (intel * magik) + magik * 100 + vital * 10 + rikudo
  98. stun = 0
  99. '<b><font color="green">You''re not dead, you run another heart.</font></b>'
  100. end
  101. gs 'before'
  102. '<b>= = = = = = = = = = = = (ROUND <<round>>) = = = = = = = = = = = =</b>'
  103. '<b><<$nameV>></b> Life <b><font color="red"><<healthV>></font></b>, manna <b><font color="blue"><<mannaV>></font></b>, the force will <b>(9 )<<willpowerV>></font></b>'
  104. if defenceV > 0:'<b><font color="red">Protection <<defenceV>> units</font></b>'
  105. if defenceMV > 0:'<b><font color="red">Protection of manna <<defenceMV>> units</font></b>'
  106. if defenceWV > 0:'<b><font color="red">will protection <<defenceWV>> units</font></b>'
  107. 'Your life <b><font color="red"><<health>></font></b>, the manna <b><font color="blue"><<manna>></font></b>, willpower <b><font color="green"><<willpower>></font> ( 5)'
  108. if defence > 0:'<b><font color="green">Protection <<defence>> units</font></b>'
  109. if defenceM > 0:'<b><font color="green">Protection from the effects of manna <<defenceM>> units</font></b>'
  110. if defenceW > 0:'<b><font color="green">Protection from the effects at will <<defenceW>> units</font></b>'
  111. if defenceAct > 0:'<b><font color="green"><<defenceAct>> moves the regeneration of protection</font></b>'
  112. if defenceActM > 0:'<b><font color="green"><<defenceActM>> moves the protection from the effects of regeneration manna</font></b>'
  113. if unmaterial > 0:'<b><font color="green">, Left <<unmaterial>> moves not materiality.</font></b>'
  114. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  115. gs 'init'
  116. if hod = 0:
  117. !!Player attacks
  118. '<font color="green">You can attack</font>'
  119. if gun > 0:
  120. !!Boomstick
  121. if bulletIn > 0:
  122. '<<bulletIn>> load cartridges in gun'
  123. act 'Shoot a gun':
  124. cla
  125. bulletIn -= 1
  126. gunpower = 150
  127. buu = 1
  128. gunpricel = 1
  129. Gcrime += 1
  130. gt 'strelba'
  131. end
  132. elseif bulletIn <= 0:
  133. if bullet = 0:'Ammunition for the gun ran.'
  134. elseif bullet > 0:
  135. '<<bullet>> ammunition for the pistol'
  136. act 'Reload':
  137. cla
  138. if bullet < 7:
  139. bulletIn = bullet
  140. bullet = 0
  141. 'You loaded any remaining bullets in the gun.'
  142. end
  143. if bullet >= 7:
  144. bullet -= 7
  145. bulletIn = 7
  146. 'You loaded 7m rounds in the gun.'
  147. end
  148. act 'Further':gt 'fight', 'sta'
  149. end
  150. end
  151. end
  152. end
  153. if Mgun > 0:
  154. !!Boomstick
  155. if mbulletIn > 0:
  156. '<<mbulletIn>> load cartridges in the machine'
  157. act 'Of single machine':
  158. cla
  159. mbulletIn -= 1
  160. buu = 1
  161. gunpower = 300
  162. gunpricel = 2
  163. Gcrime += 1
  164. gt 'strelba'
  165. end
  166. if mbulletIn >= 3:
  167. act 'A short burst of machine':
  168. cla
  169. mbulletIn -= 3
  170. buu = 3
  171. gunpower = 300
  172. gunpricel = 1
  173. Gcrime += buu
  174. gt 'strelba'
  175. end
  176. act 'Long queue of machine':
  177. cla
  178. buu = mbulletIn
  179. mbulletIn = 0
  180. gunpower = 300
  181. gunpricel = 0
  182. Gcrime += buu
  183. gt 'strelba'
  184. end
  185. end
  186. elseif mbulletIn <= 0:
  187. if mbullet = 0:
  188. 'Chucks for machine ran.'
  189. elseif mbullet > 0:
  190. '<<mbullet>> ammunition for the machine'
  191. act 'Reload':
  192. cla
  193. if mbullet < 7:
  194. mbulletIn = mbullet
  195. mbullet = 0
  196. 'You loaded any remaining ammunition into the machine.'
  197. end
  198. if mbullet >= 30:
  199. mbullet -= 30
  200. mbulletIn = 30
  201. 'You loaded the 30 rounds in the machine.'
  202. end
  203. act 'Further':gt 'fight', 'sta'
  204. end
  205. end
  206. end
  207. end
  208. if tragun > 0:
  209. !!Travmatik
  210. if tbulletIn > 0:
  211. 'travmatik loaded'
  212. act 'Shoot a gun':
  213. cla
  214. tbulletIn -= 1
  215. gunpower = 50
  216. buu = 1
  217. gunpricel = 0
  218. gt 'strelba'
  219. end
  220. elseif tbulletIn <= 0:
  221. if tbullet = 0:
  222. 'Cartridges ran travmatika.'
  223. elseif tbullet > 0:
  224. '<<tbullet>> cartridges for travmatika'
  225. act 'Reload':
  226. cla
  227. if tbullet >= 1:
  228. tbullet -= 1
  229. tbulletIn = 1
  230. 'You loaded the cartridge in travmatik.'
  231. end
  232. act 'Further':gt 'fight', 'sta'
  233. end
  234. end
  235. end
  236. end
  237. act 'Physical Attack':xgt 'boxing'
  238. if magik > 0:
  239. act 'Magical Attack':gt 'magik'
  240. end
  241. elseif hod = 1:
  242. !!Enemy attacks
  243. '<font color="red"><<$nameV>> attacks</font>'
  244. act 'Further':xgt 'enemy', 'start'
  245. end
  246. end
  247. if $ARGS[0] = 'sta':
  248. cla
  249. damTip = 0
  250. damTipM = 0
  251. damTipV = 0
  252. damTipMV = 0
  253. magweapbonus = 0
  254. magweapbonusV = 0
  255. bonusSh = 0
  256. bonusShV = 0
  257. eleSh = 0
  258. eleShV = 0
  259. poisonAV = 0
  260. hidanAtk = 0
  261. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  262. '<b><<$nameV>></b> Life <b><font color="red"><<healthV>></font></b>, manna <b><font color="blue"><<mannaV>></font></b>, the force will <b>(9 )<<willpowerV>></font></b>'
  263. if defenceV > 0:'<b><font color="red">Protection <<defenceV>> units</font></b>'
  264. if defenceMV > 0:'<b><font color="red">Protection of manna <<defenceMV>> units</font></b>'
  265. if defenceWV > 0:'<b><font color="red">will protection <<defenceWV>> units</font></b>'
  266. 'Your life <b><font color="red"><<health>></font></b>, the manna <b><font color="blue"><<manna>></font></b>, willpower <b><font color="green"><<willpower>></font> ( 5)'
  267. if defence > 0:'<b><font color="green">Protection <<defence>> units</font></b>'
  268. if defenceM > 0:'<b><font color="green">Protection from the effects of manna <<defenceM>> units</font></b>'
  269. if defenceW > 0:'<b><font color="green">Protection from the effects at will <<defenceW>> units</font></b>'
  270. if defenceAct > 0:'<b><font color="green"><<defenceAct>> moves the regeneration of protection</font></b>'
  271. if defenceActM > 0:'<b><font color="green"><<defenceActM>> moves the protection from the effects of regeneration manna</font></b>'
  272. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  273. act 'Further':gt 'fight', 'start'
  274. end
  275. --- fight ---------------------------------