1
0

city_house_res_misc.qsrc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # city_house_res_misc
  2. !!Small frontyard
  3. if $ARGS[0] = 'fronty':
  4. $loc = 'city_house_res_misc'
  5. $loc_arg = 'fronty'
  6. $menu_loc = 'city_house_res_misc'
  7. $menu_arg = 'fronty'
  8. $location_type = 'public_outdoors'
  9. killvar '$locclass'
  10. menu_off = 0
  11. minut += 1
  12. gs 'stat'
  13. if sound = 0:
  14. if month >=11 and month <= 12 or month >=1 and month <=3:
  15. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street7.mp3',30 & PLAY 'sound/zima.mp3',30
  16. if hour >= 0 and hour <= 7: PLAY 'sound/street_night.mp3',30 & PLAY 'sound/zima.mp3',30
  17. else
  18. if hour >= 8 and hour <= 23: PLAY 'sound/street2.mp3',30 & PLAY 'sound/street7.mp3',30 & PLAY 'sound/street_leto.mp3',30
  19. if hour >= 0 and hour <= 7: PLAY 'sound/street_night_leto.mp3' & PLAY 'sound/street_night.mp3',30
  20. end
  21. end
  22. *clr & cla
  23. '<center><b><font color="maroon">Your city residential house</font></b></center>'
  24. '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_fronty.jpg"></center>'
  25. 'Your small two story house sits on the edge of the residential area. Despite that, your neighbors are pretty close and the sounds of the street fill the air.'
  26. *nl
  27. if car > 0 and cardrive = 8: '<a href="exec:GS ''carF'', ''start''">Your <<$car>></a> is in the driveway.'
  28. act 'Go inside': gt 'city_house_res_misc', 'hallw'
  29. act 'Go to the city':
  30. minut += 10
  31. gt 'city_residential'
  32. end
  33. if func('homes_properties', 'is_current_home', $loc) = 0:
  34. act 'Set this house as your main home':gs 'homes_properties', 'set_home' & gt 'city_house_res_misc', 'fronty'
  35. end
  36. end
  37. if $ARGS[0] = 'hallw':
  38. CLOSE ALL
  39. $loc = 'city_house_res_misc'
  40. $loc_arg = 'hallw'
  41. $menu_loc = 'city_house_res_misc'
  42. $menu_arg = 'hallw'
  43. $locM = 'city_house_res_misc'
  44. $locM_arg = 'hallw'
  45. $location_type = 'private'
  46. killvar '$locclass'
  47. menu_off = 0
  48. minut += 1
  49. gs 'stat'
  50. gs 'themes', 'indoors'
  51. if frost > 0: frost = 0
  52. *clr & cla
  53. '<center><b><font color="maroon">Hallway</font></b></center>'
  54. '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_hallway.jpg"></center>'
  55. gs 'courtletter'
  56. act 'Go out front':
  57. if $clothingworntype ! 'nude':
  58. minut += 1
  59. gt 'city_house_res_misc', 'fronty'
  60. else
  61. msg'<b><font color = red>You need to get dressed.</font></b>'
  62. gt 'city_house_res_misc', 'hallw'
  63. end
  64. end
  65. 'The main hallway of your house. You can visit the different rooms from here.'
  66. 'There''s a <a href="exec:gt ''mirror'', ''start''">mirror</a> hanging on the wall.'
  67. if mc_inventory['umbrella'] > 0:'There''s an umbrella hanging on a hook by the door.'
  68. act 'Go to your bedroom': gt 'city_house_res_bedr', 'bedro'
  69. act 'Go to your bathroom': gt 'city_house_res_bathr', 'bathr'
  70. act 'Go to your kitchen': gt 'city_house_res_kitch', 'kitch'
  71. act 'Go to your living room': gt 'city_house_res_misc', 'livroom'
  72. act 'Go to your backyard': gt 'city_house_res_misc', 'backy'
  73. end
  74. !!Small backyard for outdoor working out or maybe gardening?
  75. if $ARGS[0] = 'backy':
  76. $loc = 'city_house_res_misc'
  77. $loc_arg = 'backy'
  78. $menu_loc = 'city_house_res_misc'
  79. $menu_arg = 'backy'
  80. $location_type = 'secluded'
  81. menu_off = 0
  82. minut += 1
  83. gs 'stat'
  84. *clr & cla
  85. '<center><b><font color="maroon">Living Room</font></b></center>'
  86. '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_backy.jpg"></center>'
  87. 'Your small backyard is fenced in, with a few plots intended for gardening.'
  88. act 'Go inside': gt 'city_house_res_misc', 'hallw'
  89. if sunWeather = 1:
  90. if pcs_stam >=15 or (pcs_stam >= 10 and mc_inventory['book_yoga'] + mc_inventory['hula_hoop'] > 0):
  91. *nl
  92. if PCloSport = 0:
  93. 'You could do some exercises here if you were wearing exercise clothes.'
  94. else
  95. 'You can do some exercises here.'
  96. gs 'wardrobe', 'default_clothing_options'
  97. act 'Exercise': gt 'exercise', 'workout'
  98. end
  99. end
  100. end
  101. end
  102. if $ARGS[0] = 'livroom':
  103. $loc = 'city_house_res_misc'
  104. $loc_arg = 'livroom'
  105. $menu_loc = 'city_house_res_misc'
  106. $menu_arg = 'livroom'
  107. $location_type = 'private'
  108. $locclass = 'livingr'
  109. menu_off = 0
  110. minut += 1
  111. gs 'stat'
  112. gs 'music_actions', 'clear_restrictions'
  113. *clr & cla
  114. '<center><b><font color="maroon">Living Room</font></b></center>'
  115. '<center><img <<$set_imgh>> src="images/locations/city/residential/house/crh_living.jpg"></center>'
  116. act 'Leave the room': gt 'city_house_res_misc', 'hallw'
  117. 'A place where you can watch <a href="exec:gt ''TV'',''start''">TV</a>, or relax on your <a href="exec:gt ''divan'', ''start''">sofa</a>.'
  118. if $ml_guitar['location'] = $loc: 'Your guitar rests on its stand next to the sofa.'
  119. !! Computer and internet use.
  120. if mc_inventory['tech_computer'] = 1:
  121. gs 'internet_mobile', 'get_access'
  122. !!TODO: Need to build a check for husband being at home or something.
  123. 'There''s a <a href="exec:gt ''Komp'', ''start''">computer</a> sitting on your <a href="exec:gt ''stol'', ''start''">desk</a>.'
  124. else
  125. 'A small <a href="exec:gt ''stol'', ''start''">desk</a> is against the wall.'
  126. end
  127. 'There is enough space to workout.'
  128. gs 'exercise', 'start'
  129. gs 'subkid'
  130. !! IMPORTANT: if there is anything added later that could mean that others are in the room, gs 'music_actions', 'not_alone' should be added with the correct conditions.
  131. gs 'music_actions', 'start'
  132. if mc_inventory['sewing_kit'] = 1:
  133. 'Your <a href="exec:gt ''sewing'',''start''">sewing kit</a> is stored next to your favorite chair.'
  134. *nl
  135. if pcs_sewng >= 80:
  136. if newgobelen = 0 and mc_inventory['sewing_fabric'] > 0:
  137. act 'Start a new tapestry': gt 'sewing', 'tapestry'
  138. elseif newgobelen >= 1:
  139. 'Your tapestry is <<newgobelen/10>> percent finished.'
  140. act 'Work on the tapestry':gt 'sewing', 'tapestry'
  141. end
  142. end
  143. if mc_inventory['tapestry'] > 0: 'You have <<mc_inventory[''tapestry'']>> completed tapestries.'
  144. end
  145. end
  146. --- city_house_res_misc ---------------------------------