gadfield.qsrc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. # gadfield
  2. !MiraLoc tells us where Mira is Located
  3. !----------------------------------------------
  4. !MiraLoc = 0 (Mira at home)
  5. !MiraLoc = 1 (Mira at river)
  6. !MiraLoc = 2 (Mira at meadow)
  7. !MiraLoc = 3 (Mira at forest)
  8. !MiraLoc = 4 (Mira at field)
  9. !MiraLoc = 5 (Mira with gop)
  10. !---------------------------------------------
  11. if $ARGS[0] = 'field':
  12. $loc = 'gadfield'
  13. $metka = 'field'
  14. $location_type = 'secluded'
  15. $menu_loc = 'gadfield'
  16. $menu_arg = 'field'
  17. menu_off = 0
  18. gs 'gadukino_event', 'sound'
  19. gs'stat'
  20. '<center><H4>Field</H4></center>'
  21. if month >= 4 and month <= 10:
  22. if hour >= 6 and hour < 22:
  23. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield.jpg"></center>'
  24. else
  25. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield_night.jpg"></center>'
  26. end
  27. if hour >= 9 and hour <= 17 and grigoryEV = 0: gs 'grigory', 'meet' & exit
  28. else
  29. if hour >= 8 and hour < 18:
  30. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield_winter.jpg"></center>'
  31. else
  32. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/gadfield_winter_night.jpg"></center>'
  33. end
  34. end
  35. 'A field outside the village.'
  36. if grigory_flower > 0 and grigory_flower < 10: gt 'grigory', 'flower5'
  37. if flowerday ! daystart and grigory_flower = 10: gt 'grigory', 'flower6'
  38. if flowerday ! daystart and grigory_flower > 10: gt 'grigory', 'flower8'
  39. if hour >= 9 and hour <= 19 and week < 6:'Grandfather''s horse <a href="exec: gt ''gadfield'',''horse''">Desperado</a> is grazing the field.'
  40. if hour >= 9 and hour <= 19 and graze_cow = 0:'You see <a href="exec: gt ''gadfield'',''cow''">a herd of cows</a> in the middle of the field.'
  41. if hour >= 6 and hour <= 20 and graze_cow = 1:'You notice <a href="exec: gt ''gadfield'',''cow''">a herd of cows</a>.'
  42. if hour >= 7 and hour <= 20 and haying_time = 1:'You see a crowd of people working on the field.'
  43. if hour >= 7 and hour <= 20 and haying_time = 1:
  44. act 'Go to the hayfield':
  45. gs 'food', 'm_meal'
  46. *clr & cla
  47. if npc_rel['A60'] >= 15:
  48. npc_rel['A60'] += 1
  49. '<center><img <<$set_imgh>> src="images/characters/village/mira/haying_time_mira.jpg"></center>'
  50. 'Most of the village has shown up to help out with the hay. You and Mira also partake in the activities. You are really enjoying yourself, especially considering you''re spending time, sitting on the fresh cut hay, talking to Mira.'
  51. else
  52. fat -= 5
  53. stren_exp += 1
  54. agil_exp += 1
  55. vital_exp += 1
  56. pcs_sweat += 20
  57. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/haying_time.jpg"></center>'
  58. 'Almost all of the villagers have shown up to help out with the fresh cut hay. You decide to join them.'
  59. end
  60. minut += 360
  61. grandmahelp += 1
  62. haying_time = 0
  63. hndiwrk_exp += rand(0,2)
  64. gs 'stat'
  65. act 'Continue':gt'gadfield','field'
  66. end
  67. end
  68. act 'Back to the road':minut += 10 & gt'gadroad'
  69. end
  70. if $ARGS[0] = 'horse':
  71. $loc = 'gadfield'
  72. $metka = 'horse'
  73. $location_type = 'public_outdoors'
  74. $menu_loc = 'gadfield'
  75. $menu_arg = 'horse'
  76. menu_off = 0
  77. gs 'gadukino_event', 'sound'
  78. gs'stat'
  79. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse.jpg"></center>'
  80. 'Your grandfather''s horse Desperado.'
  81. if hour = 19:
  82. act 'Lead the horse home (1:00)':
  83. *clr & cla
  84. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/horse_field.jpg"></center>'
  85. 'You spot your grandfather''s horse wandering loose in the field and decide to help out by taking Desperado home. Reaching for the bridle, you start leading Desperado towards the village.'
  86. minut += 60
  87. grandmahelp += rand(0,1)
  88. hndiwrk_exp += rand(0,3)
  89. gs 'stat'
  90. act 'To your grandparent''s barn':gt'Gadsarai'
  91. end
  92. end
  93. act 'To the field':gt'gadfield','field'
  94. end
  95. if $ARGS[0] = 'cow':
  96. $loc = 'gadfield'
  97. $metka = 'cow'
  98. $location_type = 'secluded'
  99. $menu_loc = 'gadfield'
  100. $menu_arg = 'cow'
  101. menu_off = 0
  102. gs 'gadukino_event', 'sound'
  103. gs'stat'
  104. temp = rand(1,5)
  105. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow.jpg"></center>'
  106. 'The cow herd is standing in the middle of the field.'
  107. if mira = 1: MiraLoc = 41 & '<a href="exec: gt ''Miroslava'', ''Start''">Mira</a> is standing next to you.'
  108. if hour = 19 and graze_cow = 0:
  109. act 'Lead the cows home (1:00)':
  110. *clr & cla
  111. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_field.jpg"></center>'
  112. 'Seeing the cow herd on the field, you decide to help your grandfather bring the cows home...'
  113. minut += 60
  114. grandmahelp += rand(0,1)
  115. hndiwrk_exp += rand(0,3)
  116. gs 'stat'
  117. act 'To your grandparent''s barn':gt'Gadsarai'
  118. end
  119. end
  120. if graze_cow = 1:
  121. if hour < 10:
  122. act 'Wait until the herd is gathered':
  123. *clr & cla
  124. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_wait.jpg"></center>'
  125. if graze_cow_exp = 0:'Some time flies by while waiting for the locals to finish their gathering.'
  126. if graze_cow_exp = 1:'Some time flies by while waiting for the locals and their children to finish their gathering.'
  127. if hour >= 9:minut += 20
  128. if hour < 9:minut += 60
  129. hndiwrk_exp += rand(0,4)
  130. gs 'stat'
  131. act 'Continue':gt'gadfield','cow'
  132. end
  133. end
  134. if hour >= 10 and hour < 13:
  135. act 'Herd cows with your grandfather (1:00)':
  136. *clr & cla
  137. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  138. 'You manage to herd all the cows within the hour. Instead of letting your grandfather do all the work, you roll up the sleeves and do most of the work.'
  139. minut += 60
  140. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  141. graze_cow_exp = 1
  142. grandmahelp += 1
  143. hndiwrk_exp += rand(0,3)
  144. gs 'stat'
  145. act 'Continue':gt'gadfield','cow'
  146. end
  147. if mira = 0:
  148. act 'Take a run on the field (1:00)':
  149. *clr & cla
  150. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_run.jpg"></center>'
  151. 'Since you have nothing to do, you run intervals across the field for an hour.'
  152. frost = 0
  153. minut += 60
  154. fat -= 5
  155. run_exp += 1
  156. pcs_sweat += 10
  157. pcs_mood += 5
  158. if temper >= 25 and sunWeather = 1:pcs_hydra -= 24
  159. gs 'stat'
  160. act 'Continue':gt'gadfield','cow'
  161. end
  162. end
  163. if temper >= 15 and sunWeather = 1 and mira = 0:
  164. act 'Tan (1:00)':
  165. *clr & cla
  166. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_sun.jpg"></center>'
  167. 'It''s really warm outside so you decide to sunbathe for an hour.'
  168. minut += 60
  169. pcs_mood += 10
  170. pcs_tan += 1
  171. pcs_sweat += 10
  172. gs 'stat'
  173. act 'Continue':gt'gadfield','cow'
  174. end
  175. if pcs_sleep < 40:
  176. act 'Take a nap (1:00)':
  177. *clr & cla
  178. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_lying.jpg"></center>'
  179. 'You lie down on the grass and doze off for an hour.'
  180. minut += 60
  181. pcs_mood += 10
  182. pcs_sleep+= 9
  183. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  184. gs 'stat'
  185. act 'Continue':gt'gadfield','cow'
  186. end
  187. end
  188. act 'Pick flowers (1:00)':
  189. *clr & cla
  190. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_flowers.jpg"></center>'
  191. 'You spend an hour wandering the field, picking flowers.'
  192. minut += 60
  193. pcs_mood += 20
  194. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  195. gs 'stat'
  196. act 'Continue':gt'gadfield','cow'
  197. end
  198. act 'Read a book (1:00)':
  199. *clr & cla
  200. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_book'+rand(1,2)+'.jpg"></center>'
  201. minut += 60
  202. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  203. if pcs_nerd > 0:
  204. lastread = totminut
  205. lastreadday = daystart
  206. pcs_nerd += 1
  207. blizoruk += 1
  208. pcs_mood = 100
  209. if pcs_stren > 1: stren_deg -= 1
  210. if pcs_vital > 5: vital_deg -= 1
  211. 'You start reading a book you brought with you. You are so engrossed in the story you forget about the time.'
  212. else
  213. blizoruk += 1
  214. pcs_mood += 10
  215. 'While reading the book, time flies by cause you are really engaged in the books'' plot.'
  216. end
  217. gs 'stat'
  218. act 'Close the book':gt $loc, $metka
  219. end
  220. end
  221. end
  222. if hour >= 13 and hour < 16:
  223. *clr & cla
  224. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go.jpg"></center>'
  225. 'Looking at his watch, grandpa turns to you and says "The time is around lunchtime so it''s time to take the herd to the watering hole." You begin to gather the cows and lead them to the river.'
  226. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  227. grandmahelp += 1
  228. minut += 60
  229. hndiwrk_exp += rand(0,3)
  230. gs 'stat'
  231. act 'Herd the cows to the river':gt'gadfield','cow2'
  232. end
  233. end
  234. if graze_cow = 0:act 'Back':gt'gadfield','field'
  235. end
  236. !MiaLoc tells us where Mira is Located
  237. !----------------------------------------------
  238. !MiraLoc = 0 (Mira at home)
  239. !MiraLoc = 1 (Mira at river)
  240. !MiraLoc = 2 (Mira at meadow)
  241. !MiraLoc = 3 (Mira at forest)
  242. !MiraLoc = 4 (Mira at field)
  243. !MiraLoc = 5 (Mira with gop)
  244. !---------------------------------------------
  245. if graze_cow = 1 and npc_rel['A60'] >= 15 and mira = 0 and sunWeather = 1 and hour >= 10 and temp = 1 and Mira_no = 0 and(npc_QW['A63'] < 13 or npc_QW['A60'] >= 10 or mirasex > 1):
  246. *clr & cla
  247. '<center><img <<$set_imgh>> src="images/characters/village/mira/mira2.jpg"></center>'
  248. 'While keeping an eye on the cow herd, you see Mira in the distance, approaching. You happily wave to her.'
  249. '" - Hi, <<$pcs_nickname>>. I wanted to visit you and brought water with me," she says nearing you. " - Have you missed me?"'
  250. minut += 5
  251. npc_rel['A60'] += 1
  252. mira = 1
  253. gs 'stat'
  254. act 'Continue':pcs_hydra +=40 & gt'gadfield','cow'
  255. end
  256. if $ARGS[0] = 'cow2':
  257. $loc = 'gadfield'
  258. $metka = 'cow2'
  259. $location_type = 'secluded'
  260. $menu_loc = 'gadfield'
  261. $menu_arg = 'cow2'
  262. menu_off = 0
  263. gs 'gadukino_event', 'sound'
  264. gs'stat'
  265. '<center><H4>River</H4></center>'
  266. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_river.jpg"></center>'
  267. 'The cow herd is standing by the river.'
  268. if mira = 1: MiraLoc = 42 & '<a href="exec: gt ''Miroslava'', ''Start''">Mira</a> is sitting next to you.'
  269. if temper >= 15 and sunWeather = 1:'- "You can go for a swim while there is time, <<$pcs_nickname>>. I`ll keep an eye on the herd," said your grandfather.'
  270. if graze_cow = 1:
  271. if hour < 16:
  272. act 'Herd cows with your grandfather (1:00)':
  273. *clr & cla
  274. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  275. 'You manage to herd all the cows within the hour. Instead of letting your grandfather do all the work, you roll up the sleeves and do most of the work.'
  276. minut += 60
  277. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  278. grandmahelp += 1
  279. graze_cow_exp = 1
  280. hndiwrk_exp += rand(0,3)
  281. gs 'stat'
  282. act 'Continue':gt'gadfield','cow2'
  283. end
  284. if temper >= 15 and sunWeather = 1 and mira = 0:
  285. act 'Swim (0:15)':
  286. *clr & cla
  287. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_river.jpg"></center>'
  288. 'You take a quick swim, cooling off your body.'
  289. minut += 15
  290. cumspclnt = 4 & gs 'cum_cleanup'
  291. pcs_sweat = 10 + rand(0,4)
  292. pcs_mood += 5
  293. pcs_willpwr += 5
  294. if pcs_stren < 30:stren_exp += 1
  295. gs 'stat'
  296. act 'Continue':gt'gadfield','cow2'
  297. end
  298. act 'Tan (0:30)':
  299. *clr & cla
  300. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_sun.jpg"></center>'
  301. 'You lie down to sunbathe, while grandpa looks after the herd.'
  302. minut += 30
  303. pcs_sweat += 10
  304. pcs_mood += 5
  305. pcs_tan += 1
  306. gs 'stat'
  307. act 'Continue':gt'gadfield','cow2'
  308. end
  309. act 'Read a book (1:00)':
  310. *clr & cla
  311. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_book'+rand(1,2)+'.jpg"></center>'
  312. minut += 60
  313. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  314. if pcs_nerd > 0:
  315. lastread = totminut
  316. lastreadday = daystart
  317. pcs_nerd += 1
  318. blizoruk += 1
  319. pcs_mood = 100
  320. if pcs_stren > 1: stren_deg -= 1
  321. if pcs_vital > 5: vital_deg -= 1
  322. 'You start reading a book you brought with you. You are so engrossed in the story you forget about the time.'
  323. else
  324. blizoruk += 1
  325. pcs_mood += 10
  326. 'While reading the book, time flies by cause you are really engaged in the books'' plot.'
  327. end
  328. gs 'stat'
  329. act 'Close the book':gt $loc, $metka
  330. end
  331. end
  332. end
  333. if hour >= 16 and hour < 19:
  334. *clr & cla
  335. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go.jpg"></center>'
  336. 'Looking at his watch, grandpa says that it''s time to drive the herd back on the field, but now closer to the forest. The two of you begin to gather the scattered herd and head toward the forest.'
  337. grandmahelp += 1
  338. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  339. minut += 60
  340. hndiwrk_exp += rand(0,3)
  341. gs 'stat'
  342. act 'Herd the cows to the forest':gt'gadfield','cow3'
  343. end
  344. end
  345. end
  346. if $ARGS[0] = 'cow3':
  347. $loc = 'gadfield'
  348. $metka = 'cow3'
  349. $location_type = 'secluded'
  350. $menu_loc = 'gadfield'
  351. $menu_arg = 'cow3'
  352. menu_off = 0
  353. gs 'gadukino_event', 'sound'
  354. gs'stat'
  355. '<center><H4>Field near the forest</H4></center>'
  356. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_forest.jpg"></center>'
  357. 'The cow herd is standing on a field near the forest.'
  358. if mira = 1: MiraLoc = 43 & '<a href="exec: gt ''Miroslava'', ''Start''">Mira</a> is sitting next to you.'
  359. if graze_cow = 1:
  360. if hour < 19:
  361. act 'Herd cows with your grandfather (1:00)':
  362. *clr & cla
  363. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow'+rand(1,4)+'.jpg"></center>'
  364. 'You manage to herd all the cows within the hour. Instead of letting your grandfather do all the work, you roll up the sleeves and do most of the work.'
  365. minut += 60
  366. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  367. grandmahelp += 1
  368. graze_cow_exp = 1
  369. hndiwrk_exp += rand(0,3)
  370. gs 'stat'
  371. act 'Continue':gt'gadfield','cow3'
  372. end
  373. if mira = 0:
  374. act 'Take a run (1:00)':
  375. *clr & cla
  376. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_run.jpg"></center>'
  377. 'Since you have nothing to do, you run intervals across the field for an hour.'
  378. frost = 0
  379. minut += 60
  380. fat -= 5
  381. run_exp += 1
  382. pcs_sweat += 10
  383. pcs_mood += 5
  384. if temper >= 25 and sunWeather = 1:pcs_hydra -= 24
  385. gs 'stat'
  386. act 'Continue':gt'gadfield','cow3'
  387. end
  388. end
  389. if temper >= 15 and sunWeather = 1 and mira = 0:
  390. act 'Pick flowers (1:00)':
  391. *clr & cla
  392. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_flowers.jpg"></center>'
  393. 'You spent an hour wandering around the field, picking flowers.'
  394. minut += 60
  395. pcs_mood += 20
  396. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  397. gs 'stat'
  398. act 'Continue':gt'gadfield','cow3'
  399. end
  400. act 'Tan (1:00)':
  401. *clr & cla
  402. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_sun.jpg"></center>'
  403. 'You sunbathe for an hour.'
  404. minut += 60
  405. pcs_mood += 10
  406. pcs_tan += 1
  407. pcs_sweat += 10
  408. gs 'stat'
  409. act 'Continue':gt'gadfield','cow3'
  410. end
  411. if pcs_sleep < 40:
  412. act 'Nap on the grass (1:00)':
  413. *clr & cla
  414. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_lying.jpg"></center>'
  415. 'You lie down on the grass and doze off for an hour.'
  416. minut += 60
  417. pcs_mood += 10
  418. pcs_sleep+= 9
  419. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  420. gs 'stat'
  421. act 'Continue':gt'gadfield','cow3'
  422. end
  423. end
  424. act 'Read a book (1:00)':
  425. *clr & cla
  426. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/graze_cow_book'+rand(1,2)+'.jpg"></center>'
  427. minut += 60
  428. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  429. if pcs_nerd > 0:
  430. lastread = totminut
  431. lastreadday = daystart
  432. pcs_nerd += 1
  433. blizoruk += 1
  434. pcs_mood = 100
  435. if pcs_stren > 1: stren_deg -= 1
  436. if pcs_vital > 5: vital_deg -= 1
  437. 'You start reading a book you brought with you. You are so engrossed in the story you forget about the time.'
  438. else
  439. blizoruk += 1
  440. pcs_mood += 10
  441. 'While reading the book, time flies by cause you are really engaged in the books'' plot.'
  442. end
  443. gs 'stat'
  444. act 'Close the book':gt $loc, $metka
  445. end
  446. end
  447. end
  448. if hour >= 19:
  449. *clr & cla
  450. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go_home.jpg"></center>'
  451. 'Looking at his watch, grandpa says that it is late and time to drive the herd home. You hurry and gather up the cows and drive them towards the village.'
  452. if temper >= 25 and sunWeather = 1:pcs_hydra -= 12
  453. minut += 60
  454. mira = 0
  455. graze_cow = 0
  456. grandmahelp += 1
  457. hndiwrk_exp += rand(0,3)
  458. gs 'stat'
  459. act 'Back to the village':gt'gadukino'
  460. end
  461. end
  462. end
  463. --- gadfield ---------------------------------