# 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 func('homes_properties', 'is_at_a_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
$loc = 'vanr'
$loc_arg = ''
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">'
$loc = '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
$loc = 'dachain'
$loc_arg = '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">'
$loc = '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
$loc = 'city_mansion_residence_1'
$loc_arg = 'ybathroom'
elseif $at_home = 'pavlovsk_hotel':
!! location = 'My hotel room in Pavlovsk'
if hotelRoom[$region] = 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[$region] = 2 or therapistQW['hotel_key'] = 3:
$home_activity['vomit_bedroom'] = '> src="images/locations/pavlovsk/hotel/hotel.room.better.jpg">'
$home_activity['vomit_bathroom'] = '> src="images/locations/pavlovsk/hotel/hotel.room.better1.jpg">'
elseif hotelRoom[$region] = 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
$loc = 'HotelRoom'
$loc_arg = '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">'
$loc = 'pav_shared_apt'
$loc_arg = '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">'
$loc = 'city_house_res_bathr'
$loc_arg = '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">'
$loc = 'mey_home'
$loc_arg = 'bathroom'
end
end
if $ARGS[0] = 'morning_vomit':
menu_off = 1
gs 'pain', 3, 'head', 'ache'
gs 'stat'
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.'
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.'
end
if $loc = 'mey_home':
act 'Continue': gt 'mey_home', 'mey_morning_vomit'
else
act 'Continue': gt 'home_activity', 'vomiting_exit'
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
'The blood drains from your face with a sudden realization:'
if daystart - stat['last_man_sex_day'] < 30:
if (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.'
elseif (daystart - daylastperiod > 28) and (daystart - daylastperiod <= 35):
'You''ve been having sex, your period is 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 had sex with a man 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 'bed_get_out', 'start'
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 'bed_get_out', 'start'
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 'bed_get_out', 'start'
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 'bed_get_out', 'start'
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 'bed_get_out', 'start'
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 'bed_get_out', 'start'
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 'bed_get_out', 'start'
end
if stat['think_virgin'] = 1:
act'This is impossible':
cla & *clr
$home_activity['vomit_bathroom']
'This doesn''t make any sense, you think, putting your hand on your head as you feel woozy again.'
act'Continue': gt 'bed_get_out', 'start'
end
elseif stat['vaginal'] = 1:
act'You''ve only had sex once!':
cla & *clr
$home_activity['vomit_bathroom']
'But I''ve only had sex once! you cry internally. How can I already be pregnant?!'
act'Continue': gt 'bed_get_out', 'start'
end
end
end
if $ARGS[0] = 'vomiting_exit':
vomit['morning_sick'] = 0
vomit['hangover'] = 0
vomit['unlucky'] = 0
gs 'homes_properties', 'go_bathroom'
end
!! --------------- end vomiting ----------------------------
--- home_activity ---------------------------------