1
0

gaddvor.qsrc 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. # gaddvor
  2. if $ARGS[0]='':
  3. music_loop = 0
  4. $metka = ''
  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. if StoryLine = 1:
  15. '<center><h4>Your grandparents'' yard</h4></center>'
  16. else
  17. '<center><h4>Old couple''s yard</h4></center>'
  18. end
  19. if month >= 4 and month <= 10:
  20. if hour >= 6 and hour < 22:
  21. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor.jpg"></center>'
  22. else
  23. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor_night.jpg"></center>'
  24. end
  25. else
  26. if hour >= 8 and hour < 18:
  27. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor_winter.jpg"></center>'
  28. else
  29. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/dvor_winter_night.jpg"></center>'
  30. end
  31. end
  32. *nl
  33. 'A fenced yard behind your grandparents'' house. The yard contains a small barn, garden, root cellar, and banya where you can bathe.'
  34. if $clothingworntype = 'nude':
  35. *nl
  36. 'You are naked and can only go into your grandparent''s house to get dressed or go to the banya.'
  37. act 'Enter your grandparents'' house':minut += 1 & gt 'gadhouse', 'start'
  38. act 'Enter the banya':minut += 1 & gt 'gadbana'
  39. else
  40. 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.'
  41. if mira_guest = 1: Miraloc = 7 & 'Your friend <a href="exec: gt ''miroslava'', ''Start''">Mira</a> stands next to you.'
  42. if MiraLoc ! 7: mira_guest = 0
  43. act '<b>Leave and go into the village</b>':minut += 5 & gt 'gadukino'
  44. if grandpaQW['chore_clean_yard'] = 1:
  45. act 'Clean up the yard for Grandpa (1:00)':
  46. *clr & cla
  47. if month >= 4 and month <= 10:
  48. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/clean_yard1.jpg"></center>'
  49. '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.'
  50. else
  51. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/clean_yard2.jpg"></center>'
  52. '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.'
  53. end
  54. minut += 60
  55. grandpaQW['chore_clean_yard'] = 2
  56. if month >= 4 and month <= 10:
  57. fat -= rand(1,3)
  58. pcs_stam -= 5
  59. gs 'sweat', 'add', 10
  60. else
  61. stren_exp += 1
  62. fat -= rand(1,5)
  63. pcs_stam -= 10
  64. gs 'sweat', 'add', 5
  65. end
  66. gs'stat'
  67. act 'Finish':gt'gaddvor'
  68. act 'Return back to your grandfather': minut += 1 & gt 'gadhouse', 'grandpa'
  69. end
  70. end
  71. act 'Enter your grandparents'' house':minut += 1 & gt 'gadhouse', 'start'
  72. act 'Enter the banya':minut += 1 & gt 'gadbana'
  73. act 'Go to the barn':minut += 1 & gt 'gadsarai'
  74. act 'Go to the root cellar': minut += 1 & gt 'gaddvor', 'root_cellar'
  75. act 'Go to the garden':minut += 1 & gt'gadgarden','garden'
  76. 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'
  77. mira_temp = rand(1,5)
  78. if mira_temp = 3 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):
  79. *clr & cla
  80. menu_off = 1
  81. gs 'miroslava', 'miraclothes'
  82. 'You went out into the yard and noticed Mira standing there.'
  83. '"Oh, <<$pcs_nickname>> hi, hope you don’’t mind me visiting. I was bored being home alone." she said smiling.'
  84. mira_guestday = daystart
  85. minut += 5
  86. mira_guest = 1
  87. gs 'stat'
  88. act 'Continue':gt'gaddvor'
  89. end
  90. end
  91. clothesAtLocation = FUNC('lost_clothes_here',$CURLOC)
  92. if clothesAtLocation = 1:
  93. if $clothingworntype = 'nude':
  94. act 'Get dressed':
  95. gs 'clothing', 'recover_lost_clothes', 'gaddvor', 1
  96. gs 'underwear', 'wear'
  97. gt 'gaddvor'
  98. end
  99. else
  100. act 'Pick up your clothes':
  101. gs 'clothing', 'recover_lost_clothes', 'gaddvor'
  102. 'You picked up your clothes.'
  103. gt 'gaddvor'
  104. end
  105. end
  106. end
  107. end
  108. if $ARGS[0] = 'root_cellar':
  109. *clr & cla
  110. '<center><h4>Root Cellar</h4></center>'
  111. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/root_cellar.jpg"></center>'
  112. *nl
  113. if boletus_stored + bilberry_stored >= 20:
  114. 'Your grandparents'' root cellar is full.'
  115. elseif boletus_stored + bilberry_stored > 0:
  116. 'Your grandparents'' root cellar is partially full.'
  117. else
  118. 'Your grandparents'' root cellar is empty.'
  119. end
  120. '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.'
  121. if boletus_stored > 0: 'You currently are storing <b><<boletus_stored>></b> kg of raw mushrooms.'
  122. if bilberry_stored > 0: 'You currently are storing <b><<bilberry_stored>></b> kg of raw berries.'
  123. *nl
  124. if boletus + boletus_cooked + bilberry >= 5:
  125. 'Your basket is full and you cannot carry more.'
  126. elseif boletus + boletus_cooked + bilberry > 0:
  127. 'Your basket is partially full.'
  128. else
  129. 'Your basket is empty.'
  130. end
  131. if boletus > 0: 'You currently are carrying <b><<boletus>></b> kg of raw mushrooms.'
  132. if boletus_cooked > 0: 'You currently are carrying <b><<boletus_cooked>></b> kg of cooked mushrooms.'
  133. if bilberry > 0: 'You currently are carrying <b><<bilberry>></b> kg of raw berries.'
  134. act 'Go back to the yard': minut += 1 & gt 'gaddvor'
  135. if (boletus_stored + bilberry_stored < 20) and (boletus > 0 or bilberry > 0):
  136. act 'Store as many raw mushrooms and berries that will fit (Max 20 kgs):':
  137. :store_bb_loop
  138. if boletus > 0:
  139. boletus_stored += 1
  140. boletus -= 1
  141. if boletus_stored + bilberry_stored < 20: jump 'store_bb_loop'
  142. end
  143. if bilberry > 0:
  144. bilberry_stored += 1
  145. bilberry -= 1
  146. if boletus_stored + bilberry_stored < 20: jump 'store_bb_loop'
  147. end
  148. gt 'gaddvor', 'root_cellar'
  149. end
  150. if boletus > 0:
  151. act 'Store 1 kg of raw mushrooms':
  152. boletus_stored += 1
  153. boletus -= 1
  154. gt 'gaddvor', 'root_cellar'
  155. end
  156. end
  157. if bilberry > 0:
  158. act 'Store 1 kg of raw berries':
  159. bilberry_stored += 1
  160. bilberry -= 1
  161. gt 'gaddvor', 'root_cellar'
  162. end
  163. end
  164. end
  165. if (boletus_stored > 0 or bilberry_stored > 0) and (boletus + boletus_cooked + bilberry < 5):
  166. act 'Retrieve as many raw mushrooms and berries as you can carry (Max 5 kgs)':
  167. :retrieve_bb_loop
  168. if boletus_stored > 0:
  169. boletus += 1
  170. boletus_stored -= 1
  171. if boletus + boletus_cooked + bilberry < 5: jump 'retrieve_bb_loop'
  172. end
  173. if bilberry_stored > 0:
  174. bilberry += 1
  175. bilberry_stored -= 1
  176. if boletus + boletus_cooked + bilberry < 5: jump 'retrieve_bb_loop'
  177. end
  178. gt 'gaddvor', 'root_cellar'
  179. end
  180. if (boletus_stored > 0 and grandmaQW['chore_can_mushrooms'] ! 1) or (boletus_stored > 5 and grandmaQW['chore_can_mushrooms'] = 1):
  181. act 'Retrieve 1 kg of raw mushrooms':
  182. boletus += 1
  183. boletus_stored -= 1
  184. gt 'gaddvor', 'root_cellar'
  185. end
  186. end
  187. if (bilberry_stored > 0 and grandmaQW['chore_can_berries'] ! 1) or (bilberry_stored > 5 and grandmaQW['chore_can_berries'] = 1):
  188. act 'Retrieve 1 kg of raw berries':
  189. bilberry += 1
  190. bilberry_stored -= 1
  191. gt 'gaddvor', 'root_cellar'
  192. end
  193. end
  194. end
  195. end
  196. if $ARGS[0] = 'chickens':
  197. *clr & cla
  198. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/chickens1.jpg"></center>'
  199. 'Ordinary chickens clucking about their pen.'
  200. minut += 1
  201. gs 'stat'
  202. act 'Leave': gt'gaddvor'
  203. !job Granny
  204. if grandmaQW['chore_feed_chickens'] = 1:
  205. act 'Feed the chickens':
  206. *clr & cla
  207. '<center><img <<$set_imgh>> src="images/locations/gadukino/village/chickens2.jpg"></center>'
  208. '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.'
  209. minut += 30
  210. grandmaQW['chore_feed_chickens'] = 2
  211. hndiwrk_exp += rand(0,3)
  212. gs 'stat'
  213. act 'Finish':gt'gaddvor'
  214. act 'Return back to your grandmother': minut += 1 & gt 'gadhouse', 'grandma'
  215. end
  216. end
  217. end
  218. --- gaddvor ---------------------------------