1
0

kikbox 5.2 KB

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