1
0

kikbox 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. # kikbox
  2. if $ARGS[0] = 'start':
  3. cla
  4. if pcs_health <= 0:
  5. '<b><font color = red>You lost by TKO</font></b>'
  6. xgt 'enderKik','lossKO'
  7. exit
  8. elseif healthV <= 0:
  9. '<b><font color = green><<$boydesc>> lost by TKO</font></b>'
  10. xgt 'enderKik','winKO'
  11. exit
  12. end
  13. if round >= 1:
  14. '<center><b>Round <<round>></b></center>'
  15. *nl
  16. if sparing = 1:
  17. '<center><img src="images/locations/city/citycenter/gym/kickboxing/kik1.jpg"></center>'
  18. else
  19. '<center><img src="images/locations/city/citycenter/gym/kickboxing/ring<<round>>.jpg"></center>'
  20. end
  21. cla
  22. minround += 1
  23. '<b>= = = = = = = = = = = = = (ROUND <<round>>) = = = = = = = = = = = = =</b>'
  24. if minround = 1:'<b>Start of the round</b>'
  25. if minround = 2:'<b>Time in round 0:30</b>'
  26. if minround = 3:'<b>Time in round 1:00</b>'
  27. if minround = 4:'<b>Time in round 1:30</b>'
  28. if minround = 5:'<b>Time in round 2:00</b>'
  29. if minround = 6:'<b>Time in round 2:30</b>'
  30. '<b><<$boydesc>></b> Life <b><font color="red"><<healthV>></font></b>, Endurance <b><font color="green"><<staminaV>></font></b>'
  31. 'Your life <b><font color="red"><<pcs_health>></font></b>, Endurance <b><font color="green"><<stamina>></font></b>'
  32. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  33. 'Your points <<pointKik>>Points opponent <<pointKikV>>'
  34. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  35. gs 'initKik'
  36. if hod = 0:
  37. !!Player attacks
  38. '<font color="green">You can attack</font>'
  39. act 'Fast Jab':
  40. cla
  41. damage = rand(pcs_stren/12, pcs_stren/8)
  42. if damage <= 0:damage = 1
  43. koefatak = (pcs_agil + pcs_react + pcs_jab) * 2
  44. koefpop = koefatak * 20 / 100
  45. popad = rand(koefatak - koefpop, koefatak + koefpop)
  46. '<font color="green">You go for the quick jab and step forward.</font>'
  47. gs 'Kikatak', 'player'
  48. xgt 'kikbox', 'sta'
  49. end
  50. act 'Power punch':
  51. cla
  52. damkoef = pcs_stren * 20 / 100
  53. damage = rand(pcs_stren - damkoef, pcs_stren + damkoef)
  54. if damage <= 0:damage = 1
  55. koefatak = (pcs_agil + pcs_react + pcs_punch)
  56. koefpop = koefatak * 20 / 100
  57. popad = rand(koefatak - koefpop, koefatak + koefpop)
  58. '<font color="green">You attempt a powerful punch.</font>'
  59. gs 'Kikatak', 'player'
  60. xgt 'kikbox', 'sta'
  61. end
  62. act 'Big kick':
  63. cla
  64. damkoef = pcs_stren * 20 / 100
  65. damage = rand((pcs_stren - damkoef) * 3, (pcs_stren + damkoef) * 3)
  66. if damage <= 0:damage = 1
  67. koefatak = (pcs_agil + pcs_react + pcs_kick) / 2
  68. koefpop = koefatak * 20 / 100
  69. popad = rand(koefatak - koefpop, koefatak + koefpop)
  70. '<font color="green">You try a powerful kick.</font>'
  71. gs 'Kikatak', 'player'
  72. xgt 'kikbox', 'sta'
  73. end
  74. else
  75. !!Enemy attacks
  76. '<font color="red"><<$boydesc>> attacks</font>'
  77. tiprand = rand(0, 2)
  78. if tiprand = 0:
  79. damage = rand(strenV / 12, strenV / 8)
  80. if damage <= 0:damage = 1
  81. koefatak = (speedV + reactV + JabV) * 2
  82. koefpop = koefatak * 20 / 100
  83. popad = rand(koefatak - koefpop, koefatak + koefpop)
  84. '<font color="red"><<$boydesc>> deals with quick jab, stepping forward.</font>'
  85. gs 'Kikatak', 'enemy'
  86. xgt 'kikbox', 'sta'
  87. elseif tiprand = 1:
  88. damkoef = strenV * 20/100
  89. damage = rand(strenV - damkoef, strenV + damkoef)
  90. if damage <= 0:damage = 1
  91. koefatak = (speedV + reactV + punchV)
  92. koefpop = koefatak * 20 / 100
  93. popad = rand(koefatak - koefpop, koefatak + koefpop)
  94. '<font color="red"><<$boydesc>> applies a power punch.</font>'
  95. gs 'Kikatak', 'enemy'
  96. xgt 'kikbox', 'sta'
  97. elseif tiprand = 2:
  98. damkoef = strenV * 20 / 100
  99. damage = rand((strenV - damkoef) * 3, (strenV + damkoef) * 3)
  100. if damage <= 0:damage = 1
  101. koefatak = (speedV + reactV + kikV) / 2
  102. koefpop = koefatak * 20 / 100
  103. popad = rand(koefatak - koefpop, koefatak + koefpop)
  104. '<font color="red"><<$boydesc>> goes for a kick.</font>'
  105. gs 'Kikatak', 'enemy'
  106. xgt 'kikbox', 'sta'
  107. end
  108. end
  109. end
  110. end
  111. if $ARGS[0] = 'sta':
  112. cla
  113. ionce = 0
  114. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  115. if minround = 1:'<b>Time in round 0:30</b>'
  116. if minround = 2:'<b>Time in round 1:00</b>'
  117. if minround = 3:'<b>Time in round 1:30</b>'
  118. if minround = 4:'<b>Time in round 2:00</b>'
  119. if minround = 5:'<b>Time in round 2:30</b>'
  120. if minround = 6:'<b>Time in round 3:00</b>'
  121. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  122. '<b><<$boydesc>></b> Life <b><font color="red"><<healthV>></font></b>, Endurance <b><font color="green"><<staminaV>></font></b>'
  123. 'Your life <b><font color="red"><<pcs_health>></font></b>, Endurance <b><font color="green"><<stamina>></font></b>'
  124. '<b>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</b>'
  125. act 'Further':gt 'kikbox', 'start'
  126. if minround = 6:
  127. cla
  128. minround = 0
  129. round += 1
  130. 'The bell rings indicating the end of round <<round>>.'
  131. if round <= formula:
  132. act 'Back to the corner':
  133. cls
  134. '<center><img src="images/locations/city/citycenter/gym/kickboxing/kickboxing_corner.jpg"></center>'
  135. 'You try to rest as best as you can.'
  136. act 'Return to the ring':gt 'kikbox', 'start'
  137. end
  138. elseif round > formula and sparing = 0:
  139. act 'Go to the middle of the ring for the announcement':
  140. cla
  141. if pointKik > pointKikV:
  142. gt 'enderKik', 'win'
  143. elseif pointKik < pointKikV:
  144. gt 'enderKik', 'loss'
  145. elseif pointKik = pointKikV:
  146. gt 'enderKik', 'draw'
  147. end
  148. end
  149. elseif round > formula and sparing = 1:
  150. if pointKik > pointKikV:
  151. gt 'enderKik', 'win'
  152. elseif pointKik < pointKikV:
  153. gt 'enderKik', 'loss'
  154. elseif pointKik = pointKikV:
  155. gt 'enderKik', 'draw'
  156. end
  157. end
  158. end
  159. end
  160. --- kikbox ---------------------------------