grandpahelp.qsrc 13 KB

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