045_fight 9.6 KB

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