sitrPar.qsrc 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. !! Start location initialisation
  10. !! Set location header - img path is set in init
  11. $setloc['StageTitle'] = 'Parents Living Room'
  12. if locat['Mother'] = 19 and locat['Stepdad'] = 10:
  13. $setloc['StageImage'] = '<<$default_img_path>>/momvladtv.jpg'
  14. else
  15. $setloc['StageImage'] = '<<$default_img_path>>/sitrpar.jpg'
  16. end
  17. !! Sitting room variables:
  18. $locclass = 'livingr'
  19. locat['Fam_livingroom'] = 0
  20. minut += 1
  21. !! Set location vars:
  22. minut += 1
  23. !! Call in location default actions
  24. gs 'home_family_init', 'init'
  25. !! Check if anyone is in the room
  26. gs 'sitrPar', 'occupied'
  27. !! Set up game location data
  28. gs 'shortgs', 'setloc', 'sitrPar', $ARGS[0]
  29. !! End location initialisation
  30. !! Begin location content
  31. !! Display header and banner image
  32. gs 'core_library', 'stage_title'
  33. !! Location default description:
  34. '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.'
  35. *nl
  36. !! End default Description
  37. if locat['Fam_livingroom'] = 0 and locat['Mother'] ! 24 and locat['Mother'] ! 19:
  38. 'No one else is here right now, so you''re free to use the room how you like.'
  39. gs 'exercise','start'
  40. end
  41. act 'Leave the room': gt 'korrPar'
  42. act 'Sit on the sofa': gt 'sitrPar', 'sofa'
  43. if locat['Kolka'] = 2 and brothermorningsex = daystart:
  44. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is getting ready for school.'
  45. elseif locat['Kolka'] = 1:
  46. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is sleeping on the sofa.'
  47. elseif locat['Kolka'] = 7:
  48. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is sitting by the table and doing his homework.'
  49. elseif locat['Kolka'] = 11:
  50. if locat['Mother'] = 19 or locat['Stepdad'] = 10:
  51. '<a href="exec:npc_rel[''A34''] += 1 & gt ''brother'', ''start''">Kolka</a> is sitting in the armchair playing on his phone.'
  52. else
  53. '<a href="exec:gt ''brother'', ''start''">Kolka</a> is sitting on the sofa playing video games.'
  54. end
  55. end
  56. *nl
  57. if month = 12 and day >= 20: 'A Christmas tree stands next to the TV, decorated with tinsel garlands and other ornaments.'
  58. if month = 12 and day = 31 and hour >= 20:
  59. act 'Celebrate the New Year with your family.':
  60. cla
  61. gs 'npc_relationship', 'modify', 'A29', 10
  62. gs 'npc_relationship', 'modify', 'A28', 10
  63. gs 'npc_relationship', 'modify', 'A33', 10
  64. gs 'npc_relationship', 'modify', 'A34', 10
  65. money += 5000
  66. hour = 23
  67. minut = 0
  68. minut += 120
  69. pcs_sleep = 0
  70. pcs_mood += 100
  71. gs 'food', 'l_meal'
  72. gs 'stat'
  73. '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>.'
  74. '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.'
  75. act 'Leave': gt 'korrPar'
  76. end
  77. elseif month = 1 and day = 1:
  78. act 'Eat some leftovers at the festive table':
  79. frost = 0
  80. minut += 10
  81. pcs_health += 10
  82. pcs_mood += 20
  83. fat += 8
  84. pcs_energy += 60
  85. if pcs_hydra >= 100:
  86. pcs_hydra += 30
  87. else
  88. pcs_hydra += 60
  89. end
  90. cumspclnt = 2
  91. gs 'cum_cleanup'
  92. pcs_breath = 0
  93. gs 'stat'
  94. *clr & cla
  95. '<center><img <<$set_imgh>> src="images/shared/food/leftovers.jpg"></center>'
  96. 'You finish the leftovers remaining on the table from the holidays.'
  97. act 'Get up from the table': gt 'sitrPar'
  98. end
  99. elseif locat['Mother'] = 24:
  100. *clr & cla
  101. '<center><img <<$set_imgh>> src="<<$mother_img_path>>uborka1.jpg"></center>'
  102. if kanikuli = 0 and mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and SchoolBlock = 0 and week < 6:
  103. if CloStyle2 = 4:
  104. '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.'
  105. act 'Continue': gt 'pod_ezd','etaj_2'
  106. else
  107. gs 'wardrobe', 'school_outfit'
  108. '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.'
  109. act 'Continue': gt 'pod_ezd','etaj_2'
  110. end
  111. else
  112. '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.'
  113. act 'Leave': gt 'korrPar'
  114. end
  115. exit
  116. elseif locat['Mother'] = 19 and locat['Stepdad'] = 10:
  117. !! Watches TV with Vladimir
  118. !!'<center><img <<$set_imgh>> src="<<$default_img_path>>/momvladtv.jpg"></center>'
  119. 'As you walk into the living room, you see your mother and Vladimir sitting on the couch watching TV.'
  120. act 'Leave':gt 'korrPar'
  121. act 'Join them':
  122. cla & *clr
  123. pcs_mood += 10
  124. minut += 30
  125. npc_rel['A28'] += 1
  126. npc_rel['A29'] += 1
  127. npc_rel['A34'] += 1
  128. gs 'stat'
  129. !!'<center><img <<$set_imgh>> src="<<$default_img_path>>/familytv.jpg"></center>'
  130. '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.'
  131. act 'Leave':gt 'korrPar'
  132. act 'Keep watching':gt 'sitrPar', 'TVfam'
  133. act 'Finish watching':gt 'sitrPar', 'TVend'
  134. end
  135. elseif locat['Mother'] = 19:
  136. !!Mom by herself watching TV
  137. 'As you walk into the living room, you see your <a href="exec:gt''mother''">mother</a> sitting on the couch watching TV.'
  138. elseif locat['Stepdad'] = 10:
  139. !!Dad watching TV by himself
  140. 'Your <a href="exec:gt ''father''">stepfather</a> is sitting on the sofa, watching TV.'
  141. end
  142. if SchoolAtestat = 0:
  143. gs 'subkid'
  144. if kid >= 1:
  145. if mc_inventory['breast_pump'] = 1 and bp_unbox = 1 and pcs_inhib > 30:
  146. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Try out</a> your breast pump'
  147. elseif mc_inventory['breast_pump'] = 1 and bp_unbox <= 0:
  148. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Unbox</a> your breast pump'
  149. end
  150. elseif locat['Fam_livingroom'] = 0:
  151. if mc_inventory['breast_pump'] = 1 and bp_unbox = 1:
  152. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Try out</a> your breast pump'
  153. elseif mc_inventory['breast_pump'] = 1 and bp_unbox <= 0:
  154. '<a href="exec: gt ''lact_bp'', ''bp_unbox_event''">Unbox</a> your breast pump'
  155. end
  156. end
  157. end
  158. end
  159. if $ARGS[0]= 'sofa':
  160. $menu_loc = 'sitrPar'
  161. $menu_arg = 'sofa'
  162. menu_off = 0
  163. $loc_arg = 'sofa'
  164. $loc = 'sitrPar'
  165. gs 'family_schedule'
  166. gs 'sitrPar', 'occupied'
  167. *clr & cla
  168. '<center><img <<$set_imgh>> src="<<$default_img_path>>/sofa.jpg"></center>'
  169. *nl
  170. '<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>'
  171. act 'Get up': gt 'sitrPar'
  172. act 'Watch TV': gt 'TV','pav'
  173. if locat['Fam_livingroom'] = 0 and mc_inventory['mag_porn'] > 0:
  174. '<br>There is a porn magazine under the sofa cushions.'
  175. gs 'events', 'read_porn'
  176. if pcs_horny >= 50:
  177. act 'Masturbate': gt 'selfplay', 'start'
  178. end
  179. end
  180. gs 'events', 'read'
  181. if locat['Fam_livingroom'] = 0:
  182. act 'Take a nap (1:00)':
  183. if pcs_sleep < 90:
  184. pcs_sleep += 10
  185. pcs_health += 5
  186. minut += 60
  187. gs 'stat'
  188. 'You sleep for about an hour.'
  189. else
  190. minut += 5
  191. gs 'stat'
  192. 'You''re not tired enough to sleep, even for a short nap.'
  193. end
  194. end
  195. end
  196. end
  197. if $ARGS[0] = 'TVfam':
  198. cla & *clr
  199. pcs_mood += 10
  200. minut += 30
  201. gs 'family_schedule'
  202. gs 'stat'
  203. '<center><img <<$set_imgh>> src="<<$default_img_path>>/familytv.jpg"></center>'
  204. '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.'
  205. if locat['Mother'] = 19: act 'Keep watching TV with your family': gt 'sitrPar', 'TVfam'
  206. act 'Finish watching':gt 'sitrPar', 'TVend'
  207. end
  208. if $ARGS[0] = 'TVend':
  209. cla & *clr
  210. gs 'family_schedule'
  211. gs 'stat'
  212. '<center><img <<$set_imgh>> src="<<$default_img_path>>/familytv.jpg"></center>'
  213. '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.'
  214. act 'Leave': gt 'korrPar'
  215. end
  216. if $ARGS[0] = 'occupied':
  217. 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:
  218. locat['Fam_livingroom'] = 1
  219. end
  220. end
  221. --- sitrPar ---------------------------------