067_Kikatak 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Kikatak
  2. if $ARGS[0] = 'player':
  3. set defsumV = agilV + reaktV + KikDefV
  4. set defkofV = defsumV * 20/100
  5. set defV = RAND(defsumV - defkofV, defsumV + defkofV)
  6. if popad >= defV * 2:
  7. '<B><font color = green>CRETE</font></B>'
  8. set damageKrit = damage * 20/100
  9. set damage += damageKrit
  10. set healthV -= damage
  11. set pointKik += 1
  12. '<font color = green>You applied <<damage>> points of damage</font>'
  13. if damage >= healthV * 20/100:
  14. set pointKik += 1
  15. '<font color = green><<$nameV>> fell to the ring</font>'
  16. if healthV < (vitalV*10 + strenV*5)/4:
  17. '<font color = green><<$nameV>> in a knockout. This is a victory!</font>'
  18. xgt 'enderKik','winKO'
  19. exit
  20. end
  21. end
  22. end
  23. if popad < defV*2 and popad >= defV:
  24. '<font color = green>Contact</font>'
  25. set healthV -= damage
  26. set pointKik += 1
  27. '<font color = green>You applied <<damage>> points of damage</font>'
  28. if damage >= healthV * 20/100:
  29. set pointKik += 1
  30. '<font color = green><<$nameV>> fell to the ring</font>'
  31. if healthV < (vitalV*10 + strenV*5)/4:
  32. '<font color = green><<$nameV>> in a knockout. This is a victory!</font>'
  33. xgt 'enderKik','winKO'
  34. exit
  35. end
  36. end
  37. end
  38. if popad < defV:
  39. '<font color = red>Slip</font>'
  40. end
  41. end
  42. if $ARGS[0] = 'enemy':
  43. set defsum = agil + reakt + KikDef
  44. set defkof = defsum * 20/100
  45. set def = RAND(defsum - defkof, defsum + defkof)
  46. if popad >= def * 2:
  47. '<B><font color = red>CRETE</font></B>'
  48. set damageKrit = damage * 20/100
  49. set damage += damageKrit
  50. set health -= damage
  51. set pointKikV += 1
  52. '<font color = red>You have caused <<damage>> points of damage</font>'
  53. if damage >= health * 20/100:
  54. set pointKikV += 1
  55. '<font color = red>You have fallen into the ring</font>'
  56. if health < (vital*10 + stren*5)/4:
  57. '<font color = red>You are in a knockout. This defeat</font>'
  58. xgt 'enderKik','loss'
  59. exit
  60. end
  61. end
  62. end
  63. if popad < def*2 and popad >= def:
  64. '<font color = red>Contact</font>'
  65. set health -= damage
  66. set pointKikV += 1
  67. '<font color = red>You have caused <<damage>> points of damage</font>'
  68. if damage >= health * 20/100:
  69. set pointKikV += 1
  70. '<font color = red>You have fallen into the ring</font>'
  71. if health < (vital*10 + stren*5)/4:
  72. '<font color = red>You are in a knockout. This defeat</font>'
  73. xgt 'enderKik','loss'
  74. exit
  75. end
  76. end
  77. end
  78. if popad < def:
  79. '<font color = green>Slip</font>'
  80. end
  81. end
  82. --- Kikatak ---------------------------------