grandpahelp.qsrc 10.0 KB

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