atakA1 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. # atakA1
  2. if $ARGS[0] = 'atak':
  3. cla
  4. !!payment hit dodge
  5. poSp = speedV * 20 / 100
  6. uvAg = agil * 20 / 100
  7. poBox = reactV * 20 / 100
  8. uvBox = react * 20 / 100
  9. popad = rand(reactV - poBox, reactV + poBox) + rand(speedV - poSp, speedV + poSp) + bonusShV
  10. uvorot = rand(react - uvBox, react + uvBox) + rand(agil - uvAg, agil + uvAg)
  11. uvorKoef = uvorot * 50 / 100
  12. popKoef = popad * 50 / 100
  13. if popad > uvorot:
  14. if popad >= uvorot + uvorKoef:
  15. !!Crete, very direct hit
  16. '<b><font color="red">critical hits</font></b>'
  17. xgt 'atakA1', 'uronKrit'
  18. else
  19. !!normal hit
  20. !!attack the enemy
  21. '<b><font color="red">Contact</font></b>'
  22. xgt 'atakA1', 'uron'
  23. end
  24. else
  25. '<b><font color="green">is washed</font></b>'
  26. xgt 'fight', 'sta'
  27. end
  28. end
  29. if $ARGS[0] = 'uronKrit':
  30. cla
  31. damKoef = damTipV * 20 / 100
  32. damage = rand(damTipV + damKoef, damTipV + damKoef * 2)
  33. if damTipMV > 0:
  34. damKoefM = damTipMV * 20 / 100
  35. damageM = rand(damTipMV + damKoefM, damTipMV + damKoefM * 2)
  36. end
  37. xgt 'atakA1', 'damage'
  38. end
  39. if $ARGS[0] = 'uron':
  40. cla
  41. damKoef = damTipV * 20 / 100
  42. damage = rand(damTipV - damKoef, damTipV + damKoef)
  43. if damTipMV > 0:
  44. damKoefM = damTipMV * 20 / 100
  45. damageM = rand(damTipMV - damKoefM, damTipMV + damKoefM)
  46. end
  47. xgt 'atakA1', 'damage'
  48. end
  49. if $ARGS[0] = 'damage':
  50. cla
  51. if defence <= 0 and klon <= 0 and unmaterial <= 0 and barier <= 0:
  52. if dospeh > 0:damage -= dospehDef & dospehEn -= 1
  53. if damage < 0:damage = 0
  54. health -= damage
  55. if hidanAtk = 1:
  56. hidanAtk = 0
  57. zerkaloV += 50
  58. bloodV += 50
  59. '<b><font color="red"><<$nameV>> drink your blood.</font></b>'
  60. end
  61. if damTipMV > 0:
  62. manna -= damageM
  63. manna += damageM
  64. '<b><font color="red"><<$nameV>> absorbed <<damageM>> units of manna you.</font></b>'
  65. end
  66. if poisonAV = 1:
  67. poisonV = 50
  68. '<b><font color="red"><<$nameV>> have poisoned the needles hit.</font></b>'
  69. end
  70. !!manna -= damageM
  71. if eleShV > 0:
  72. stun = rand(eleShV, eleShV * 3)
  73. '<b><font color="red">You are paralyzed <<stunV>> rounds</font></b>'
  74. end
  75. '<b><font color="red"><<$nameV>> damage caused you <<damage>> units</font></b>'
  76. !!'<b><font color="red">caused damage your manna <<damageM>> units</font></b>'
  77. if zerkalo > 0:
  78. zerkalo -= 1
  79. healthV -= damage
  80. '<b><font color="green">You are repelled damage and <<$nameV>> received <<damage>> points of damage</font></b>'
  81. end
  82. xgt 'fight', 'sta'
  83. end
  84. if defence > 0 and klon <= 0 and unmaterial <= 0:
  85. !!damSum = damage + damageM
  86. !!defence -= damSum
  87. defence -= damage
  88. '<b><font color="red">Protection of your harmed <<damage>> units</font></b>'
  89. xgt 'fight', 'sta'
  90. end
  91. if klon > 0 and unmaterial <= 0:
  92. klon -= 1
  93. '<b><font color="red">destroy your clone</font></b>'
  94. xgt 'fight', 'sta'
  95. end
  96. if unmaterial > 0:
  97. unmaterial -= 1
  98. '<b><font color="green">Strike the enemy passed through you. YOU is not material</font></b>'
  99. xgt 'fight', 'sta'
  100. end
  101. if barier > 0:
  102. !!imeniteta barrier for damage
  103. if barier >= damage:
  104. '<b><font color="green">You can easily withstood the impact of the opponent</font></b>'
  105. xgt 'fight', 'sta'
  106. else
  107. !!manna -= damageM
  108. !!health -= damage
  109. health -= damage
  110. if damTipM > 0:
  111. manna -= damageM
  112. mannaV += damageM
  113. '<b><font color="green">you have ingested <<damageM>> units of manna from the enemy.</font></b>'
  114. end
  115. if eleShV > 0:
  116. stun = rand(eleShV, eleShV * 3)
  117. '<b><font color="green"><<$nameV>> paralyzed <<stunV>> rounds</font></b>'
  118. end
  119. if poisonAV = 1:
  120. poisonV = 50
  121. '<b><font color="red"><<$nameV>> have poisoned the needles hit.</font></b>'
  122. end
  123. '<b><font color="red">you have caused damage <<damage>> units</font></b>'
  124. !!'<b><font color="red">caused damage your manna <<damageM>> units</font></b>'
  125. if zerkalo > 0:
  126. zerkalo -= 1
  127. healthV -= damage
  128. '<b><font color="green">You are repelled enemy damage and received <<damage>> points of damage</font></b>'
  129. end
  130. end
  131. xgt 'fight', 'sta'
  132. end
  133. end
  134. if $ARGS[0] = 'atakW':
  135. cla
  136. !!payment hit dodge
  137. poSp = speedV * 20 / 100
  138. uvAg = agil * 20 / 100
  139. poBox = reactV * 20 / 100
  140. uvBox = react * 20 / 100
  141. popad = rand(reactV - poBox, reactV + poBox) + rand(speedV - poSp, speedV + poSp)
  142. uvorot = rand(react - uvBox, react + uvBox) + rand(agil - uvAg, agil + uvAg)
  143. uvorKoef = uvorot * 50 / 100
  144. popKoef = popad * 50 / 100
  145. if popad > uvorot:
  146. if popad >= uvorot + uvorKoef:
  147. !!Crete, very direct hit
  148. '<b><font color="red">critical hits</font></b>'
  149. xgt 'atakA1', 'uronKritW'
  150. else
  151. !!normal hit
  152. '<b><font color="red">Contact</font></b>'
  153. xgt 'atakA1', 'uronW'
  154. end
  155. else
  156. '<b><font color="green">is washed</font></b>'
  157. xgt 'fight', 'sta'
  158. end
  159. end
  160. if $ARGS[0] = 'uronKritW':
  161. cla
  162. damKoef = damTipV * 20 / 100
  163. damage = rand(damTipV + damKoef, damTipV + damKoef * 2)
  164. damKoefM = damTipMV * 20 / 100
  165. damageM = rand(damTipMV + damKoefM, damTipMV + damKoefM * 2)
  166. xgt 'atakA1', 'damageW'
  167. end
  168. if $ARGS[0] = 'uronW':
  169. cla
  170. damKoef = damTipV * 20 / 100
  171. damage = rand(damTipV - damKoef, damTipV + damKoef)
  172. damKoefM = damTipMV * 20 / 100
  173. damageM = rand(damTipMV - damKoefM, damTipMV + damKoefM)
  174. xgt 'atakA1', 'damageW'
  175. end
  176. if $ARGS[0] = 'damageW':
  177. cla
  178. if defence <= 0 and klon <= 0 and unmaterial <= 0 and barier <= 0:
  179. if dospeh > 0:damage -= dospehDef & dospehEn -= 1
  180. if damage < 0:damage = 0
  181. health -= damage
  182. manna -= damageM
  183. '<b><font color="green">You are harmed <<damage>> units</font></b>'
  184. '<b><font color="green">You have caused damage to the enemy manna <<damageM>> units</font></b>'
  185. if zerkalo > 0:
  186. zerkalo -= 1
  187. health -= damage
  188. '<b><font color="red"><<$nameV>> reflected the damage and you got <<damage>> points of damage</font></b>'
  189. end
  190. xgt 'fight', 'sta'
  191. end
  192. if defence > 0 and klon <= 0 and unmaterial <= 0:
  193. damSum = damage + damageM
  194. defence -= damSum
  195. !!defenceV -= damage
  196. '<b><font color="green">You have caused damage <<damSum>> Protection of the enemy units</font></b>'
  197. xgt 'fight', 'sta'
  198. end
  199. if klon > 0 and unmaterial <= 0:
  200. klon -= 1
  201. '<b><font color="green">Destroyed enemy clone</font></b>'
  202. xgt 'fight', 'sta'
  203. end
  204. if unmaterial > 0:
  205. unmaterial -= 1
  206. '<b><font color="red">Your shot went through the opponent''s body. Opponents do not materials</font></b>'
  207. xgt 'fight', 'sta'
  208. end
  209. if barier > 0:
  210. !!imeniteta barrier for damage
  211. if barier >= damage:
  212. '<b><font color="red"><<$nameV>> easily withstood your butt</font></b>'
  213. xgt 'fight', 'sta'
  214. else
  215. manna -= damageM
  216. health -= damage
  217. !!healthV -= damage
  218. '<b><font color="green">You have caused damage <<damage>> units</font></b>'
  219. '<b><font color="green">You have caused damage to the enemy manna <<damageM>> units</font></b>'
  220. if zerkalo > 0:
  221. zerkalo -= 1
  222. healthV -= damage
  223. '<b><font color="red">Enemy reflected damage and you got <<damage>> points of damage</font></b>'
  224. end
  225. end
  226. xgt 'fight', 'sta'
  227. end
  228. end
  229. --- atakA1 ---------------------------------