grandpahelp.qsrc 13 KB

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