home_activity.qsrc 15 KB

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