Kikatak 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Kikatak
  2. if $ARGS[0] = 'player':
  3. defsumV = agilV + reactV + KikDefV
  4. defkofV = defsumV * 20 / 100
  5. defV = rand(defsumV - defkofV, defsumV + defkofV)
  6. if popad >= defV * 2:
  7. '<b><font color="green">HIT</font></b>'
  8. damageKrit = damage * 20 / 100
  9. damage += damageKrit
  10. healthV -= damage
  11. pointKik += 1
  12. '<font color="green">You have dealt <<damage>> points of damage</font>'
  13. if damage >= healthV * 20 / 100:
  14. pointKik += 1
  15. '<font color="green"><<$boy>> falls to the canvas</font>'
  16. if healthV < (vitalV * 10 + strenV * 5) / 4:
  17. '<font color="green"><<$boy>> is knocked out. 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 have dealt <<damage>> points of damage</font>'
  27. if damage >= healthV * 20 / 100:
  28. pointKik += 1
  29. '<font color="green"><<$boy>> falls to the canvas</font>'
  30. if healthV < (vitalV * 10 + strenV * 5) / 4:
  31. '<font color="green"><<$boy>> is knocked out. This is a victory!</font>'
  32. xgt 'enderKik', 'winKO'
  33. exit
  34. end
  35. end
  36. elseif popad < defV:
  37. '<font color="red">Miss</font>'
  38. end
  39. end
  40. if $ARGS[0] = 'enemy':
  41. defsum = agil + react + KikDef
  42. defkof = defsum * 20 / 100
  43. def = rand(defsum - defkof, defsum + defkof)
  44. if popad >= def * 2:
  45. '<b><font color="red">HIT</font></b>'
  46. damageKrit = damage * 20 / 100
  47. damage += damageKrit
  48. health -= damage
  49. pointKikV += 1
  50. '<font color="red">You have recieved <<damage>> points of damage</font>'
  51. if damage >= health * 20 / 100:
  52. pointKikV += 1
  53. '<font color="red">You have fallen to the canvas</font>'
  54. if health < (vital * 10 + stren * 5) / 4:
  55. '<font color="red">You are knocked out. This means defeat</font>'
  56. xgt 'enderKik', 'lossKO'
  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 recieved <<damage>> points of damage</font>'
  65. if damage >= health * 20 / 100:
  66. pointKikV += 1
  67. '<font color="red">You have fallen into the canvas</font>'
  68. if health < (vital * 10 + stren * 5) / 4:
  69. '<font color="red">You are knocked out. This means defeat</font>'
  70. xgt 'enderKik', 'lossKO'
  71. exit
  72. end
  73. end
  74. elseif popad < def:
  75. '<font color="green">Miss</font>'
  76. end
  77. end
  78. --- Kikatak ---------------------------------