1
0

Kikatak 2.4 KB

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