mod_public_WC_cabine_crime.qsrc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. # mod_public_WC_cabine_crime
  2. if $ARGS[0] = 'start':
  3. CLOSE ALL
  4. menu_off = 1
  5. *clr & cla
  6. crime -= rand(0,100)
  7. if crime < 0: crime = 0
  8. 'Someone hit me and I fell down.'
  9. gs 'pain', rand(4,10), 'head', 'hit'
  10. '"Too many crimes, Girl, someone wants to take revenge!"'
  11. 'He aims a gun on me...'
  12. bcil = rand(60,120)
  13. ecrime = 1
  14. '<center><img <<$set_imgh>> src="mod/public_WC/WC/events/90/101gopotamista/pidval/udar.jpg"></center>'
  15. if gun = 1:
  16. act 'Try to shoot him':
  17. cla
  18. temp=rand(1,2)
  19. '<center><video autoplay loop src="mod/public_WC/lisrab/r_events/11/gunshoot<<temp>>.mp4"></video></center>'
  20. ammo -= 1
  21. shoot_exp += rand(1,3)
  22. if pcs_shoot >= rand(70,120):
  23. 'I hit him!'
  24. temp = rand(1,10)
  25. if temp <= 9:
  26. 'He scream and fall on the ground.'
  27. pcs_mood -= 5
  28. 'He is bleading'
  29. act 'Take his wallet and call an ambulance':
  30. crime += 2
  31. temp = rand(0,21)
  32. if temp <= 6:
  33. money += rand(0,100)
  34. 'This bastard wasn''t going to pay me, there are almost no money'
  35. elseif temp <= 20:
  36. money += rand(750,2500)
  37. 'Nice.'
  38. else
  39. money += rand(3000,7000)
  40. 'Woow, it''s a lot of money'
  41. end
  42. killvar 'ecrime'
  43. gt $loc, $loc_arg
  44. end
  45. act 'run away':
  46. crime += 1
  47. minut += 15
  48. killvar 'ecrime'
  49. gt $loc, $loc_arg
  50. end
  51. act 'run away and call ambulance':
  52. crime += 2
  53. minut += 15
  54. killvar 'ecrime'
  55. gt $loc, $loc_arg
  56. end
  57. gs 'willpower', 'crime', 'self', 'medium'
  58. if will_cost <= pcs_willpwr:
  59. act 'Finish him (<<will_cost>> Willpower)':
  60. *clr & cla
  61. temp=rand(1,2)
  62. '<center><video autoplay loop src="mod/public_WC/lisrab/r_events/11/gunshoot<<temp>>.mp4"></video></center>'
  63. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/r_events/11/body.jpg"></center>'
  64. gs 'willpower', 'pay', 'self'
  65. gs 'stat'
  66. killed +=1
  67. ammo -= 1
  68. willpowermax += 5
  69. pcs_mood -= 40
  70. pcs_mood += killed
  71. shoot_exp += 1
  72. 'He even make no sound. The dead body fell on the ground'
  73. crime += 5
  74. 'I take all his money and leave'
  75. temp = rand(0,11)
  76. if temp <= 3:
  77. money += rand(0,100)
  78. 'This bastard wasn''t going to pay me, there are almost no money'
  79. elseif temp <= 10:
  80. money += rand(750,2500)
  81. 'Nice.'
  82. else
  83. money += rand(3000,7000)
  84. 'Woow, it''s a lot of money'
  85. end
  86. killvar 'ecrime'
  87. act 'go away': gt $loc, $loc_arg
  88. end
  89. else
  90. act 'Finish him (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  91. end
  92. else
  93. 'He stoped and fall on the ground in scilense.'
  94. temp=rand(1,2)
  95. '<center><video autoplay loop src="mod/public_WC/lisrab/r_events/11/gunshoot<<temp>>.mp4"></video></center>'
  96. killed +=1
  97. willpowermax += 5
  98. pcs_mood -= 40
  99. pcs_mood += killed
  100. shoot_exp += 1
  101. crime += 5
  102. '<center><img <<$set_imgh>> src="mod/public_WC/lisrab/r_events/11/body.jpg"></center>'
  103. killvar 'ecrime'
  104. act 'run away': gt $loc, $loc_arg
  105. act 'take the wallet and run away':
  106. 'I take all his money and leave'
  107. temp = rand(0,21)
  108. if temp <= 6:
  109. money += rand(0,100)
  110. 'This bastard wasn''t going to pay me, there are almost no money'
  111. elseif temp <= 20:
  112. money += rand(750,2500)
  113. 'Nice.'
  114. else
  115. money += rand(3000,7000)
  116. 'Woow, it''s a lot of money'
  117. end
  118. gt $loc, $loc_arg
  119. end
  120. end
  121. else
  122. cla
  123. 'I have not enought time to aim and shoot somewhere. He hit me... hard, becouse of pain I dropped the gun.'
  124. 'he hit me one more time and I fall to the ground'
  125. gs 'pain', 10, 'head', 'kick'
  126. gs 'pain', 10, 'lips', 'kick'
  127. gs 'pain', 10, 'nose', 'kick'
  128. gs 'pain', 10, 'armR', 'kick'
  129. gs 'pain', 10, 'tummy', 'kick'
  130. gs 'stat'
  131. gun = 0
  132. killvar 'ecrime'
  133. act 'try not to lose consciousness': gt 'mod_public_WC_rab_gun_rob', 'rape'
  134. end
  135. end
  136. end
  137. act 'try to run away': gt 'mod_public_WC_rab_gun_rob', 'runaway'
  138. act 'surrender':
  139. killvar 'ecrime'
  140. gun = 0
  141. gt 'mod_public_WC_rab_gun_rob', 'surrender'
  142. end
  143. temp3 = 50000 / pcs_persuas
  144. temp2 = 250000 / pcs_persuas
  145. temp1 = 500000 / pcs_persuas
  146. if money >= temp3:
  147. act 'offer money':
  148. if money >= temp1:
  149. act 'offer <<temp1>>':
  150. cla
  151. killvar 'temp1'
  152. killvar 'temp2'
  153. killvar 'temp3'
  154. 'ok'
  155. humint_exp += 3
  156. money -= temp1
  157. gs 'stat'
  158. 'He takes the money and leave'
  159. act 'continue': gt $loc, $loc_arg
  160. end
  161. end
  162. if money >= temp2:
  163. act 'offer <<temp2>>':
  164. cla
  165. killvar 'temp1'
  166. killvar 'temp2'
  167. killvar 'temp3'
  168. if pcs_humint <= rand(25,75) or pcs_intel <= rand(45,95):
  169. 'ok'
  170. humint_exp += 3
  171. money -= temp2
  172. gs 'stat'
  173. 'He takes the money and leave'
  174. act 'continue': gt $loc, $loc_arg
  175. else
  176. '"Pff, no. Don''t try to distract me.'
  177. if gun = 1: 'I see your gun'
  178. act 'try to run away': gt 'mod_public_WC_rab_gun_rob', 'runaway'
  179. act 'surrender':
  180. killvar 'ecrime'
  181. gun = 0
  182. gt 'mod_public_WC_rab_gun_rob', 'surrender'
  183. end
  184. end
  185. end
  186. end
  187. if money >= temp3:
  188. act 'offer <<temp3>>':
  189. cla
  190. killvar 'temp1'
  191. killvar 'temp2'
  192. killvar 'temp3'
  193. if pcs_humint <= rand(45,75) or pcs_intel <= rand(70,90):
  194. 'ok'
  195. humint_exp += 3
  196. money -= temp3
  197. gs 'stat'
  198. 'He takes the money and leave'
  199. act 'continue': gt $loc, $loc_arg
  200. else
  201. '"Pff, no. Don''t try to distract me, I see your gun"'
  202. if gun = 1: 'I see your gun'
  203. act 'try to run away': gt 'mod_public_WC_rab_gun_rob', 'runaway'
  204. act 'surrender':
  205. killvar 'ecrime'
  206. gun = 0
  207. gt 'mod_public_WC_rab_gun_rob', 'surrender'
  208. end
  209. end
  210. end
  211. end
  212. end
  213. end
  214. end
  215. --- mod_public_WC_cabine_crime ---------------------------------