1
0

havana_kickboxing.qsrc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. # havana_kickboxing
  2. if $ARGS[0] = 'start':
  3. killvar '$locclass'
  4. menu_off = 1
  5. minut += 5
  6. gs 'stat'
  7. gs 'kickboxing_funcs', 'sash_advancement'
  8. gs 'themes', 'indoors'
  9. '<center><b><font color="maroon">Kickboxing Gym</font></b></center>'
  10. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kik.jpg"></center>'
  11. 'This section is dominated by the ring itself, square like a boxing ring and the only equipment that can''t be easily moved.'
  12. 'Around it there are various punching bags of different sizes and weights and a couple of coaches with practice pads.'
  13. 'You can try your luck in a fight here on Saturdays but safety concerns limit everyone to a maximum of 1 bout per week.'
  14. act 'Return to dressing room': gt 'havana_kickboxing', 'leave'
  15. if pcs_energy < 20:
  16. *nl
  17. 'You are too hungry to do anymore exercises now.'
  18. elseif pcs_stam < stammax / 5:
  19. *nl
  20. 'You are too fatigued to do anymore exercises now.'
  21. else
  22. act 'Work on your jabs':
  23. *clr & cla
  24. abonement -= 1
  25. gs 'exercise', 'tier3', 30, 'jab', 'react'
  26. if pcs_inhib < 30: inhib_exp += rand(1, 2)
  27. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kik1.jpg"></center>'
  28. 'You practice your jabs on the speed bag and double-end bag, straight punches with a step forward. These strikes are not so powerful, but they are fast.'
  29. act 'Leave': gt 'havana_kickboxing', 'start'
  30. end
  31. act 'Work on your heavy punches':
  32. *clr & cla
  33. abonement -= 1
  34. gs 'exercise', 'tier3', 30, 'stren', 'punch'
  35. if pcs_inhib < 30: inhib_exp += rand(1, 2)
  36. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kik1.jpg"></center>'
  37. 'You practice your power punches on the heavy bag. These are high impact and powerful, but they are hard to get to their target.'
  38. act 'Leave': gt 'havana_kickboxing', 'start'
  39. end
  40. act 'Work on your kicking':
  41. *clr & cla
  42. abonement -= 1
  43. gs 'exercise', 'tier3', 30, 'stren', 'kick'
  44. if pcs_inhib < 30: inhib_exp += rand(1, 2)
  45. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kik1.jpg"></center>'
  46. 'You practice your powerful kicks on a kickboxing bag. These impacts are very powerful and able to cut down an opponant, but are very difficult to hit with.'
  47. act 'Leave': gt 'havana_kickboxing', 'start'
  48. end
  49. act 'Work on defence':
  50. *clr & cla
  51. abonement -= 1
  52. gs 'exercise', 'tier3', 30, 'def', 'agil'
  53. if pcs_inhib < 30: inhib_exp += rand(1, 2)
  54. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kik1.jpg"></center>'
  55. 'You practice your defense movements.'
  56. act 'Leave': gt 'havana_kickboxing', 'start'
  57. end
  58. act 'Sparring (training bout in the ring)':
  59. *clr & cla
  60. 'You need to choose a partner for sparring'
  61. if pcs_inhib < 30: inhib_exp += rand(1, 2)
  62. act 'Pick a random partner':
  63. abonement -= 1
  64. pcs_mood += 2
  65. gs 'exercise', 'tier3', 30, 'jab', 'punch', 'kick', 'def'
  66. gs 'kickboxing_funcs', 'init_fight_vars'
  67. temp_kickboxVars['fight_type'] = 0
  68. gs 'kickboxing_funcs', 'generate_opponent', 'spar'
  69. gt 'havana_kickboxing', 'match'
  70. end
  71. end
  72. if week = 6 and kickbox['amateur_fight_day'] ! daystart:
  73. 'You can take part in an amateur fight.'
  74. act 'Amateur fight':
  75. kickbox['amateur_fight_day'] = daystart
  76. pcs_mood += 2
  77. gs 'exercise', 'tier3', 30, 'jab', 'punch', 'kick', 'def'
  78. gs 'kickboxing_funcs', 'init_fight_vars'
  79. kickbox['opponent'] = kickbox['sash'] + (rand(-2, 5) / 2)
  80. temp_kickboxVars['fight_type'] = 1
  81. gs 'kickboxing_funcs', 'generate_opponent', 'amateur_fight', kickbox['opponent']
  82. gt 'havana_kickboxing', 'match'
  83. end
  84. end
  85. !! Professional fight: temp_kickboxVars['fight_type'] = 2
  86. end
  87. end
  88. if $ARGS[0] = 'match':
  89. if pcs_health <= 0:
  90. '<b><font color = red>You lost by TKO</font></b>'
  91. xgt 'havana_kickboxing', 'end', 'lossKO'
  92. elseif temp_kickboxVars['npc_health'] <= 0:
  93. '<b><font color = green><<$boydesc>> lost by TKO</font></b>'
  94. xgt 'havana_kickboxing', 'end', 'winKO'
  95. end
  96. if temp_kickboxVars['round'] >= 1:
  97. '<center><b>Round <<temp_kickboxVars[''round'']>></b></center>'
  98. *nl
  99. if temp_kickboxVars['fight_type'] = 0:
  100. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kik1.jpg"></center>'
  101. else
  102. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/ring<<temp_kickboxVars[''round'']>>.jpg"></center>'
  103. end
  104. gs 'kickboxing_funcs', 'display_header'
  105. temp_kickboxVars['time'] += 1
  106. gs 'kickboxing_funcs', 'set_initiative'
  107. if temp_kickboxVars['active_init'] = 0:
  108. !!Player attacks
  109. '<font color="green">You can attack</font>'
  110. act 'Fast Jab':
  111. '<font color="green">You go for the quick jab and step forward.</font>'
  112. gs 'kickboxing_funcs', 'attack', 'player', 'jab'
  113. if temp_kickboxVars['KO'] = 1: xgt 'havana_kickboxing', 'end', 'winKO'
  114. xgt 'havana_kickboxing', 'sta'
  115. end
  116. act 'Power punch':
  117. '<font color="green">You attempt a powerful punch.</font>'
  118. gs 'kickboxing_funcs', 'attack', 'player', 'punch'
  119. if temp_kickboxVars['KO'] = 1: xgt 'havana_kickboxing', 'end', 'winKO'
  120. xgt 'havana_kickboxing', 'sta'
  121. end
  122. act 'Big kick':
  123. '<font color="green">You try a powerful kick.</font>'
  124. gs 'kickboxing_funcs', 'attack', 'player', 'kick'
  125. if temp_kickboxVars['KO'] = 1: xgt 'havana_kickboxing', 'end', 'winKO'
  126. xgt 'havana_kickboxing', 'sta'
  127. end
  128. else
  129. !!Enemy attacks
  130. '<font color="red"><<$boydesc>> attacks</font>'
  131. tiprand = rand(0, 2)
  132. if tiprand = 0:
  133. act 'Block <<$boydesc>>''s quick jab':
  134. '<font color="red"><<$boydesc>> deals with quick jab, stepping forward.</font>'
  135. gs 'kickboxing_funcs', 'attack', 'enemy', 'jab'
  136. if temp_kickboxVars['KO'] = 1: xgt 'havana_kickboxing', 'end', 'lossKO'
  137. xgt 'havana_kickboxing', 'sta'
  138. end
  139. elseif tiprand = 1:
  140. act 'Dodge <<$boydesc>>''s power punch':
  141. '<font color="red"><<$boydesc>> applies a power punch.</font>'
  142. gs 'kickboxing_funcs', 'attack', 'enemy', 'punch'
  143. if temp_kickboxVars['KO'] = 1: xgt 'havana_kickboxing', 'end', 'lossKO'
  144. xgt 'havana_kickboxing', 'sta'
  145. end
  146. else
  147. act 'Dodge <<$boydesc>>''s kick':
  148. '<font color="red"><<$boydesc>> goes for a kick.</font>'
  149. gs 'kickboxing_funcs', 'attack', 'enemy', 'kick'
  150. if temp_kickboxVars['KO'] = 1: xgt 'havana_kickboxing', 'end', 'lossKO'
  151. xgt 'havana_kickboxing', 'sta'
  152. end
  153. end
  154. end
  155. end
  156. end
  157. if $ARGS[0] = 'sta':
  158. temp_kickboxVars['set_init'] = 0
  159. act 'Further': gt 'havana_kickboxing', 'match'
  160. if temp_kickboxVars['time'] = 6:
  161. cla
  162. temp_kickboxVars['time'] = 0
  163. temp_kickboxVars['round'] += 1
  164. 'The bell rings indicating the end of round <<temp_kickboxVars[''round'']>>.'
  165. if temp_kickboxVars['round'] <= temp_kickboxVars['max_rounds']:
  166. act 'Back to the corner':
  167. *clr & cla
  168. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_corner.jpg"></center>'
  169. 'You try to rest as best as you can.'
  170. act 'Return to the ring': gt 'havana_kickboxing', 'match'
  171. end
  172. elseif temp_kickboxVars['fight_type'] = 0:
  173. if temp_kickboxVars['pcs_points'] > temp_kickboxVars['npc_points']:
  174. gt 'havana_kickboxing', 'end', 'win'
  175. elseif temp_kickboxVars['pcs_points'] < temp_kickboxVars['npc_points']:
  176. gt 'havana_kickboxing', 'end', 'loss'
  177. elseif temp_kickboxVars['pcs_points'] = temp_kickboxVars['npc_points']:
  178. gt 'havana_kickboxing', 'end', 'draw'
  179. end
  180. elseif temp_kickboxVars['fight_type'] = 1:
  181. act 'Go to the middle of the ring for the announcement':
  182. *clr & cla
  183. if temp_kickboxVars['pcs_points'] > temp_kickboxVars['npc_points']:
  184. gt 'havana_kickboxing', 'end', 'win'
  185. elseif temp_kickboxVars['pcs_points'] < temp_kickboxVars['npc_points']:
  186. gt 'havana_kickboxing', 'end', 'loss'
  187. elseif temp_kickboxVars['pcs_points'] = temp_kickboxVars['npc_points']:
  188. gt 'havana_kickboxing', 'end', 'draw'
  189. end
  190. end
  191. end
  192. end
  193. end
  194. if $ARGS[0] = 'end':
  195. if pcs_health < 10: pcs_health = 10
  196. $temp_kickboxVars['result'] = $ARGS[1]
  197. if temp_kickboxVars['fight_type'] = 0:
  198. *clr & cla
  199. if $temp_kickboxVars['result'] = 'win':
  200. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg"></center>'
  201. 'The fight is over and your rival comes over to you and says "Nice hustle in the ring."'
  202. 'You nod and she turns around and heads to the dressing room.'
  203. elseif $temp_kickboxVars['result'] = 'winKO':
  204. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg"></center>'
  205. 'The fight is over. You can hear some of the people quietly comment that you didn''t have to knock her out...'
  206. elseif $temp_kickboxVars['result'] = 'loss':
  207. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_rival.jpg"></center>'
  208. 'The fight is over and your rival comes over to you and smugly says "Keep practicing."'
  209. 'You nod and she turns around and heads to the dressing room.'
  210. elseif $temp_kickboxVars['result'] = 'lossKO':
  211. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg"></center>'
  212. 'Before you know it, you''re laying on the floor and the room starts getting darker and darker...'
  213. else
  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 says "That was pretty close, good fight."'
  216. 'You nod and she turns around and heads to the dressing room.'
  217. end
  218. act 'Leave the ring': gt 'havana_kickboxing', 'leave'
  219. elseif temp_kickboxVars['fight_type'] = 1:
  220. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_speaker.jpg"></center>'
  221. 'The referee calls you over. It''s time for the announcement...'
  222. act 'Goto the center of the ring for the announcement':
  223. *clr & cla
  224. if $temp_kickboxVars['result'] = 'win':
  225. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win.jpg"></center>'
  226. 'The referee raises your arm. Congratulations! You''ve won!'
  227. if kickbox['opponent'] = 0:
  228. gs 'fame', 'city', 'kickboxing', rand(4, 6)
  229. elseif kickbox['opponent'] = 1:
  230. gs 'fame', 'city', 'kickboxing', rand(5, 9)
  231. elseif kickbox['opponent'] = 2:
  232. gs 'fame', 'city', 'kickboxing', rand(6, 9)
  233. elseif kickbox['opponent'] = 3:
  234. gs 'fame', 'city', 'kickboxing', rand(6, 10)
  235. elseif kickbox['opponent'] = 4:
  236. gs 'fame', 'city', 'kickboxing', rand(7, 10)
  237. else
  238. gs 'fame', 'city', 'kickboxing', rand(7, 13)
  239. end
  240. kickbox['amateurWin'] += 1
  241. kickbox['advancement'] += 1
  242. money += 500 + kickbox['money']
  243. rikudo += 5
  244. 'You are awarded a cash prize of <<500 + kickbox[''money'']>> <b>₽</b>.'
  245. gs 'kickboxing_funcs', 'sash_advancement'
  246. elseif $temp_kickboxVars['result'] = 'winKO':
  247. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg"></center>'
  248. 'The referee raises your arm. Congratulations! You''ve won by knockout!'
  249. gs 'fame', 'city', 'kickboxing', rand(4, 6)
  250. if kickbox['opponent'] = 0:
  251. gs 'fame', 'city', 'kickboxing', rand(4, 6)
  252. elseif kickbox['opponent'] = 1:
  253. gs 'fame', 'city', 'kickboxing', rand(5, 9)
  254. elseif kickbox['opponent'] = 2:
  255. gs 'fame', 'city', 'kickboxing', rand(6, 9)
  256. elseif kickbox['opponent'] = 3:
  257. gs 'fame', 'city', 'kickboxing', rand(6, 10)
  258. elseif kickbox['opponent'] = 4:
  259. gs 'fame', 'city', 'kickboxing', rand(7, 10)
  260. else
  261. gs 'fame', 'city', 'kickboxing', rand(7, 13)
  262. end
  263. kickbox['amateurWin'] += 1
  264. kickbox['amateurWinKO'] += 1
  265. kickbox['advancement'] += 1
  266. money += 500 + kickbox['money']
  267. rikudo += 10
  268. 'You are awarded a cash prize of <<500 + kickbox[''money'']>> <b>₽</b>.'
  269. gs 'kickboxing_funcs', 'sash_advancement'
  270. elseif $temp_kickboxVars['result'] = 'loss':
  271. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss.jpg"></center>'
  272. 'The referee raises your opponent''s arm. You''ve lost.'
  273. kickbox['amateurLoss'] += 1
  274. if kickbox['advancement'] > 0:kickbox['advancement'] -= 1
  275. elseif $temp_kickboxVars['result'] = 'lossKO':
  276. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg"></center>'
  277. 'All of a sudden, the room starts getting darker and darker...'
  278. kickbox['amateurLoss'] += 1
  279. kickbox['amateurLossKO'] += 1
  280. if kickbox['advancement'] > 0:kickbox['advancement'] -= 1
  281. else
  282. !'<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_draw.jpg"></center>'
  283. 'The referee raises both of your arms. It''s a draw!'
  284. kickbox['amateurDraw'] += 1
  285. end
  286. act 'Leave the ring': gt 'havana_kickboxing', 'leave'
  287. end
  288. elseif temp_kickboxVars['fight_type'] = 2:
  289. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_speaker.jpg"></center>'
  290. 'The referee calls you over. It''s time for the announcement...'
  291. act 'Go to the middle for the announcement':
  292. *clr & cla
  293. if $temp_kickboxVars['result'] = 'win':
  294. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win.jpg"></center>'
  295. 'The referee raises your arm. Congratulations! You''ve won!'
  296. kickbox['proWin'] += 1
  297. rikudo += 5
  298. elseif $temp_kickboxVars['result'] = 'winKO':
  299. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_win_ko.jpg"></center>'
  300. 'The referee raises your arm. Congratulations! You''ve won by knockout!'
  301. kickbox['proWin'] += 1
  302. kickbox['proWinKO'] += 1
  303. rikudo += 10
  304. elseif $temp_kickboxVars['result'] = 'loss':
  305. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss.jpg"></center>'
  306. 'The referee raises your opponent''s arm. You''ve lost.'
  307. kickbox['proLoss'] += 1
  308. elseif $temp_kickboxVars['result'] = 'lossKO':
  309. '<center><img <<$set_imgh>> src="images/locations/city/citycenter/gym/kickboxing/kickboxing_loss_ko.jpg"></center>'
  310. 'All of a sudden, the room starts getting darker and darker...'
  311. kickbox['proLoss'] += 1
  312. kickbox['proLossKO'] += 1
  313. else
  314. 'The referee raises both of your arms. It''s a draw!'
  315. kickbox['proDraw'] += 1
  316. end
  317. act 'Leave the ring': gt 'havana_kickboxing', 'leave'
  318. end
  319. end
  320. end
  321. if $ARGS[0] = 'leave':
  322. killvar 'temp_kickboxVars'
  323. gt $loc, $loc_arg
  324. end
  325. --- havana_kickboxing ---------------------------------