1
0

gaddvor.qsrc 8.2 KB

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