grandpahelp.tw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. :: grandpahelp
  2. <<set $here = 'grandpahelp'>>
  3. <<set $ARGS = $location_var[$here]>>
  4. <<set $locclass to null>>
  5. <<set $menu_off = 1>>
  6. <<image "locations/gadukino/grandparents/grandpa1.jpg">>
  7. You walk up to your grandfather and ask if he needs any help. Grandpa thinks for a moment and says:
  8. <<if $location_var[$here][0] == 'start'>>
  9. <<if $time.month <= 4 or $time.month >= 10>>
  10. <<setinit $grandpaQW['chore_type'] = rand(0,5)>>
  11. <<elseif $time.month == 5>>
  12. <<setinit $grandpaQW['chore_type'] = rand(3,8)>>
  13. <<elseif $time.month >= 6 and $time.month <= 9>>
  14. <<setinit $grandpaQW['chore_type'] = rand(3,14)>>
  15. <</if>>
  16. <<if getvar("$grandpaQW['chore_type']") == 0>>
  17. <p>"$pc.name_nick, could you run out to the barn and bring firewood for the stove?"</p>
  18. <<setinit $grandpaQW['chore_fetch_firewood'] = 1>>
  19. <<act 'Tell him you will go get some in just a bit'>>
  20. <<gt 'gadhouse' 'grandpa'>>
  21. <</act>>
  22. <<actCLA 'Agree and go to fetch firewood (0:20)'>>
  23. <<if $time.month >= 4 and $time.month <= 10>>
  24. <<image "locations/gadukino/village/firewood.jpg">>
  25. <<else>>
  26. <<image "locations/gadukino/village/firewood_winter.jpg">>
  27. <</if>>
  28. You put on warm clothes and run to the barn to collect firewood.
  29. "I've brought some firewood, grandfather," you said to your grandfather.
  30. "You are very quick, Sveta," he replies with a smile. "That's today''s youth for ya. There is no more work today."
  31. <<setinit $grandpaQW['chore_fetch_firewood'] = 0>>
  32. <<set $time.minutes += 20>>
  33. <<setinit $grandmaQW['help_amount'] += 1>>
  34. <<act 'Continue'>>
  35. <<gt 'gadhouse' 'start'>>
  36. <</act>>
  37. <</actCLA>>
  38. <<elseif getvar("$grandpaQW['chore_type']") == 1>>
  39. <p>"$pc.name_nick, I need you to go to the barn and feed Desperado."</p>
  40. <<setinit $grandpaQW['chore_feed_horse'] = 1>>
  41. <<act 'Tell him that you will get to it in a little bit'>>
  42. <<gt 'gadhouse' 'grandpa'>>
  43. <</act>>
  44. <<actCLA 'Agree and go to the barn (0:10)'>>
  45. <<if $time.month >= 4 and $time.month <= 10>>
  46. <<image "locations/gadukino/village/go_yard.jpg">>
  47. <<else>>
  48. <<image "locations/gadukino/village/go_yard_winter.jpg">>
  49. <</if>>
  50. You walk over to the barn where Desperado is kept.
  51. <<set $time.minutes += 10>>
  52. <<act 'Continue'>>
  53. <<gt 'gadsarai' 'horse'>>
  54. <</act>>
  55. <</actCLA>>
  56. <<elseif getvar("$grandpaQW['chore_type']") == 2>>
  57. <p>"$pc.name_nick, go to the barn and feed the cow."</p>
  58. <<setinit $grandpaQW['chore_feed_cow'] = 1>>
  59. <<act 'Tell him that you will do it in a little while'>>
  60. <<gt 'gadhouse' 'grandpa'>>
  61. <</act>>
  62. <<actCLA 'Agree and go to the barn (0:10)'>>
  63. <<if $time.month >= 4 and $time.month <= 10>>
  64. <<image "locations/gadukino/village/go_yard.jpg">>
  65. <<else>>
  66. <<image "locations/gadukino/village/go_yard_winter.jpg">>
  67. <</if>>
  68. You walk over to the barn where the cows are kept.
  69. <<set $time.minutes += 10>>
  70. <<act 'Continue'>>
  71. <<gt 'gadsarai' 'cow'>>
  72. <</act>>
  73. <</actCLA>>
  74. <<elseif getvar("$grandpaQW['chore_type']") == 3>>
  75. <<gt 'grandpahelp' 'cleanyard'>>
  76. <<elseif getvar("$grandpaQW['chore_type']") == 4>>
  77. <<gt 'grandpahelp' 'groomhorse'>>
  78. <<elseif getvar("$grandpaQW['chore_type']") == 5>>
  79. <<gt 'grandpahelp' 'feedhogs'>>
  80. <<elseif getvar("$grandpaQW['chore_type']") == 6 and $time.hour >= 6 and $time.hour < 9>>
  81. <<gt 'grandpahelp' 'grazehorse'>>
  82. <<elseif getvar("$grandpaQW['chore_type']") == 7 and $time.hour >= 6 and $time.hour < 9>>
  83. <<gt 'grandpahelp' 'leadcows'>>
  84. <<elseif getvar("$grandpaQW['chore_type']") == 8 and $time.hour >= 6 and $time.hour < 9>>
  85. <<gt 'grandpahelp' 'grazecows'>>
  86. <<elseif getvar("$grandpaQW['chore_type']") == 9 and $weather.temperature >= 15 and !$weather.isRaining and $time.weekday > 5 and $wardrobe.ownsSwimmingItem>>
  87. <<gt 'grandpahelp' 'washhorse'>>
  88. <<elseif getvar("$grandpaQW['chore_type']") == 10 and getvar("$boletus_stored") <= 18>>
  89. <<gt 'grandpahelp' 'pickforest_mushrooms'>>
  90. <<elseif getvar("$grandpaQW['chore_type']") == 11 and getvar("$bilberry_stored") <= 18>>
  91. <<gt 'grandpahelp' 'pickforest_berries'>>
  92. <<elseif getvar("$grandpaQW['chore_type']") == 12 and ($boletus_stored + bilberry_stored)>>
  93. <<gt 'grandpahelp' 'pickforest_both'>>
  94. <<elseif getvar("$grandpaQW['chore_type']") == 13 and $weather.temperature >= 15 and !$weather.isRaining and $time.hour >= 6 and $time.hour < 9>>
  95. <p>"$pc.name_nick, we need to help with baling hay today, so we have to go to the field to meet the others."</p>
  96. "Okay, grandfather," you replied.
  97. <<setinit $grandpaQW['chore_bale_hay'] = 1>>
  98. <<act 'Tell him you will head over there soon'>>
  99. <<gt 'gadhouse' 'grandpa'>>
  100. <</act>>
  101. <<actCLA 'Grab a rake and head to the field (0:40)'>>
  102. <<image "locations/gadukino/village/go_gadfield.jpg">>
  103. With the rake in your hand, you meet up with the other local residents at the field.
  104. <<set $time.minutes += 40>>
  105. <<act 'Continue'>>
  106. <<gt 'gadfield' 'field'>>
  107. <</act>>
  108. <</actCLA>>
  109. <<else>>
  110. <<if $time.hour >= 9>>
  111. <<set $randmsg = rand(0,5)>>
  112. <<if getvar("$randmsg") == 0>>
  113. <p>"You can rest today $pc.name_nick, you don't need to help me today."</p>
  114. <<elseif getvar("$randmsg") == 1>>
  115. "You can rest today child, there is nothing to do."
  116. <<elseif getvar("$randmsg") == 2>>
  117. <p>"You can rest today $pc.name_nick, there is nothing to do."</p>
  118. <<elseif getvar("$randmsg") == 3>>
  119. <p>"There's no work today $pc.name_nick, go and rest up."</p>
  120. <<elseif getvar("$randmsg") == 4>>
  121. "You can rest today my dear granddaughter."
  122. <<else>>
  123. "You can take the day off to rest up."
  124. <</if>>
  125. <<else>>
  126. <<set $randmsg = rand(0,1)>>
  127. <<if getvar("$randmsg") == 0>>
  128. <p>"You don't need to help out today, $pc.name_nick."</p>
  129. <<else>>
  130. "You can take the day off."
  131. <</if>>
  132. <</if>>
  133. <<act 'Continue'>>
  134. <<gt 'gadhouse' 'grandpa'>>
  135. <</act>>
  136. <</if>>
  137. <</if>>
  138. <<if $location_var[$here][0] == 'cleanyard'>>
  139. <p>"Of course, $pc.name_nick, I need your help in the yard. Bring a garden tool with you."</p>
  140. <<setinit $grandpaQW['chore_clean_yard'] = 1>>
  141. <<act 'Tell him that you`ll do it in a minute'>>
  142. <<gt 'gadhouse' 'grandpa'>>
  143. <</act>>
  144. <<actCLA 'Agree and go clean up the yard (1:00)'>>
  145. <<if $time.month >= 4 and $time.month <= 10>>
  146. <<image "locations/gadukino/village/clean_yard1.jpg">>
  147. Armed with a rake, you begin cleaning the yard. You're pleased seeing the yard clean. You return the rake to the shed and continue on with your business.
  148. <<else>>
  149. <<image "locations/gadukino/village/clean_yard2.jpg">>
  150. Armed with a shovel, you begin clearing the yard of snow. You're pleased with yourself, seeing the courtyard is free of snow. You return the shovel to the shed and continue on with your business.
  151. <</if>>
  152. <<set $time.minutes += 60>>
  153. <<setinit $grandpaQW['chore_clean_yard'] = 2>>
  154. <<if $time.month >= 4 and $time.month <= 10>>
  155. <<set $pc.fat -= rand(1,3)>>
  156. <<else>>
  157. <<run $pc.skillExperienceGain('strength',1)>>
  158. <<set $pc.fat -= rand(1,5)>>
  159. <</if>>
  160. <<act 'Continue'>>
  161. <<gt 'gaddvor'>>
  162. <</act>>
  163. <<actCLA 'Return back to your grandfather'>>
  164. <<set $time.minutes += 1>> <<gt 'gadhouse' 'grandpa'>>
  165. <</actCLA>>
  166. <</actCLA>>
  167. <</if>>
  168. <<if $location_var[$here][0] == 'feedhogs'>>
  169. <p>"$pc.name_nick, could you go to the barn and feed the hog?"</p>
  170. <<setinit $grandpaQW['chore_feed_boar'] = 1>>
  171. <<act 'Tell him you will get to it soon'>>
  172. <<gt 'gadhouse' 'grandpa'>>
  173. <</act>>
  174. <<actCLA 'Agree and go to the barn (0:10)'>>
  175. <<if $time.month >= 4 and $time.month <= 10>>
  176. <<image "locations/gadukino/village/go_yard.jpg">>
  177. <<else>>
  178. <<image "locations/gadukino/village/go_yard_winter.jpg">>
  179. <</if>>
  180. You walk over to the barn where the hogs are kept.
  181. <<set $time.minutes += 10>>
  182. <<act 'Continue'>>
  183. <<gt 'gadsarai' 'boar'>>
  184. <</act>>
  185. <</actCLA>>
  186. <</if>>
  187. <<if $location_var[$here][0] == 'washhorse'>>
  188. "It's good weather today. Take Desperado to the river and give him a bath."
  189. <<setinit $grandpaQW['chore_bathe_horse'] = 1>>
  190. <<act 'Tell him you will do it in a little while'>>
  191. <<gt 'gadhouse' 'grandpa'>>
  192. <</act>>
  193. <<actCLA 'Agree and go to the barn (0:10)'>>
  194. <<image "locations/gadukino/village/go_yard.jpg">>
  195. You walk over to the barn where Desperado is kept.
  196. <<set $time.minutes += 10>>
  197. <<act 'Continue'>>
  198. <<gt 'gadsarai' 'horse'>>
  199. <</act>>
  200. <</actCLA>>
  201. <</if>>
  202. <<if $location_var[$here][0] == 'groomhorse'>>
  203. <p>"Of course, $pc.name_nick, I need your help to groom Desperado."</p>
  204. <<setinit $grandpaQW['chore_brush_horse'] = 1>>
  205. <<act 'Tell him you will do it in a bit'>>
  206. <<gt 'gadhouse' 'grandpa'>>
  207. <</act>>
  208. <<actCLA 'Agree and go to the barn (0:10)'>>
  209. <<if $time.month >= 4 and $time.month <= 10>>
  210. <<image "locations/gadukino/village/go_yard.jpg">>
  211. <<else>>
  212. <<image "locations/gadukino/village/go_yard_winter.jpg">>
  213. <</if>>
  214. You walk over to the barn where Desperado is kept.
  215. <<set $time.minutes += 10>>
  216. <<act 'Continue'>>
  217. <<gt 'gadsarai' 'horse'>>
  218. <</act>>
  219. <</actCLA>>
  220. <</if>>
  221. <<if $location_var[$here][0] == 'grazehorse'>>
  222. <p>"$pc.name_nick, take Desperado to the field. My legs hurt, so I need to rest for a bit. I'll retrieve the horse in the evening."</p>
  223. <<setinit $grandpaQW['chore_lead_horse_to_field'] = 1>>
  224. <<act 'Tell him you will do it soon'>>
  225. <<gt 'gadhouse' 'grandpa'>>
  226. <</act>>
  227. <<actCLA 'Agree and go to the barn (0:10)'>>
  228. <<image "locations/gadukino/village/go_yard.jpg">>
  229. You walk over to the barn where Desperado is kept.
  230. <<set $time.minutes += 10>>
  231. <<actCLA 'Continue'>>
  232. <</actCLA>>
  233. <</actCLA>>
  234. <</if>>
  235. <<if $location_var[$here][0] == 'grazecows'>>
  236. <<if getvar("$grandpaQW['chore_herd_cattle_experience']") == 0>>
  237. <p>"$pc.name_nick, we need to let the cows graze on the field today. So grab something to eat and lead the herd to the field. I'll meet you there."</p>
  238. <<else>>
  239. <p>"$pc.name_nick, it's our turn to look out for the cows grazing on the field today. So grab something to eat quickly, and stop by the field where the herd is. I'll bring them back home."</p>
  240. <</if>>
  241. <<setinit $grandpaQW['chore_herd_cattle'] = 1>>
  242. <<act 'Tell him you will meet him there'>>
  243. <<gt 'gadhouse' 'grandpa'>>
  244. <</act>>
  245. <<actCLA 'Agree and go to the field (0:40)'>>
  246. <<if getvar("$grandpaQW['chore_herd_cattle_experience']") == 0>>
  247. <<image "locations/gadukino/village/go_yard.jpg">>
  248. You take a little nibble of a sandwich and go to the shed where the herd is. Your grandmother put a sandwich and a bottle of water in the bag for lunch.
  249. <<else>>
  250. <<image "locations/gadukino/village/cow_go_field.jpg">>
  251. You have a quick bite and go to the field where the village herd is. Your grandmother put a sandwich and a bottle of water in the bag for lunch.
  252. <</if>>
  253. <<set $pc.mood += 20>>
  254. <<set $pc.pcs_health += 10>>
  255. <<set $time.minutes += 40>>
  256. <<if $inventory.get("water") == 0>>
  257. <<run $inventory.set('water',1)>>
  258. <</if>>
  259. <<if $inventory.get("sandwich") == 0>>
  260. <<run $inventory.set('sandwich',1)>>
  261. <</if>>
  262. <<act 'Continue'>>
  263. <<gt 'gadfield' 'cow'>>
  264. <</act>>
  265. <</actCLA>>
  266. <</if>>
  267. <<if $location_var[$here][0] == 'leadcows'>>
  268. <p>"I have sore feet today, $pc.name_nick. My dear granddaughter, could you lead the cow to the field and tell the herders to drive her home at the end of the day?"</p>
  269. <<setinit $grandpaQW['chore_lead_cow_to_field'] = 1>>
  270. <<act 'Tell him you will soon'>>
  271. <<gt 'gadhouse' 'grandpa'>>
  272. <</act>>
  273. <<actCLA 'Agree and go to the barn (0:10)'>>
  274. <<image "locations/gadukino/village/go_yard.jpg">>
  275. You walk over to the barn where the cows are kept.
  276. <<set $time.minutes += 10>>
  277. <<act 'Continue'>>
  278. <<gt 'gadsarai' 'cow'>>
  279. <</act>>
  280. <</actCLA>>
  281. <</if>>
  282. <<if $location_var[$here][0] == 'pickforest_mushrooms'>>
  283. <<setinit $grandpaQW['chore_gather_mushrooms'] = 1>>
  284. <<setinit $grandpaQW['chore_mushroom_quantity'] = rand(1,2)>>
  285. <p>"$pc.name_nick, could you go to the forest and pick mushrooms? I'm craving fried mushrooms."</p>
  286. <p>"How much should I pick, grandpa?" you ask.</p>
  287. <p>"grandpaQW['chore_mushroom_quantity'] kilos will be enough," grandfather replies. "Be careful so you don't get lost."</p>
  288. <<act 'Tell him you will go get some soon'>>
  289. <<gt 'gadhouse' 'grandpa'>>
  290. <</act>>
  291. <<actCLA 'Agree and go to the forest (1:00)'>>
  292. <<if $time.hour >= 6 and $time.hour < 22>>
  293. <<image "locations/gadukino/village/gadroad.jpg">>
  294. <<else>>
  295. <<image "locations/gadukino/village/gadroad_night.jpg">>
  296. <</if>>
  297. You agree to help your grandfather, grabbing a basket and setting out on the road to the forest.
  298. <<set $time.minutes += 60>>
  299. <<act 'Continue'>>
  300. <<gt 'gadforest' 'forest_edge'>>
  301. <</act>>
  302. <</actCLA>>
  303. <</if>>
  304. <<if $location_var[$here][0] == 'pickforest_berries'>>
  305. <<setinit $grandpaQW['chore_gather_berries'] = 1>>
  306. <<setinit $grandpaQW['chore_berry_quantity'] = rand(1,2)>>
  307. <p>"$pc.name_nick, could you go to the forest to pick some berries? Grandma wants to make homemade fruit jam."</p>
  308. <p>"How much should I pick, grandpa?" you ask.</p>
  309. <p>"grandpaQW['chore_berry_quantity'] kilos will be enough," grandfather replies. "Just be careful so you don't get lost."</p>
  310. <<act 'Tell him you will go get some soon'>>
  311. <<gt 'gadhouse' 'grandpa'>>
  312. <</act>>
  313. <<actCLA 'Agree and go to the forest (1:00)'>>
  314. <<if $time.hour >= 6 and $time.hour < 22>>
  315. <<image "locations/gadukino/village/gadroad.jpg">>
  316. <<else>>
  317. <<image "locations/gadukino/village/gadroad_night.jpg">>
  318. <</if>>
  319. You agree to help your grandfather, grabbing a basket and setting out on the road to the forest.
  320. <<set $time.minutes += 60>>
  321. <<act 'Continue'>>
  322. <<gt 'gadforest' 'forest_edge'>>
  323. <</act>>
  324. <</actCLA>>
  325. <</if>>
  326. <<if $location_var[$here][0] == 'pickforest_both'>>
  327. <<setinit $grandpaQW['chore_gather_both'] = 1>>
  328. <<setinit $grandpaQW['chore_mushroom_quantity'] = rand(1,2)>>
  329. <<setinit $grandpaQW['chore_berry_quantity'] = rand(1,2)>>
  330. <p>"$pc.name_nick, can you go to the forest and pick some berries and mushrooms? Your grandmother wants to make a mushroom soup, and I am craving some fresh berries."</p>
  331. <p>"How much should I pick, grandpa?"</p>
  332. <p>"grandpaQW['chore_mushroom_quantity'] kilos of mushrooms and grandpaQW['chore_berry_quantity'] kilos of berries will be enough," grandfather replies. "Just don't get lost."</p>
  333. <<act 'Tell him you will go get some soon'>>
  334. <<gt 'gadhouse' 'grandpa'>>
  335. <</act>>
  336. <<actCLA 'Agree and go to the forest (1:00)'>>
  337. <<if $time.hour >= 6 and $time.hour < 22>>
  338. <<image "locations/gadukino/village/gadroad.jpg">>
  339. <<else>>
  340. <<image "locations/gadukino/village/gadroad_night.jpg">>
  341. <</if>>
  342. You agree to help your grandfather, grabbing a basket and setting out on the road to the forest.
  343. <<set $time.minutes += 60>>
  344. <<act 'Continue'>>
  345. <<gt 'gadforest' 'forest_edge'>>
  346. <</act>>
  347. <</actCLA>>
  348. <</if>>