city_mansion_residence_2.qsrc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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 gobelen > 0:
  55. 'You have completed <<gobelen>> tapestries.'
  56. *nl
  57. end
  58. if mc_inventory['sewing_fabric'] <= 0:
  59. 'You do not have any fabric.'
  60. else
  61. if pcs_sewng < 40:
  62. 'You have <<mc_inventory[''sewing_fabric'']>> pieces of sewing fabric left.'
  63. elseif pcs_sewng < 80:
  64. 'You have enough fabric for <<mc_inventory[''sewing_fabric'']>> lessons.'
  65. else
  66. if newgobelen = 0:
  67. act'Start a new tapestry (00:15)':
  68. *clr & cla
  69. menu_off = 1
  70. mc_inventory['sewing_fabric'] -= 1
  71. newgobelen = 1
  72. minut += 15
  73. gs'stat'
  74. 'You spend 15 minutes at the embroidery frame, preparing the fabric and outlining the pattern for the tapestry.'
  75. act'Set the tapestry aside':gt 'city_mansion_residence_2', 'ylounge'
  76. end
  77. end
  78. end
  79. end
  80. if newgobelen >= 1:
  81. 'Your tapestry is <<newgobelen/10>> percent finished.'
  82. act'Work on the tapestry (01:00)':
  83. *clr & cla
  84. menu_off = 1
  85. minut += 60
  86. gs 'exp_gain', 'sewng', rand(pcs_intel/10, pcs_intel/5)
  87. gobramax = (pcs_sewng - 70) * 6
  88. gobramin = (pcs_sewng - 70) * 2
  89. newgobelen += rand(gobramin,gobramax)
  90. gs'stat'
  91. if newgobelen < 1000:'You spend an hour working on your tapestry, which is now <<newgobelen/10>> percent finished.'
  92. if newgobelen >= 1000:
  93. newgobelen = 0
  94. gobelen += 1
  95. 'Your work on the tapestry is done.'
  96. end
  97. act'Set the tapestry aside':gt 'city_mansion_residence_2', 'ylounge'
  98. end
  99. end
  100. end
  101. end
  102. end
  103. if $ARGS[0] = 'ylibrary':
  104. $loc = 'city_mansion_residence_2'
  105. $loc_arg = 'ylibrary'
  106. $menu_loc = 'city_mansion_residence_2'
  107. $menu_arg = 'ylibrary'
  108. $location_type = 'private'
  109. menu_off = 0
  110. minut += 1
  111. gs 'stat'
  112. *clr & cla
  113. '<center><b><font color="maroon">Library</font></b></center>'
  114. if ymanrem[10] = 2:
  115. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_library.jpg"></center>'
  116. elseif ymanrem[10] = 1:
  117. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  118. else
  119. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  120. end
  121. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  122. if ymanrem[10] = 2:
  123. killvar '$downlibrary'
  124. $downlibrary['read'] = {
  125. *clr & cla
  126. menu_off = 1
  127. if blizoruk = 500 or glassqw = 1:
  128. glassqw = 1
  129. msg ' The text blurs across the page. It seems you have poor eyesight. Maybe you should visit an ophthalmologist?'
  130. gt 'city_mansion_residence_2', 'ylibrary'
  131. end
  132. if pcs_nerd > 0:
  133. lastread = totminut
  134. lastreadday = daystart
  135. pcs_nerd += 1
  136. end
  137. minut += 60
  138. blizoruk += 1
  139. }
  140. 'A huge collection of books are neatly placed on the bookshelves.'
  141. act 'Read a book on science (1:00)':
  142. dynamic $downlibrary['read']
  143. gs 'exp_gain', 'intel', rand(3,6) + rand(0, drugVars['mentats_dose'])
  144. grupvalue[3] +=1
  145. gs 'stat'
  146. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/science1.jpg"></center>'
  147. 'You spend an hour reading, trying to make sense of all the clever propositions writen inside and to finally understand the subject it describes.'
  148. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  149. end
  150. act 'Read an adventure novel (1:00)':
  151. dynamic $downlibrary['read']
  152. pcs_mood = 100
  153. grupvalue[3] +=1
  154. gs 'stat'
  155. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fiction' + rand(1,2) + '.jpg"></center>'
  156. 'You spend an hour reading an adventure novel, immersing yourself in daring deeds and awesome twists.'
  157. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  158. end
  159. act 'Read a fantasy novel (1:00)':
  160. dynamic $downlibrary['read']
  161. pcs_mood = 100
  162. grupvalue[3] +=1
  163. gs 'stat'
  164. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fantasy' + rand(1,9) + '.jpg"></center>'
  165. 'You spend an hour reading a fantasy novel, rescuing damsels from dragons, digging for jewels with dwarves and performing word changing magic alongside elves and druids.'
  166. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  167. end
  168. act 'Read a science fiction novel (1:00)':
  169. dynamic $downlibrary['read']
  170. pcs_mood = 100
  171. grupvalue[3] += 1
  172. gs 'stat'
  173. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/scifi' + rand(1,6) + '.jpg"></center>'
  174. 'You spend an hour reading a science fiction novel - flying off into space, travelling though time, running from rogue AI''s and creating monsters with your hunchbacked assistant.'
  175. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  176. end
  177. act 'Read a romance novel (1:00)':
  178. dynamic $downlibrary['read']
  179. pcs_mood = 100
  180. pcs_horny += 20
  181. gs 'stat'
  182. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/romance' + rand(1,20) + '.jpg"></center>'
  183. 'You spend a very short hour reading a romance novel - choosing between a vampire or a werewolf, falling in love with an obscenely wealthy Grey... several of the scenes are very steamy and you find yourself getting quite aroused.'
  184. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  185. end
  186. temp = pcs_intel * 2 + pcs_sprt
  187. if temp < 100:
  188. $diff = 'hard'
  189. elseif temp < 150:
  190. $diff = 'medium'
  191. else
  192. $diff = 'easy'
  193. end
  194. gs 'willpower', 'misc', 'self', $diff
  195. if will_cost <= pcs_willpwr:
  196. act 'Read from the collected works of Leo Tolstoy (1:00) (<<will_cost>> Willpower)':
  197. gs 'willpower', 'pay', 'self'
  198. killvar 'will_cost'
  199. dynamic $downlibrary['read']
  200. gs 'exp_gain', 'sprt', rand(3,6)
  201. grupvalue[3] += 2
  202. gs 'stat'
  203. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/tolstoy.jpg"></center>'
  204. 'You read the book for an hour. Tolstoy is certainly a classic writer, no one denies this, but he used a shit-load of words.'
  205. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  206. end
  207. else
  208. act 'Read from the collected works of Leo Tolstoy (1:00) (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  209. end
  210. end
  211. end
  212. if $ARGS[0] = 'yoffice':
  213. $loc = 'city_mansion_residence_2'
  214. $loc_arg = 'yoffice'
  215. $menu_loc = 'city_mansion_residence_2'
  216. $menu_arg = 'yoffice'
  217. $locM = 'city_mansion_residence_2'
  218. $locM_arg = 'yoffice'
  219. $location_type = 'private'
  220. menu_off = 0
  221. minut += 1
  222. gs 'stat'
  223. gs 'music_actions', 'clear_restrictions'
  224. *clr & cla
  225. '<center><b><font color="maroon">Office</font></b></center>'
  226. if ymanrem[12] = 2:
  227. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_office.jpg"></center>'
  228. elseif ymanrem[12] = 1:
  229. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  230. else
  231. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  232. end
  233. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  234. if ymanrem[12] = 2:
  235. 'Your work room where you spend most of the time signing important papers and handling your business needs.'
  236. !!TODO: Code to check if Sveta is not alone
  237. gs 'internet_mobile', 'get_access'
  238. 'There''s a <a href="exec:gt ''Komp'', ''start''">computer</a> sitting on your antique <a href="exec:gt ''stol'', ''start''">desk</a>.'
  239. !! 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.
  240. gs 'music_actions', 'start'
  241. end
  242. end
  243. if $ARGS[0] = 'ynursery':
  244. $loc = 'city_mansion_residence_2'
  245. $loc_arg = 'ynursery'
  246. $menu_loc = 'city_mansion_residence_2'
  247. $menu_arg = 'ynursery'
  248. $location_type = 'private'
  249. menu_off = 0
  250. minut += 1
  251. gs 'stat'
  252. *clr & cla
  253. '<center><b><font color="maroon">Nursery</font></b></center>'
  254. if ymanrem[9] = 2:
  255. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_nursery.jpg"></center>'
  256. '<center>The neatly designed nursery room, only the best for your children.</center>'
  257. elseif ymanrem[9] = 1:
  258. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  259. else
  260. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  261. end
  262. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  263. if ymanrem[9] = 2: gs 'subkid'
  264. end
  265. --- city_mansion_residence_2 ---------------------------------