grandpahelp.qsrc 12 KB

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