home_activity.qsrc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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 at_home = 1 or at_home = 2 or at_home = 3 or at_home = 4 or $loc = 'bedrPar' or at_home = 6 or at_home = 13 or at_home = 15 or $loc = 'mey_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. $home_activity['vomit_exit'] = 'vanr'
  30. elseif $at_home = 'parents_home':
  31. !! location = 'Parent''s home in Pavlovsk'
  32. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/bedrpar.jpg"></center>'
  33. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg"></center>'
  34. $home_activity['vomit_exit'] = 'vanrPar'
  35. elseif $at_home = 'village_cottage':
  36. !! location = 'My cottage in the cooperative farm'
  37. if func('homes_properties', 'is_property_renovated', 'village_cottage'):
  38. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
  39. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
  40. else
  41. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
  42. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
  43. end
  44. $home_activity['vomit_exit'] = ' ''dachain'', ''dachabath'' '
  45. elseif $at_home = 'old_town_apartment':
  46. !! location = 'Old town apartment'
  47. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr2.jpg"></center>'
  48. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pushkin/apartment/vanr2x.jpg"></center>'
  49. $home_activity['vomit_exit'] = 'vanr2x'
  50. elseif $at_home = 'matryona_mansion':
  51. !! location = 'Matryona mansion'
  52. if ymanrem[4] = 2:
  53. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_bedroom.jpg"></center>'
  54. elseif ymanrem[4] = 1:
  55. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  56. else
  57. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  58. end
  59. if ymanrem[5] = 2:
  60. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_bathroom.jpg"></center>'
  61. elseif ymanrem[5] = 1:
  62. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  63. else
  64. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  65. end
  66. $home_activity['vomit_exit'] = ' ''city_mansion_residence_1'', ''ybathroom'' '
  67. elseif $at_home = 'pavlovsk_hotel'
  68. !! location = 'My hotel room in Pavlovsk'
  69. if hotelRoom[$hotel] = 1:
  70. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.normal.jpg"></center>'
  71. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.normal1.jpg"></center>'
  72. elseif hotelRoom[$hotel] = 2:
  73. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.better.jpg"></center>'
  74. $home_activity['vomit_bathroom'] = $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.better1.jpg"></center>'
  75. elseif hotelRoom[$hotel] = 3:
  76. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best.jpg"></center>'
  77. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg"></center>'
  78. end
  79. $home_activity['vomit_exit'] = ' ''HotelRoom'', ''shower1'' '
  80. !!{ elseif $at_home = 'shulga_apartment':
  81. !! location = 'Uncle Sergey''s apartment'
  82. $home_activity['vomit_bedroom'] =
  83. $home_activity['vomit_bathroom'] =
  84. 'vasilyhome', 'bathroom'}
  85. elseif $at_home = 'shared_apartment':
  86. !! location = 'Shared apartment in Pavlovsk'
  87. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/shared/home/bedroom/sofabed.jpg"></center>'
  88. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg"></center>'
  89. 'pav_shared_apt', 'bathroom'
  90. !!{ elseif $at_home = 'grandparents_house':
  91. !! location = 'Grandparent''s house in Gadukino'
  92. $home_activity['vomit_bedroom'] =
  93. $home_activity['vomit_bathroom'] = }
  94. elseif $at_home = 'city_house':
  95. !! location = 'City residential house'
  96. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_bedroom.jpg"></center>'
  97. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_bathroom.jpg"></center>'
  98. 'city_house_res_bathr', 'bathr'
  99. !! elseif at_home = 16:
  100. elseif $at_home = 'meynold_household':
  101. !! location = 'Meynold Household'
  102. $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/meynolds/guestroom.jpg"></center>'
  103. $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg"></center>'
  104. 'mey_home', '2'
  105. end
  106. end
  107. if $ARGS[0] = 'morning_vomit':
  108. cla & *clr
  109. $home_activity['vomit_bedroom']
  110. '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:'
  111. *nl
  112. '<b>You''re about to throw up.</b>'
  113. act'Run to the bathroom':
  114. minut += 1
  115. gs 'stat'
  116. cla & *clr
  117. '<center><img <<$set_imgh>> src="images/locations/shared/home/bathroom/vomit.jpg"></center>'
  118. '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.'
  119. act'Continue':
  120. cla & *clr
  121. minut += rand(2,8)
  122. gs 'stat'
  123. '<center><img <<$set_imgh>> src="images/locations/shared/home/bathroom/vomit_after.jpg"></center>'
  124. '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.'
  125. if vomit['hangover'] = 1:
  126. !! hangover = 1
  127. !! change above variable to whatever would make the most sense, this is just a placeholder
  128. '<i>Ugh, maybe I had too much to drink last night...</i> you think to yourself as you lay there on the floor.'
  129. if $loc = 'mey_home':
  130. act'Continue':gt 'mey_home', 'mey_morning_vomit'
  131. else
  132. act'Continue':gt'home_activity','vomiting_exit'
  133. end
  134. elseif vomit['morning_sick'] = 1:
  135. if knowpreg = 1:
  136. if morning_sickness = 0:
  137. morning_sickness = 1
  138. '<i>Ugh, is this what morning sickness feels like?</i> you think to yourself as you lay there on the floor.'
  139. else
  140. '<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.'
  141. end
  142. elseif thinkpreg = 1:
  143. gs 'home_activity', 'think_preg_react'
  144. elseif knowpreg = 0:
  145. if daystart - daylastperiod > 35 and rand(1,100) < pcs_intel:
  146. gs 'home_activity', 'preg_scare'
  147. else
  148. '<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.'
  149. end
  150. end
  151. elseif vomit['unlucky'] = 1:
  152. '<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.'
  153. if $loc = 'mey_home':
  154. act'Continue':gt 'mey_home', 'mey_morning_vomit'
  155. else
  156. act'Continue':gt'sleep','end'
  157. end
  158. end
  159. end
  160. end
  161. end
  162. if $ARGS[0] = 'preg_scare':
  163. thinkpreg = 1
  164. if stat['think_virgin'] = 0:
  165. '<i>Ugh, I feel awful!</i> you think to yourself. <i>I wonder if-</i>'
  166. *nl
  167. 'You stop in shock as your brain suddenly puts the facts together:'
  168. if daystart - stat['last_man_sex_day'] < 30:
  169. if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
  170. 'You''ve been having sex, your period is late, and you''re throwing up in the morning.'
  171. elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42):
  172. 'You''ve been having sex, your period is a week late, and you''re throwing up in the morning.'
  173. elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56):
  174. 'You''ve been having sex, your period is two weeks late, and you''re throwing up in the morning.'
  175. elseif daystart - daylastperiod > 56:
  176. 'You''ve been having sex, your period is a month late, and you''re throwing up in the morning.'
  177. end
  178. *nl
  179. 'Are you...<i>pregnant?</i>'
  180. else
  181. if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
  182. 'Your period is late and you''re throwing up in the morning.'
  183. elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42):
  184. 'Your period is a week late and you''re throwing up in the morning.'
  185. elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56):
  186. 'Your period is two weeks late and you''re throwing up in the morning.'
  187. elseif daystart - daylastperiod > 56:
  188. 'Your period is a month late and you''re throwing up in the morning.'
  189. end
  190. *nl
  191. 'Are you...<i>pregnant?</i> But how? You haven''t fucked a guy in weeks!'
  192. end
  193. else
  194. if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
  195. 'Your period is late and you''re throwing up in the morning.'
  196. elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42):
  197. 'Your period is a week late and you''re throwing up in the morning.'
  198. elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56):
  199. 'Your period is two weeks late and you''re throwing up in the morning.'
  200. elseif daystart - daylastperiod > 56:
  201. 'Your period is a month late and you''re throwing up in the morning.'
  202. end
  203. *nl
  204. 'Are you...<i>pregnant?</i>'
  205. 'But you''ve never had sex! This can''t be true!'
  206. end
  207. if $loc = 'mey_home':
  208. act'Continue':gt 'mey_home', 'mey_preg_scare'
  209. else
  210. gs 'home_activity', 'preg_scare_react'
  211. end
  212. end
  213. if $ARGS[0] = 'think_preg_react':
  214. act'This is scaring you':
  215. cla & *clr
  216. $home_activity['vomit_bathroom']
  217. 'Anxiety fills your chest, replacing the bile recently vacated from it.'
  218. *nl
  219. 'You don''t like the frequency with which this is happening. More and more, the evidence is pointing towards you being pregnant.'
  220. *nl
  221. '<i>What am I going to do?</i> you think to yourself.'
  222. act'Continue':gt'sleep','end'
  223. end
  224. act'I better not be pregnant':
  225. cla & *clr
  226. $home_activity['vomit_bathroom']
  227. 'Disgust and irritation fill you as you reach out to flush the toilet.'
  228. *nl
  229. '<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>'
  230. act'Continue':gt'sleep','end'
  231. end
  232. act'I can''t wait for this baby':
  233. cla & *clr
  234. $home_activity['vomit_bathroom']
  235. 'Even through the pain and the horrid taste on your lips, you can''t help but smile.'
  236. *nl
  237. '<i>I''m so ready for this baby!</i> you think excitedly.'
  238. act'Continue':gt'sleep','end'
  239. end
  240. act'Baby good, morning sickness bad':
  241. cla & *clr
  242. $home_activity['vomit_bathroom']
  243. 'You clutch your head, wincing at the sharp pain that lances through it.'
  244. *nl
  245. '<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>'
  246. act'Continue':gt'sleep','end'
  247. end
  248. end
  249. if $ARGS[0] = 'preg_scare_react':
  250. act'I need a test!':
  251. cla & *clr
  252. $home_activity['vomit_bathroom']
  253. '<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>'
  254. act'Continue':gt'sleep','end'
  255. end
  256. act'This is really bad':
  257. cla & *clr
  258. $home_activity['vomit_bathroom']
  259. '<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>'
  260. act'Continue':gt'sleep','end'
  261. end
  262. act'This is wonderful!':
  263. cla & *clr
  264. $home_activity['vomit_bathroom']
  265. if kid = 0:
  266. '<i>I''m going to be a mom!</i> you think, smiling to yourself. <i>This is the best day of my life!</i>'
  267. else
  268. '<i>I''m going to have another baby!</i> you think, smiling to yourself. <i>This is wonderful!</i>'
  269. end
  270. act'Continue':gt'sleep','end'
  271. end
  272. if stat['think_virgin'] = 1:
  273. act'This is impossible':
  274. cla & *clr
  275. $home_activity['vomit_bathroom']
  276. '<i>This doesn''t make any sense,</i> you think to yourself, putting your hand on your head, feeling woozy again.'
  277. act'Continue':gt'sleep', 'end'
  278. end
  279. end
  280. end
  281. if $ARGS[0] = 'vomiting_exit':
  282. vomit['morning_sick'] = 0
  283. vomit['hangover'] = 0
  284. vomit['unlucky'] = 0
  285. if at_home = 1:
  286. !! location = 'City residential apartment'
  287. gt 'vanr'
  288. elseif $loc = 'bedrPar':
  289. !! location = 'Parent''s home in Pavlovsk'
  290. gt 'vanrPar'
  291. elseif at_home = 3:
  292. !! location = 'My cottage in the cooperative farm'
  293. gt 'dachain', 'dachabath'
  294. elseif at_home = 4:
  295. !! location = 'Old town apartment'
  296. gt 'vanr2x'
  297. elseif $home['current'] = 5:
  298. !! location = 'Matryona mansion'
  299. gt'city_mansion_residence_1','ybathroom'
  300. elseif at_home = 6:
  301. !! location = 'My hotel room in Pavlovsk'
  302. gt 'HotelRoom', 'shower1'
  303. !!{ elseif at_home = 9:
  304. !! location = 'Uncle Sergey''s apartment'
  305. $home_activity['vomit_bedroom'] =
  306. $home_activity['vomit_bathroom'] =
  307. gt 'vasilyhome', 'bathroom'}
  308. elseif at_home = 13:
  309. gt 'pav_shared_apt', 'bathroom'
  310. !!{ elseif at_home = 14:
  311. !! location = 'Grandparent''s house in Gadukino'
  312. $home_activity['vomit_bedroom'] =
  313. $home_activity['vomit_bathroom'] = }
  314. elseif at_home = 15:
  315. !! location = 'City residential house'
  316. gt 'city_house_res_bathr', 'bathr'
  317. elseif $loc = 'mey_home':
  318. !! location = 'Meynold Household'
  319. gt 'mey_home', '2'
  320. end
  321. end
  322. !! --------------- end vomiting ----------------------------
  323. --- home_activity ---------------------------------