city_house_res_misc.qsrc 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. if $clothingworntype = 'danilovich_outfits' and $shoeworntype = 'danilovich':
  92. *nl
  93. 'You can do some exercises here.'
  94. gs 'wardrobe', 'default_clothing_options'
  95. act 'Exercise': gt 'exercise', 'workout'
  96. else
  97. *nl
  98. 'You could do some exercises here if you were wearing exercise clothes.'
  99. end
  100. end
  101. end
  102. end
  103. if $ARGS[0] = 'livroom':
  104. $loc = 'city_house_res_misc'
  105. $loc_arg = 'livroom'
  106. $menu_loc = 'city_house_res_misc'
  107. $menu_arg = 'livroom'
  108. $location_type = 'private'
  109. $locclass = 'livingr'
  110. menu_off = 0
  111. minut += 1
  112. gs 'stat'
  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', 'music_icon'
  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 gobelen > 0:
  136. 'You have completed <<gobelen>> tapestries.'
  137. *nl
  138. end
  139. if mc_inventory['sewing_fabric'] <= 0:
  140. 'You do not have any fabric.'
  141. else
  142. if pcs_sewng < 40:
  143. 'You have <<mc_inventory[''sewing_fabric'']>> pieces of sewing fabric left.'
  144. elseif pcs_sewng < 80:
  145. 'You have enough fabric for <<mc_inventory[''sewing_fabric'']>> lessons.'
  146. else
  147. if newgobelen = 0:
  148. act'Start a new tapestry (00:15)':
  149. *clr & cla
  150. menu_off = 1
  151. mc_inventory['sewing_fabric'] -= 1
  152. newgobelen = 1
  153. minut += 15
  154. gs'stat'
  155. 'You spend 15 minutes at the embroidery frame, preparing the fabric and outlining the pattern for the tapestry.'
  156. act'Set the tapestry aside':gt 'city_house_res_misc', 'livroom'
  157. end
  158. end
  159. end
  160. end
  161. if newgobelen >= 1:
  162. 'Your tapestry is <<newgobelen/10>> percent finished.'
  163. act'Work on the tapestry (01:00)':
  164. *clr & cla
  165. menu_off = 1
  166. minut += 60
  167. gs 'exp_gain', 'sewng', rand(pcs_intel/10, pcs_intel/5)
  168. gobramax = (pcs_sewng - 70) * 6
  169. gobramin = (pcs_sewng - 70) * 2
  170. newgobelen += rand(gobramin,gobramax)
  171. gs'stat'
  172. if newgobelen < 1000:'You spend an hour working on your tapestry, which is now <<newgobelen/10>> percent finished.'
  173. if newgobelen >= 1000:
  174. newgobelen = 0
  175. gobelen += 1
  176. 'Your work on the tapestry is done.'
  177. end
  178. act'Set the tapestry aside':gt 'city_house_res_misc', 'livroom'
  179. end
  180. end
  181. end
  182. end
  183. --- city_house_res_misc ---------------------------------