1
0

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:
  134. 'Ammunition for the gun ran.'
  135. elseif bullet > 0:
  136. '<<bullet>> ammunition for the pistol'
  137. act 'Reload':
  138. cla
  139. if bullet < 7:
  140. bulletIn = bullet
  141. bullet = 0
  142. 'You loaded any remaining bullets in the gun.'
  143. end
  144. if bullet >= 7:
  145. bullet -= 7
  146. bulletIn = 7
  147. 'You loaded 7m rounds in the gun.'
  148. end
  149. act 'Further':gt 'fight', 'sta'
  150. end
  151. end
  152. end
  153. end
  154. if Mgun > 0:
  155. !!Boomstick
  156. if mbulletIn > 0:
  157. '<<mbulletIn>> load cartridges in the machine'
  158. act 'Of single machine':
  159. cla
  160. mbulletIn -= 1
  161. buu = 1
  162. gunpower = 300
  163. gunpricel = 2
  164. Gcrime += 1
  165. gt 'strelba'
  166. end
  167. if mbulletIn >= 3:
  168. act 'A short burst of machine':
  169. cla
  170. mbulletIn -= 3
  171. buu = 3
  172. gunpower = 300
  173. gunpricel = 1
  174. Gcrime += buu
  175. gt 'strelba'
  176. end
  177. act 'Long queue of machine':
  178. cla
  179. buu = mbulletIn
  180. mbulletIn = 0
  181. gunpower = 300
  182. gunpricel = 0
  183. Gcrime += buu
  184. gt 'strelba'
  185. end
  186. end
  187. elseif mbulletIn <= 0:
  188. if mbullet = 0:
  189. 'Cartridges for machine run out.'
  190. elseif mbullet > 0:
  191. '<<mbullet>> ammunition for the machine'
  192. act 'Reload':
  193. cla
  194. if mbullet < 7:
  195. mbulletIn = mbullet
  196. mbullet = 0
  197. 'You loaded all the remaining cartridges in the machine.'
  198. end
  199. if mbullet >= 30:
  200. mbullet -= 30
  201. mbulletIn = 30
  202. 'You loaded the 30 rounds in the machine.'
  203. end
  204. act 'Further':gt 'fight', 'sta'
  205. end
  206. end
  207. end
  208. end
  209. if tragun > 0:
  210. !!Travmatik
  211. if tbulletIn > 0:
  212. 'Travmatik charged'
  213. act 'Shoot a gun':
  214. cla
  215. tbulletIn -= 1
  216. gunpower = 50
  217. buu = 1
  218. gunpricel = 0
  219. gt 'strelba'
  220. end
  221. elseif tbulletIn <= 0:
  222. if tbullet = 0:
  223. 'Cartridges for travmatika ended.'
  224. elseif tbullet > 0:
  225. '<<tbullet>> cartridges for travmatika'
  226. act 'Reload':
  227. cla
  228. if tbullet >= 1:
  229. tbullet -= 1
  230. tbulletIn = 1
  231. 'You loaded a cartridge in travmatik.'
  232. end
  233. act 'Further':gt 'fight', 'sta'
  234. end
  235. end
  236. end
  237. end
  238. act 'Physical Attack':xgt 'boxing'
  239. if magik > 0:
  240. act 'Magical Attack':gt 'magik'
  241. end
  242. elseif hod = 1:
  243. !!Enemy attacks
  244. '<font color="red"><<$nameV>> attacks</font>'
  245. act 'Further':xgt 'enemy', 'start'
  246. end
  247. end
  248. if $ARGS[0] = 'sta':
  249. cla
  250. damTip = 0
  251. damTipM = 0
  252. damTipV = 0
  253. damTipMV = 0
  254. magweapbonus = 0
  255. magweapbonusV = 0
  256. bonusSh = 0
  257. bonusShV = 0
  258. eleSh = 0
  259. eleShV = 0
  260. poisonAV = 0
  261. hidanAtk = 0
  262. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  263. '<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>'
  264. if defenceV > 0:'<b><font color="red">Protection <<defenceV>> units</font></b>'
  265. if defenceMV > 0:'<b><font color="red">Protection of manna <<defenceMV>> units</font></b>'
  266. if defenceWV > 0:'<b><font color="red">will protection <<defenceWV>> units</font></b>'
  267. '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)'
  268. if defence > 0:'<b><font color="green">Protection <<defence>> units</font></b>'
  269. if defenceM > 0:'<b><font color="green">Protection from the effects of manna <<defenceM>> units</font></b>'
  270. if defenceW > 0:'<b><font color="green">Protection from the effects at will <<defenceW>> units</font></b>'
  271. if defenceAct > 0:'<b><font color="green"><<defenceAct>> moves the regeneration of protection</font></b>'
  272. if defenceActM > 0:'<b><font color="green"><<defenceActM>> moves the protection from the effects of regeneration manna</font></b>'
  273. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  274. act 'Further':gt 'fight', 'start'
  275. end
  276. --- fight ---------------------------------