gad_field.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. # gad_field
  2. !2021/05/05
  3. !2024/05/05 - Mira schedule introduced.
  4. !locat['A60'] = Mira''s location. See 'miroslava_schedule'
  5. if $ARGS[0] = 'field':
  6. gs 'shortgs', 'setloc', 'gad_field', 'field'
  7. $location_type = 'secluded'
  8. menu_off = 0
  9. gs 'miroslava_schedule'
  10. gs 'gadukino_event', 'sound'
  11. gs'stat'
  12. '<center><H4>Field</H4></center>'
  13. if month >= 4 and month <= 10:
  14. if hour >= 6 and hour < 22:
  15. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield.jpg"></center>'
  16. else
  17. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield_night.jpg"></center>'
  18. end
  19. if hour >= 9 and hour <= 17 and npc_qw['A221'] = 0: gs 'grigory', 'meet' & exit
  20. else
  21. if hour >= 8 and hour < 18:
  22. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield_winter.jpg"></center>'
  23. else
  24. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield_winter_night.jpg"></center>'
  25. end
  26. end
  27. 'A field outside the village.'
  28. if grigory_flower > 0 and grigory_flower < 10: gt 'grigory', 'flower5'
  29. if flowerday ! daystart and grigory_flower = 10: gt 'grigory', 'flower6'
  30. if flowerday ! daystart and grigory_flower > 10: gt 'grigory', 'flower8'
  31. if hour >= 9 and hour <= 19 and week < 6:'Grandfather''s horse <a href="exec: gt ''gad_field'',''horse''">Desperado</a> is grazing the field.'
  32. if hour >= 9 and hour <= 19 and grandpaQW['chore_herd_cattle'] = 0:'You notice a large <a href="exec: gt ''gad_field'',''cow''">herd of cows</a> in the middle of the field.'
  33. if hour >= 6 and hour <= 20 and grandpaQW['chore_herd_cattle'] = 1:'You see the <a href="exec: gt ''gad_field'',''cow''">herd of cows</a> out in the middle of the field.'
  34. if hour >= 7 and hour <= 20 and grandpaQW['chore_bale_hay'] = 1:'You see a crowd of people working on the field.'
  35. act 'Head back to the road (0:10)':minut += 10 & gt 'gad_road', 'start'
  36. if hour >= 7 and hour <= 13 and grandpaQW['chore_bale_hay'] = 1:
  37. act 'Spend the day helping to bale hay (6:00)':
  38. gs 'food', 'm_meal'
  39. *clr & cla
  40. menu_off = 1
  41. if npc_rel['A60'] >= 15 and npc_known['A60'] = 1:
  42. npc_rel['A60'] += 1
  43. '<center><img <<$set_imgh>> src="images/characters/gadukino/mira/haying_time_mira.jpg"></center>'
  44. 'Most of the village has shown up to help out with the hay. Mira is there too, and you both partake in the activities. You enjoy yourself, and working alongside Mira makes the day fly by. By the end of the day, you are both exhausted but smiling.'
  45. else
  46. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/haying_time.jpg"></center>'
  47. 'Almost all the villagers have shown up to help with the fresh-cut hay. You spend most of the day working hard and sweating as you help gather the fresh-cut hay. It is difficult, but you get a great workout and end the day feeling exhausted but immensely satisfied.'
  48. end
  49. gs 'exercise', 'tier1', 60, 'stren', 'vital'
  50. minut += 300
  51. if sunWeather = 1:pcs_tan += 1
  52. grandpaQW['chore_bale_hay'] = 2
  53. gs 'exp_gain', 'hndiwrk', rand(0,8)
  54. gs 'stat'
  55. act 'Continue': gt 'gad_field', 'field'
  56. act 'Return back to your grandfather (0:30)': minut += 30 & gt 'gad_gphouse', 'grandpa'
  57. end
  58. end
  59. end
  60. if $ARGS[0] = 'horse':
  61. gs 'shortgs', 'setloc', 'gad_field', 'horse'
  62. $location_type = 'public_outdoors'
  63. menu_off = 0
  64. gs 'gadukino_event', 'sound'
  65. gs'stat'
  66. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse.jpg"></center>'
  67. 'Your grandfather''s horse, Desperado.'
  68. act 'Go back to the field': gt 'gad_field', 'field'
  69. if hour = 19:
  70. act 'Lead the horse home (1:00)':
  71. *clr & cla
  72. menu_off = 1
  73. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse_field.jpg"></center>'
  74. 'You spot your grandfather''s horse wandering loose in the field and decide to help by taking Desperado home. Reaching for the harness, you start leading Desperado towards the village.'
  75. minut += 60
  76. grandmaQW['help_amount'] += rand(0,1)
  77. gs 'exp_gain', 'hndiwrk', rand(0,3)
  78. gs 'stat'
  79. act 'Continue': gt 'gad_gpbarn', ''
  80. end
  81. end
  82. end
  83. killvar '$downlibrary'
  84. $downlibrary['read'] = {
  85. *clr & cla
  86. menu_off = 1
  87. if blizoruk = 500 or glassqw = 1:
  88. glassqw = 1
  89. msg ' The text blurs across the page. It seems you have poor eyesight. Maybe you should visit an ophthalmologist?'
  90. gt $loc, $loc_arg
  91. end
  92. if pcs_nerd > 0:
  93. lastread = totminut
  94. lastreadday = daystart
  95. pcs_nerd += 1
  96. end
  97. minut += 60
  98. blizoruk += 1
  99. }
  100. if $ARGS[0] = 'cow':
  101. gs 'shortgs', 'setloc', 'gad_field', 'cow'
  102. $location_type = 'secluded'
  103. menu_off = 0
  104. gs 'miroslava_schedule'
  105. gs 'gadukino_event', 'sound'
  106. gs'stat'
  107. temp = rand(1,5)
  108. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow.jpg"></center>'
  109. 'The cattle herd is standing in the middle of the field. Some cows are munching on grass, and others just stare idly around.'
  110. if locat['A60'] = 70: '<a href="exec: gt ''miroslava'', ''Start''">Mira</a> is standing next to you.'
  111. if grandpaQW['chore_herd_cattle'] = 0: act 'Leave them be': gt 'gad_field', 'field'
  112. if hour = 19 and grandpaQW['chore_herd_cattle'] = 0:
  113. act 'Lead the cows home (1:00)':
  114. *clr & cla
  115. menu_off = 1
  116. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_field.jpg"></center>'
  117. 'Seeing the cow herd on the field, you decide to help your grandfather bring the cows home...'
  118. minut += 60
  119. grandmaQW['help_amount'] += 1
  120. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  121. gs 'stat'
  122. act 'Continue': gt 'gadukino'
  123. end
  124. end
  125. if grandpaQW['chore_herd_cattle'] = 1:
  126. if hour < 10:
  127. act 'Wait until the herd is gathered':
  128. *clr & cla
  129. menu_off = 1
  130. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_wait.jpg"></center>'
  131. if grandpaQW['chore_herd_cattle_experience'] = 0: 'Some time flies by while waiting for the locals to finish bringing their cows to the field.'
  132. if grandpaQW['chore_herd_cattle_experience'] = 1: 'Some time flies by while waiting for the locals and their children to finish bringing their cows to the field.'
  133. if hour >= 9:minut += 20
  134. if hour < 9:minut += 60
  135. gs 'exp_gain', 'hndiwrk', rand(0, 4)
  136. gs 'stat'
  137. act 'Continue': gt 'gad_field', 'cow'
  138. end
  139. end
  140. if hour >= 10 and hour < 13:
  141. act 'Herd cows with your grandfather (1:00)':
  142. *clr & cla
  143. menu_off = 1
  144. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  145. 'You spend an hour herding the cows, watching for stragglers and driving them back to the herd. Then, instead of letting your grandfather do all the work, you roll up your sleeves and try to do most of the work yourself.'
  146. minut += 60
  147. if temper >= 25 and sunWeather = 1:
  148. pcs_hydra -= 12
  149. pcs_stam -= 8
  150. gs 'sweat', 'add', 10
  151. else
  152. pcs_hydra -= 6
  153. gs 'sweat', 'add', 5
  154. pcs_stam -= 5
  155. end
  156. grandpaQW['chore_herd_cattle_experience'] = 1
  157. grandmaQW['help_amount'] += rand(0, 1) / 3
  158. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  159. gs 'stat'
  160. act 'Continue': gt 'gad_field', 'cow'
  161. end
  162. gs 'gad_field', 'set_nomira_acts', 1
  163. end
  164. if hour >= 13 and hour < 16:
  165. *clr & cla
  166. menu_off = 1
  167. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go.jpg"></center>'
  168. 'Looking at his watch, Grandpa turns to you and says, "It''s about lunchtime, which means it''s time to take the herd to the watering hole." So you begin to gather the cows and lead them to the river.'
  169. if temper >= 25 and sunWeather = 1:
  170. pcs_hydra -= 12
  171. pcs_stam -= 8
  172. gs 'sweat', 'add', 10
  173. else
  174. pcs_hydra -= 6
  175. gs 'sweat', 'add', 5
  176. pcs_stam -= 5
  177. end
  178. grandmaQW['help_amount'] += 1
  179. minut += 60
  180. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  181. gs 'stat'
  182. act 'Herd the cows nearer to the river (0:15)': minut += 15 & gt 'gad_field', 'cow2'
  183. end
  184. end
  185. end
  186. if grandpaQW['chore_herd_cattle'] = 1 and locat['A60'] = 70 and locat['A60_prev'] ! 70:
  187. *clr & cla
  188. menu_off = 1
  189. '<center><img <<$set_imgh>> src="images/characters/gadukino/mira/mira2.jpg"></center>'
  190. 'While keeping an eye on the cow herd, you see Mira in the distance, approaching. You happily wave to her.'
  191. '"Hi, <<$pcs_nickname>>. I wanted to visit you, and I''ve brought some water with me," she says, nearing you. "Have you missed me?"'
  192. minut += 5
  193. npc_rel['A60'] += 1
  194. gs 'stat'
  195. MiraVars['follow_time'] = 20 - hour
  196. act 'Continue':
  197. pcs_hydra += 40
  198. if hour < 13:
  199. gt 'gad_field', 'cow'
  200. elseif hour < 16:
  201. gt 'gad_field', 'cow2'
  202. else
  203. gt 'gad_field', 'cow3'
  204. end
  205. end
  206. end
  207. if $ARGS[0] = 'cow2':
  208. gs 'shortgs', 'setloc', 'gad_field', 'cow2'
  209. $location_type = 'secluded'
  210. menu_off = 0
  211. gs 'miroslava_schedule'
  212. gs 'gadukino_event', 'sound'
  213. gs'stat'
  214. '<center><H4>River</H4></center>'
  215. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_river.jpg"></center>'
  216. 'The cattle herd is near the river. Some cows are munching on grass, some drink from the river, and some just stand or lie around.'
  217. if locat['A60'] = 70: '<a href="exec: gt ''miroslava'', ''Start''">Mira</a> is sitting next to you.'
  218. if temper >= 15 and sunWeather = 1:'"You can go for a swim if you want, <<$pcs_nickname>>. I''ll keep an eye on the herd," says your grandfather.'
  219. if grandpaQW['chore_herd_cattle'] = 1:
  220. if hour < 16:
  221. act 'Herd cows with your grandfather (1:00)':
  222. *clr & cla
  223. menu_off = 1
  224. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  225. 'You spend an hour herding the cows, watching for stragglers and driving them back to the herd. Then, instead of letting your grandfather do all the work, you roll up your sleeves and try to do most of the work yourself.'
  226. minut += 60
  227. if temper >= 25 and sunWeather = 1:
  228. pcs_hydra -= 12
  229. pcs_stam -= 8
  230. gs 'sweat', 'add', 10
  231. else
  232. pcs_hydra -= 6
  233. gs 'sweat', 'add', 5
  234. pcs_stam -= 5
  235. end
  236. grandpaQW['chore_herd_cattle_experience'] = 1
  237. if rand(0,1) = 1:grandmaQW['help_amount'] += rand(0,1)
  238. gs 'exp_gain', 'hndiwrk', rand(0,3)
  239. gs 'stat'
  240. act 'Continue': gt 'gad_field', 'cow2'
  241. end
  242. gs 'gad_field', 'set_nomira_acts', 2
  243. end
  244. if hour >= 16 and hour < 19:
  245. *clr & cla
  246. menu_off = 1
  247. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go.jpg"></center>'
  248. 'Grandpa looks at his watch and says it''s time to drive the herd near the forest. So the two of you begin to gather the herd and guide them toward the woods.'
  249. minut += 60
  250. if temper >= 25 and sunWeather = 1:
  251. pcs_hydra -= 12
  252. pcs_stam -= 8
  253. gs 'sweat', 'add', 10
  254. else
  255. pcs_hydra -= 6
  256. gs 'sweat', 'add', 5
  257. pcs_stam -= 5
  258. end
  259. grandmaQW['help_amount'] += rand(0, 3) / 3
  260. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  261. gs 'stat'
  262. act 'Herd the cows nearer to the forest (0:30)': minut += 15 & gt 'gad_field', 'cow3'
  263. end
  264. end
  265. end
  266. if $ARGS[0] = 'cow3':
  267. gs 'shortgs', 'setloc', 'gad_field', 'cow3'
  268. $location_type = 'secluded'
  269. menu_off = 0
  270. gs 'miroslava_schedule'
  271. gs 'gadukino_event', 'sound'
  272. gs'stat'
  273. '<center><H4>Field near the forest</H4></center>'
  274. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_forest.jpg"></center>'
  275. 'The cattle herd is grazing in a field near the forest.'
  276. if locat['A60'] = 70: '<a href="exec: gt ''miroslava'', ''Start''">Mira</a> is sitting next to you.'
  277. if grandpaQW['chore_herd_cattle'] = 1:
  278. if hour < 19:
  279. act 'Herd cows with your grandfather (1:00)':
  280. *clr & cla
  281. menu_off = 1
  282. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  283. 'You spend an hour herding the cows, watching for stragglers and driving them back to the herd. Then, instead of letting your grandfather do all the work, you roll up your sleeves and try to do most of the work yourself.'
  284. minut += 60
  285. if temper >= 25 and sunWeather = 1:
  286. pcs_hydra -= 12
  287. pcs_stam -= 8
  288. gs 'sweat', 'add', 10
  289. else
  290. pcs_hydra -= 6
  291. gs 'sweat', 'add', 5
  292. pcs_stam -= 5
  293. end
  294. grandpaQW['chore_herd_cattle_experience'] = 1
  295. if rand(0,1) = 1:grandmaQW['help_amount'] += rand(0,1)
  296. gs 'exp_gain', 'hndiwrk', rand(0,3)
  297. gs 'stat'
  298. act 'Continue': gt 'gad_field', 'cow3'
  299. end
  300. gs 'gad_field', 'set_nomira_acts', 1
  301. end
  302. if hour >= 19:
  303. *clr & cla
  304. menu_off = 1
  305. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go_home.jpg"></center>'
  306. 'As sunset approaches, Grandpa says that it is late and time to drive the herd home. So you hurry, gather the cows, and guide them back towards the village.'
  307. if temper >= 25 and sunWeather = 1:
  308. pcs_hydra -= 12
  309. pcs_stam -= 8
  310. gs 'sweat', 'add', 10
  311. else
  312. pcs_hydra -= 6
  313. gs 'sweat', 'add', 5
  314. pcs_stam -= 5
  315. end
  316. minut += 60
  317. grandpaQW['chore_herd_cattle'] = 0
  318. grandmaQW['help_amount'] += 2
  319. gs 'exp_gain', 'hndiwrk', rand(0,3)
  320. gs 'stat'
  321. MiraVars['follower'] = 0
  322. MiraVars['follow_time'] = 0
  323. act 'Back to the village': gt 'gadukino'
  324. end
  325. end
  326. end
  327. if $ARGS[0] = 'set_nomira_acts':
  328. if locat['A60'] ! 70:
  329. if ARGS[1] = 1:
  330. act 'Go for a run in the field (1:00)':
  331. *clr & cla
  332. menu_off = 1
  333. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_run.jpg"></center>'
  334. 'Since the cows are all behaving, you spend some time jogging around the field.'
  335. frost = 0
  336. minut += 60
  337. fat -= 5
  338. gs 'exp_gain', 'run', 1
  339. gs 'sweat', 'add', 10
  340. pcs_mood += 5
  341. pcs_stam -= 8
  342. if temper >= 25 and sunWeather = 1:
  343. pcs_hydra -= 24
  344. gs 'sweat', 'add', 12
  345. else
  346. pcs_hydra -= 18
  347. gs 'sweat', 'add', 10
  348. end
  349. gs 'stat'
  350. act 'Continue': gt $loc, $loc_arg
  351. end
  352. if temper >= 15 and sunWeather = 1:
  353. if pcs_sleep < 40:
  354. act 'Take a nap (1:00)':
  355. *clr & cla
  356. menu_off = 1
  357. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_lying.jpg"></center>'
  358. 'You feel drowsy watching the cows stand around, so you lie down on the grass. You doze off and wake up about an hour later.'
  359. if temper >= 25: pcs_hydra -= 12
  360. gs 'sleep_simple', 'nap', 1
  361. act 'Continue': gt $loc, $loc_arg
  362. end
  363. end
  364. act 'Pick flowers (1:00)':
  365. *clr & cla
  366. menu_off = 1
  367. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_flowers.jpg"></center>'
  368. 'Keeping one eye on the cattle, you spend an hour wandering the field, picking flowers.'
  369. minut += 60
  370. pcs_mood += 20
  371. pcs_stam -= 4
  372. if temper >= 25:
  373. pcs_hydra -= 8
  374. gs 'sweat', 'add', 5
  375. else
  376. pcs_hydra -= 5
  377. gs 'sweat', 'add', 3
  378. end
  379. gs 'stat'
  380. act 'Continue': gt $loc, $loc_arg
  381. end
  382. end
  383. elseif ARGS[1] = 2:
  384. if temper >= 15 and sunWeather = 1:
  385. if pcs_stam >= (5 * (10 - sport_clothes_exercise_bonus)) / 2:
  386. act 'Swim (0:15)':
  387. *clr & cla
  388. menu_off = 1
  389. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_river.jpg"></center>'
  390. 'You spend a few minutes splashing around in the river, which feels cool and refreshing.'
  391. if deodorant_on = 1: gs 'sweat', 'remove_deo' & '<br>Your deodorant gets washed away in the water.'
  392. cumspclnt = 4 & gs 'cum_cleanup'
  393. pcs_stam -= 3
  394. pcs_mood += 5
  395. if willday_swim ! daystart: willday_swim = daystart & pcs_willpwr += 1
  396. gs 'exercise', 'tier1', 15, 'stren'
  397. gs 'stat'
  398. act 'Continue': gt 'gad_field', 'cow2'
  399. end
  400. end
  401. end
  402. end
  403. act 'Tan (0:30)':
  404. *clr & cla
  405. menu_off = 1
  406. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_sun.jpg"></center>'
  407. 'You lie down to sunbathe by the river while Grandpa looks after the herd.'
  408. minut += 30
  409. gs 'sweat', 'add', 10
  410. pcs_mood += 5
  411. pcs_tan += 1
  412. gs 'stat'
  413. act 'Continue': gt $loc, $loc_arg
  414. end
  415. act 'Read a book (1:00)':
  416. dynamic $downlibrary['read']
  417. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_book'+rand(1,2)+'.jpg"></center>'
  418. if temper >= 25: pcs_hydra -= 12
  419. if pcs_nerd > 0:
  420. pcs_mood = 100
  421. if pcs_stren > 1: stren_deg -= 1
  422. if pcs_vital > 5: vital_deg -= 1
  423. 'You start reading a book you brought with you. You are so engrossed in the story you forget about the time.'
  424. else
  425. pcs_mood += 10
  426. 'While reading the book, time flies by because you are really engaged in the plot.'
  427. end
  428. gs 'stat'
  429. act 'Close the book': gt $loc, $loc_arg
  430. end
  431. end
  432. end
  433. --- gad_field ---------------------------------