gaddvor.qsrc 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. # gaddvor
  2. if $ARGS[0]='':
  3. music_loop = 0
  4. $loc_arg = ''
  5. $loc = 'gaddvor'
  6. $location_type = 'public_outdoors'
  7. $menu_loc = 'gaddvor'
  8. $menu_arg = ''
  9. menu_off = 0
  10. killvar '$locclass'
  11. gs 'stat'
  12. CLOSE ALL
  13. gs 'gadukino_event', 'sound'
  14. '<center><h4>Your grandparents'' yard</h4></center>'
  15. if month >= 4 and month <= 10:
  16. if hour >= 6 and hour < 22:
  17. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor.jpg"></center>'
  18. else
  19. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor_night.jpg"></center>'
  20. end
  21. else
  22. if hour >= 8 and hour < 18:
  23. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor_winter.jpg"></center>'
  24. else
  25. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor_winter_night.jpg"></center>'
  26. end
  27. end
  28. *nl
  29. 'A fenced yard behind your grandparents'' house. The yard contains a small barn, garden, root cellar, and banya where you can bathe.'
  30. if $clothingworntype = 'nude':
  31. *nl
  32. 'You are naked and can only go into your grandparent''s house to get dressed or go to the banya.'
  33. act 'Enter your grandparents'' house':minut += 1 & gt 'gadhouse', 'start'
  34. act 'Enter the banya':minut += 1 & gt 'gadbana'
  35. else
  36. if grandmaQW['chore_feed_chickens'] = 1 or (hour >= 6 and hour < 20 and month >= 4 and month <= 10):'In the yard there are several <a href="exec:gt ''gaddvor'',''chickens''">chickens</a> running around.'
  37. if curr_home = 14 and hour > 7 and hour < 20 and rex['owned'] = 1:
  38. if $status['dog'] = '':
  39. gt 'pet_dog', 'name'
  40. else
  41. if rex['gadukino_day'] ! daystart:
  42. rex['relationship'] += 2
  43. rex['gadukino_day'] = daystart
  44. end
  45. '<br><a href="exec: gt ''pet_dog'', ''gadukino''"><<$rex[''name'']>></a> is running around in the garden.'
  46. end
  47. end
  48. end
  49. if mira_guest = 1: Miraloc = 7 & 'Your friend <a href="exec: gt ''miroslava'', ''Start''">Mira</a> stands next to you.'
  50. if MiraLoc ! 7: mira_guest = 0
  51. act '<b>Leave and go into the village</b>':
  52. if $clothingworntype ! 'nude':
  53. minut += 5
  54. gt 'gadukino'
  55. else
  56. msg'<b><font color = red>You need to get dressed.</font></b>'
  57. gt 'gaddvor'
  58. end
  59. end
  60. if grandpaQW['chore_clean_yard'] = 1:
  61. act 'Clean up the yard for Grandpa (1:00)':
  62. *clr & cla
  63. if month >= 4 and month <= 10:
  64. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/clean_yard1.jpg"></center>'
  65. '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.'
  66. else
  67. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/clean_yard2.jpg"></center>'
  68. '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.'
  69. end
  70. minut += 60
  71. grandpaQW['chore_clean_yard'] = 2
  72. if month >= 4 and month <= 10:
  73. fat -= rand(1,3)
  74. pcs_stam -= 5
  75. gs 'sweat', 'add', 10
  76. else
  77. gs 'exp_gain', 'stren', 1
  78. fat -= rand(1,5)
  79. pcs_stam -= 10
  80. gs 'sweat', 'add', 5
  81. end
  82. gs'stat'
  83. act 'Finish':gt'gaddvor'
  84. act 'Return back to your grandfather': minut += 1 & gt 'gadhouse', 'grandpa'
  85. end
  86. end
  87. act 'Enter your grandparents'' house':minut += 1 & gt 'gadhouse', 'start'
  88. act 'Enter the banya':minut += 1 & gt 'gadbana'
  89. act 'Go to the barn':minut += 1 & gt 'gadsarai'
  90. act 'Go to the root cellar': minut += 1 & gt 'gaddvor', 'root_cellar'
  91. act 'Go to the garden':minut += 1 & gt'gadgarden','garden'
  92. if grandmaQW['chore_feed_chickens'] = 1 or (hour >= 6 and hour < 20 and month >= 4 and month <= 10):act 'Look at your grandparents'' chickens':gt 'gaddvor','chickens'
  93. if rand(1,5) = 1 and hour >= 9 and hour <= 19 and npc_rel['A60'] >= 15 and Mira_no = 0 and sunWeather = 1 and mira_guestday ! daystart and (npc_QW['A63'] < 13 or npc_QW['A60'] >= 10 or mirasex > 1):
  94. *clr & cla
  95. menu_off = 1
  96. gs 'miroslava', 'miraclothes'
  97. 'You went out into the yard and noticed Mira standing there.'
  98. '"Oh, <<$pcs_nickname>> hi, hope you don''t mind me visiting. I was bored being home alone." she said smiling.'
  99. mira_guestday = daystart
  100. minut += 5
  101. mira_guest = 1
  102. gs 'stat'
  103. act 'Continue':gt'gaddvor'
  104. end
  105. clothesAtLocation = FUNC('lost_clothes_here',$CURLOC)
  106. if clothesAtLocation = 1:
  107. if $clothingworntype = 'nude':
  108. act 'Get dressed':
  109. gs 'clothing', 'recover_lost_clothes', 'gaddvor', 1
  110. gs 'underwear', 'wear'
  111. gt 'gaddvor'
  112. end
  113. else
  114. act 'Pick up your clothes':
  115. gs 'clothing', 'recover_lost_clothes', 'gaddvor'
  116. 'You picked up your clothes.'
  117. gt 'gaddvor'
  118. end
  119. end
  120. end
  121. end
  122. if $ARGS[0] = 'root_cellar':
  123. *clr & cla
  124. $loc_arg = 'root_cellar'
  125. '<center><h4>Root Cellar</h4></center>'
  126. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/root_cellar.jpg"></center>'
  127. *nl
  128. if boletus_stored + bilberry_stored >= 20:
  129. 'Your grandparents'' root cellar is full.'
  130. elseif boletus_stored + bilberry_stored > 0:
  131. 'Your grandparents'' root cellar is partially full.'
  132. else
  133. 'Your grandparents'' root cellar is empty.'
  134. end
  135. 'Even though your grandparents allow you to store extra mushrooms and berries you pick in here, they reserve the right to use them too, so you aren''t surprised if any go missing day to day.'
  136. if boletus_stored > 0: 'You currently are storing <b><<boletus_stored>></b> kg of raw mushrooms.'
  137. if bilberry_stored > 0: 'You currently are storing <b><<bilberry_stored>></b> kg of raw berries.'
  138. *nl
  139. if boletus + boletus_cooked + bilberry >= 5:
  140. 'Your basket is full and you cannot carry more.'
  141. elseif boletus + boletus_cooked + bilberry > 0:
  142. 'Your basket is partially full.'
  143. else
  144. 'Your basket is empty.'
  145. end
  146. if boletus > 0: 'You currently are carrying <b><<boletus>></b> kg of raw mushrooms.'
  147. if boletus_cooked > 0: 'You currently are carrying <b><<boletus_cooked>></b> kg of cooked mushrooms.'
  148. if bilberry > 0: 'You currently are carrying <b><<bilberry>></b> kg of raw berries.'
  149. act 'Go back to the yard': minut += 1 & gt 'gaddvor'
  150. if (boletus_stored + bilberry_stored < 20) and (boletus > 0 or bilberry > 0):
  151. act 'Store as many raw mushrooms and berries that will fit (Max 20 kgs):':
  152. :store_bb_loop
  153. if boletus > 0:
  154. boletus_stored += 1
  155. boletus -= 1
  156. if boletus_stored + bilberry_stored < 20: jump 'store_bb_loop'
  157. end
  158. if bilberry > 0:
  159. bilberry_stored += 1
  160. bilberry -= 1
  161. if boletus_stored + bilberry_stored < 20: jump 'store_bb_loop'
  162. end
  163. gt 'gaddvor', 'root_cellar'
  164. end
  165. if boletus > 0:
  166. act 'Store 1 kg of raw mushrooms':
  167. boletus_stored += 1
  168. boletus -= 1
  169. gt 'gaddvor', 'root_cellar'
  170. end
  171. end
  172. if bilberry > 0:
  173. act 'Store 1 kg of raw berries':
  174. bilberry_stored += 1
  175. bilberry -= 1
  176. gt 'gaddvor', 'root_cellar'
  177. end
  178. end
  179. end
  180. if (boletus_stored > 0 or bilberry_stored > 0) and (boletus + boletus_cooked + bilberry < 5):
  181. act 'Retrieve as many raw mushrooms and berries as you can carry (Max 5 kgs)':
  182. :retrieve_bb_loop
  183. if boletus_stored > 0:
  184. boletus += 1
  185. boletus_stored -= 1
  186. if boletus + boletus_cooked + bilberry < 5: jump 'retrieve_bb_loop'
  187. end
  188. if bilberry_stored > 0:
  189. bilberry += 1
  190. bilberry_stored -= 1
  191. if boletus + boletus_cooked + bilberry < 5: jump 'retrieve_bb_loop'
  192. end
  193. gt 'gaddvor', 'root_cellar'
  194. end
  195. if (boletus_stored > 0 and grandmaQW['chore_can_mushrooms'] ! 1) or (boletus_stored > 5 and grandmaQW['chore_can_mushrooms'] = 1):
  196. act 'Retrieve 1 kg of raw mushrooms':
  197. boletus += 1
  198. boletus_stored -= 1
  199. gt 'gaddvor', 'root_cellar'
  200. end
  201. end
  202. if (bilberry_stored > 0 and grandmaQW['chore_can_berries'] ! 1) or (bilberry_stored > 5 and grandmaQW['chore_can_berries'] = 1):
  203. act 'Retrieve 1 kg of raw berries':
  204. bilberry += 1
  205. bilberry_stored -= 1
  206. gt 'gaddvor', 'root_cellar'
  207. end
  208. end
  209. end
  210. end
  211. if $ARGS[0] = 'chickens':
  212. *clr & cla
  213. $loc_arg = 'chickens'
  214. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/chickens1.jpg"></center>'
  215. 'Ordinary chickens clucking about their pen.'
  216. minut += 1
  217. gs 'stat'
  218. act 'Leave': gt'gaddvor'
  219. !job Granny
  220. if grandmaQW['chore_feed_chickens'] = 1:
  221. act 'Feed the chickens':
  222. *clr & cla
  223. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/chickens2.jpg"></center>'
  224. 'You decide to feed the chickens. You pick up a bucket full of bird''s seed and grain mix and toss it on the ground. They immediately rush over and start to greedily eat. You watch them for a bit before you go about your business.'
  225. minut += 30
  226. grandmaQW['chore_feed_chickens'] = 2
  227. gs 'exp_gain', 'hndiwrk', rand(0,3)
  228. gs 'stat'
  229. act 'Finish':gt'gaddvor'
  230. act 'Return back to your grandmother': minut += 1 & gt 'gadhouse', 'grandma'
  231. end
  232. end
  233. end
  234. --- gaddvor ---------------------------------