123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- # 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'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr.jpg"></center>'
- else
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr2.jpg"></center>'
- end
- if remvanr = 0:
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/home/vanr.jpg"></center>'
- elseif remvanr = 1:
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/home/vanr2.jpg"></center>'
- end
- $loc = 'vanr'
- $loc_arg = ''
- elseif $at_home = 'parents_home':
- !! location = 'Parent''s home in Pavlovsk'
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/bedrpar.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg"></center>'
- $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'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
- else
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
- end
- $loc = 'dachain'
- $loc_arg = 'dachabath'
- elseif $at_home = 'old_town_apartment':
- !! location = 'Old town apartment'
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/apartment/bedr2.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pushkin/apartment/vanr2x.jpg"></center>'
- $loc = 'vanr2x'
- elseif $at_home = 'matryona_mansion':
- !! location = 'Matryona mansion'
- if ymanrem[4] = 2:
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_bedroom.jpg"></center>'
- elseif ymanrem[4] = 1:
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
- else
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
- end
- if ymanrem[5] = 2:
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_bathroom.jpg"></center>'
- elseif ymanrem[5] = 1:
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
- else
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
- 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'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.normal.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.normal1.jpg"></center>'
- elseif hotelRoom[$region] = 2 or therapistQW['hotel_key'] = 3:
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.better.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.better1.jpg"></center>'
- elseif hotelRoom[$region] = 3:
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg"></center>'
- 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'] = '<center><img <<$set_imgh>> src="images/shared/home/bedroom/sofabed.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/apartment/home/vanrpar.jpg"></center>'
- $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'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_bedroom.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_bathroom.jpg"></center>'
- $loc = 'city_house_res_bathr'
- $loc_arg = 'bathr'
- !! elseif at_home = 16:
- elseif $at_home = 'meynold_household':
- !! location = 'Meynold Household'
- $home_activity['vomit_bedroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/resident/meynolds/guestroom.jpg"></center>'
- $home_activity['vomit_bathroom'] = '<center><img <<$set_imgh>> src="images/locations/pavlovsk/hotel/hotel.room.best1.jpg"></center>'
- $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
- '<b>You''re about to throw up.</b>'
- act'Run to the bathroom':
- minut += 1
- gs 'stat'
- cla & *clr
- '<center><img <<$set_imgh>> src="images/locations/shared/home/bathroom/vomit.jpg"></center>'
- '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'
- '<center><img <<$set_imgh>> src="images/locations/shared/home/bathroom/vomit_after.jpg"></center>'
- '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
- '<i>Ugh, maybe I had too much to drink last night...</i> 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
- '<i>Ugh, is this what morning sickness feels like?</i> you think to yourself as you lay there on the floor.'
- else
- '<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.'
- 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
- '<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.'
- end
- end
- elseif vomit['unlucky'] = 1:
- '<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.'
- 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:
- '<i>Ugh, I feel awful!</i> you think to yourself. <i>I wonder if-</i>'
- *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...<i>pregnant?</i>'
- 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...<i>pregnant?</i> 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...<i>pregnant?</i>'
- '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
- '<i>What am I going to do?</i> 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
- '<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>'
- 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>I''m so ready for this baby!</i> 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
- '<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>'
- 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>I need to take a pregnancy test right now!</i> you think urgently. <i>I need to figure out what is going on!</i>'
- act'Continue': gt 'bed_get_out', 'start'
- end
- act'This is really bad':
- cla & *clr
- $home_activity['vomit_bathroom']
- '<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>'
- act'Continue': gt 'bed_get_out', 'start'
- end
- act'This is wonderful!':
- cla & *clr
- $home_activity['vomit_bathroom']
- if kid = 0:
- '<i>I''m going to be a mom!</i> you think, smiling to yourself. <i>This is the best day of my life!</i>'
- else
- '<i>I''m going to have another baby!</i> you think, smiling to yourself. <i>This is wonderful!</i>'
- end
- act'Continue': gt 'bed_get_out', 'start'
- end
- if stat['think_virgin'] = 1:
- act'This is impossible':
- cla & *clr
- $home_activity['vomit_bathroom']
- '<i>This doesn''t make any sense,</i> 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']
- '<i>But I''ve only had sex once!</i> you cry internally. <i>How can I already be pregnant?!</i>'
- 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 ---------------------------------
|