1
0

grandpahelp.qsrc 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. # grandpahelp
  2. menu_off = 1
  3. gs'stat'
  4. '<center><img <<$set_imgh>> src="images/locations/gadukino/grandparents/grandpa1.jpg"></center>'
  5. 'You walk up to your grandfather and ask if he needs any help. Grandpa thinks for a moment and says:'
  6. if month <= 4 or month >= 10:
  7. grandpahelping = rand(0,5)
  8. elseif month = 5:
  9. grandpahelping = rand(3,8)
  10. elseif month = 6 or month = 9:
  11. grandpahelping = rand(3,12)
  12. else
  13. grandpahelping = rand(3,13)
  14. end
  15. if grandpahelping = 0:
  16. '"<<$pcs_nickname>>, could you bring firewood for the stove?"'
  17. act 'Fetch firewood (0:15)':
  18. *clr & cla
  19. if month >= 4 and month <= 10:
  20. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/firewood.jpg"></center>'
  21. else
  22. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/firewood_winter.jpg"></center>'
  23. end
  24. 'You put on some warm clothes and run over to the barn to collect some firewood. '
  25. '"I''ve brought some firewood grandfather," you said to your grandfather.'
  26. '"You are very quick <<$pcs_nickname>>." he replies with a smile. "That''s today''s youth for ya. There is no more work today."'
  27. minut += 15
  28. grandmahelp += 1
  29. gs'stat'
  30. act 'Go':gt'Gadhouse'
  31. end
  32. elseif grandpahelping = 1:
  33. '"<<$pcs_nickname>>, I need you to go to the barn and feed Desperado."'
  34. act 'Go to the barn (0:15)':
  35. *clr & cla
  36. if month >= 4 and month <= 10:
  37. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  38. else
  39. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard_winter.jpg"></center>'
  40. end
  41. 'You went to the barn and fed the horse.'
  42. feed_horse = 1
  43. minut += 15
  44. gs'stat'
  45. act 'Continue':gt'Gadsarai'
  46. end
  47. elseif grandpahelping = 2:
  48. '"<<$pcs_nickname>>, go to the barn to feed the cows."'
  49. act 'Go to the barn (0:15)':
  50. *clr & cla
  51. if month >= 4 and month <= 10:
  52. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  53. else
  54. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard_winter.jpg"></center>'
  55. end
  56. 'You went to the shed and fed the cows.'
  57. minut += 15
  58. feed_cow = 1
  59. gs'stat'
  60. act 'Continue':gt'Gadsarai'
  61. end
  62. elseif grandpahelping = 3:
  63. gt 'grandpahelp', 'cleanyard'
  64. elseif grandpahelping = 4:
  65. gt 'grandpahelp', 'groomhorse'
  66. elseif grandpahelping = 5:
  67. gt 'grandpahelp', 'feedhogs'
  68. elseif grandpahelping = 6 and hour >= 6 and hour < 9:
  69. gt 'grandpahelp', 'grazehorse'
  70. elseif grandpahelping = 7 and hour >= 6 and hour < 9:
  71. gt 'grandpahelp', 'leadcows'
  72. elseif grandpahelping = 8 and hour >= 6 and hour < 9:
  73. gt 'grandpahelp', 'grazecows'
  74. elseif grandpahelping = 9 and temper >= 15 and sunWeather = 1 and week > 5:
  75. gt 'grandpahelp', 'washhorse'
  76. elseif grandpahelping >= 10 and grandpahelping < 13 and go_in_boletus = 0 and go_in_bilberry = 0 and go_in_boletus_bilberry = 0:
  77. gt 'grandpahelp', 'pickforest'
  78. elseif grandpahelping = 13 and temper >= 15 and sunWeather = 1 and hour >= 6 and hour < 9:
  79. '"<<$pcs_nickname>>, we need to help out with hay gathering today. We have to go to the field and help out."'
  80. '"Okay, grandfather," you replied. You grab a rake, and start walking towards the field.'
  81. act 'Go to the field (0:40)':
  82. *clr & cla
  83. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_gadfield.jpg"></center>'
  84. '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.'
  85. haying_time = 1
  86. minut += 40
  87. gs'stat'
  88. act 'Continue':gt'gadfield','field'
  89. end
  90. else
  91. if hour >= 9:
  92. randmsg = rand(0,5)
  93. if randmsg = 0:
  94. '"You can rest today <<$pcs_nickname>>, you don''t need to help me today."'
  95. elseif randmsg = 1:
  96. '"You can rest today child, there is nothing to do."'
  97. elseif randmsg = 2:
  98. '"You can rest today <<$pcs_nickname>>, there is nothing to do."'
  99. elseif randmsg = 3:
  100. '"There''s no work today <<$pcs_nickname>>, go and rest up."'
  101. elseif randmsg = 4:
  102. '"You can rest today my dear granddaughter."'
  103. else
  104. '"You can take the day off to rest up."'
  105. end
  106. else
  107. randmsg = rand(0,1)
  108. if randmsg = 0:
  109. '"You don''t need to help out today <<$pcs_nickname>>."'
  110. else
  111. '"You can take the day off."'
  112. end
  113. end
  114. act 'Leave':gt'Gadhouse'
  115. end
  116. if $ARGS[0] = 'cleanyard':
  117. '"Of course <<$pcs_nickname>>, I need your help in the yard. Bring a garden tool with you."'
  118. act 'Clean up the yard (1:00)':
  119. *clr & cla
  120. if month >= 4 and month <= 10:
  121. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/clean_yard1.jpg"></center>'
  122. '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.'
  123. else
  124. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/clean_yard2.jpg"></center>'
  125. '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.'
  126. end
  127. minut += 60
  128. grandmahelp += 1
  129. if month >= 4 and month <= 10:
  130. fat -= rand(1,3)
  131. else
  132. stren_exp += 1
  133. fat -= rand(1,5)
  134. end
  135. gs'stat'
  136. act 'Go':gt'Gaddvor'
  137. end
  138. end
  139. if $ARGS[0] = 'feedhogs':
  140. '"<<$pcs_nickname>>, could you go to the barn and feed the hogs."'
  141. act 'Go to the barn (0:15)':
  142. *clr & cla
  143. if month >= 4 and month <= 10:
  144. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  145. else
  146. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard_winter.jpg"></center>'
  147. end
  148. 'You go to the barn and feed the hogs.'
  149. feed_boar = 1
  150. minut += 15
  151. gs'stat'
  152. act 'Continue':gt'Gadsarai'
  153. end
  154. end
  155. if $ARGS[0] = 'washhorse':
  156. '"It''s good weather today. Take Desperado to the river and give him a bath."'
  157. act 'Go to the barn (0:10)':
  158. *clr & cla
  159. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  160. 'You went and got the horse from the barn and led it to the river.'
  161. horse_river = 1
  162. minut += 10
  163. gs'stat'
  164. act 'Continue':gt'Gadsarai'
  165. end
  166. end
  167. if $ARGS[0] = 'groomhorse':
  168. '"Of course <<$pcs_nickname>>, I need your help to groom Desperado."'
  169. act 'Go to the barn (0:15)':
  170. *clr & cla
  171. if month >= 4 and month <= 10:
  172. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  173. else
  174. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard_winter.jpg"></center>'
  175. end
  176. 'You go to the barn, take out a brush and start grooming Desperado.'
  177. comb_horse = 1
  178. minut += 15
  179. gs'stat'
  180. act 'Continue':gt'Gadsarai'
  181. end
  182. end
  183. if $ARGS[0] = 'grazehorse':
  184. '"<<$pcs_nickname>>, take the horse to the field, my legs hurt so I need to rest for a bit. I`ll retrieve the horse up in the evening."'
  185. act 'Go to the barn (0:15)':
  186. *clr & cla
  187. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  188. 'You lead the horse to the field.'
  189. horse_field = 1
  190. minut += 15
  191. gs'stat'
  192. act 'Continue':& gt'Gadsarai'
  193. end
  194. end
  195. if $ARGS[0] = 'grazecows':
  196. if graze_cow_exp = 0:
  197. '"<<$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."'
  198. else
  199. '"<<$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."'
  200. end
  201. act 'Go to the field (0:20)':
  202. *clr & cla
  203. if graze_cow_exp = 0:
  204. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  205. '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.'
  206. else
  207. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/cow_go_field.jpg"></center>'
  208. '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.'
  209. end
  210. graze_cow = 1
  211. pcs_mood += 20
  212. pcs_health += 10
  213. minut += 20
  214. if bottle = 0: bottle = 1
  215. if buterbrod = 0: buterbrod = 1
  216. gs'stat'
  217. act 'Continue':gt'gadfield','cow'
  218. end
  219. end
  220. if $ARGS[0] = 'leadcows':
  221. '"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."'
  222. act 'Go to the barn (0:15)':
  223. *clr & cla
  224. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/go_yard.jpg"></center>'
  225. 'You go to the shed where the cows are and lead the herd to the field.'
  226. cow_field = 1
  227. minut += 15
  228. gs'stat'
  229. act 'Continue':gt'Gadsarai'
  230. end
  231. end
  232. if $ARGS[0] = 'pickforest':
  233. if grandpahelping = 10:
  234. go_in_boletus = 1
  235. grandpa_boletus = rand(2,3)
  236. '"<<$pcs_nickname>>, could you go to the forest and pick mushrooms? I''m craving fried mushrooms."'
  237. '"How much should I pick, grandpa?", you ask.'
  238. '"<<grandpa_boletus>> kg will be enough," grandfather replies. "Be careful so you don''t get lost."'
  239. elseif grandpahelping = 11:
  240. go_in_bilberry = 1
  241. grandpa_bilberry = rand(3,5)
  242. '"<<$pcs_nickname>>, could you go to the forest to pick some berries? Grandma wants to make homemade fruit jam."'
  243. '"How much should I pick, grandpa?" you ask.'
  244. '"<<grandpa_bilberry>> kg will be enough," grandfather replies. "Just be careful so you don''t get lost."'
  245. elseif grandpahelping = 12:
  246. go_in_boletus_bilberry = 1
  247. grandpa_boletus = rand(1,2)
  248. grandpa_bilberry = rand(2,3)
  249. '"<<$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."'
  250. '"How much should I pick, grandpa?"'
  251. '"<<grandpa_boletus>> kg mushrooms and <<grandpa_bilberry>> kg of berries will be enough," grandfather replies. "Just don`t get lost."'
  252. end
  253. act 'Go':gt'Gadhouse'
  254. end
  255. --- grandpahelp ---------------------------------