Kikatak 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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:'<font color="red">Slip</font>'
  39. end
  40. if $ARGS[0] = 'enemy':
  41. set defsum = agil + reakt + KikDef
  42. set defkof = defsum * 20 / 100
  43. set def = rand(defsum - defkof, defsum + defkof)
  44. if popad >= def * 2:
  45. '<b><font color="red">CRETE</font></b>'
  46. set damageKrit = damage * 20 / 100
  47. set damage += damageKrit
  48. set health -= damage
  49. set pointKikV += 1
  50. '<font color="red">You have caused <<damage>> points of damage</font>'
  51. if damage >= health * 20 / 100:
  52. set pointKikV += 1
  53. '<font color="red">You have fallen into the ring</font>'
  54. if health < (vital * 10 + stren * 5) / 4:
  55. '<font color="red">You are in a knockout. This defeat</font>'
  56. xgt 'enderKik', 'loss'
  57. exit
  58. end
  59. end
  60. end
  61. if popad < def * 2 and popad >= def:
  62. '<font color="red">Contact</font>'
  63. set health -= damage
  64. set pointKikV += 1
  65. '<font color="red">You have caused <<damage>> points of damage</font>'
  66. if damage >= health * 20 / 100:
  67. set pointKikV += 1
  68. '<font color="red">You have fallen into the ring</font>'
  69. if health < (vital * 10 + stren * 5) / 4:
  70. '<font color="red">You are in a knockout. This defeat</font>'
  71. xgt 'enderKik', 'loss'
  72. exit
  73. end
  74. end
  75. end
  76. if popad < def:'<font color="green">Slip</font>'
  77. end
  78. --- Kikatak ---------------------------------