1
0

gadfield 15 KB

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