# home_activity !! this file is for repeatable activities and events that can happen in a home !! --------------- vomiting hangovers and morning sickness ---------------------------- if $ARGS[0] = 'vomiting_check': !! if not one of these locations, event will not fire 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': gs 'home_activity', 'vomiting_images' gt 'home_activity', 'morning_vomit' else vomit['morning_sick'] = 0 vomit['hangover'] = 0 vomit['unlucky'] = 0 end end if $ARGS[0] = 'vomiting_images': $at_home = func('homes_properties', 'get_property_code', $loc) if $at_home = 'city_apartment': !! location = 'City residential apartment' if rembedr = 0: $home_activity['vomit_bedroom'] = '
> src="images/locations/city/residential/apartment/bedr.jpg">
' else $home_activity['vomit_bedroom'] = '
> src="images/locations/city/residential/apartment/bedr2.jpg">
' end if remvanr = 0: $home_activity['vomit_bathroom'] = '
> src="images/locations/city/residential/apartment/home/vanr.jpg">
' elseif remvanr = 1: $home_activity['vomit_bathroom'] = '
> src="images/locations/city/residential/apartment/home/vanr2.jpg">
' end $home_activity['vomit_exit'] = 'vanr' elseif $at_home = 'parents_home': !! location = 'Parent''s home in Pavlovsk' $home_activity['vomit_bedroom'] = '
> src="images/locations/pavlovsk/resident/apartment/home/bedrpar.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg">
' $home_activity['vomit_exit'] = 'vanrPar' elseif $at_home = 'village_cottage': !! location = 'My cottage in the cooperative farm' if func('homes_properties', 'is_property_renovated', 'village_cottage'): $home_activity['vomit_bedroom'] = '
> src="images/locations/suburban/cottage/dacharoom2.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/suburban/cottage/dacharoom2.jpg">
' else $home_activity['vomit_bedroom'] = '
> src="images/locations/suburban/cottage/dacharoom1.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/suburban/cottage/dacharoom1.jpg">
' end $home_activity['vomit_exit'] = ' ''dachain'', ''dachabath'' ' elseif $at_home = 'old_town_apartment': !! location = 'Old town apartment' $home_activity['vomit_bedroom'] = '
> src="images/locations/city/residential/apartment/bedr2.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/pushkin/apartment/vanr2x.jpg">
' $home_activity['vomit_exit'] = 'vanr2x' elseif $at_home = 'matryona_mansion': !! location = 'Matryona mansion' if ymanrem[4] = 2: $home_activity['vomit_bedroom'] = '
> src="images/locations/city/suburb/mansion/y_bedroom.jpg">
' elseif ymanrem[4] = 1: $home_activity['vomit_bedroom'] = '
> src="images/locations/city/suburb/mansion/i_finished.jpg">
' else $home_activity['vomit_bedroom'] = '
> src="images/locations/city/suburb/mansion/i_unfinished.jpg">
' end if ymanrem[5] = 2: $home_activity['vomit_bathroom'] = '
> src="images/locations/city/suburb/mansion/y_bathroom.jpg">
' elseif ymanrem[5] = 1: $home_activity['vomit_bathroom'] = '
> src="images/locations/city/suburb/mansion/i_finished.jpg">
' else $home_activity['vomit_bathroom'] = '
> src="images/locations/city/suburb/mansion/i_unfinished.jpg">
' end $home_activity['vomit_exit'] = ' ''city_mansion_residence_1'', ''ybathroom'' ' elseif $at_home = 'pavlovsk_hotel' !! location = 'My hotel room in Pavlovsk' if hotelRoom[$hotel] = 1: $home_activity['vomit_bedroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.normal.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.normal1.jpg">
' elseif hotelRoom[$hotel] = 2: $home_activity['vomit_bedroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.better.jpg">
' $home_activity['vomit_bathroom'] = $home_activity['vomit_bedroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.better1.jpg">
' elseif hotelRoom[$hotel] = 3: $home_activity['vomit_bedroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.best.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg">
' end $home_activity['vomit_exit'] = ' ''HotelRoom'', ''shower1'' ' !!{ elseif $at_home = 'shulga_apartment': !! location = 'Uncle Sergey''s apartment' $home_activity['vomit_bedroom'] = $home_activity['vomit_bathroom'] = 'vasilyhome', 'bathroom'} elseif $at_home = 'shared_apartment': !! location = 'Shared apartment in Pavlovsk' $home_activity['vomit_bedroom'] = '
> src="images/shared/home/bedroom/sofabed.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg">
' 'pav_shared_apt', 'bathroom' !!{ elseif $at_home = 'grandparents_house': !! location = 'Grandparent''s house in Gadukino' $home_activity['vomit_bedroom'] = $home_activity['vomit_bathroom'] = } elseif $at_home = 'city_house': !! location = 'City residential house' $home_activity['vomit_bedroom'] = '
> src="images/locations/city/residential/house/crh_bedroom.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/city/residential/house/crh_bathroom.jpg">
' 'city_house_res_bathr', 'bathr' !! elseif at_home = 16: elseif $at_home = 'meynold_household': !! location = 'Meynold Household' $home_activity['vomit_bedroom'] = '
> src="images/locations/pavlovsk/resident/meynolds/guestroom.jpg">
' $home_activity['vomit_bathroom'] = '
> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg">
' 'mey_home', '2' end end if $ARGS[0] = 'morning_vomit': cla & *clr $home_activity['vomit_bedroom'] '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:' *nl 'You''re about to throw up.' act'Run to the bathroom': minut += 1 gs 'stat' cla & *clr '
> src="images/locations/shared/home/bathroom/vomit.jpg">
' '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.' act'Continue': cla & *clr minut += rand(2,8) gs 'stat' '
> src="images/locations/shared/home/bathroom/vomit_after.jpg">
' '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.' if vomit['hangover'] = 1: !! hangover = 1 !! change above variable to whatever would make the most sense, this is just a placeholder 'Ugh, maybe I had too much to drink last night... you think to yourself as you lay there on the floor.' if $loc = 'mey_home': act'Continue':gt 'mey_home', 'mey_morning_vomit' else act'Continue':gt'home_activity','vomiting_exit' end elseif vomit['morning_sick'] = 1: if knowpreg = 1: if morning_sickness = 0: morning_sickness = 1 'Ugh, is this what morning sickness feels like? you think to yourself as you lay there on the floor.' else 'Ugh! Why does pregnancy have to come with so many side effects... you think to yourself as you lay there on the floor.' end elseif thinkpreg = 1: gs 'home_activity', 'think_preg_react' elseif knowpreg = 0: if daystart - daylastperiod > 35 and rand(1,100) < pcs_intel: gs 'home_activity', 'preg_scare' else 'Ugh, I feel awful! I wonder if I should see a doctor? you think to yourself as you lay there on the floor.' end end elseif vomit['unlucky'] = 1: 'Ugh, I feel awful! I wonder if I should see a doctor? you think to yourself as you lay there on the floor.' if $loc = 'mey_home': act'Continue':gt 'mey_home', 'mey_morning_vomit' else act'Continue':gt'sleep','end' end end end end end if $ARGS[0] = 'preg_scare': thinkpreg = 1 if stat['think_virgin'] = 0: 'Ugh, I feel awful! you think to yourself. I wonder if-' *nl 'You stop in shock as your brain suddenly puts the facts together:' if daystart - stat['last_man_sex_day'] < 30: if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35): 'You''ve been having sex, your period is late, and you''re throwing up in the morning.' elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42): 'You''ve been having sex, your period is a week late, and you''re throwing up in the morning.' elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56): 'You''ve been having sex, your period is two weeks late, and you''re throwing up in the morning.' elseif daystart - daylastperiod > 56: 'You''ve been having sex, your period is a month late, and you''re throwing up in the morning.' end *nl 'Are you...pregnant?' else if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35): 'Your period is late and you''re throwing up in the morning.' elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42): 'Your period is a week late and you''re throwing up in the morning.' elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56): 'Your period is two weeks late and you''re throwing up in the morning.' elseif daystart - daylastperiod > 56: 'Your period is a month late and you''re throwing up in the morning.' end *nl 'Are you...pregnant? But how? You haven''t fucked a guy in weeks!' end else if (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35): 'Your period is late and you''re throwing up in the morning.' elseif (daystart - daylastperiod > 35) and (daystart - daylastperiod <= 42): 'Your period is a week late and you''re throwing up in the morning.' elseif (daystart - daylastperiod > 42) and (daystart - daylastperiod <= 56): 'Your period is two weeks late and you''re throwing up in the morning.' elseif daystart - daylastperiod > 56: 'Your period is a month late and you''re throwing up in the morning.' end *nl 'Are you...pregnant?' 'But you''ve never had sex! This can''t be true!' end if $loc = 'mey_home': act'Continue':gt 'mey_home', 'mey_preg_scare' else gs 'home_activity', 'preg_scare_react' end end if $ARGS[0] = 'think_preg_react': act'This is scaring you': cla & *clr $home_activity['vomit_bathroom'] 'Anxiety fills your chest, replacing the bile recently vacated from it.' *nl 'You don''t like the frequency with which this is happening. More and more, the evidence is pointing towards you being pregnant.' *nl 'What am I going to do? you think to yourself.' act'Continue':gt'sleep','end' end act'I better not be pregnant': cla & *clr $home_activity['vomit_bathroom'] 'Disgust and irritation fill you as you reach out to flush the toilet.' *nl 'Oh God, you groan internally. I swear, this better be a stomach bug and not pregnancy. I am not ready for motherhood.' act'Continue':gt'sleep','end' end act'I can''t wait for this baby': cla & *clr $home_activity['vomit_bathroom'] 'Even through the pain and the horrid taste on your lips, you can''t help but smile.' *nl 'I''m so ready for this baby! you think excitedly.' act'Continue':gt'sleep','end' end act'Baby good, morning sickness bad': cla & *clr $home_activity['vomit_bathroom'] 'You clutch your head, wincing at the sharp pain that lances through it.' *nl 'This baby can not come sooner, you think to yourself. Really looking forward to watching it grow, but really hate this pregnancy stuff.' act'Continue':gt'sleep','end' end end if $ARGS[0] = 'preg_scare_react': act'I need a test!': cla & *clr $home_activity['vomit_bathroom'] 'I need to take a pregnancy test right now! you think urgently. I need to figure out what is going on!' act'Continue':gt'sleep','end' end act'This is really bad': cla & *clr $home_activity['vomit_bathroom'] 'This is really really bad! you think, the blood draining from your face. I don''t want to be a mom! Not now!' act'Continue':gt'sleep','end' end act'This is wonderful!': cla & *clr $home_activity['vomit_bathroom'] if kid = 0: 'I''m going to be a mom! you think, smiling to yourself. This is the best day of my life!' else 'I''m going to have another baby! you think, smiling to yourself. This is wonderful!' end act'Continue':gt'sleep','end' end if stat['think_virgin'] = 1: act'This is impossible': cla & *clr $home_activity['vomit_bathroom'] 'This doesn''t make any sense, you think to yourself, putting your hand on your head, feeling woozy again.' act'Continue':gt'sleep', 'end' end end end if $ARGS[0] = 'vomiting_exit': vomit['morning_sick'] = 0 vomit['hangover'] = 0 vomit['unlucky'] = 0 if at_home = 1: !! location = 'City residential apartment' gt 'vanr' elseif $loc = 'bedrPar': !! location = 'Parent''s home in Pavlovsk' gt 'vanrPar' elseif at_home = 3: !! location = 'My cottage in the cooperative farm' gt 'dachain', 'dachabath' elseif at_home = 4: !! location = 'Old town apartment' gt 'vanr2x' elseif $home['current'] = 5: !! location = 'Matryona mansion' gt'city_mansion_residence_1','ybathroom' elseif at_home = 6: !! location = 'My hotel room in Pavlovsk' gt 'HotelRoom', 'shower1' !!{ elseif at_home = 9: !! location = 'Uncle Sergey''s apartment' $home_activity['vomit_bedroom'] = $home_activity['vomit_bathroom'] = gt 'vasilyhome', 'bathroom'} elseif at_home = 13: gt 'pav_shared_apt', 'bathroom' !!{ elseif at_home = 14: !! location = 'Grandparent''s house in Gadukino' $home_activity['vomit_bedroom'] = $home_activity['vomit_bathroom'] = } elseif at_home = 15: !! location = 'City residential house' gt 'city_house_res_bathr', 'bathr' elseif $loc = 'mey_home': !! location = 'Meynold Household' gt 'mey_home', '2' end end !! --------------- end vomiting ---------------------------- --- home_activity ---------------------------------