gad_gpbarn.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. # gad_gpbarn
  2. !2021/05/08
  3. $default_img_path = 'locations/gadukino/'
  4. if $ARGS[0] = '':
  5. gs 'shortgs', 'setloc', 'gad_gpbarn', ''
  6. menu_off = 0
  7. $location_type = 'secluded'
  8. gs 'miroslava_schedule'
  9. '<center><h4>Grandparents'' Barn</h4></center>'
  10. if month >= 4 and month <= 10:
  11. if hour >= 6 and hour < 22:
  12. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/sarai.jpg"></center>'
  13. else
  14. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/sarai_night.jpg"></center>'
  15. end
  16. else
  17. if hour >= 8 and hour < 18:
  18. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/sarai_winter.jpg"></center>'
  19. else
  20. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/sarai_winter_night.jpg"></center>'
  21. end
  22. end
  23. 'Your grandparents'' old barn could hold some valuable items if you spend time searching.'
  24. 'To the left is the new staircase built to convert some of the loft space into a bedroom to afford guests privacy.'
  25. 'The right side of the barn is piled high with various boxes, barrels, and chests of items.'
  26. 'You can store some extra mushrooms and berries here if you don''t want to carry them around all the time.'
  27. 'The left side of the barn has stalls for your grandparents'' horse, cow, and boar.'
  28. clr
  29. gs 'stat'
  30. act 'Go back to the yard': minut += 1 & gt 'gad_gpyard', 'start'
  31. act 'Go to your room': gt 'gad_gpbarn', 'barn_room'
  32. if grandpaQW['chore_fetch_firewood'] = 1:
  33. act 'Gather firewood for Grandpa (0:10)':
  34. *clr & cla
  35. if month >= 4 and month <= 10:
  36. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/firewood.jpg"></center>'
  37. else
  38. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/firewood_winter.jpg"></center>'
  39. end
  40. 'You decide to grab the firewood that your grandfather asked for, loading up as much as you can carry.'
  41. grandpaQW['chore_fetch_firewood'] = 2
  42. minut += 10
  43. gs'stat'
  44. act 'Finish': gt 'gad_gpbarn'
  45. act 'Return back to your grandfather': minut += 2 & gt 'gad_gphouse', 'grandpa'
  46. end
  47. end
  48. gs 'bicycle', 'gad_gpbarn'
  49. 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):
  50. act 'Enter the horses stall': gt 'gad_gpbarn', 'horse'
  51. end
  52. 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):
  53. act 'Enter the cows stall': gt 'gad_gpbarn', 'cow'
  54. end
  55. act 'Enter the boars stall': gt 'gad_gpbarn', 'boar'
  56. act 'Search around in the barn (0:15)': gt 'gad_gpbarn', 'search'
  57. if mc_inventory['vintage_card'] > 0: act 'View your vintage porn cards': $card_loc = 'gad_gpbarn' & card_deck = 0 & gt 'card'
  58. if mc_inventory['card'] > 0: act 'View your new porn cards': $card_loc = 'gad_gpbarn' & card_deck = 1 & gt 'card'
  59. if pcs_horny >= 50: act 'Masturbate':gt 'selfplay', 'start'
  60. !! Serpent is not ready yet, so remarking out til then.
  61. !! if findneck = 1: act 'You hear a scraping noice above you.':gt 'serpent'
  62. end
  63. if $ARGS[0] = 'search':
  64. if npc_qw['A221'] > 0 and grigory_barn ! daystart and hour > 8 and hour < 12: gt 'grigory', 'barn'
  65. *clr & cla
  66. minut += 15
  67. gs 'stat'
  68. if BikeLoc = 0 and rand(0,10) >= 6:
  69. *clr & cla
  70. BikeLoc = 1
  71. gs 'exp_gain', 'observ', 3
  72. gs 'stat'
  73. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/findbike.jpg"></center>'
  74. *nl
  75. '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.'
  76. elseif findbag = 0 and bag = 0 and rand(0,10) >= 7:
  77. *clr & cla
  78. findbag = 1
  79. if findbag = 1: bag = 1
  80. gs 'exp_gain', 'observ', 3
  81. gs 'stat'
  82. '<center><img <<$set_imgh>> src="images/pc/items/gm/purses/5.jpg"></center>'
  83. *nl
  84. '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.'
  85. 'You can use this cool-looking bag as a handbag.'
  86. gm_purses[5] = 1
  87. $currentpursetype = 'gm'
  88. currentpursenumber = 5
  89. elseif mc_inventory['vintage_card'] = 0 and vcard_trash = 0 and rand(0,10) >= 8:
  90. *clr & cla
  91. mc_inventory['vintage_card'] = 1
  92. gs 'exp_gain', 'observ', 3
  93. gs 'stat'
  94. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/vcards.jpg"></center>'
  95. *nl
  96. '"Hmm, what''s this?" You''ve found an unopened deck of vintage adult playing cards still in its original cellophane wrapper.'
  97. elseif findbraclet = 0 and rand(0,10) >= 9:
  98. *clr & cla
  99. findbraclet = 1
  100. gs 'exp_gain', 'observ', 3
  101. gs 'stat'
  102. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/bracelet.jpg"></center>'
  103. *nl
  104. '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.'
  105. elseif findbraclet > 0 and findneck = 0 and rand(0,10) >= 10:
  106. *clr & cla
  107. findneck = 1
  108. gs 'exp_gain', 'observ', 3
  109. gs 'stat'
  110. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/necklace.jpg"></center>'
  111. *nl
  112. if $start_type[1] ! 'nomagic':
  113. '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.'
  114. else
  115. '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.'
  116. end
  117. else
  118. gs 'exp_gain', 'observ', rand(0,1)
  119. gs 'stat'
  120. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/junk_barn.jpg"></center>'
  121. *nl
  122. '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.'
  123. end
  124. act 'Finish': gt 'gad_gpbarn'
  125. end
  126. if $ARGS[0] = 'horse':
  127. *clr & cla
  128. minut += 1
  129. gs 'stat'
  130. '<center><h4>Grandparents'' Barn</h4></center>'
  131. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/horse.jpg"></center>'
  132. 'Grandfather''s trusted workhorse, Desperado.'
  133. act 'Leave': minut += 1 & gt 'gad_gpbarn'
  134. if grandpaQW['chore_feed_horse'] = 1:
  135. act 'Feed the horse (0:30)':
  136. *clr & cla
  137. minut += 30
  138. grandpaQW['chore_feed_horse'] = 2
  139. gs 'exp_gain', 'hndiwrk', rand(1,3)
  140. gs 'stat'
  141. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/feed_horse.jpg"></center>'
  142. '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.'
  143. 'You watch him eat for a little while before moving on.'
  144. act 'Finish': gt 'gad_gpbarn','horse'
  145. act 'Return back to your grandfather': minut += 3 & gt 'gad_gphouse', 'grandpa'
  146. end
  147. end
  148. if grandpaQW['chore_lead_horse_to_field'] = 1:
  149. act 'Lead the horse to the field (1:00)':
  150. *clr & cla
  151. minut += 60
  152. grandpaQW['chore_lead_horse_to_field'] = 2
  153. gs 'exp_gain', 'hndiwrk', rand(1,3)
  154. gs 'stat'
  155. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/horse_field.jpg"></center>'
  156. '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.'
  157. act 'Continue': gt 'gad_field', 'field'
  158. act 'Return back to your grandfather (0:30)': minut += 30 & gt 'gad_gphouse', 'grandpa'
  159. end
  160. end
  161. if grandpaQW['chore_bathe_horse'] = 1:
  162. act 'Lead the horse to the river (0:30)':
  163. *clr & cla
  164. minut += 30
  165. grandpaQW['chore_bathe_horse_prog'] = 1
  166. gs 'exp_gain', 'hndiwrk', rand(1,3)
  167. gs 'stat'
  168. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/horse_field.jpg"></center>'
  169. 'You take Desperado by the bridle and lead him to the river.'
  170. act 'Continue': gt 'gad_beach', 'start'
  171. end
  172. end
  173. if grandpaQW['chore_bathe_horse'] = 2:
  174. act 'Return back to your grandfather': minut += 3 & gt 'gad_gphouse', 'grandpa'
  175. end
  176. if grandpaQW['chore_brush_horse'] = 1:
  177. act 'Groom the horse (1:00)':
  178. *clr & cla
  179. minut += 60
  180. grandpaQW['chore_brush_horse'] = 2
  181. gs 'exp_gain', 'hndiwrk', rand(1,3)
  182. gs 'stat'
  183. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/comb_horse.jpg"></center>'
  184. '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.'
  185. act 'Finish': gt 'gad_gpbarn','horse'
  186. act 'Return back to your grandfather': minut += 3 & gt 'gad_gphouse', 'grandpa'
  187. end
  188. end
  189. end
  190. if $ARGS[0] = 'cow':
  191. *clr & cla
  192. minut += 1
  193. gs 'stat'
  194. '<center><h4>Grandparents'' Barn</h4></center>'
  195. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/cow.jpg"></center>'
  196. *nl
  197. 'Grandma''s favorite animal, the cow, Dawn.'
  198. act 'Leave': minut += 1 & gt 'gad_gpbarn'
  199. if grandmaQW['chore_milk_cow'] = 1:
  200. act 'Milk the cow (0:30)':
  201. *clr & cla
  202. minut += 30
  203. grandmaQW['chore_milk_cow'] = 2
  204. gs 'exp_gain', 'hndiwrk', rand(1,3)
  205. gs 'stat'
  206. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/milk_cow.jpg"></center>'
  207. 'You start milking Dawn, improving each time you do it.'
  208. act 'Finish': gt 'gad_gpbarn', 'cow'
  209. act 'Return back to your grandmother': minut += 3 & gt 'gad_gphouse', 'grandma'
  210. end
  211. end
  212. if grandpaQW['chore_feed_cow'] = 1:
  213. act 'Feed the cow (0:30)':
  214. *clr & cla
  215. minut += 30
  216. grandpaQW['chore_feed_cow'] = 2
  217. gs 'exp_gain', 'hndiwrk', rand(1,3)
  218. gs 'stat'
  219. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/feed_cow.jpg"></center>'
  220. '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.'
  221. act 'Finish': gt 'gad_gpbarn','cow'
  222. act 'Return back to your grandfather': minut += 3 & gt 'gad_gphouse', 'grandpa'
  223. end
  224. end
  225. if grandpaQW['chore_lead_cow_to_field'] = 1 or grandpaQW['chore_herd_cattle'] = 1:
  226. act 'Lead the cow to the field (1:00)':
  227. *clr & cla
  228. minut += 60
  229. gs 'exp_gain', 'hndiwrk', rand(1,3)
  230. gs 'stat'
  231. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/cow_field.jpg"></center>'
  232. if grandpaQW['chore_lead_cow_to_field'] = 1:
  233. 'You lead Dawn to the field, where you let the shepherds take over.'
  234. grandpaQW['chore_lead_cow_to_field'] = 2
  235. end
  236. 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..'
  237. act 'Continue': gt 'gad_field', 'cow'
  238. if grandpaQW['chore_lead_cow_to_field'] = 2: act 'Return back to your grandfather (0:30)': minut += 30 & gt 'gad_gphouse', 'grandpa'
  239. end
  240. end
  241. end
  242. if $ARGS[0] = 'boar':
  243. *clr & cla
  244. minut += 1
  245. gs 'stat'
  246. '<center><h4>Grandparents'' Barn</h4></center>'
  247. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/boar.jpg"></center>'
  248. 'One of your grandparents'' dearest possessions, the boar, Nickle.'
  249. act 'Leave':minut += 1 & gt 'gad_gpbarn'
  250. if grandpaQW['chore_feed_boar'] = 1:
  251. act 'Feed the hog (0:30)':
  252. *clr & cla
  253. minut += 30
  254. grandpaQW['chore_feed_boar'] = 2
  255. gs 'exp_gain', 'hndiwrk', rand(1,3)
  256. gs 'stat'
  257. '<center><img <<$set_imgh>> src="images/locations/gadukino/gp_dacha/feed_boar.jpg"></center>'
  258. '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.'
  259. act 'Finish': gt 'gad_gpbarn','boar'
  260. act 'Return back to your grandfather': minut += 3 & gt 'gad_gphouse', 'grandpa'
  261. end
  262. end
  263. end
  264. if $ARGS[0] = 'barn_room':
  265. $location_type = 'private'
  266. $setloc['StageTitle'] = 'Guest Room'
  267. $setloc['StageImage'] = '<<$default_img_path>>village/gad_room.jpg'
  268. gs 'shortgs', 'setloc', 'gad_gpbarn', $ARGS[0]
  269. gs 'miroslava_schedule'
  270. gs 'themes', 'indoors'
  271. gs 'stat'
  272. gs 'themes', 'indoors'
  273. gs 'stat'
  274. gs 'core_library', 'stage_title'
  275. gs 'music_actions', 'clear_restrictions'
  276. act '<b>Leave and go to the yard</b>':
  277. if $clothingworntype ! 'nude':
  278. minut += 5
  279. gt 'gad_gpyard', 'start'
  280. else
  281. msg'<b><font color = red>You need to get dressed.</font></b>'
  282. gt $loc, $loc_arg
  283. end
  284. end
  285. act '<b>Leave and enter the dacha</b>':
  286. if $clothingworntype ! 'nude':
  287. minut += 5
  288. gt 'gad_gphouse', 'entry'
  289. else
  290. msg'<b><font color = red>You need to get dressed.</font></b>'
  291. gt $loc, $loc_arg
  292. end
  293. end
  294. '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.'
  295. !! 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.
  296. gs 'library_functions', 'set_home_read_acts'
  297. act 'Relax on your bed': gt 'bed', 'start'
  298. if pcs_horny >= 50:
  299. act 'Masturbate':gt 'selfplay', 'start'
  300. end
  301. if mc_inventory['vintage_card'] > 0: act 'View your vintage porn cards': card_deck = 0 & gt 'card'
  302. if mc_inventory['card'] > 0: act 'View your new porn cards': card_deck = 1 & gt 'card'
  303. gs 'music_actions', 'start'
  304. !! Activities End
  305. !! TODO: if winter create task for chopping wood for log stove.
  306. !! act 'light log stove': gt 'gad_gpbarn', 'log_stove'
  307. !! Game functions
  308. 'At the foot of your bed is a small <a href="exec:gt ''wardrobe'', ''start''">chest</a> containing some of your clothes.'
  309. '<table><tr><td valign="top">'
  310. func('alarmclock', 'base_alarmclock_text')
  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 $start_type['loc'] = '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. --- gad_gpbarn ---------------------------------