sitrPar.qsrc 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. # sitrPar
  2. !! Date refactored: 31st March, 2024
  3. !! Author: Myles
  4. !!
  5. !! Version: .01 - initial refactoring
  6. !!
  7. !! Desc: Family living room and Kolka''s bedroom links to family corridor
  8. if $ARGS[0] = '' or $ARGS[0] = 'start':
  9. !! Call in location default actions
  10. gs 'home_family_init', 'init'
  11. !! Start location initialisation
  12. !! Set location header - img path is set in init
  13. $setloc['StageTitle'] = 'Parents Living Room'
  14. if locat['Mother'] = 19 and locat['Stepdad'] = 10:
  15. $setloc['StageImage'] = '<<$default_img_path>>/momvladtv.jpg'
  16. else
  17. $setloc['StageImage'] = '<<$default_img_path>>/sitrpar.jpg'
  18. end
  19. !! Sitting room variables:
  20. $locclass = 'livingr'
  21. locat['Fam_livingroom'] = 0
  22. !! Set location vars:
  23. !! Check if anyone is in the room
  24. gs 'sitrPar', 'occupied'
  25. !! Set up game location data
  26. gs 'shortgs', 'setloc', 'sitrPar', $ARGS[0]
  27. !! End location initialisation
  28. !! Begin location content
  29. !! Display header and banner image
  30. gs 'core_library', 'stage_title'
  31. !! Location default description:
  32. 'The living room has a <a href="exec:gt ''TV'',''pav''">TV</a> near the window. In front of the TV is a <a href="exec:gt ''sitrPar'',''sofa''">sofa bed</a> on which your brother sleeps at night. A large tapestry covers one wall, while the other wall has several shelves on it, stocked with books and other things.'
  33. *nl
  34. !! End default Description
  35. if locat['Fam_livingroom'] = 0 and locat['Mother'] ! 24 and locat['Mother'] ! 19:
  36. 'No one else is here right now, so you''re free to use the room how you like.'
  37. gs 'exercise','start'
  38. end
  39. act 'Leave the room': minut += 1 & gt 'korrPar'
  40. act 'Sit on the sofa': gt 'sitrPar', 'sofa'
  41. if locat['Kolka'] = 2 and brothermorningsex = daystart:
  42. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is getting ready for school.'
  43. elseif locat['Kolka'] = 1:
  44. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is sleeping on the sofa.'
  45. elseif locat['Kolka'] = 7:
  46. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is sitting by the table and doing his homework.'
  47. elseif locat['Kolka'] = 11:
  48. if locat['Mother'] = 19 or locat['Stepdad'] = 10:
  49. '<a href="exec:npc_rel[''A34''] += 1 & gt ''brother'', ''start''">Kolka</a> is sitting in the armchair playing on his phone.'
  50. else
  51. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is sitting on the sofa playing video games.'
  52. end
  53. end
  54. *nl
  55. if month = 12 and day >= 20: 'A Christmas tree stands next to the TV, decorated with tinsel garlands and other ornaments.'
  56. if month = 12 and day = 31 and hour >= 20:
  57. act 'Celebrate the New Year with your family.':
  58. cla
  59. gs 'npc_relationship', 'modify', 'A29', 10
  60. gs 'npc_relationship', 'modify', 'A28', 10
  61. gs 'npc_relationship', 'modify', 'A33', 10
  62. gs 'npc_relationship', 'modify', 'A34', 10
  63. money += 5000
  64. hour = 23
  65. minut = 0
  66. minut += 120
  67. pcs_sleep = 0
  68. pcs_mood += 100
  69. gs 'food', 'l_meal'
  70. gs 'stat'
  71. 'You sit at the festive table laid in front of the TV and celebrate the New Year with your family, the TV providing some background noise. At the table, people strike up a conversation and common problems are forgotten as everyone is has fun talking to each other. At midnight, everyone wishes one another a happy New Year and enjoys the champagne and fireworks outside as your mother gives you an envelope with a greeting card and 5000 <b>₽</b>.'
  72. 'You continue to watch TV and enjoy the champagne and company of your family, but everyone eventually grows tired and they go to bed, one by one.'
  73. act 'Leave': minut += 1 & gt 'korrPar'
  74. end
  75. elseif month = 1 and day = 1:
  76. act 'Eat some leftovers at the festive table':
  77. frost = 0
  78. minut += 10
  79. pcs_health += 10
  80. pcs_mood += 20
  81. fat += 8
  82. pcs_energy += 60
  83. if pcs_hydra >= 100:
  84. pcs_hydra += 30
  85. else
  86. pcs_hydra += 60
  87. end
  88. cumspclnt = 2
  89. gs 'cum_cleanup'
  90. pcs_breath = 0
  91. gs 'stat'
  92. *clr & cla
  93. '<center><img <<$set_imgh>> src="images/shared/food/leftovers.jpg"></center>'
  94. 'You finish the leftovers remaining on the table from the holidays.'
  95. act 'Get up from the table': gt 'sitrPar'
  96. end
  97. elseif locat['Mother'] = 24:
  98. *clr & cla
  99. '<center><img <<$set_imgh>> src="<<$mother_img_path>>uborka1.jpg"></center>'
  100. if kanikuli = 0 and mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6:
  101. if CloStyle2 = 4:
  102. 'As you walk into the living room, you see your mother sweeping the floor. She looks up and gives you a disappointed look. "What are you still doing here? Go to school, now!" She practically pushes you out of the apartment and closes the door.'
  103. act 'Continue': gt 'pod_ezd','etaj_2'
  104. else
  105. gs 'wardrobe', 'school_outfit'
  106. 'As you walk into the living room, you see your mother sweeping the floor. She looks up and gives you a disappointed look. "What are you still doing here and ehy are you not wearing your uniform? Get changed and go to school, now!" She follows you back to your room and watches as you change into your uniform. After that, she practically pushes you out of the apartment and closes the door.'
  107. act 'Continue': gt 'pod_ezd','etaj_2'
  108. end
  109. else
  110. 'As you walk into the living room, you see your mother sweeping the floor. She hasn''t noticed you because she''s intent on cleaning.'
  111. act 'Leave': gt 'korrPar'
  112. end
  113. exit
  114. elseif locat['Mother'] = 19 and locat['Stepdad'] = 10:
  115. !! Watches TV with Vladimir
  116. !!'<center><img <<$set_imgh>> src="<<$default_img_path>>/momvladtv.jpg"></center>'
  117. 'As you walk into the living room, you see your mother and Vladimir sitting on the couch watching TV.'
  118. act 'Leave':gt 'korrPar'
  119. act 'Join them':
  120. cla & *clr
  121. pcs_mood += 10
  122. minut += 30
  123. npc_rel['A28'] += 1
  124. npc_rel['A29'] += 1
  125. npc_rel['A34'] += 1
  126. gs 'stat'
  127. !!'<center><img <<$set_imgh>> src="<<$default_img_path>>/familytv.jpg"></center>'
  128. 'You move over to join them, and your mother scoots away from Vladimir and pats the spot between her and him. You take a seat between them and Vlad barely even glances at you with a brief smile before he goes back to watching TV. Your mother pats you on the shoulder before returning her attention to the TV, apparently happy the family is spending time together.'
  129. act 'Leave':gt 'korrPar'
  130. act 'Keep watching':gt 'sitrPar', 'TVfam'
  131. act 'Finish watching':gt 'sitrPar', 'TVend'
  132. end
  133. elseif locat['Mother'] = 19:
  134. !!Mom by herself watching TV
  135. 'As you walk into the living room, you see your <a href="exec:gt''mother''">mother</a> sitting on the couch watching TV.'
  136. elseif locat['Stepdad'] = 10:
  137. !!Dad watching TV by himself
  138. 'Your <a href="exec:gt ''father''">stepfather</a> is sitting on the sofa, watching TV.'
  139. end
  140. if SchoolAtestat = 0:
  141. gs 'subkid'
  142. if kid >= 1:
  143. if mc_inventory['breast_pump'] = 1 and bp_unbox = 1 and pcs_inhib > 30:
  144. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Try out</a> your breast pump'
  145. elseif mc_inventory['breast_pump'] = 1 and bp_unbox <= 0:
  146. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Unbox</a> your breast pump'
  147. end
  148. elseif locat['Fam_livingroom'] = 0:
  149. if mc_inventory['breast_pump'] = 1 and bp_unbox = 1:
  150. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Try out</a> your breast pump'
  151. elseif mc_inventory['breast_pump'] = 1 and bp_unbox <= 0:
  152. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Unbox</a> your breast pump'
  153. end
  154. end
  155. end
  156. end
  157. if $ARGS[0]= 'sofa':
  158. $menu_loc = 'sitrPar'
  159. $menu_arg = 'sofa'
  160. menu_off = 0
  161. $loc_arg = 'sofa'
  162. $loc = 'sitrPar'
  163. gs 'family_schedule'
  164. gs 'sitrPar', 'occupied'
  165. *clr & cla
  166. '<center><img <<$set_imgh>> src="<<$default_img_path>>/sofa.jpg"></center>'
  167. *nl
  168. '<center>A small sofa bed, when not folded out into a bed, is just big enough for you to curl up on and take a nap.</center>'
  169. act 'Get up': gt 'sitrPar'
  170. act 'Watch TV': gt 'TV','pav'
  171. if locat['Fam_livingroom'] = 0 and mc_inventory['mag_porn'] > 0:
  172. '<br>There is a porn magazine under the sofa cushions.'
  173. gs 'events', 'read_porn'
  174. if pcs_horny >= 50:
  175. act 'Masturbate': gt 'selfplay', 'start'
  176. end
  177. end
  178. gs 'events', 'read'
  179. if locat['Fam_livingroom'] = 0:
  180. act 'Take a nap (1:00)':
  181. if pcs_sleep < 90:
  182. pcs_sleep += 10
  183. pcs_health += 5
  184. minut += 60
  185. gs 'stat'
  186. 'You sleep for about an hour.'
  187. else
  188. minut += 5
  189. gs 'stat'
  190. 'You''re not tired enough to sleep, even for a short nap.'
  191. end
  192. end
  193. end
  194. end
  195. if $ARGS[0] = 'TVfam':
  196. cla & *clr
  197. pcs_mood += 10
  198. minut += 30
  199. gs 'family_schedule'
  200. gs 'stat'
  201. '<center><img <<$set_imgh>> src="<<$default_img_path>>/familytv.jpg"></center>'
  202. 'You continue to watch TV with the family. Everyone seems very engrossed in the program and almost never says anything, though Kolka occasionally makes a crack about what is happening, often getting shushed by Vlad or your mother.'
  203. if locat['Mother'] = 19: act 'Keep watching TV with your family': gt 'sitrPar', 'TVfam'
  204. act 'Finish watching':gt 'sitrPar', 'TVend'
  205. end
  206. if $ARGS[0] = 'TVend':
  207. cla & *clr
  208. gs 'family_schedule'
  209. gs 'stat'
  210. '<center><img <<$set_imgh>> src="<<$default_img_path>>/familytv.jpg"></center>'
  211. 'Once the show is over, Vladimir picks up the remote and turns the TV off. He gets up and stretches before he turns and walks out of the room, likely heading to bed. Your mother also gets up. "You should go to bed or at least go to your room so your brother can get his rest." She then turns to Kolka. "Don''t stay up, go to bed." She then ushers you out of the room. As you walk out, you see Kolka putting his pillow and sheet on the couch.'
  212. act 'Leave': gt 'korrPar'
  213. end
  214. if $ARGS[0] = 'occupied':
  215. if (locat['Kolka'] = 2 and brothermorningsex = daystart) or locat['Kolka'] = 1 or locat['Kolka'] = 7 or locat['Kolka'] = 11 or locat['Stepdad'] = 10 or locat['Mother'] = 19 or locat['Mother'] = 24:
  216. locat['Fam_livingroom'] = 1
  217. end
  218. end
  219. --- sitrPar ---------------------------------