kikbox 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # kikbox
  2. if $ARGS[0] = 'start':
  3. cla
  4. if health <= 0:
  5. '<b><font color = red>You lost by TKO</font></b>'
  6. xgt'enderKik','loss'
  7. exit
  8. elseif healthV <= 0:
  9. '<b><font color = green><<$nameV>> lost by TKO</font></b>'
  10. xgt'enderKik','win'
  11. exit
  12. end
  13. !!!CV extension
  14. if round >= 1:
  15. '<center><b>Round <<round>></b></center>'
  16. *nl
  17. '<center><img src="images/community/ring<<round>>.jpg"></center>'
  18. !!!
  19. cla
  20. gs 'befKik'
  21. '<b>= = = = = = = = = = = = = (ROUND <<round>>) = = = = = = = = = = = = =</b>'
  22. if minround = 1:'<b>the fight 0:30</b>'
  23. if minround = 2:'<b>the fight 1:00</b>'
  24. if minround = 3:'<b>the fight 1:30</b>'
  25. if minround = 4:'<b>the fight 2:00</b>'
  26. if minround = 5:'<b>the fight 2:30</b>'
  27. '<b><<$nameV>></b> Life <b><font color="red"><<healthV>></font></b>, Endurance <b><font color="green"><<staminaV>></font></b>'
  28. 'Your life <b><font color="red"><<health>></font></b>, Endurance <b><font color="green"><<stamina>></font></b>'
  29. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  30. 'Your points <<pointKik>>Points opponent <<pointKikV>>'
  31. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  32. gs 'initKik'
  33. if hod = 0:
  34. !!Player attacks
  35. '<font color="green">You can attack</font>'
  36. act 'Apply fast Jeb':
  37. cla
  38. damage = rand(stren/12, stren/8)
  39. if damage <= 0:damage = 1
  40. koefatak = (speed + reakt + jab) * 2
  41. koefpop = koefatak * 20 / 100
  42. popad = rand(koefatak - koefpop, koefatak + koefpop)
  43. '<font color="green">You deal with a quick jab step forward.</font>'
  44. gs 'Kikatak', 'player'
  45. xgt 'kikbox', 'sta'
  46. end
  47. act 'Apply power punch':
  48. cla
  49. damkoef = stren * 20 / 100
  50. damage = rand(stren - damkoef, stren + damkoef)
  51. if damage <= 0:damage = 1
  52. koefatak = (speed + reakt + punch)
  53. koefpop = koefatak * 20 / 100
  54. popad = rand(koefatak - koefpop, koefatak + koefpop)
  55. '<font color="green">You apply a powerful punch.</font>'
  56. gs 'Kikatak', 'player'
  57. xgt 'kikbox', 'sta'
  58. end
  59. act 'Footed strike':
  60. cla
  61. damkoef = stren * 20 / 100
  62. damage = rand((stren - damkoef) * 3, (stren + damkoef) * 3)
  63. if damage <= 0:damage = 1
  64. koefatak = (speed + reakt + kik) / 2
  65. koefpop = koefatak * 20 / 100
  66. popad = rand(koefatak - koefpop, koefatak + koefpop)
  67. '<font color="green">You apply a kick powerful.</font>'
  68. gs 'Kikatak', 'player'
  69. xgt 'kikbox', 'sta'
  70. end
  71. else
  72. !!Enemy attacks
  73. '<font color="red"><<$nameV>> attacks</font>'
  74. tiprand = rand(0, 2)
  75. if tiprand = 0:
  76. damage = rand(strenV / 12, strenV / 8)
  77. if damage <= 0:damage = 1
  78. koefatak = (speedV + reaktV + JabV) * 2
  79. koefpop = koefatak * 20 / 100
  80. popad = rand(koefatak - koefpop, koefatak + koefpop)
  81. '<font color="red"><<$nameV>> deals with quick jab step forward.</font>'
  82. gs 'Kikatak', 'enemy'
  83. xgt 'kikbox', 'sta'
  84. elseif tiprand = 1:
  85. damkoef = strenV * 20/100
  86. damage = rand(strenV - damkoef, strenV + damkoef)
  87. if damage <= 0:damage = 1
  88. koefatak = (speedV + reaktV + punchV)
  89. koefpop = koefatak * 20 / 100
  90. popad = rand(koefatak - koefpop, koefatak + koefpop)
  91. '<font color="red"><<$nameV>> applies the power punch.</font>'
  92. gs 'Kikatak', 'enemy'
  93. xgt 'kikbox', 'sta'
  94. elseif tiprand = 2:
  95. damkoef = strenV * 20 / 100
  96. damage = rand((strenV - damkoef) * 3, (strenV + damkoef) * 3)
  97. if damage <= 0:damage = 1
  98. koefatak = (speedV + reaktV + kikV) / 2
  99. koefpop = koefatak * 20 / 100
  100. popad = rand(koefatak - koefpop, koefatak + koefpop)
  101. '<font color="red"><<$nameV>> tries for a kick.</font>'
  102. gs 'Kikatak', 'enemy'
  103. xgt 'kikbox', 'sta'
  104. end
  105. end
  106. end
  107. if $ARGS[0] = 'sta':
  108. cla
  109. ionce = 0
  110. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  111. if minround = 1:'<b>the fight 1:00</b>'
  112. if minround = 2:'<b>the fight 1:30</b>'
  113. if minround = 3:'<b>the fight 2:00</b>'
  114. if minround = 4:'<b>the fight 2:30</b>'
  115. if minround = 5:'<b>the fight 3:00</b>'
  116. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  117. '<b><<$nameV>></b> Life <b><font color="red"><<healthV>></font></b>, Endurance <b><font color="green"><<staminaV>></font></b>'
  118. 'Your life <b><font color="red"><<health>></font></b>, Endurance <b><font color="green"><<stamina>></font></b>'
  119. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  120. act 'Further':gt 'kikbox', 'fight'
  121. if minround = 5:
  122. cla
  123. minround = 0
  124. round += 1
  125. 'Rang the gong indicating the end of the round <<round>>.'
  126. if round <= formula:
  127. act 'Back to the corner':
  128. cla
  129. '<center><img src="images/community/kickboxing_corner.jpg"></center>'
  130. 'You try to rest as best as you can.'
  131. act 'In the ring':gt 'kikbox', 'start'
  132. end
  133. elseif round > formula and sparing = 0:
  134. act 'Get out in the middle of announcing the winner':
  135. cla
  136. if pointKik > pointKikV:
  137. 'You won.'
  138. gt 'enderKik', 'win'
  139. elseif pointKik < pointKikV:
  140. 'You lost.'
  141. gt 'enderKik', 'loss'
  142. elseif pointKik = pointKikV:
  143. 'It''s a draw'
  144. act 'Leave the ring':gt 'enderKik', 'draw'
  145. end
  146. end
  147. elseif round > formula and sparing = 1:
  148. act 'Leave the ring':gt'fit','start'
  149. end
  150. end
  151. end
  152. --- kikbox ---------------------------------