courtletter.qsrc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. # courtletter
  2. if $ARGS[0] = '':
  3. if arrsize('policeQW_courtletter_dates') > 0 and daystart >= policeQW_courtletter_dates[0]: gt 'courtletter', 'letter'
  4. end
  5. if $ARGS[0] = 'letter':
  6. *clr & cla
  7. menu_off = 1
  8. minut += 5
  9. if (policeQW['missed_court_dates'] + policeQW['missed_fine_deadlines']) > 1:
  10. if (policeQW['tot_court_dates_missed'] + policeQW['tot_fines_deadlines_missed']) > 30 and policeQW['tot_arrested'] > 10:
  11. policeQW['tot_arrested'] += 1
  12. if policeQW['arrest_gameover_flag'] = 1:
  13. gt 'sentence', 'police_arrest', 2
  14. else
  15. policeQW['arrest_gameover_flag'] = 1
  16. gt 'sentence', 'police_arrest', 1
  17. end
  18. elseif (policeQW['missed_court_dates'] + policeQW['missed_fine_deadlines']) > 3:
  19. policeQW['tot_arrested'] += 1
  20. gt 'sentence', 'police_arrest', 0
  21. end
  22. end
  23. '<center><img <<$set_imgh>> src="images/shared/mail/letter_open.jpg"></center>'
  24. !! Handling the various different letters.
  25. if $policeQW_courtletter_subjects[0] = 'fine':
  26. if policeQW['courtletter_fine_counter'] < 10:
  27. policeQW['courtletter_fine_counter'] += 1
  28. pcs_mood -= 100
  29. gs 'stat'
  30. 'As you enter your home you notice an envelope from the court. You anxiously look at it and take a deep breath before opening the envelope.'
  31. if week < 6:
  32. 'Going through the letter you read that you''ve a week to pay your fine in full.'
  33. else
  34. 'Going through the letter you read that you''ve until Monday, a week from now, to pay your fine in full.'
  35. end
  36. '<i>Failure to pay the fine in full with in a week from now, will have dire consequences for the accused.</i> Your heart drops as you read that line...'
  37. '<i>You should mail your fine payment using the enclosed envelope.</i>'
  38. 'You put the letter back in the envelope and let out a loud sigh...'
  39. if policeQW['legal_fine'] <= 0:
  40. pcs_mood += 90
  41. gs 'stat'
  42. 'You realize that you''ve already paid off your fines and sigh with relief.'
  43. else
  44. 'You put the letter back in the envelope and let out a loud sigh...'
  45. end
  46. else
  47. 'As you come home you see the familiar envelope from the court. You already know the gist of it, <i>failure to pay your fine will have dire consequences,</i> yadda yadda...'
  48. 'You glance through the letter seeing the same information once again and as you finish you throw it to the side and continue further on inside your apartment...'
  49. if policeQW['legal_fine'] <= 0:
  50. 'You''ve already paid your fines, why are they even bothering you.'
  51. end
  52. end
  53. if policeQW['legal_fine'] > 0:
  54. if money < policeQW['legal_fine']:
  55. act 'Mail the payment for your legal fine/s (<font color="red"><<policeQW[''legal_fine'']>> <b>₽</b></font>)': '<br><font color="red">You don''t have enough cash to use this action.</font>'
  56. else
  57. act 'Mail the payment for your legal fine/s (<<policeQW[''legal_fine'']>> <b>₽</b>)':
  58. *clr & cla
  59. money -= policeQW['legal_fine']
  60. policeQW['legal_fine'] = 0
  61. policeQW['missed_fine_deadlines'] = 0
  62. policeQW['fine_deadline'] = 0
  63. policeQW['arrest_gameover_flag'] = 0
  64. minut += 5
  65. gs 'stat'
  66. !!Need an image of Sveta putting money in the envelope!!
  67. !'<center><img <<$set_imgh>> src="images/locations/shared/postoffice/counter.jpg"></center>'
  68. 'You put the full amount of your outstanding fine/s in the evelope and seal it. No more than 5 minutes later you''ve posted the letter and are back.'
  69. act 'Done': gt $loc, $loc_arg
  70. end
  71. end
  72. end
  73. elseif $policeQW_courtletter_subjects[0] = 'missed_fine':
  74. if policeQW['courtletter_fine_counter'] < 10:
  75. policeQW['courtletter_fine_counter'] += 1
  76. pcs_mood -= 100
  77. gs 'stat'
  78. 'As you enter your home you notice an envelope from the court. You anxiously look at it and take a deep breath before opening the envelope.'
  79. if policeQW['legal_fine'] <= 0:
  80. pcs_mood += 90
  81. gs 'stat'
  82. 'Going through the letter you read that you''ve a week to pay your fine in full, which you already did.'
  83. 'Happy that you''ve managed to avoid this worry, you put the letter away.'
  84. else
  85. temp_fine = 250 * rand(5, 10)
  86. gs 'sentence', 'add_fine', temp_fine
  87. if week < 6:
  88. 'Going through the letter you read that you''ve failed to pay your fine. The court given you another <<temp_rand>> <b>₽</b> fine and has graciously decided to give you a week to pay your fine in full.'
  89. else
  90. 'Going through the letter you read that you''ve failed to pay your fine. The court given you another <<temp_rand>> <b>₽</b> fine and has graciously decided to give you until Monday, a week from now, to pay your fine in full.'
  91. end
  92. '<i>Failure to pay the fine in full with in a week from now, will have dire consequences for the accused.</i> Your heart drops as you read that line...'
  93. '<i>You should mail your fine payment using the enclosed envelope.</i>'
  94. 'You put the letter back in the envelope and let out a loud sigh...'
  95. end
  96. else
  97. if policeQW['legal_fine'] <= 0:
  98. 'As you come home you see the familiar envelope from the court. You already know the gist of it, <i>failed to pay your fine, failure to pay your fine will have dire consequences,</i> yadda yadda...'
  99. 'You already paid off your fines and as you finish you throw it to the side and continue further on inside your apartment...'
  100. else
  101. temp_fine = 250 * rand(10, 20)
  102. gs 'sentence', 'add_fine', temp_fine
  103. 'As you come home you see the familiar envelope from the court. You already know the gist of it, <i>failed to pay your fine, additional <<temp_rand>> <b>₽</b> fine, failure to pay your fine will have dire consequences,</i> yadda yadda...'
  104. 'You glance through the letter seeing the same information once again and as you finish you throw it to the side and continue further on inside your apartment...'
  105. end
  106. end
  107. if policeQW['legal_fine'] > 0:
  108. if money < policeQW['legal_fine']:
  109. act 'Mail the payment for your legal fine/s (<font color="red"><<policeQW[''legal_fine'']>> <b>₽</b></font>)': '<br><font color="red">You don''t have enough cash to use this action.</font>'
  110. else
  111. act 'Mail the payment for your legal fine/s (<<policeQW[''legal_fine'']>> <b>₽</b>)':
  112. *clr & cla
  113. money -= policeQW['legal_fine']
  114. policeQW['legal_fine'] = 0
  115. policeQW['missed_fine_deadlines'] = 0
  116. policeQW['fine_deadline'] = 0
  117. policeQW['arrest_gameover_flag'] = 0
  118. minut += 5
  119. gs 'stat'
  120. !!Need an image of Sveta putting money in the envelope!!
  121. !'<center><img <<$set_imgh>> src="images/locations/shared/postoffice/counter.jpg"></center>'
  122. 'You put the full amount of your outstanding fine/s in the evelope and seal it. No more than 5 minutes later you''ve posted the letter and are back.'
  123. act 'Done': gt $loc, $loc_arg
  124. end
  125. end
  126. end
  127. elseif mid($policeQW_courtletter_subjects[0], 1, 12) = 'missed_court':
  128. if week = 6:
  129. policeQW_courthearing_dates[] = daystart + 9
  130. elseif week = 7:
  131. policeQW_courthearing_dates[] = daystart + 8
  132. else
  133. policeQW_courthearing_dates[] = daystart + 7
  134. end
  135. $policeQW_courthearing_subjects[] = mid($policeQW_courtletter_subjects[0], 14)
  136. if policeQW['courtletter_hearing_counter'] < 10:
  137. policeQW['courtletter_hearing_counter'] += 1
  138. pcs_mood -= 100
  139. gs 'stat'
  140. 'As you enter your home you notice an envelope from the court. You anxiously look at it and take a deep breath before opening the envelope.'
  141. temp_fine = 500 * rand(5, 10)
  142. gs 'sentence', 'add_fine', temp_fine
  143. if week < 6:
  144. 'Going through the letter you read that you''ve missed your court hearing. A new court hearing has been scheduled a week from now and you''ve been fined <<temp_rand>> <b>₽</b>.'
  145. else
  146. 'Going through the letter you read that you''ve missed your court hearing. A new court hearing has been scheduled on Monday, a week from now and you''ve been fined <<temp_rand>> <b>₽</b>.'
  147. end
  148. '<i>Failing to appear in court will have dire consequences for the accused.</i> Your heart drops as you read that line...'
  149. '<i>The court is located in the city center. You should arrive at 9:00 as there are a lot of cases and we can''t say when your turn might come up.</i>'
  150. 'You put the letter back in the envelope and let out a loud sigh...'
  151. else
  152. temp_fine = 500 * rand(10, 20)
  153. gs 'sentence', 'add_fine', temp_fine
  154. 'As you come home you see the familiar envelope from the court. You already know the gist of it, <i>missed court, <<temp_rand>> <b>₽</b> fine, failure to show up will have dire consequences,</i> yadda yadda...'
  155. 'You glance through the letter seeing the same information once again and as you finish you throw it to the side and continue further on inside your apartment...'
  156. end
  157. else
  158. if week = 6:
  159. policeQW_courthearing_dates[] = daystart + 9
  160. elseif week = 7:
  161. policeQW_courthearing_dates[] = daystart + 8
  162. else
  163. policeQW_courthearing_dates[] = daystart + 7
  164. end
  165. $policeQW_courthearing_subjects[] = $policeQW_courtletter_subjects[0]
  166. if policeQW['courtletter_hearing_counter'] < 10:
  167. policeQW['courtletter_hearing_counter'] += 1
  168. pcs_mood -= 100
  169. gs 'stat'
  170. 'As you enter your home you notice an envelope from the court. You anxiously look at it and take a deep breath before opening the envelope.'
  171. if week < 6:
  172. 'Going through the letter you read that you''ve been summoned to appear in court a week from now.'
  173. else
  174. 'Going through the letter you read that you''ve been summoned to appear in court on Monday, a week from now.'
  175. end
  176. '<i>Failing to appear in court will have dire consequences for the accused.</i> Your heart drops as you read that line...'
  177. '<i>The court is located in the city center. You should arrive at 9:00 as there are a lot of cases and we can''t say when your turn might come up.</i>'
  178. 'You put the letter back in the envelope and let out a loud sigh...'
  179. else
  180. 'As you come home you see the familiar envelope from the court. You already know the gist of it, <i>failure to show up will have dire consequences,</i> yadda yadda...'
  181. 'You glance through the letter seeing the same information once again and as you finish you throw it to the side and continue further on inside your apartment...'
  182. end
  183. end
  184. killvar 'temp_fine'
  185. killvar 'policeQW_courtletter_dates', 0
  186. killvar 'policeQW_courtletter_subjects', 0
  187. act 'Continue': gt $loc, $loc_arg
  188. end
  189. --- courtletter ---------------------------------