gadsarai.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. # gadsarai
  2. !2021/05/08
  3. $default_img_path = 'locations/gadukino/'
  4. if $ARGS[0] = '':
  5. $loc_arg = ''
  6. $loc = 'gadsarai'
  7. $menu_loc = 'gadsarai'
  8. $menu_arg = ''
  9. menu_off = 0
  10. $location_type = 'secluded'
  11. '<center><h4>Grandparents'' Barn</h4></center>'
  12. if month >= 4 and month <= 10:
  13. if hour >= 6 and hour < 22:
  14. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/sarai.jpg"></center>'
  15. else
  16. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/sarai_night.jpg"></center>'
  17. end
  18. else
  19. if hour >= 8 and hour < 18:
  20. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/sarai_winter.jpg"></center>'
  21. else
  22. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/sarai_winter_night.jpg"></center>'
  23. end
  24. end
  25. 'Your grandparents'' old barn could hold some valuable items if you spend time searching.'
  26. 'To the left is the new staircase built to convert some of the loft space into a bedroom to afford guests privacy.'
  27. 'The right side of the barn is piled high with various boxes, barrels, and chests of items.'
  28. 'You can store some extra mushrooms and berries here if you don''t want to carry them around all the time.'
  29. 'The left side of the barn has stalls for your grandparents'' horse, cow, and boar.'
  30. clr
  31. gs 'stat'
  32. act 'Go back to the yard':minut += 1 & gt 'gaddvor'
  33. act 'Go to your room': gt 'gadsarai', 'barn_room'
  34. if grandpaQW['chore_fetch_firewood'] = 1:
  35. act 'Gather firewood for Grandpa (0:10)':
  36. *clr & cla
  37. if month >= 4 and month <= 10:
  38. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/firewood.jpg"></center>'
  39. else
  40. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/firewood_winter.jpg"></center>'
  41. end
  42. 'You decide to grab the firewood that your grandfather asked for, loading up as much as you can carry.'
  43. grandpaQW['chore_fetch_firewood'] = 2
  44. minut += 10
  45. gs'stat'
  46. act 'Finish':gt 'gadsarai'
  47. act 'Return back to your grandfather': minut += 2 & gt 'gadhouse', 'grandpa'
  48. end
  49. end
  50. gs 'bicycle', 'gadsarai'
  51. if (month < 4 or month > 10) or (hour < 9 or hour > 20) or (grandpaQW['chore_feed_horse'] = 1 or grandpaQW['chore_brush_horse'] = 1 or grandpaQW['chore_lead_horse_to_field'] = 1 or grandpaQW['chore_bathe_horse'] = 1):
  52. act 'Enter the horses stall': gt 'gadsarai', 'horse'
  53. end
  54. if (month < 4 or month > 10) or (hour < 9 or hour > 20) or (grandpaQW['chore_feed_cow'] = 1 or grandmaQW['chore_milk_cow'] or grandpaQW['chore_lead_cow_to_field'] = 1 or grandpaQW['chore_herd_cattle'] = 1):
  55. act 'Enter the cows stall': gt 'gadsarai', 'cow'
  56. end
  57. act 'Enter the boars stall': gt 'gadsarai', 'boar'
  58. act 'Search around in the barn (0:15)': gt 'gadsarai', 'search'
  59. if vcard > 0: act 'View your vintage porn cards': $card_loc = 'gadsarai' & card_deck = 0 & gt 'card'
  60. if card > 0: act 'View your new porn cards': $card_loc = 'gadsarai' & card_deck = 1 & gt 'card'
  61. if pcs_horny >= 50: act 'Masturbate':gt 'selfplay', 'start'
  62. !! Serpent is not ready yet, so remarking out til then.
  63. !! if findneck = 1: act 'You hear a scraping noice above you.':gt 'serpent'
  64. end
  65. if $ARGS[0] = 'search':
  66. if npc_qw['A221'] > 0 and grigory_barn ! daystart and hour > 8 and hour < 12: gt 'grigory', 'barn'
  67. *clr & cla
  68. minut += 15
  69. gs 'stat'
  70. if BikeLoc = 0 and rand(0,10) >= 6:
  71. *clr & cla
  72. BikeLoc = 1
  73. gs 'exp_gain', 'observ', 3
  74. gs 'stat'
  75. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/findbike.jpg"></center>'
  76. *nl
  77. 'You find an old bicycle in the far corner of the barn. It''s in surprisingly good condition. You pull it out of the barn and clean it up.'
  78. elseif findbag = 0 and bag = 0 and rand(0,10) >= 7:
  79. *clr & cla
  80. findbag = 1
  81. if findbag = 1: bag = 1
  82. gs 'exp_gain', 'observ', 3
  83. gs 'stat'
  84. '<center><img <<$set_imgh>> src="images/pc/items/gm/purses/5.jpg"></center>'
  85. *nl
  86. 'In a far corner of the barn, you find a hessian sack filled with mostly junk, but at the bottom, you find a good-quality messenger bag.'
  87. 'You can use this cool-looking bag as a handbag.'
  88. gm_purses[5] = 1
  89. $currentpursetype = 'gm'
  90. currentpursenumber = 5
  91. elseif vcard = 0 and vcard_trash = 0 and rand(0,10) >= 8:
  92. *clr & cla
  93. vcard = 1
  94. gs 'exp_gain', 'observ', 3
  95. gs 'stat'
  96. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/vcards.jpg"></center>'
  97. *nl
  98. '"Hmm, what''s this?" You''ve found an unopened deck of vintage adult playing cards still in its original cellophane wrapper.'
  99. elseif findbraclet = 0 and rand(0,10) >= 9:
  100. *clr & cla
  101. findbraclet = 1
  102. gs 'exp_gain', 'observ', 3
  103. gs 'stat'
  104. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/bracelet.jpg"></center>'
  105. *nl
  106. 'While looking through the barn, you spot a metal glint under a wood pile. Upon closer inspection, you see a silver bracelet crafted into a snake''s likeness. Strange, but fantastic that you would find something this valuable in the barn.'
  107. elseif findbraclet > 0 and findneck = 0 and rand(0,10) >= 10:
  108. *clr & cla
  109. findneck = 1
  110. gs 'exp_gain', 'observ', 3
  111. gs 'stat'
  112. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/necklace.jpg"></center>'
  113. *nl
  114. if $start_type[1] ! 'nomagic':
  115. 'While looking through the barn, your foot goes through a rotten floorboard. You suddenly feel the presence of something magical under the floor. You get on your belly and look through the hole in the floor. You find a small box made of black wood. You pick up the box and see it''s covered in strange writing and glyphs that look like serpents. A feeling of power is coming from within the box. You lift the box''s lid and see a black metal necklace that looks like a coiled snake with ruby eyes. You feel the power coming from the necklace, but it doesn''t feel like any power you have ever felt.'
  116. else
  117. 'While looking through the barn, your foot goes through a rotten floorboard and gets stuck. As you work your foot free, you glimpse something underneath the floor - a box or something. You get on your belly and look through the hole in the floor. You find a small box made of black wood. You pick up the box and see it''s covered in strange writing and glyphs that look like serpents. The exotic look of the box gives you gooseflesh, and you find yourself holding your breath as you prepare to open the box. You lift the box''s lid and see a black metal necklace that looks like a coiled snake with ruby eyes. You inspect the necklace, watching the light sparkle as it is reflected by the facets on the deep red rubies. You cannot begin to guess what this necklace must be worth.'
  118. end
  119. else
  120. gs 'exp_gain', 'observ', rand(0,1)
  121. gs 'stat'
  122. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/junk_barn.jpg"></center>'
  123. *nl
  124. 'In the barn, you find many mouldy magazines, rusty tools and equipment, toys, and dusty, yellowed books. The entire barn reeks of mould and decay.'
  125. end
  126. act 'Finish':gt 'gadsarai'
  127. end
  128. if $ARGS[0] = 'horse':
  129. *clr & cla
  130. minut += 1
  131. gs 'stat'
  132. '<center><h4>Grandparents'' Barn</h4></center>'
  133. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse.jpg"></center>'
  134. 'Grandfather''s trusted workhorse, Desperado.'
  135. act 'Leave':minut += 1 & gt 'gadsarai'
  136. if grandpaQW['chore_feed_horse'] = 1:
  137. act 'Feed the horse (0:30)':
  138. *clr & cla
  139. minut += 30
  140. grandpaQW['chore_feed_horse'] = 2
  141. gs 'exp_gain', 'hndiwrk', rand(1,3)
  142. gs 'stat'
  143. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/feed_horse.jpg"></center>'
  144. 'You grab a sack of grain and fill Desperado''s feed bucket. Then, you hang the bucket from his stall and gently pat his nose as he begins to eat.'
  145. 'You watch him eat for a little while before moving on.'
  146. act 'Finish':gt 'gadsarai','horse'
  147. act 'Return back to your grandfather': minut += 3 & gt 'gadhouse', 'grandpa'
  148. end
  149. end
  150. if grandpaQW['chore_lead_horse_to_field'] = 1:
  151. act 'Lead the horse to the field (1:00)':
  152. *clr & cla
  153. minut += 60
  154. grandpaQW['chore_lead_horse_to_field'] = 2
  155. gs 'exp_gain', 'hndiwrk', rand(1,3)
  156. gs 'stat'
  157. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse_field.jpg"></center>'
  158. 'You take Desperado by the bridle and lead him to the field. You let him free in the paddock area and watch him run about before moving on.'
  159. act 'Continue':gt'gadfield','field'
  160. act 'Return back to your grandfather (0:30)': minut += 30 & gt 'gadhouse', 'grandpa'
  161. end
  162. end
  163. if grandpaQW['chore_bathe_horse'] = 1:
  164. act 'Lead the horse to the river (0:30)':
  165. *clr & cla
  166. minut += 30
  167. grandpaQW['chore_bathe_horse_prog'] = 1
  168. gs 'exp_gain', 'hndiwrk', rand(1,3)
  169. gs 'stat'
  170. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse_field.jpg"></center>'
  171. 'You take Desperado by the bridle and lead him to the river.'
  172. act 'Continue':gt'gadriver', 'gadbitch'
  173. end
  174. end
  175. if grandpaQW['chore_bathe_horse'] = 2:
  176. act 'Return back to your grandfather': minut += 3 & gt 'gadhouse', 'grandpa'
  177. end
  178. if grandpaQW['chore_brush_horse'] = 1:
  179. act 'Groom the horse (1:00)':
  180. *clr & cla
  181. minut += 60
  182. grandpaQW['chore_brush_horse'] = 2
  183. gs 'exp_gain', 'hndiwrk', rand(1,3)
  184. gs 'stat'
  185. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/comb_horse.jpg"></center>'
  186. 'You spend about an hour cleaning and brushing Desperado, scrubbing his coat and brushing his mane and tail. Finally, you are satisfied with the result - he looks as clean and healthy as ever.'
  187. act 'Finish':gt 'gadsarai','horse'
  188. act 'Return back to your grandfather': minut += 3 & gt 'gadhouse', 'grandpa'
  189. end
  190. end
  191. end
  192. if $ARGS[0] = 'cow':
  193. *clr & cla
  194. minut += 1
  195. gs 'stat'
  196. '<center><h4>Grandparents'' Barn</h4></center>'
  197. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow.jpg"></center>'
  198. *nl
  199. 'Grandma''s favorite animal, the cow, Dawn.'
  200. act 'Leave':minut += 1 & gt 'gadsarai'
  201. if grandmaQW['chore_milk_cow'] = 1:
  202. act 'Milk the cow (0:30)':
  203. *clr & cla
  204. minut += 30
  205. grandmaQW['chore_milk_cow'] = 2
  206. gs 'exp_gain', 'hndiwrk', rand(1,3)
  207. gs 'stat'
  208. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/milk_cow.jpg"></center>'
  209. 'You start milking Dawn, improving each time you do it.'
  210. act 'Finish':gt 'gadsarai','cow'
  211. act 'Return back to your grandmother': minut += 3 & gt 'gadhouse', 'grandma'
  212. end
  213. end
  214. if grandpaQW['chore_feed_cow'] = 1:
  215. act 'Feed the cow (0:30)':
  216. *clr & cla
  217. minut += 30
  218. grandpaQW['chore_feed_cow'] = 2
  219. gs 'exp_gain', 'hndiwrk', rand(1,3)
  220. gs 'stat'
  221. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/feed_cow.jpg"></center>'
  222. 'Dawn is excited about feeding time, shaking her head and doing little cow tippy-taps with her feet. You dump some hay in her trough and watch as she digs in.'
  223. act 'Finish':gt 'gadsarai','cow'
  224. act 'Return back to your grandfather': minut += 3 & gt 'gadhouse', 'grandpa'
  225. end
  226. end
  227. if grandpaQW['chore_lead_cow_to_field'] = 1 or grandpaQW['chore_herd_cattle'] = 1:
  228. act 'Lead the cow to the field (1:00)':
  229. *clr & cla
  230. minut += 60
  231. gs 'exp_gain', 'hndiwrk', rand(1,3)
  232. gs 'stat'
  233. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_field.jpg"></center>'
  234. if grandpaQW['chore_lead_cow_to_field'] = 1:
  235. 'You lead Dawn to the field, where you let the shepherds take over.'
  236. grandpaQW['chore_lead_cow_to_field'] = 2
  237. end
  238. if grandpaQW['chore_herd_cattle'] = 1:'You lead Dawn to the field, where your grandfather awaits you. It''s his turn to keep an eye on the cows..'
  239. act 'Continue':gt'gadfield','cow'
  240. if grandpaQW['chore_lead_cow_to_field'] = 2: act 'Return back to your grandfather (0:30)': minut += 30 & gt 'gadhouse', 'grandpa'
  241. end
  242. end
  243. end
  244. if $ARGS[0] = 'boar':
  245. *clr & cla
  246. minut += 1
  247. gs 'stat'
  248. '<center><h4>Grandparents'' Barn</h4></center>'
  249. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/boar.jpg"></center>'
  250. 'One of your grandparents'' dearest possessions, the boar, Nickle.'
  251. act 'Leave':minut += 1 & gt 'gadsarai'
  252. if grandpaQW['chore_feed_boar'] = 1:
  253. act 'Feed the hog (0:30)':
  254. *clr & cla
  255. minut += 30
  256. grandpaQW['chore_feed_boar'] = 2
  257. gs 'exp_gain', 'hndiwrk', rand(1,3)
  258. gs 'stat'
  259. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/feed_boar.jpg"></center>'
  260. 'You grab the feed bag and fill Nickle''s trough. You stand there and watch for a few minutes as he eats like a... well, like a pig.'
  261. act 'Finish':gt 'gadsarai','boar'
  262. act 'Return back to your grandfather': minut += 3 & gt 'gadhouse', 'grandpa'
  263. end
  264. end
  265. end
  266. if $ARGS[0] = 'barn_room':
  267. $location_type = 'private'
  268. $setloc['StageTitle'] = 'Guest Room'
  269. $setloc['StageImage'] = '<<$default_img_path>>village/gad_room.jpg'
  270. gs 'shortgs', 'setloc', 'gadsarai', $ARGS[0]
  271. gs 'themes', 'indoors'
  272. gs 'stat'
  273. gs 'themes', 'indoors'
  274. gs 'stat'
  275. gs 'core_library', 'stage_title'
  276. gs 'music_actions', 'clear_restrictions'
  277. act '<b>Leave and go to the yard</b>':
  278. if $clothingworntype ! 'nude':
  279. minut += 5
  280. gt 'gaddvor'
  281. else
  282. msg'<b><font color = red>You need to get dressed.</font></b>'
  283. gt $loc, $loc_arg
  284. end
  285. end
  286. act '<b>Leave and enter the dacha</b>':
  287. if $clothingworntype ! 'nude':
  288. minut += 5
  289. gt 'gadhouse', 'start'
  290. else
  291. msg'<b><font color = red>You need to get dressed.</font></b>'
  292. gt $loc, $loc_arg
  293. end
  294. end
  295. 'A small rustic loft space converted from your grandparents barn. A pair of sleeping pallets of dubious comfort is laid out for guests. The room walls are whitewashed with some clothes lines to dry your clothes with some farming tools. It''s not much to look at but it''s somewhere you can call home and have some privacy.'
  296. !! Activities - basic only. There is no internet so laptop is consigned to grandparents only. Room is too small for exercise, use yard or forest meadow.
  297. gs 'events', 'read'
  298. act 'Relax on your bed': gt 'bed', 'start'
  299. if pcs_horny >= 50:
  300. act 'Masturbate':gt 'selfplay', 'start'
  301. end
  302. if vcard > 0: act 'View your vintage porn cards':card_deck = 0 & gt 'card'
  303. if card > 0: act 'View your new porn cards':card_deck = 1 & gt 'card'
  304. gs 'music_actions', 'start'
  305. !! Activities End
  306. !! TODO: if winter create task for chopping wood for log stove.
  307. !! act 'light log stove': gt 'gadsarai', 'log_stove'
  308. !! Game functions
  309. 'At the foot of your bed is a small <a href="exec:gt ''wardrobe'', ''start''">chest</a> containing some of your clothes.'
  310. '<table><tr><td valign="top">Your <a href="exec:gt ''alarmclock'', ''start''">alarm clock</a> is set to <<func(''alarmclock'', ''alarm_display'', alarmVars[''timerH''], alarmVars[''timerM''])>> during the week and <<func(''alarmclock'', ''alarm_display'', alarmVars[''timerEndH''], alarmVars[''timerEndM''])>> during the weekend. It is currently turned ' + iif(alarmVars['alarmOn'] = 0, '<a href="exec: alarmVars[''alarmOn''] = 1 & gt $loc, $loc_arg">OFF</a>.', '<a href="exec: alarmVars[''alarmOn''] = 0 & gt $loc, $loc_arg">ON</a>.')
  311. if mc_inventory['contraceptive_pill'] > 0 and mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0:
  312. 'Your <a href="exec:gt ''stol'', ''bc''">birth control</a> are hidden a small nook, as are your <a href="exec:gt ''stol'', ''bc''">condoms</a>.'
  313. elseif mc_inventory['contraceptive_pill'] > 0:
  314. 'Your <a href="exec:gt ''stol'', ''bc''">birth control</a> are hidden in a small box under your pallet.'
  315. elseif mc_inventory['equipped_condoms'] + mc_inventory['normal_condoms'] + mc_inventory['sabotaged_condoms'] > 0:
  316. 'Your <a href="exec:gt ''stol'', ''bc''">condoms</a> are hidden behind a loose brick.'
  317. end
  318. if mid($start_type,1,2) = 'sg' and SchoolAtestat = 0 and week = 6 and hour > 4 and hour < 9 and detention_set = 1 and detention_warning ! daystart:
  319. detention_warning = daystart
  320. msg 'You have detention this morning and must be at school before 09:00.'
  321. end
  322. if mc_inventory['tech_computer'] = 1: 'Your <a href="exec: gt ''Komp'',''start''">computer</a> is on your desk.'
  323. end
  324. if $ARGS[0] = 'log_stove':
  325. !! simple iron stove that requires wood logs. Make it a task to fill and light in winter.
  326. end
  327. --- gadsarai ---------------------------------