city_mansion_residence_2.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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. gs 'subkid'
  25. end
  26. end
  27. if $ARGS[0] = 'ylounge':
  28. $loc = 'city_mansion_residence_2'
  29. $loc_arg = 'ylounge'
  30. $menu_loc = 'city_mansion_residence_2'
  31. $menu_arg = 'ylounge'
  32. $location_type = 'private'
  33. menu_off = 0
  34. minut += 1
  35. gs 'stat'
  36. *clr & cla
  37. '<center><b><font color="maroon">Lounge</font></b></center>'
  38. if ymanrem[8] = 2:
  39. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_lounge.jpg"></center>'
  40. elseif ymanrem[8] = 1:
  41. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  42. else
  43. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  44. end
  45. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  46. if ymanrem[8] = 2:
  47. 'The lounge, where you can work on your tapestries and relax in front of the fireplace.'
  48. if sewing_kit = 1:
  49. 'Your <a href="exec:gt ''sewing'',''start''">sewing kit</a> is stored next to your favorite chair.'
  50. *nl
  51. if gobelen > 0:
  52. 'You have completed <<gobelen>> tapestries.'
  53. *nl
  54. end
  55. if tkan <= 0:
  56. 'You do not have any fabric.'
  57. else
  58. if pcs_sewng < 40:
  59. 'You have <<tkan>> pieces of sewing fabric left.'
  60. elseif pcs_sewng < 80:
  61. 'You have enough fabric for <<tkan>> lessons.'
  62. else
  63. if newgobelen = 0:
  64. act'Start a new tapestry (00:15)':
  65. *clr & cla
  66. menu_off = 1
  67. tkan -= 1
  68. newgobelen = 1
  69. minut += 15
  70. gs'stat'
  71. 'You spend 15 minutes at the embroidery frame, preparing the fabric and outlining the pattern for the tapestry.'
  72. act'Set the tapestry aside':gt $curloc
  73. end
  74. end
  75. end
  76. end
  77. if newgobelen >= 1:
  78. 'Your tapestry is <<newgobelen/10>> percent finished.'
  79. act'Work on the tapestry (01:00)':
  80. *clr & cla
  81. menu_off = 1
  82. minut += 60
  83. gs 'exp_gain', 'sewng', rand(pcs_intel/10, pcs_intel/5)
  84. gobramax = (pcs_sewng - 70) * 6
  85. gobramin = (pcs_sewng - 70) * 2
  86. newgobelen += rand(gobramin,gobramax)
  87. gs'stat'
  88. if newgobelen < 1000:'You spend an hour working on your tapestry, which is now <<newgobelen/10>> percent finished.'
  89. if newgobelen >= 1000:
  90. newgobelen = 0
  91. gobelen += 1
  92. 'Your work on the tapestry is done.'
  93. end
  94. act'Set the tapestry aside':gt $curloc
  95. end
  96. end
  97. end
  98. end
  99. end
  100. if $ARGS[0] = 'ylibrary':
  101. $loc = 'city_mansion_residence_2'
  102. $loc_arg = 'ylibrary'
  103. $menu_loc = 'city_mansion_residence_2'
  104. $menu_arg = 'ylibrary'
  105. $location_type = 'private'
  106. menu_off = 0
  107. minut += 1
  108. gs 'stat'
  109. *clr & cla
  110. '<center><b><font color="maroon">Library</font></b></center>'
  111. if ymanrem[10] = 2:
  112. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_library.jpg"></center>'
  113. elseif ymanrem[10] = 1:
  114. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  115. else
  116. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  117. end
  118. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  119. if ymanrem[10] = 2:
  120. 'A huge collection of books are neatly placed on the bookshelves.'
  121. act 'Read a book on science (1:00)':
  122. *clr & cla
  123. menu_off = 1
  124. if blizoruk = 500 or glassqw = 1: glassqw = 1 & msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.' & gt $curloc
  125. if pcs_nerd > 0: lastread = totminut & lastreadday = daystart & pcs_nerd += 1
  126. minut += 60
  127. gs 'exp_gain', 'intel', rand(3,6) + (mentats_dose - rand(0,mentats_dose))
  128. blizoruk += 1
  129. grupvalue[3] +=1
  130. gs'stat'
  131. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/science1.jpg"></center>'
  132. 'You spend an hour reading, trying to make sense of all the clever propositions writen inside and to finally understand the subject it describes.'
  133. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  134. end
  135. act 'Read an adventure novel (1:00)':
  136. *clr & cla
  137. menu_off = 1
  138. if blizoruk = 500 or glassqw = 1: glassqw = 1 & msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.' & gt $curloc
  139. if pcs_nerd > 0: lastread = totminut & lastreadday = daystart & pcs_nerd += 1
  140. minut += 60
  141. pcs_mood = 100
  142. blizoruk += 1
  143. grupvalue[3] +=1
  144. gs'stat'
  145. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fiction' + rand(1,2) + '.jpg"></center>'
  146. 'You spend an hour reading an adventure novel, immersing yourself in daring deeds and awesome twists.'
  147. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  148. end
  149. act 'Read a fantasy novel (1:00)':
  150. *clr & cla
  151. menu_off = 1
  152. if blizoruk = 500 or glassqw = 1: glassqw = 1 & msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.' & gt $curloc
  153. if pcs_nerd > 0: lastread = totminut & lastreadday = daystart & pcs_nerd += 1
  154. minut += 60
  155. pcs_mood = 100
  156. blizoruk += 1
  157. grupvalue[3] +=1
  158. gs'stat'
  159. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/fantasy' + rand(1,9) + '.jpg"></center>'
  160. '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.'
  161. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  162. end
  163. act 'Read a science fiction novel (1:00)':
  164. *clr & cla
  165. menu_off = 1
  166. if blizoruk = 500 or glassqw = 1: glassqw = 1 & msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.' & gt $curloc
  167. if pcs_nerd > 0: lastread = totminut & lastreadday = daystart & pcs_nerd += 1
  168. minut += 60
  169. pcs_mood = 100
  170. blizoruk += 1
  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. *clr & cla
  179. menu_off = 1
  180. if blizoruk = 500 or glassqw = 1: glassqw = 1 & msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.' & gt $curloc
  181. if pcs_nerd > 0: lastread = totminut & lastreadday = daystart & pcs_nerd += 1
  182. minut += 60
  183. pcs_mood = 100
  184. blizoruk += 1
  185. pcs_horny += 20
  186. gs'stat'
  187. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/romance' + rand(1,20) + '.jpg"></center>'
  188. '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.'
  189. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  190. end
  191. act 'Read from the collected works of Leo Tolstoy (1:00)':
  192. *clr & cla
  193. menu_off = 1
  194. if blizoruk = 500 or glassqw = 1: glassqw = 1 & msg 'The text blurs across the page, it seems that your eyesight is actually pretty poor. Maybe you should head to the city and visit an ophthalmologist.' & gt $curloc
  195. if pcs_nerd > 0: lastread = totminut & lastreadday = daystart & pcs_nerd += 1
  196. minut += 60
  197. gs 'exp_gain', 'sprt', rand(3,6)
  198. blizoruk += 1
  199. grupvalue[3] +=2
  200. gs'stat'
  201. '<center><img <<$set_imgh>> src="images/pc/items/accessories/books/tolstoy.jpg"></center>'
  202. '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.'
  203. act 'Put the book back': gt 'city_mansion_residence_2', 'ylibrary'
  204. end
  205. end
  206. end
  207. if $ARGS[0] = 'yoffice':
  208. $loc = 'city_mansion_residence_2'
  209. $loc_arg = 'yoffice'
  210. $menu_loc = 'city_mansion_residence_2'
  211. $menu_arg = 'yoffice'
  212. $locM = 'city_mansion_residence_2'
  213. $locM_arg = 'yoffice'
  214. $location_type = 'private'
  215. menu_off = 0
  216. minut += 1
  217. gs 'stat'
  218. *clr & cla
  219. '<center><b><font color="maroon">Office</font></b></center>'
  220. if ymanrem[12] = 2:
  221. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_office.jpg"></center>'
  222. elseif ymanrem[12] = 1:
  223. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  224. else
  225. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  226. end
  227. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  228. if ymanrem[12] = 2:
  229. 'Your work room where you spend most of the time signing important papers and handling your business needs.'
  230. 'There''s a <a href="exec:gt ''Komp'', ''start''">computer</a> sitting on your antique <a href="exec:gt ''stol'', ''start''">desk</a>.'
  231. if ml_guitar['carried'] = 1:
  232. act 'Place the guitar next to your desk':
  233. ml_guitar['carried'] = 0
  234. $ml_guitar['location'] = $curloc
  235. gt $loc, $loc_arg
  236. end
  237. elseif $ml_guitar['location'] = $curloc:
  238. act 'Pick up the guitar':
  239. ml_guitar['carried'] = 1
  240. $ml_guitar['location'] = ''
  241. gt $loc, $loc_arg
  242. end
  243. end
  244. if ml_online['account'] = 0 and internet > 0:
  245. act 'Set up an online music account': gt 'music_onlinemusic', 'setupAccount'
  246. end
  247. !!Uploading recorded music if there are any not uploaded yet
  248. if ml_uploadablemusic > 0 and internet > 0 and ml_online['account'] = 1:
  249. if pcs_inhib < 30:
  250. if pcs_inhib < 10:
  251. $diff = 'hard'
  252. elseif pcs_inhib < 20:
  253. $diff = 'medium'
  254. else
  255. $diff = 'easy'
  256. end
  257. gs 'willpower', 'skill', 'self', $diff
  258. will_cost = (will_cost * 2) - (pcs_perform)
  259. if will_cost <= pcs_willpwr:
  260. act 'Upload music (<<will_cost>> Willpower)': gt 'music_onlinemusic', 'uploadmusic'
  261. else
  262. act 'Upload music (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  263. end
  264. end
  265. act 'Upload music': gt 'music_onlinemusic', 'uploadallmusic'
  266. end
  267. if ml_uploadablemusic > 0:
  268. act 'Delete old recordings': gt 'music_onlinemusic', 'deleteoldmusic'
  269. end
  270. if hour > 8 and hour < 22:
  271. if ml_guitar['hasguitar'] = 1:
  272. act 'Play something on the guitar':
  273. pcs_mood += 10
  274. minut += 10
  275. gs 'stat'
  276. 'You pick up your guitar and start to play some songs you know, just for your own entertainment.'
  277. 'You hum along to the tune, relaxing into the music and enjoying it. When you look up, 10 minutes has passed and you are in a much better mood.'
  278. end
  279. end
  280. if ml_guitar['hasguitar'] = 1 and (ml_guitar['chordbook'] = 1 or ml_guitarlesson['lessoncount'] > 0) and ml_performance['performed_minutes'] < ml_performance['max_perform_minutes'] and alko < 5:
  281. if pcs_inhib < 30:
  282. if pcs_inhib < 10:
  283. $diff = 'hard'
  284. elseif pcs_inhib < 20:
  285. $diff = 'medium'
  286. else
  287. $diff = 'easy'
  288. end
  289. gs 'willpower', 'skill', 'self', $diff
  290. will_cost = (will_cost * 3) - (pcs_perform)
  291. if will_cost <= pcs_willpwr:
  292. act 'Practice guitar (<<will_cost>> Willpower)':
  293. inhib_exp += rand(1,2)
  294. gs 'willpower', 'pay', 'self'
  295. gs 'stat'
  296. gt 'music_bedroomPractice', 'guitar'
  297. end
  298. else
  299. act 'Practice guitar (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You feel too embarrassed to pick up your guitar in front of people</font>'
  300. end
  301. else
  302. act 'Practice guitar': gt 'music_bedroomPractice', 'guitar'
  303. end
  304. end
  305. !! Streaming music
  306. if ml_guitar['hasguitar'] = 1 and ml_online['account'] = 1 and internet > 0 and ml_performance['performed_minutes'] < ml_performance['max_perform_minutes'] and ml_performance['max_perform_minutes'] >= 15 and alko < 5 and ml_streaming['lastday'] ! daystart:
  307. ml_streamtime = min((ml_performance['max_perform_minutes']-ml_performance['performed_minutes']), 60)
  308. if pcs_inhib < 30:
  309. if pcs_inhib < 10:
  310. $diff = 'hard'
  311. elseif pcs_inhib < 20:
  312. $diff = 'medium'
  313. else
  314. $diff = 'easy'
  315. end
  316. gs 'willpower', 'skill', 'self', $diff
  317. will_cost = (will_cost * 3) - (pcs_perform)
  318. if will_cost <= pcs_willpwr:
  319. act 'Live stream (<<ml_streamtime>> minutes) (<<will_cost>> Willpower)':
  320. inhib_exp += rand(1,3)
  321. gs 'willpower', 'pay', 'self'
  322. gs 'stat'
  323. gt 'music_onlinemusic', 'liveStream'
  324. end
  325. else
  326. act 'Live stream (<<ml_streamtime>> minutes) (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  327. end
  328. else
  329. act 'Live stream (<<ml_streamtime>> minutes)': gt 'music_onlinemusic', 'liveStream'
  330. end
  331. end
  332. !! Recording music
  333. if ml_guitar['hasguitar'] = 1 and ml_performance['performed_minutes'] < ml_performance['max_perform_minutes'] and alko < 5:
  334. if pcs_inhib < 20:
  335. if pcs_inhib < 10:
  336. $diff = 'medium'
  337. elseif pcs_inhib < 20:
  338. $diff = 'easy'
  339. end
  340. gs 'willpower', 'skill', 'self', $diff
  341. if will_cost <= pcs_willpwr:
  342. act 'Record a song with your phone (<<will_cost>> Willpower)':
  343. inhib_exp += rand(1,2)
  344. gs 'willpower', 'pay', 'self'
  345. gs 'stat'
  346. gt 'music_onlinemusic', 'recordSong'
  347. end
  348. if komp = 1 and webcamera = 1 and ml_studio['scarlet-3rd-gen'] = 1:
  349. act 'Record and edit a song (<<will_cost>> Willpower)':
  350. inhib_exp += rand(1,2)
  351. gs 'willpower', 'pay', 'self'
  352. gs 'stat'
  353. gt 'music_onlinemusic', 'recordAndEditSong'
  354. end
  355. end
  356. else
  357. act 'Record a song (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  358. act 'Record and edit a song (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  359. end
  360. else
  361. act 'Record a song with your phone': gt 'music_onlinemusic', 'recordSong'
  362. if komp = 1 and webcamera = 1 and ml_studio['scarlet-3rd-gen'] = 1:
  363. act 'Record and edit a song': gt 'music_onlinemusic', 'recordAndEditSong'
  364. end
  365. end
  366. end
  367. end
  368. end
  369. end
  370. if $ARGS[0] = 'ynursery':
  371. $loc = 'city_mansion_residence_2'
  372. $loc_arg = 'ynursery'
  373. $menu_loc = 'city_mansion_residence_2'
  374. $menu_arg = 'ynursery'
  375. $location_type = 'private'
  376. menu_off = 0
  377. minut += 1
  378. gs 'stat'
  379. *clr & cla
  380. '<center><b><font color="maroon">Nursery</font></b></center>'
  381. if ymanrem[9] = 2:
  382. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/y_nursery.jpg"></center>'
  383. '<center>The neatly designed nursery room, only the best for your children.</center>'
  384. elseif ymanrem[9] = 1:
  385. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_finished.jpg"></center>'
  386. else
  387. '<center><img <<$set_imgh>> src="images/locations/city/suburb/mansion/i_unfinished.jpg"></center>'
  388. end
  389. act 'Leave the room': gt 'city_mansion_residence_1', 'yfoyer'
  390. if ymanrem[9] = 2: gs 'subkid'
  391. end
  392. --- city_mansion_residence_2 ---------------------------------