1
0

city_mansion_residence_2.qsrc 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. # city_mansion_residence_2
  2. if $ARGS[0] = 'yliving':
  3. $loc = 'city_mansion_residence_2'
  4. $loc_arg = 'yliving'
  5. $menu_loc = 'city_mansion_residence_2'
  6. $menu_arg = 'yliving'
  7. $location_type = 'private'
  8. $locclass = 'livingr'
  9. menu_off = 0
  10. minut += 1
  11. gs 'stat'
  12. gs 'music_actions', 'clear_restrictions'
  13. *clr & cla
  14. '<center><b><font color="maroon">Living Room</font></b></center>'
  15. if ymanrem[7] = 2:
  16. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_living.jpg"></center>'
  17. elseif ymanrem[7] = 1:
  18. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  19. else
  20. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  21. end
  22. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  23. if ymanrem[7] = 2:
  24. 'A large room where you can watch <a href="exec:gt ''TV'',''start''">TV</a>, or relax on your luxury <a href="exec:gt ''divan'', ''start''">leather sofa</a>.'
  25. if $ml_guitar['location'] = $loc: 'Your guitar rests on its stand next to the sofa.'
  26. gs 'subkid'
  27. gs 'music_actions', 'start'
  28. end
  29. end
  30. if $ARGS[0] = 'ylounge':
  31. $loc = 'city_mansion_residence_2'
  32. $loc_arg = 'ylounge'
  33. $menu_loc = 'city_mansion_residence_2'
  34. $menu_arg = 'ylounge'
  35. $location_type = 'private'
  36. menu_off = 0
  37. minut += 1
  38. gs 'stat'
  39. *clr & cla
  40. '<center><b><font color="maroon">Lounge</font></b></center>'
  41. if ymanrem[8] = 2:
  42. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_lounge.jpg"></center>'
  43. elseif ymanrem[8] = 1:
  44. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  45. else
  46. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  47. end
  48. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  49. if ymanrem[8] = 2:
  50. 'The lounge, where you can work on your tapestries and relax in front of the fireplace.'
  51. if mc_inventory['sewing_kit'] = 1:
  52. 'Your <a href="exec:gt ''sewing'',''start''">sewing kit</a> is stored next to your favorite chair.'
  53. *nl
  54. if mc_inventory['sewing_fabric'] <= 0:'You do not have any fabric.'
  55. *nl
  56. if pcs_sewng >= 80:
  57. if newgobelen = 0 and mc_inventory['sewing_fabric'] > 0:
  58. act 'Start a new tapestry': gt 'sewing', 'tapestry'
  59. elseif newgobelen >= 1:
  60. 'Your tapestry is <<newgobelen/10>> percent finished.'
  61. act 'Work on the tapestry':gt 'sewing', 'tapestry'
  62. end
  63. end
  64. if mc_inventory['tapestry'] > 0: 'You have <<mc_inventory[''tapestry'']>> completed tapestries.'
  65. end
  66. end
  67. end
  68. if $ARGS[0] = 'ylibrary':
  69. menu_off = 0
  70. gs 'shortgs', 'setloc', 'city_mansion_residence_2', 'ylibrary'
  71. $location_type = 'private'
  72. minut += 1
  73. gs 'stat'
  74. '<center><b><font color="maroon">Library</font></b></center>'
  75. if ymanrem[10] = 2:
  76. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_library.jpg"></center>'
  77. elseif ymanrem[10] = 1:
  78. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  79. else
  80. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  81. end
  82. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  83. if ymanrem[10] = 2:
  84. 'A huge collection of books are neatly placed on the bookshelves.'
  85. gs 'library_functions', 'set_library_read_acts'
  86. end
  87. end
  88. if $ARGS[0] = 'yoffice':
  89. $loc = 'city_mansion_residence_2'
  90. $loc_arg = 'yoffice'
  91. $menu_loc = 'city_mansion_residence_2'
  92. $menu_arg = 'yoffice'
  93. $locM = 'city_mansion_residence_2'
  94. $locM_arg = 'yoffice'
  95. $location_type = 'private'
  96. menu_off = 0
  97. minut += 1
  98. gs 'stat'
  99. gs 'music_actions', 'clear_restrictions'
  100. *clr & cla
  101. '<center><b><font color="maroon">Office</font></b></center>'
  102. if ymanrem[12] = 2:
  103. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_office.jpg"></center>'
  104. elseif ymanrem[12] = 1:
  105. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  106. else
  107. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  108. end
  109. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  110. if ymanrem[12] = 2:
  111. 'Your work room where you spend most of the time signing important papers and handling your business needs.'
  112. !!TODO: Code to check if Sveta is not alone
  113. gs 'internet_mobile', 'get_access'
  114. 'There''s a <a href="exec:gt ''Komp'', ''start''">computer</a> sitting on your antique <a href="exec:gt ''stol'', ''start''">desk</a>.'
  115. !! 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.
  116. gs 'music_actions', 'start'
  117. end
  118. end
  119. if $ARGS[0] = 'ynursery':
  120. $loc = 'city_mansion_residence_2'
  121. $loc_arg = 'ynursery'
  122. $menu_loc = 'city_mansion_residence_2'
  123. $menu_arg = 'ynursery'
  124. $location_type = 'private'
  125. menu_off = 0
  126. minut += 1
  127. gs 'stat'
  128. *clr & cla
  129. '<center><b><font color="maroon">Nursery</font></b></center>'
  130. if ymanrem[9] = 2:
  131. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_nursery.jpg"></center>'
  132. '<center>The neatly designed nursery room, only the best for your children.</center>'
  133. elseif ymanrem[9] = 1:
  134. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  135. else
  136. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  137. end
  138. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  139. if ymanrem[9] = 2: gs 'subkid'
  140. end
  141. --- city_mansion_residence_2 ---------------------------------