home_activity.qsrc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. # home_activity
  2. !! this file is for repeatable activities and events that can happen in a home
  3. !! --------------- vomiting hangovers and morning sickness ----------------------------
  4. if $ARGS[0] = 'vomiting_check':
  5. !! if not one of these locations, event will not fire
  6. if func('homes_properties', 'is_at_a_home'):
  7. gs 'home_activity', 'vomiting_images'
  8. gt 'home_activity', 'morning_vomit'
  9. else
  10. vomit['morning_sick'] = 0
  11. vomit['hangover'] = 0
  12. vomit['unlucky'] = 0
  13. end
  14. end
  15. if $ARGS[0] = 'vomiting_images':
  16. $at_home = func('homes_properties', 'get_property_code', $loc)
  17. if $at_home = 'city_apartment':
  18. !! location = 'City residential apartment'
  19. if rembedr = 0:
  20. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr.jpg"></center>'
  21. else
  22. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr2.jpg"></center>'
  23. end
  24. if remvanr = 0:
  25. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/home/vanr.jpg"></center>'
  26. elseif remvanr = 1:
  27. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/home/vanr2.jpg"></center>'
  28. end
  29. $loc = 'vanr'
  30. $loc_arg = ''
  31. elseif $at_home = 'parents_home':
  32. !! location = 'Parent''s home in Pavlovsk'
  33. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/bedrpar.jpg"></center>'
  34. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg"></center>'
  35. $loc = 'vanrPar'
  36. elseif $at_home = 'village_cottage':
  37. !! location = 'My cottage in the cooperative farm'
  38. if func('homes_properties', 'is_property_renovated', 'village_cottage'):
  39. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
  40. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
  41. else
  42. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
  43. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
  44. end
  45. $loc = 'dachain'
  46. $loc_arg = 'dachabath'
  47. elseif $at_home = 'old_town_apartment':
  48. !! location = 'Old town apartment'
  49. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr2.jpg"></center>'
  50. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pushkin/apartment/vanr2x.jpg"></center>'
  51. $loc = 'vanr2x'
  52. elseif $at_home = 'matryona_mansion':
  53. !! location = 'Matryona mansion'
  54. if ymanrem[4] = 2:
  55. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_bedroom.jpg"></center>'
  56. elseif ymanrem[4] = 1:
  57. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  58. else
  59. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  60. end
  61. if ymanrem[5] = 2:
  62. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_bathroom.jpg"></center>'
  63. elseif ymanrem[5] = 1:
  64. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  65. else
  66. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  67. end
  68. $loc = 'city_mansion_residence_1'
  69. $loc_arg = 'ybathroom'
  70. elseif $at_home = 'pavlovsk_hotel':
  71. !! location = 'My hotel room in Pavlovsk'
  72. if hotelRoom[$region] = 1:
  73. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.normal.jpg"></center>'
  74. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.normal1.jpg"></center>'
  75. elseif hotelRoom[$region] = 2 or therapistQW['hotel_key'] = 3:
  76. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.better.jpg"></center>'
  77. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.better1.jpg"></center>'
  78. elseif hotelRoom[$region] = 3:
  79. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best.jpg"></center>'
  80. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg"></center>'
  81. end
  82. $loc = 'HotelRoom'
  83. $loc_arg = 'shower1'
  84. !!{ elseif $at_home = 'shulga_apartment':
  85. !! location = 'Uncle Sergey''s apartment'
  86. $home_activity['vomit_bedroom'] = ''
  87. $home_activity['vomit_bathroom'] = ''
  88. 'vasilyhome', 'bathroom'}
  89. elseif $at_home = 'shared_apartment':
  90. !! location = 'Shared apartment in Pavlovsk'
  91. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/shared/home/bedroom/sofabed.jpg"></center>'
  92. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg"></center>'
  93. $loc = 'pav_shared_apt'
  94. $loc_arg = 'bathroom'
  95. !!{ elseif $at_home = 'grandparents_house':
  96. !! location = 'Grandparent''s house in Gadukino'
  97. $home_activity['vomit_bedroom'] = ''
  98. $home_activity['vomit_bathroom'] = ''}
  99. elseif $at_home = 'city_house':
  100. !! location = 'City residential house'
  101. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_bedroom.jpg"></center>'
  102. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_bathroom.jpg"></center>'
  103. $loc = 'city_house_res_bathr'
  104. $loc_arg = 'bathr'
  105. !! elseif at_home = 16:
  106. elseif $at_home = 'meynold_household':
  107. !! location = 'Meynold Household'
  108. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/meynolds/guestroom.jpg"></center>'
  109. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg"></center>'
  110. $loc = 'mey_home'
  111. $loc_arg = 'bathroom'
  112. end
  113. end
  114. if $ARGS[0] = 'morning_vomit':
  115. menu_off = 1
  116. gs 'pain', 3, 'head', 'ache'
  117. gs 'stat'
  118. cla & *clr
  119. $home_activity['vomit_bedroom']
  120. 'Before you even open your eyes, your stomach churns. Nausea courses through you, acid burns at the back of your throat, and you know without a doubt:'
  121. *nl
  122. '<b>You''re about to throw up.</b>'
  123. act'Run to the bathroom':
  124. minut += 1
  125. gs 'stat'
  126. cla & *clr
  127. '<center><img <<$set_imgh>> src="images/locations/shared/home/bathroom/vomit.jpg"></center>'
  128. 'Clamping your hand over your mouth, you scramble from your bed and tear your way to the bathroom. You barely manage to lift the lid up in time and violently hurl into the toilet bowl.'
  129. act'Continue':
  130. cla & *clr
  131. minut += rand(2,8)
  132. gs 'stat'
  133. '<center><img <<$set_imgh>> src="images/locations/shared/home/bathroom/vomit_after.jpg"></center>'
  134. 'After several minutes of retching, your stomach finally seems to be empty, and you just lay there, panting over the toilet bowl. You groan, headache pounding in your skull with the kind of throb that makes you think it''s going to be there for the rest of the day.'
  135. if vomit['hangover'] = 1:
  136. !! hangover = 1
  137. !! change above variable to whatever would make the most sense, this is just a placeholder
  138. '<i>Ugh, maybe I had too much to drink last night...</i> you think to yourself as you lay there on the floor.'
  139. elseif vomit['morning_sick'] = 1:
  140. if knowpreg = 1:
  141. if morning_sickness = 0:
  142. morning_sickness = 1
  143. '<i>Ugh, is this what morning sickness feels like?</i> you think to yourself as you lay there on the floor.'
  144. else
  145. '<i>Ugh! Why does pregnancy have to come with so many side effects...</i> you think to yourself as you lay there on the floor.'
  146. end
  147. elseif thinkpreg = 1:
  148. gs 'home_activity', 'think_preg_react'
  149. elseif knowpreg = 0:
  150. if daystart - daylastperiod > 35 and rand(1,100) < pcs_intel:
  151. gs 'home_activity', 'preg_scare'
  152. else
  153. '<i>Ugh, I feel awful! I wonder if I should see a doctor?</i> you think to yourself as you lay there on the floor.'
  154. end
  155. end
  156. elseif vomit['unlucky'] = 1:
  157. '<i>Ugh, I feel awful! I wonder if I should see a doctor?</i> you think to yourself as you lay there on the floor.'
  158. end
  159. if $loc = 'mey_home':
  160. act 'Continue': gt 'mey_home', 'mey_morning_vomit'
  161. else
  162. act 'Continue': gt 'home_activity', 'vomiting_exit'
  163. end
  164. end
  165. end
  166. end
  167. if $ARGS[0] = 'preg_scare':
  168. thinkpreg = 1
  169. if stat['think_virgin'] = 0:
  170. '<i>Ugh, I feel awful!</i> you think to yourself. <i>I wonder if-</i>'
  171. *nl
  172. 'The blood drains from your face with a sudden realization:'
  173. if daystart - stat['last_man_sex_day'] < 30:
  174. if (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42):
  175. 'You''ve been having sex, your period is a week late, and you''re throwing up in the morning.'
  176. elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56):
  177. 'You''ve been having sex, your period is two weeks late, and you''re throwing up in the morning.'
  178. elseif daystart - daylastperiod > 56:
  179. 'You''ve been having sex, your period is a month late, and you''re throwing up in the morning.'
  180. elseif (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
  181. 'You''ve been having sex, your period is late, and you''re throwing up in the morning.'
  182. end
  183. *nl
  184. 'Are you...<i>pregnant?</i>'
  185. else
  186. if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
  187. 'Your period is late and you''re throwing up in the morning.'
  188. elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42):
  189. 'Your period is a week late and you''re throwing up in the morning.'
  190. elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56):
  191. 'Your period is two weeks late and you''re throwing up in the morning.'
  192. elseif daystart - daylastperiod > 56:
  193. 'Your period is a month late and you''re throwing up in the morning.'
  194. end
  195. *nl
  196. 'Are you...<i>pregnant?</i> But how? You haven''t had sex with a man in weeks!'
  197. end
  198. else
  199. if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
  200. 'Your period is late and you''re throwing up in the morning.'
  201. elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42):
  202. 'Your period is a week late and you''re throwing up in the morning.'
  203. elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56):
  204. 'Your period is two weeks late and you''re throwing up in the morning.'
  205. elseif daystart - daylastperiod > 56:
  206. 'Your period is a month late and you''re throwing up in the morning.'
  207. end
  208. *nl
  209. 'Are you...<i>pregnant?</i>'
  210. 'But you''ve never had sex! This can''t be true!'
  211. end
  212. if $loc = 'mey_home':
  213. act 'Continue': gt 'mey_home', 'mey_preg_scare'
  214. else
  215. gs 'home_activity', 'preg_scare_react'
  216. end
  217. end
  218. if $ARGS[0] = 'think_preg_react':
  219. act'This is scaring you':
  220. cla & *clr
  221. $home_activity['vomit_bathroom']
  222. 'Anxiety fills your chest, replacing the bile recently vacated from it.'
  223. *nl
  224. 'You don''t like the frequency with which this is happening. More and more, the evidence is pointing towards you being pregnant.'
  225. *nl
  226. '<i>What am I going to do?</i> you think to yourself.'
  227. act'Continue': gt 'bed_get_out', 'start'
  228. end
  229. act'I better not be pregnant':
  230. cla & *clr
  231. $home_activity['vomit_bathroom']
  232. 'Disgust and irritation fill you as you reach out to flush the toilet.'
  233. *nl
  234. '<i>Oh God,</i> you groan internally. <i>I swear, this better be a stomach bug and not pregnancy. I am not ready for motherhood.</i>'
  235. act'Continue': gt 'bed_get_out', 'start'
  236. end
  237. act'I can''t wait for this baby':
  238. cla & *clr
  239. $home_activity['vomit_bathroom']
  240. 'Even through the pain and the horrid taste on your lips, you can''t help but smile.'
  241. *nl
  242. '<i>I''m so ready for this baby!</i> you think excitedly.'
  243. act'Continue': gt 'bed_get_out', 'start'
  244. end
  245. act'Baby good, morning sickness bad':
  246. cla & *clr
  247. $home_activity['vomit_bathroom']
  248. 'You clutch your head, wincing at the sharp pain that lances through it.'
  249. *nl
  250. '<i>This baby can not come sooner,</i> you think to yourself. <i>Really looking forward to watching it grow, but <b>really</b> hate this pregnancy stuff.</i>'
  251. act'Continue': gt 'bed_get_out', 'start'
  252. end
  253. end
  254. if $ARGS[0] = 'preg_scare_react':
  255. act'I need a test!':
  256. cla & *clr
  257. $home_activity['vomit_bathroom']
  258. '<i>I need to take a pregnancy test right now!</i> you think urgently. <i>I need to figure out what is going on!</i>'
  259. act'Continue': gt 'bed_get_out', 'start'
  260. end
  261. act'This is really bad':
  262. cla & *clr
  263. $home_activity['vomit_bathroom']
  264. '<i>This is really really bad!</i> you think, the blood draining from your face. <i>I don''t want to be a mom! Not now!</i>'
  265. act'Continue': gt 'bed_get_out', 'start'
  266. end
  267. act'This is wonderful!':
  268. cla & *clr
  269. $home_activity['vomit_bathroom']
  270. if kid = 0:
  271. '<i>I''m going to be a mom!</i> you think, smiling to yourself. <i>This is the best day of my life!</i>'
  272. else
  273. '<i>I''m going to have another baby!</i> you think, smiling to yourself. <i>This is wonderful!</i>'
  274. end
  275. act'Continue': gt 'bed_get_out', 'start'
  276. end
  277. if stat['think_virgin'] = 1:
  278. act'This is impossible':
  279. cla & *clr
  280. $home_activity['vomit_bathroom']
  281. '<i>This doesn''t make any sense,</i> you think, putting your hand on your head as you feel woozy again.'
  282. act'Continue': gt 'bed_get_out', 'start'
  283. end
  284. elseif stat['vaginal'] = 1:
  285. act'You''ve only had sex once!':
  286. cla & *clr
  287. $home_activity['vomit_bathroom']
  288. '<i>But I''ve only had sex once!</i> you cry internally. <i>How can I already be pregnant?!</i>'
  289. act'Continue': gt 'bed_get_out', 'start'
  290. end
  291. end
  292. end
  293. if $ARGS[0] = 'vomiting_exit':
  294. vomit['morning_sick'] = 0
  295. vomit['hangover'] = 0
  296. vomit['unlucky'] = 0
  297. gs 'homes_properties', 'go_bathroom'
  298. end
  299. !! --------------- end vomiting ----------------------------
  300. --- home_activity ---------------------------------