Kikatak.qsrc 2.5 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"><<$boydesc>> falls to the ground.</font>'
  16. if healthV < (vitalV * 10 + strenV * 5) / 4:
  17. '<font color="green"><<$boydesc>> is knocked out. You''ve won!</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"><<$boydesc>> falls to the ground.</font>'
  30. if healthV < (vitalV * 10 + strenV * 5) / 4:
  31. '<font color="green"><<$boydesc>> is knocked out. You''ve won!</font>'
  32. xgt 'enderKik', 'winKO'
  33. exit
  34. end
  35. end
  36. elseif popad < defV:
  37. '<font color="red">You''ve missed.</font>'
  38. end
  39. end
  40. if $ARGS[0] = 'enemy':
  41. defsum = pcs_agil + pcs_react + pcs_def
  42. defkof = defsum * 20 / 100
  43. def = rand(defsum - defkof, defsum + defkof)
  44. if popad >= def * 2:
  45. '<b><font color="red">You''ve gotten hit.</font></b>'
  46. damageKrit = damage * 20 / 100
  47. damage += damageKrit
  48. pcs_health -= damage
  49. pointKikV += 1
  50. '<font color="red">You have received <<damage>> points of damage.</font>'
  51. if damage >= pcs_health * 20 / 100:
  52. pointKikV += 1
  53. '<font color="red">You have fallen to the ground.</font>'
  54. if pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4:
  55. '<font color="red">You are knocked out. You''ve lost!</font>'
  56. xgt 'enderKik', 'lossKO'
  57. exit
  58. end
  59. end
  60. elseif popad < def * 2 and popad >= def:
  61. '<font color="red">You''ve gotten hit.</font>'
  62. pcs_health -= damage
  63. pointKikV += 1
  64. '<font color="red">You have received <<damage>> points of damage.</font>'
  65. if damage >= pcs_health * 20 / 100:
  66. pointKikV += 1
  67. '<font color="red">You have fallen to the ground.</font>'
  68. if pcs_health < (pcs_vital * 10 + pcs_stren * 5) / 4:
  69. '<font color="red">You are knocked out. You''ve lost!</font>'
  70. xgt 'enderKik', 'lossKO'
  71. exit
  72. end
  73. end
  74. elseif popad < def:
  75. '<font color="green">Missed</font>'
  76. end
  77. end
  78. --- Kikatak ---------------------------------