dachain.qsrc 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. # dachain
  2. $loc = 'dachain'
  3. $locM = 'dachain'
  4. $menu_loc = 'dachain'
  5. gs 'stat'
  6. gs 'themes', 'indoors'
  7. if $args[0] = '':
  8. $location_type = 'private'
  9. $loc_arg = ''
  10. $locM_arg = ''
  11. $menu_arg = ''
  12. menu_off = 0
  13. internetS = internet
  14. killvar '$locclass'
  15. *clr & cla
  16. gs 'stat'
  17. '<center><b><font color="maroon">Cottage</font></b></center>'
  18. if home_owned[3] = 2:
  19. '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom2.jpg"></center>'
  20. else
  21. '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dacharoom1.jpg"></center>'
  22. end
  23. 'Your favorite summer residence.'
  24. *nl
  25. 'There is a <a href="exec:gt ''bed'', ''start''">bed</a> against one wall. Next to it is a <a href="exec:gt ''wardrobe'', ''start''">wardrobe</a> (where you can choose outfits and organize your clothing). On the other side of the bed is a table and a <a href="exec:gt ''mirror'', ''start''">mirror</a>'
  26. *nl
  27. 'You can access your <a href="exec: quick_dress = 1 & gt ''wardrobe'', ''default''">default clothing</a> options directly.'
  28. *nl
  29. 'There is a sofa in front of the fireplace, a kitchen alcove opposite the bed and the door to the bathroom next to that.'
  30. *nl
  31. if komp = 1:'Your <a href="exec: gt ''Komp'',''start''">laptop</a> is on the table.'
  32. *nl
  33. if hour >= 6 and hour <= 20 and etoexhib = 11:'Kopashatsya working in the garden, hmm ... maybe sometime <a href="exec:gt ''etoexhib'', ''pos10''">motivate</a> for them to work quicker and smarter.'
  34. if hour >= 6 and hour <= 20 and etoexhib = 12:'Leave in <a href="exec:gt ''etoexhib'', ''pos11''">garden in lingerie and robe.</a>'
  35. if hour >= 6 and hour <= 20 and etoexhib = 13 and temp ! daystart:'I wonder how to <a href="exec:gt ''etoexhib'', ''pos12''">garden</a>'
  36. !!-------------------------------------------------------------------------------------------------------------------------------------
  37. !!------------------------------------------------------- Music related actions come here ---------------------------------------------
  38. !!-------------------------------------------------------------------------------------------------------------------------------------
  39. !!Storing and picking up the guitar
  40. if ml_guitar['carried'] = 1:
  41. act 'Place the guitar next to your desk':
  42. ml_guitar['carried'] = 0
  43. ml_guitarAtHome = 1
  44. gt $loc
  45. end
  46. elseif ml_guitarAtHome = 1:
  47. act 'Pick up the guitar':
  48. ml_guitar['carried'] = 1
  49. ml_guitarAtHome = 0
  50. gt $loc
  51. end
  52. end
  53. !!Guitar practice
  54. 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']:
  55. act 'Practice guitar (0:30)': gt 'music_bedroomPractice', 'guitar'
  56. end
  57. if ml_online['account'] = 0 and internet > 0:
  58. act 'Set up an online music account (0:30)': gt 'music_onlinemusic', 'setupAccount'
  59. end
  60. !! Streaming music
  61. if ml_online['account'] = 1 and internet > 0 and ml_performance['performed_minutes'] <= ml_performance['max_perform_minutes']:
  62. if pcs_inhib < 30:
  63. if pcs_inhib < 10:
  64. $diff = 'hard'
  65. elseif pcs_inhib < 20:
  66. $diff = 'medium'
  67. else
  68. $diff = 'easy'
  69. end
  70. gs 'willpower', 'skill', 'self', $diff
  71. will_cost = (will_cost * 3) - (pcs_perform)
  72. if will_cost <= pcs_willpwr:
  73. act 'Live stream (1:00) (<<will_cost>> Willpower)':
  74. inhib_exp += rand(1,3)
  75. gs 'willpower', 'pay', 'self'
  76. gs 'stat'
  77. gt 'music_onlinemusic', 'liveStream'
  78. end
  79. else
  80. act 'Live stream (1:00) (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  81. end
  82. else
  83. act 'Live stream (1:00)': gt 'music_onlinemusic', 'liveStream'
  84. end
  85. end
  86. !! Recording music
  87. if ml_performance['performed_minutes'] <= ml_performance['max_perform_minutes']:
  88. if pcs_inhib < 20:
  89. if pcs_inhib < 10:
  90. $diff = 'medium'
  91. elseif pcs_inhib < 20:
  92. $diff = 'easy'
  93. end
  94. gs 'willpower', 'skill', 'self', $diff
  95. if will_cost <= pcs_willpwr:
  96. act 'Record a song with your phone (0:30) (<<will_cost>> Willpower)':
  97. inhib_exp += rand(1,2)
  98. gs 'willpower', 'pay', 'self'
  99. gs 'stat'
  100. gt 'music_onlinemusic', 'recordSong'
  101. end
  102. if komp = 1 and webcamera = 1 and ml_studio['scarlet-3rd-gen'] = 1:
  103. act 'Record and edit a song (2:00) (<<will_cost>> Willpower)':
  104. inhib_exp += rand(1,2)
  105. gs 'willpower', 'pay', 'self'
  106. gs 'stat'
  107. gt 'music_onlinemusic', 'recordAndEditSong'
  108. end
  109. end
  110. else
  111. act 'Record a song (0:30) (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  112. act 'Record and edit a song (1:30) (<font color="red"><<will_cost>> Willpower</font>)': '<br><font color="red">You don''t have enough willpower to use this action.</font>'
  113. end
  114. else
  115. act 'Record a song with your phone (0:30)': gt 'music_onlinemusic', 'recordSong'
  116. if komp = 1 and webcamera = 1 and ml_studio['scarlet-3rd-gen'] = 1:
  117. act 'Record and edit a song (1:30)': gt 'music_onlinemusic', 'recordAndEditSong'
  118. end
  119. end
  120. end
  121. !!Uploading recorded music if there are any not uploaded yet
  122. if ml_uploadablemusic > 0 and internet > 0 and ml_online['account'] = 1:
  123. if pcs_inhib < 30:
  124. if pcs_inhib < 10:
  125. $diff = 'hard'
  126. elseif pcs_inhib < 20:
  127. $diff = 'medium'
  128. else
  129. $diff = 'easy'
  130. end
  131. gs 'willpower', 'skill', 'self', $diff
  132. will_cost = (will_cost * 2) - (pcs_perform)
  133. if will_cost <= pcs_willpwr:
  134. act 'Upload music (<<will_cost>> Willpower)': gt 'music_onlinemusic', 'uploadmusic'
  135. else
  136. 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>'
  137. end
  138. end
  139. act 'Upload music': gt 'music_onlinemusic', 'uploadallmusic'
  140. end
  141. act 'Lie on the couch': gt 'divan', 'start'
  142. act 'Go to the kitchen alcove': gt 'dachain', 'dachakit'
  143. act 'Go to the Bathroom': gt 'dachain', 'dachavann'
  144. act 'Get in the bed': gt 'bed', 'start'
  145. act 'Go outside':
  146. if $clothingworntype ! 'nude':
  147. minut += 5 & gt 'dachamy'
  148. else
  149. msg'<b><font color = red>You can''t leave the house naked! You need to get dressed first.</font></b>'
  150. gt 'dachain'
  151. end
  152. end
  153. end
  154. if $args[0] = 'dachakit':
  155. $location_type = 'private'
  156. $loc_arg = 'dachakit'
  157. $locM_arg = 'dachakit'
  158. $menu_arg = 'dachakit'
  159. menu_off = 0
  160. $locclass = 'kitr'
  161. *clr & cla
  162. gs 'stat'
  163. '<center><b><font color="maroon">Cottage Kitchen</font></b></center>'
  164. if home_owned[3] = 2:
  165. '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dachakit2.jpg"></center>'
  166. else
  167. '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dachakit1.jpg"></center>'
  168. end
  169. if cltarelka > 0:
  170. '<b><<cltarelka>></b> clean plates are stored in the cupboard.'
  171. else
  172. '<b><font color="red">You have no clean dishes left.</font></b>'
  173. end
  174. if dirttarelka > 0:'<b><<dirttarelka>></b> dirty dishes are lying in the sink. <a href="exec:dynamic $dirtarm">Wash the dishes</a>.'
  175. if fairy > 0:
  176. 'Next to the sink is dishwashing liquid, enough for <b><<fairy>></b> uses.'
  177. else
  178. '<b><font color="red">You have nothing to wash dishes with, you need to buy dishwashing liquid.</font></b>'
  179. end
  180. if eda > 0:
  181. if cltarelka = 0 or edahot > 0:$edagot = ''
  182. if cltarelka > 0 and edahot = 0:$edagot = '<a href="exec:dynamic $edagotd">Cook meal (0:30)</a>'
  183. 'In the refrigerator there''s food, enough for <b><<eda>></b> servings. <<$edagot>>'
  184. end
  185. if edaD = 0 and eda = 0:'<b><font color="red">The refrigerator is empty, you have nothing to eat.</font></b>'
  186. if edahot > 0: act 'A cooked meal is on the table (0:30).': dynamic $edahotd
  187. if husband > 0 and husbandrink ! 10:
  188. if hour = 7 or hour = 17:'<a href="exec:gt ''husb'', ''start''">Your husband is eating at the table.</a>'
  189. end
  190. if pranik > 0:
  191. if pranik = 1:
  192. 'You only have one more portion of tea biscuits.'
  193. else
  194. 'You have enough tea biscuits for <b><<pranik>></b> more snacks.'
  195. end
  196. dynamic $pranik
  197. end
  198. dynamic $edaD
  199. dynamic $fatdel
  200. dynamic $driwater
  201. dynamic $lekarstvo
  202. dynamic $vitamin
  203. act 'Go into the main room': gt 'dachain', ''
  204. act 'Go to the Bathroom': gt 'dachain', 'dachavann'
  205. end
  206. if $args[0] = 'dachavann':
  207. $loc_arg = 'dachavann'
  208. $locM_arg = 'dachavann'
  209. $menu_arg = 'dachavann'
  210. menu_off = 0
  211. $location_type = 'bathroom'
  212. killvar '$locclass'
  213. *clr & cla
  214. gs 'stat'
  215. '<center><b><font color="maroon">Cottage Bathroom</font></b></center>'
  216. if home_owned[3] = 2:
  217. '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dachavan2.jpg"></center>'
  218. else
  219. '<center><img <<$set_imgh>> src="images/locations/suburban/cottage/dachavan1.jpg"></center>'
  220. end
  221. gs 'din_van', 'private'
  222. act 'Go to the kitchen alcove': gt 'dachain', 'dachakit'
  223. act 'Go into the main room': gt 'dachain', ''
  224. end
  225. --- dachain ---------------------------------