enderKik.qsrc 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. # enderKik
  2. if pcs_health < 10:pcs_health = 10
  3. killvar'damage'
  4. if profi = 1:
  5. profi = 0
  6. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_speaker.jpg"></center>'
  7. 'The referee calls you over. It''s time for the announcement...'
  8. act 'Go to the middle for the announcement':
  9. if $ARGS[0] = 'win':
  10. cla
  11. *clr
  12. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win.jpg"></center>'
  13. 'The referee raises your arm. Congratulations! You''ve won!'
  14. KikWinPro += 1
  15. rikudo += 5
  16. end
  17. if $ARGS[0] = 'winKO':
  18. cla
  19. *clr
  20. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg"></center>'
  21. 'The referee raises your arm. Congratulations! You''ve won by knockout!'
  22. KikWinPro += 1
  23. KikWinProKO += 1
  24. rikudo += 10
  25. end
  26. if $ARGS[0] = 'loss':
  27. cla
  28. *clr
  29. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss.jpg"></center>'
  30. 'The referee raises your opponent''s arm. You''ve lost.'
  31. KikLossPro += 1
  32. end
  33. if $ARGS[0] = 'lossKO':
  34. cla
  35. *clr
  36. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg"></center>'
  37. 'All of a sudden, the room starts getting darker and darker...'
  38. KikLossPro += 1
  39. KikLossProKO += 1
  40. end
  41. if $ARGS[0] = 'draw':
  42. cla
  43. *clr
  44. 'The referee raises both of your arms. It''s a draw!'
  45. KikDrawPro += 1
  46. end
  47. ! WD: Argument is 'dressing room'
  48. act 'Leave the ring':gt 'fit', 'dressing room'
  49. end
  50. elseif kickbox['amateur'] = 1:
  51. kickbox['amateur'] = 0
  52. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_speaker.jpg"></center>'
  53. 'The referee calls you over. It''s time for the announcement...'
  54. act 'Goto the center of the ring for the announcement':
  55. if $ARGS[0] = 'win':
  56. cla
  57. *clr
  58. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win.jpg"></center>'
  59. 'The referee raises your arm. Congratulations! You''ve won!'
  60. if kickbox['opponent'] = 0:
  61. gs 'fame', 'city', 'kickboxing', rand(4,6)
  62. if pav_kickboxing <= city_kickboxing:
  63. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  64. else
  65. gs 'fame', 'pav', 'kickboxing', rand(4,6)
  66. end
  67. elseif kickbox['opponent'] = 1:
  68. gs 'fame', 'city', 'kickboxing', rand(5,9)
  69. if pav_kickboxing <= city_kickboxing:
  70. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  71. else
  72. gs 'fame', 'pav', 'kickboxing', rand(5,9)
  73. end
  74. elseif kickbox['opponent'] = 2:
  75. gs 'fame', 'city', 'kickboxing', rand(6,9)
  76. if pav_kickboxing <= city_kickboxing:
  77. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  78. else
  79. gs 'fame', 'pav', 'kickboxing', rand(6,9)
  80. end
  81. elseif kickbox['opponent'] = 3:
  82. gs 'fame', 'city', 'kickboxing', rand(6,10)
  83. if pav_kickboxing <= city_kickboxing:
  84. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  85. else
  86. gs 'fame', 'pav', 'kickboxing', rand(6,10)
  87. end
  88. elseif kickbox['opponent'] = 4:
  89. gs 'fame', 'city', 'kickboxing', rand(7,10)
  90. if pav_kickboxing <= city_kickboxing:
  91. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  92. else
  93. gs 'fame', 'pav', 'kickboxing', rand(7,10)
  94. end
  95. else
  96. gs 'fame', 'city', 'kickboxing', rand(7,13)
  97. if pav_kickboxing <= city_kickboxing:
  98. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/4
  99. else
  100. gs 'fame', 'pav', 'kickboxing', rand(7,10)
  101. end
  102. end
  103. kickbox['amateurWin'] += 1
  104. kickbox['amateur'] = 0
  105. kickbox['advancement'] += 1
  106. money += 500 + kickbox['money']
  107. rikudo += 5
  108. 'You are awarded a cash prize of <<500 + kickbox[''money'']>> <b>₽</b>.'
  109. gs 'razrKik'
  110. end
  111. if $ARGS[0] = 'winKO':
  112. cla
  113. *clr
  114. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg"></center>'
  115. 'The referee raises your arm. Congratulations! You''ve won by knockout!'
  116. gs 'fame', 'city', 'kickboxing', rand(4,6)
  117. if pav_kickboxing > city_kickboxing: gs 'fame', 'pav', 'kickboxing', rand(4,6)
  118. if kickbox['opponent'] = 0:
  119. gs 'fame', 'city', 'kickboxing', rand(4,6)
  120. if pav_kickboxing <= city_kickboxing:
  121. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  122. else
  123. gs 'fame', 'pav', 'kickboxing', rand(4,6)
  124. end
  125. elseif kickbox['opponent'] = 1:
  126. gs 'fame', 'city', 'kickboxing', rand(5,9)
  127. if pav_kickboxing <= city_kickboxing:
  128. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  129. else
  130. gs 'fame', 'pav', 'kickboxing', rand(5,9)
  131. end
  132. elseif kickbox['opponent'] = 2:
  133. gs 'fame', 'city', 'kickboxing', rand(6,9)
  134. if pav_kickboxing <= city_kickboxing:
  135. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  136. else
  137. gs 'fame', 'pav', 'kickboxing', rand(6,9)
  138. end
  139. elseif kickbox['opponent'] = 3:
  140. gs 'fame', 'city', 'kickboxing', rand(6,10)
  141. if pav_kickboxing <= city_kickboxing:
  142. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  143. else
  144. gs 'fame', 'pav', 'kickboxing', rand(6,10)
  145. end
  146. elseif kickbox['opponent'] = 4:
  147. gs 'fame', 'city', 'kickboxing', rand(7,10)
  148. if pav_kickboxing <= city_kickboxing:
  149. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/10
  150. else
  151. gs 'fame', 'pav', 'kickboxing', rand(7,10)
  152. end
  153. else
  154. gs 'fame', 'city', 'kickboxing', rand(7,13)
  155. if pav_kickboxing <= city_kickboxing:
  156. gs 'fame', 'pav', 'kickboxing', rand(0,city_kickboxing)/4
  157. else
  158. gs 'fame', 'pav', 'kickboxing', rand(7,10)
  159. end
  160. end
  161. kickbox['amateurWin'] += 1
  162. kickbox['amateurWinKO'] += 1
  163. kickbox['advancement'] += 1
  164. kickbox['amateur'] = 0
  165. money += 500 + kickbox['money']
  166. rikudo += 10
  167. 'You are awarded a cash prize of <<500 + kickbox[''money'']>> <b>₽</b>.'
  168. gs 'razrKik'
  169. end
  170. if $ARGS[0] = 'loss':
  171. cla
  172. *clr
  173. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss.jpg"></center>'
  174. 'The referee raises your opponent''s arm. You''ve lost.'
  175. kickbox['amateurLoss'] += 1
  176. if kickbox['advancement'] > 0:kickbox['advancement'] -= 1
  177. end
  178. if $ARGS[0] = 'lossKO':
  179. cla
  180. *clr
  181. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg"></center>'
  182. 'All of a sudden, the room starts getting darker and darker...'
  183. kickbox['amateurLoss'] += 1
  184. kickbox['amateurLossKO'] += 1
  185. if kickbox['advancement'] > 0:kickbox['advancement'] -= 1
  186. end
  187. if $ARGS[0] = 'draw':
  188. cla
  189. *clr
  190. 'The referee raises both of your arms. It''s a draw!'
  191. kickbox['amateurDraw'] += 1
  192. end
  193. ! WD: Argument is 'dressing room'
  194. act 'Leave the ring':gt 'fit', 'dressing room'
  195. end
  196. elseif sparing = 1:
  197. sparing = 0
  198. if $ARGS[0] = 'win':
  199. cla
  200. *clr
  201. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg"></center>'
  202. 'The fight is over and your rival comes over to you and says "Nice hustle in the ring."'
  203. 'You nod and she turns around and heads to the dressing room.'
  204. end
  205. if $ARGS[0] = 'winKO':
  206. cla
  207. *clr
  208. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg"></center>'
  209. 'The fight is over. You can hear some of the people quietly comment that you didn''t have to knock her out...'
  210. end
  211. if $ARGS[0] = 'loss':
  212. cla
  213. *clr
  214. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg"></center>'
  215. 'The fight is over and your rival comes over to you and smugly says "Keep practicing."'
  216. 'You nod and she turns around and heads to the dressing room.'
  217. end
  218. if $ARGS[0] = 'lossKO':
  219. cla
  220. *clr
  221. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg"></center>'
  222. 'Before you know it, you''re laying on the floor and the room starts getting darker and darker...'
  223. end
  224. if $ARGS[0] = 'draw':
  225. cla
  226. *clr
  227. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg"></center>'
  228. 'The fight is over and your rival comes over to you and says "That was pretty close, good fight."'
  229. 'You nod and she turns around and heads to the dressing room.'
  230. end
  231. ! WD: Argument is 'dressing room'
  232. act 'Leave the ring':gt 'fit', 'dressing room'
  233. end
  234. --- enderKik ---------------------------------