1
0

gad_field.qsrc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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. if $ARGS[0] = 'cow':
  84. gs 'shortgs', 'setloc', 'gad_field', 'cow'
  85. $location_type = 'secluded'
  86. menu_off = 0
  87. gs 'miroslava_schedule'
  88. gs 'gadukino_event', 'sound'
  89. gs'stat'
  90. temp = rand(1,5)
  91. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow.jpg"></center>'
  92. 'The cattle herd is standing in the middle of the field. Some cows are munching on grass, and others just stare idly around.'
  93. if locat['A60'] = 70: '<a href="exec: gt ''miroslava'', ''start''">Mira</a> is standing next to you.'
  94. if grandpaQW['chore_herd_cattle'] = 0: act 'Leave them be': gt 'gad_field', 'field'
  95. if hour = 19 and grandpaQW['chore_herd_cattle'] = 0:
  96. act 'Lead the cows home (1:00)':
  97. *clr & cla
  98. menu_off = 1
  99. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_field.jpg"></center>'
  100. 'Seeing the cow herd on the field, you decide to help your grandfather bring the cows home...'
  101. minut += 60
  102. grandmaQW['help_amount'] += 1
  103. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  104. gs 'stat'
  105. act 'Continue': gt 'gadukino'
  106. end
  107. end
  108. if grandpaQW['chore_herd_cattle'] = 1:
  109. if hour < 10:
  110. act 'Wait until the herd is gathered':
  111. *clr & cla
  112. menu_off = 1
  113. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_wait.jpg"></center>'
  114. if grandpaQW['chore_herd_cattle_experience'] = 0: 'Some time flies by while waiting for the locals to finish bringing their cows to the field.'
  115. 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.'
  116. if hour >= 9:minut += 20
  117. if hour < 9:minut += 60
  118. gs 'exp_gain', 'hndiwrk', rand(0, 4)
  119. gs 'stat'
  120. act 'Continue': gt 'gad_field', 'cow'
  121. end
  122. end
  123. if hour >= 10 and hour < 13:
  124. act 'Herd cows with your grandfather (1:00)':
  125. *clr & cla
  126. menu_off = 1
  127. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  128. '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.'
  129. minut += 60
  130. if temper >= 25 and sunWeather = 1:
  131. pcs_hydra -= 12
  132. pcs_stam -= 8
  133. gs 'sweat', 'add', 10
  134. else
  135. pcs_hydra -= 6
  136. gs 'sweat', 'add', 5
  137. pcs_stam -= 5
  138. end
  139. grandpaQW['chore_herd_cattle_experience'] = 1
  140. grandmaQW['help_amount'] += rand(0, 1) / 3
  141. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  142. gs 'stat'
  143. act 'Continue': gt 'gad_field', 'cow'
  144. end
  145. gs 'gad_field', 'set_nomira_acts', 1
  146. end
  147. if hour >= 13 and hour < 16:
  148. *clr & cla
  149. menu_off = 1
  150. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go.jpg"></center>'
  151. '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.'
  152. if temper >= 25 and sunWeather = 1:
  153. pcs_hydra -= 12
  154. pcs_stam -= 8
  155. gs 'sweat', 'add', 10
  156. else
  157. pcs_hydra -= 6
  158. gs 'sweat', 'add', 5
  159. pcs_stam -= 5
  160. end
  161. grandmaQW['help_amount'] += 1
  162. minut += 60
  163. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  164. gs 'stat'
  165. act 'Herd the cows nearer to the river (0:15)': minut += 15 & gt 'gad_field', 'cow2'
  166. end
  167. end
  168. end
  169. if grandpaQW['chore_herd_cattle'] = 1 and locat['A60'] = 70 and locat['A60_prev'] ! 70:
  170. *clr & cla
  171. menu_off = 1
  172. '<center><img <<$set_imgh>> src="images/characters/gadukino/mira/mira2.jpg"></center>'
  173. 'While keeping an eye on the cow herd, you see Mira in the distance, approaching. You happily wave to her.'
  174. '"Hi, <<$pcs_nickname>>. I wanted to visit you, and I''ve brought some water with me," she says, nearing you. "Have you missed me?"'
  175. minut += 5
  176. npc_rel['A60'] += 1
  177. gs 'stat'
  178. MiraVars['follow_time'] = 20 - hour
  179. act 'Continue':
  180. pcs_hydra += 40
  181. if hour < 13:
  182. gt 'gad_field', 'cow'
  183. elseif hour < 16:
  184. gt 'gad_field', 'cow2'
  185. else
  186. gt 'gad_field', 'cow3'
  187. end
  188. end
  189. end
  190. if $ARGS[0] = 'cow2':
  191. gs 'shortgs', 'setloc', 'gad_field', 'cow2'
  192. $location_type = 'secluded'
  193. menu_off = 0
  194. gs 'miroslava_schedule'
  195. gs 'gadukino_event', 'sound'
  196. gs'stat'
  197. '<center><H4>River</H4></center>'
  198. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_river.jpg"></center>'
  199. '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.'
  200. if locat['A60'] = 70: '<a href="exec: gt ''miroslava'', ''start''">Mira</a> is sitting next to you.'
  201. 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.'
  202. if grandpaQW['chore_herd_cattle'] = 1:
  203. if hour < 16:
  204. act 'Herd cows with your grandfather (1:00)':
  205. *clr & cla
  206. menu_off = 1
  207. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  208. '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.'
  209. minut += 60
  210. if temper >= 25 and sunWeather = 1:
  211. pcs_hydra -= 12
  212. pcs_stam -= 8
  213. gs 'sweat', 'add', 10
  214. else
  215. pcs_hydra -= 6
  216. gs 'sweat', 'add', 5
  217. pcs_stam -= 5
  218. end
  219. grandpaQW['chore_herd_cattle_experience'] = 1
  220. if rand(0,1) = 1:grandmaQW['help_amount'] += rand(0,1)
  221. gs 'exp_gain', 'hndiwrk', rand(0,3)
  222. gs 'stat'
  223. act 'Continue': gt 'gad_field', 'cow2'
  224. end
  225. gs 'gad_field', 'set_nomira_acts', 2
  226. end
  227. if hour >= 16 and hour < 19:
  228. *clr & cla
  229. menu_off = 1
  230. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go.jpg"></center>'
  231. '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.'
  232. minut += 60
  233. if temper >= 25 and sunWeather = 1:
  234. pcs_hydra -= 12
  235. pcs_stam -= 8
  236. gs 'sweat', 'add', 10
  237. else
  238. pcs_hydra -= 6
  239. gs 'sweat', 'add', 5
  240. pcs_stam -= 5
  241. end
  242. grandmaQW['help_amount'] += rand(0, 3) / 3
  243. gs 'exp_gain', 'hndiwrk', rand(0, 3)
  244. gs 'stat'
  245. act 'Herd the cows nearer to the forest (0:30)': minut += 15 & gt 'gad_field', 'cow3'
  246. end
  247. end
  248. end
  249. if $ARGS[0] = 'cow3':
  250. gs 'shortgs', 'setloc', 'gad_field', 'cow3'
  251. $location_type = 'secluded'
  252. menu_off = 0
  253. gs 'miroslava_schedule'
  254. gs 'gadukino_event', 'sound'
  255. gs'stat'
  256. '<center><H4>Field near the forest</H4></center>'
  257. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_forest.jpg"></center>'
  258. 'The cattle herd is grazing in a field near the forest.'
  259. if locat['A60'] = 70: '<a href="exec: gt ''miroslava'', ''start''">Mira</a> is sitting next to you.'
  260. if grandpaQW['chore_herd_cattle'] = 1:
  261. if hour < 19:
  262. act 'Herd cows with your grandfather (1:00)':
  263. *clr & cla
  264. menu_off = 1
  265. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  266. '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.'
  267. minut += 60
  268. if temper >= 25 and sunWeather = 1:
  269. pcs_hydra -= 12
  270. pcs_stam -= 8
  271. gs 'sweat', 'add', 10
  272. else
  273. pcs_hydra -= 6
  274. gs 'sweat', 'add', 5
  275. pcs_stam -= 5
  276. end
  277. grandpaQW['chore_herd_cattle_experience'] = 1
  278. if rand(0,1) = 1:grandmaQW['help_amount'] += rand(0,1)
  279. gs 'exp_gain', 'hndiwrk', rand(0,3)
  280. gs 'stat'
  281. act 'Continue': gt 'gad_field', 'cow3'
  282. end
  283. gs 'gad_field', 'set_nomira_acts', 1
  284. end
  285. if hour >= 19:
  286. *clr & cla
  287. menu_off = 1
  288. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go_home.jpg"></center>'
  289. '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.'
  290. if temper >= 25 and sunWeather = 1:
  291. pcs_hydra -= 12
  292. pcs_stam -= 8
  293. gs 'sweat', 'add', 10
  294. else
  295. pcs_hydra -= 6
  296. gs 'sweat', 'add', 5
  297. pcs_stam -= 5
  298. end
  299. minut += 60
  300. grandpaQW['chore_herd_cattle'] = 0
  301. grandmaQW['help_amount'] += 2
  302. gs 'exp_gain', 'hndiwrk', rand(0,3)
  303. gs 'stat'
  304. MiraVars['follower'] = 0
  305. MiraVars['follow_time'] = 0
  306. act 'Back to the village': gt 'gadukino'
  307. end
  308. end
  309. end
  310. if $ARGS[0] = 'set_nomira_acts':
  311. if locat['A60'] ! 70:
  312. if ARGS[1] = 1:
  313. act 'Go for a run in the field (1:00)':
  314. *clr & cla
  315. menu_off = 1
  316. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_run.jpg"></center>'
  317. 'Since the cows are all behaving, you spend some time jogging around the field.'
  318. frost = 0
  319. minut += 60
  320. fat -= 5
  321. gs 'exp_gain', 'run', 1
  322. gs 'sweat', 'add', 10
  323. pcs_mood += 5
  324. pcs_stam -= 8
  325. if temper >= 25 and sunWeather = 1:
  326. pcs_hydra -= 24
  327. gs 'sweat', 'add', 12
  328. else
  329. pcs_hydra -= 18
  330. gs 'sweat', 'add', 10
  331. end
  332. gs 'stat'
  333. act 'Continue': gt $loc, $loc_arg
  334. end
  335. if temper >= 15 and sunWeather = 1:
  336. if pcs_sleep < 40:
  337. act 'Take a nap (1:00)':
  338. *clr & cla
  339. menu_off = 1
  340. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_lying.jpg"></center>'
  341. '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.'
  342. if temper >= 25: pcs_hydra -= 12
  343. gs 'sleep_simple', 'nap', 1
  344. act 'Continue': gt $loc, $loc_arg
  345. end
  346. end
  347. act 'Pick flowers (1:00)':
  348. *clr & cla
  349. menu_off = 1
  350. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_flowers.jpg"></center>'
  351. 'Keeping one eye on the cattle, you spend an hour wandering the field, picking flowers.'
  352. minut += 60
  353. pcs_mood += 20
  354. pcs_stam -= 4
  355. if temper >= 25:
  356. pcs_hydra -= 8
  357. gs 'sweat', 'add', 5
  358. else
  359. pcs_hydra -= 5
  360. gs 'sweat', 'add', 3
  361. end
  362. gs 'stat'
  363. act 'Continue': gt $loc, $loc_arg
  364. end
  365. end
  366. elseif ARGS[1] = 2:
  367. if temper >= 15 and sunWeather = 1:
  368. if pcs_stam >= (5 * (10 - sport_clothes_exercise_bonus)) / 2:
  369. act 'Swim (0:15)':
  370. *clr & cla
  371. menu_off = 1
  372. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_river.jpg"></center>'
  373. 'You spend a few minutes splashing around in the river, which feels cool and refreshing.'
  374. if deodorant_on = 1: gs 'sweat', 'remove_deo' & '<br>Your deodorant gets washed away in the water.'
  375. cumspclnt = 4 & gs 'cum_cleanup'
  376. pcs_stam -= 3
  377. pcs_mood += 5
  378. if willday_swim ! daystart: willday_swim = daystart & pcs_willpwr += 1
  379. gs 'exercise', 'tier1', 15, 'stren'
  380. gs 'stat'
  381. act 'Continue': gt 'gad_field', 'cow2'
  382. end
  383. end
  384. end
  385. end
  386. act 'Tan (0:30)':
  387. *clr & cla
  388. menu_off = 1
  389. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_sun.jpg"></center>'
  390. 'You lie down to sunbathe by the river while Grandpa looks after the herd.'
  391. minut += 30
  392. gs 'sweat', 'add', 10
  393. pcs_mood += 5
  394. pcs_tan += 1
  395. gs 'stat'
  396. act 'Continue': gt $loc, $loc_arg
  397. end
  398. act 'Read a book (1:00)':
  399. *clr & cla
  400. menu_off = 1
  401. gs 'library_functions', 'read_book'
  402. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_book'+rand(1,2)+'.jpg"></center>'
  403. if temper >= 25: pcs_hydra -= 12
  404. if pcs_nerd > 0:
  405. pcs_mood = 100
  406. if pcs_stren > 1: stren_deg -= 1
  407. if pcs_vital > 5: vital_deg -= 1
  408. 'You start reading a book you brought with you. You are so engrossed in the story you forget about the time.'
  409. else
  410. pcs_mood += 10
  411. 'While reading the book, time flies by because you are really engaged in the plot.'
  412. end
  413. gs 'stat'
  414. act 'Close the book': gt $loc, $loc_arg
  415. end
  416. end
  417. end
  418. --- gad_field ---------------------------------