city_mansion_residence_2.qsrc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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. *clr & cla
  13. '<center><b><font color="maroon">Living Room</font></b></center>'
  14. if ymanrem[7] = 2:
  15. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_living.jpg"></center>'
  16. elseif ymanrem[7] = 1:
  17. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  18. else
  19. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  20. end
  21. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  22. if ymanrem[7] = 2:
  23. '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>.'
  24. if $ml_guitar['location'] = $loc: 'Your guitar rests on its stand next to the sofa.'
  25. gs 'subkid'
  26. gs 'music_actions', 'music_icon'
  27. end
  28. end
  29. if $ARGS[0] = 'ylounge':
  30. $loc = 'city_mansion_residence_2'
  31. $loc_arg = 'ylounge'
  32. $menu_loc = 'city_mansion_residence_2'
  33. $menu_arg = 'ylounge'
  34. $location_type = 'private'
  35. menu_off = 0
  36. minut += 1
  37. gs 'stat'
  38. *clr & cla
  39. '<center><b><font color="maroon">Lounge</font></b></center>'
  40. if ymanrem[8] = 2:
  41. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_lounge.jpg"></center>'
  42. elseif ymanrem[8] = 1:
  43. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  44. else
  45. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  46. end
  47. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  48. if ymanrem[8] = 2:
  49. 'The lounge, where you can work on your tapestries and relax in front of the fireplace.'
  50. if mc_inventory['sewing_kit'] = 1:
  51. 'Your <a href="exec:gt ''sewing'',''start''">sewing kit</a> is stored next to your favorite chair.'
  52. *nl
  53. if gobelen > 0:
  54. 'You have completed <<gobelen>> tapestries.'
  55. *nl
  56. end
  57. if mc_inventory['sewing_fabric'] <= 0:
  58. 'You do not have any fabric.'
  59. else
  60. if pcs_sewng < 40:
  61. 'You have <<mc_inventory[''sewing_fabric'']>> pieces of sewing fabric left.'
  62. elseif pcs_sewng < 80:
  63. 'You have enough fabric for <<mc_inventory[''sewing_fabric'']>> lessons.'
  64. else
  65. if newgobelen = 0:
  66. act'Start a new tapestry (00:15)':
  67. *clr & cla
  68. menu_off = 1
  69. mc_inventory['sewing_fabric'] -= 1
  70. newgobelen = 1
  71. minut += 15
  72. gs'stat'
  73. 'You spend 15 minutes at the embroidery frame, preparing the fabric and outlining the pattern for the tapestry.'
  74. act'Set the tapestry aside':gt 'city_mansion_residence_2', 'ylounge'
  75. end
  76. end
  77. end
  78. end
  79. if newgobelen >= 1:
  80. 'Your tapestry is <<newgobelen/10>> percent finished.'
  81. act'Work on the tapestry (01:00)':
  82. *clr & cla
  83. menu_off = 1
  84. minut += 60
  85. gs 'exp_gain', 'sewng', rand(pcs_intel/10, pcs_intel/5)
  86. gobramax = (pcs_sewng - 70) * 6
  87. gobramin = (pcs_sewng - 70) * 2
  88. newgobelen += rand(gobramin,gobramax)
  89. gs'stat'
  90. if newgobelen < 1000:'You spend an hour working on your tapestry, which is now <<newgobelen/10>> percent finished.'
  91. if newgobelen >= 1000:
  92. newgobelen = 0
  93. gobelen += 1
  94. 'Your work on the tapestry is done.'
  95. end
  96. act'Set the tapestry aside':gt 'city_mansion_residence_2', 'ylounge'
  97. end
  98. end
  99. end
  100. end
  101. end
  102. if $ARGS[0] = 'ylibrary':
  103. $loc = 'city_mansion_residence_2'
  104. $loc_arg = 'ylibrary'
  105. $menu_loc = 'city_mansion_residence_2'
  106. $menu_arg = 'ylibrary'
  107. $location_type = 'private'
  108. menu_off = 0
  109. minut += 1
  110. gs 'stat'
  111. *clr & cla
  112. '<center><b><font color="maroon">Library</font></b></center>'
  113. if ymanrem[10] = 2:
  114. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_library.jpg"></center>'
  115. elseif ymanrem[10] = 1:
  116. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  117. else
  118. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  119. end
  120. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  121. if ymanrem[10] = 2:
  122. killvar '$downlibrary'
  123. $downlibrary['read'] = {
  124. *clr & cla
  125. menu_off = 1
  126. if blizoruk = 500 or glassqw = 1:
  127. glassqw = 1
  128. msg ' The text blurs across the page. It seems you have poor eyesight. Maybe you should visit an ophthalmologist?'
  129. gt 'city_mansion_residence_2', 'ylibrary'
  130. end
  131. if pcs_nerd > 0:
  132. lastread = totminut
  133. lastreadday = daystart
  134. pcs_nerd += 1
  135. end
  136. minut += 60
  137. blizoruk += 1
  138. }
  139. 'A huge collection of books are neatly placed on the bookshelves.'
  140. act 'Read a book on science (1:00)':
  141. dynamic $downlibrary['read']
  142. gs 'exp_gain', 'intel', rand(3,6) + rand(0, drugVars['mentats_dose'])
  143. grupvalue[3] +=1
  144. gs 'stat'
  145. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/science1.jpg"></center>'
  146. 'You spend an hour reading, trying to make sense of all the clever propositions writen inside and to finally understand the subject it describes.'
  147. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  148. end
  149. act 'Read an adventure novel (1:00)':
  150. dynamic $downlibrary['read']
  151. pcs_mood = 100
  152. grupvalue[3] +=1
  153. gs 'stat'
  154. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fiction' + rand(1,2) + '.jpg"></center>'
  155. 'You spend an hour reading an adventure novel, immersing yourself in daring deeds and awesome twists.'
  156. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  157. end
  158. act 'Read a fantasy novel (1:00)':
  159. dynamic $downlibrary['read']
  160. pcs_mood = 100
  161. grupvalue[3] +=1
  162. gs 'stat'
  163. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fantasy' + rand(1,9) + '.jpg"></center>'
  164. '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.'
  165. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  166. end
  167. act 'Read a science fiction novel (1:00)':
  168. dynamic $downlibrary['read']
  169. pcs_mood = 100
  170. grupvalue[3] += 1
  171. gs 'stat'
  172. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/scifi' + rand(1,6) + '.jpg"></center>'
  173. '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.'
  174. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  175. end
  176. act 'Read a romance novel (1:00)':
  177. dynamic $downlibrary['read']
  178. pcs_mood = 100
  179. pcs_horny += 20
  180. gs 'stat'
  181. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/romance' + rand(1,20) + '.jpg"></center>'
  182. '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.'
  183. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  184. end
  185. temp = pcs_intel * 2 + pcs_sprt
  186. if temp < 100:
  187. $diff = 'hard'
  188. elseif temp < 150:
  189. $diff = 'medium'
  190. else
  191. $diff = 'easy'
  192. end
  193. gs 'willpower', 'misc', 'self', $diff
  194. if will_cost <= pcs_willpwr:
  195. act 'Read from the collected works of Leo Tolstoy (1:00) (<<will_cost>> Willpower)':
  196. gs 'willpower', 'pay', 'self'
  197. killvar 'will_cost'
  198. dynamic $downlibrary['read']
  199. gs 'exp_gain', 'sprt', rand(3,6)
  200. grupvalue[3] += 2
  201. gs 'stat'
  202. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/tolstoy.jpg"></center>'
  203. '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.'
  204. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  205. end
  206. else
  207. 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>'
  208. end
  209. end
  210. end
  211. if $ARGS[0] = 'yoffice':
  212. $loc = 'city_mansion_residence_2'
  213. $loc_arg = 'yoffice'
  214. $menu_loc = 'city_mansion_residence_2'
  215. $menu_arg = 'yoffice'
  216. $locM = 'city_mansion_residence_2'
  217. $locM_arg = 'yoffice'
  218. $location_type = 'private'
  219. menu_off = 0
  220. minut += 1
  221. gs 'stat'
  222. *clr & cla
  223. '<center><b><font color="maroon">Office</font></b></center>'
  224. if ymanrem[12] = 2:
  225. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_office.jpg"></center>'
  226. elseif ymanrem[12] = 1:
  227. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  228. else
  229. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  230. end
  231. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  232. if ymanrem[12] = 2:
  233. 'Your work room where you spend most of the time signing important papers and handling your business needs.'
  234. !!TODO: Code to check if Sveta is not alone
  235. gs 'internet_mobile', 'get_access'
  236. 'There''s a <a href="exec:gt ''Komp'', ''start''">computer</a> sitting on your antique <a href="exec:gt ''stol'', ''start''">desk</a>.'
  237. !! 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.
  238. gs 'music_actions', 'music_icon'
  239. end
  240. end
  241. if $ARGS[0] = 'ynursery':
  242. $loc = 'city_mansion_residence_2'
  243. $loc_arg = 'ynursery'
  244. $menu_loc = 'city_mansion_residence_2'
  245. $menu_arg = 'ynursery'
  246. $location_type = 'private'
  247. menu_off = 0
  248. minut += 1
  249. gs 'stat'
  250. *clr & cla
  251. '<center><b><font color="maroon">Nursery</font></b></center>'
  252. if ymanrem[9] = 2:
  253. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_nursery.jpg"></center>'
  254. '<center>The neatly designed nursery room, only the best for your children.</center>'
  255. elseif ymanrem[9] = 1:
  256. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  257. else
  258. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  259. end
  260. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  261. if ymanrem[9] = 2: gs 'subkid'
  262. end
  263. --- city_mansion_residence_2 ---------------------------------