1
0

gadforestlost.qsrc 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. # gadforestlost
  2. ! this file holds all the current code and events for player when lost
  3. ! it is structured like the normal gadforest file with similar actions and arguments but with unique events
  4. if $ARGS[0] = 'forest_outskirts':
  5. *clr & cla
  6. $loc = 'gadforestlost'
  7. $loc_arg = 'forest_outskirts'
  8. $location_type = 'secluded'
  9. $menu_loc = 'gadforestlost'
  10. $menu_arg = 'forest_outskirts'
  11. menu_off = 0
  12. $forest_args1 = 'forest_outskirts'
  13. CLOSE ALL
  14. gs 'gadukino_event', 'sound'
  15. gs 'stat'
  16. gs 'gadforestlost', 'gadforestlost_picture'
  17. ! having a bonfire increases chances of being rescued and decreases chances of wolves attacking
  18. foresteventrand = rand(1,40)
  19. if foresteventrand <= (2+(bonfire*5)) and daystart >= forest_lostday and month >= 6 and month <= 9 and hour >= 8 and hour <= 16 and mushroom_pickersday ! daystart: mushroom_pickers = 2 & gt 'gadforestlost', 'rescue', 'pickers', 'forest_outskirts'
  20. if foresteventrand <= (4+(bonfire*5)) and daystart > forest_lostday and month >= 4 and month <= 10 and ((hour >= 8 and hour < 12) or (hour >= 14 and hour < 18)) and daystart > forest_lostday + 1: gt 'gadforestlost', 'rescue', 'hunters', 'forest_outskirts'
  21. if foresteventrand <= (6+(bonfire*5)) and daystart > forest_lostday: gt 'gadforestlost', 'rescue', 'ranger', 'forest_outskirts'
  22. if foresteventrand <= (8-(bonfire*5)) and (hour < 6 or hour > 22): gt 'gadforestlost', 'wolves', 'forest_outskirts'
  23. gs 'gadforestlost', 'wander'
  24. act 'Relax here for a bit': gt 'gadforestlost', 'relax'
  25. gs 'gadforestlost', 'picking'
  26. end
  27. if $ARGS[0] = 'forest_center':
  28. *clr & cla
  29. $loc = 'gadforestlost'
  30. $loc_arg = 'forest_center'
  31. $location_type = 'secluded'
  32. $menu_loc = 'gadforestlost'
  33. $menu_arg = 'forest_center'
  34. menu_off = 0
  35. $forest_args1 = 'forest_center'
  36. CLOSE ALL
  37. gs 'gadukino_event', 'sound'
  38. gs 'stat'
  39. gs 'gadforestlost', 'gadforestlost_picture'
  40. ! having a bonfire increases chances of being rescued and decreases chances of wolves attacking
  41. foresteventrand = rand(1,40)
  42. if foresteventrand <= (1+(bonfire*2)) and daystart > forest_lostday and month >= 4 and month <= 10 and ((hour >= 8 and hour < 12) or (hour >= 14 and hour < 18)) and daystart > forest_lostday: gt 'gadforestlost', 'rescue', 'hunters', 'forest_center'
  43. if foresteventrand <= (3+(bonfire*2)) and daystart > forest_lostday + 1: gt 'gadforestlost', 'rescue', 'ranger', 'forest_center'
  44. if foresteventrand <= (8-(bonfire*2)) and (hour < 6 or hour > 22): gt 'gadforestlost', 'wolves', 'forest_center'
  45. gs 'gadforestlost', 'wander'
  46. act 'Relax here for a bit': gt 'gadforestlost', 'relax'
  47. gs 'gadforestlost', 'picking'
  48. end
  49. ! this gs handles the bushcraft increases, clothing degradation, while lost in the forest
  50. ! $ARGS[1] - location of forest where this is called from
  51. ! Example: gs 'gadforestlost', 'bushcraft', 'forest_outskirts'
  52. if $ARGS[0] = 'bushcraft':
  53. if $ARGS[1] = 'forest_outskirts':
  54. bushcraft_rand = 2
  55. bushcraft_lost = 20
  56. torncloth_high_bushcraft = 9
  57. torncloth_low_bushcraft = 7
  58. elseif $ARGS[1] = 'forest_center':
  59. bushcraft_rand = 3
  60. bushcraft_lost = 30
  61. torncloth_high_bushcraft = 8
  62. torncloth_low_bushcraft = 5
  63. end
  64. ! No limit on earning bushcraft while lost but still random
  65. gs 'exp_gain', 'bushcraft', rand(0,bushcraft_rand)
  66. ripclothesrand = rand(1,10)
  67. if pcs_bushcraft < bushcraft_limit:
  68. if ripclothesrand >= torncloth_low_bushcraft: gs 'gadforest', 'torncloth'
  69. else
  70. if ripclothesrand >= torncloth_high_bushcraft: gs 'gadforest', 'torncloth'
  71. end
  72. gs 'stat'
  73. end
  74. ! this gs handles Sveta trying to find her way in the forest when lost
  75. ! $forest_args1 - location of forest where this is called from
  76. ! Example: gs 'gadforestlost', 'wander'
  77. if $ARGS[0] = 'wander':
  78. if DayStage < 4:
  79. act 'Wander trying to get your bearings (1:30)':
  80. *clr & cla
  81. menu_off = 1
  82. minut += 90
  83. gs 'stat'
  84. gs 'gadforestlost', 'bushcraft', $forest_args1
  85. '<center><H4>Somewhere in the forest</H4></center>'
  86. if $clothingworntype = 'nude':'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestsearch_nude0.'+rand(1,4)+'.jpg"></center>'
  87. if $clothingworntype ! 'nude' and PCloSkirt = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestsearch0.'+rand(1,4)+'.jpg"></center>'
  88. if $clothingworntype ! 'nude' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestsearch_ski0.'+rand(1,4)+'.jpg"></center>'
  89. *nl
  90. if pcs_bushcraft < bushcraft_lost:
  91. lostrand = rand(1,bushcraft_lost)
  92. if pcs_bushcraft > lostrand:
  93. gt 'gadforestlost','finish', $forest_args1
  94. else
  95. 'After half an hour wandering around, you feel like all you''ve accomplished is walking in circles.'
  96. act 'Continue':gt 'gadforestlost', $forest_args1
  97. end
  98. else
  99. gt 'gadforestlost','finish', $forest_args1
  100. end
  101. end
  102. end
  103. end
  104. ! $forest_args1 - location of forest where this is called from
  105. ! Example: gt 'gadforestlost', 'relax'
  106. if $ARGS[0] = 'relax':
  107. *clr & cla
  108. $loc = 'gadforestlost'
  109. $loc_arg = 'relax'
  110. $location_type = 'secluded'
  111. $menu_loc = 'gadforestlost'
  112. $menu_arg = 'relax'
  113. menu_off = 0
  114. CLOSE ALL
  115. gs 'gadukino_event', 'sound'
  116. gs 'stat'
  117. if $forest_args1 = 'forest_outskirts':
  118. ! having a bonfire increases chances of being rescued and decreases chances of wolves attacking
  119. foresteventrand = rand(1,30)
  120. if foresteventrand <= (2+(bonfire*5)) and daystart >= forest_lostday and month >= 6 and month <= 9 and hour >= 8 and hour <= 16 and mushroom_pickersday ! daystart: mushroom_pickers = 2 & gt 'gadforestlost', 'rescue', 'pickers', $forest_args1
  121. if foresteventrand <= (4+(bonfire*5)) and daystart > forest_lostday and month >= 4 and month <= 10 and ((hour >= 8 and hour < 12) or (hour >= 14 and hour < 18)): gt 'gadforestlost', 'rescue', 'hunters', $forest_args1
  122. if foresteventrand <= (6+(bonfire*5)) and daystart > forest_lostday+1: gt 'gadforestlost', 'rescue', 'ranger', $forest_args1
  123. elseif $forest_args1 = 'forest_center':
  124. ! having a bonfire increases chances of being rescued and decreases chances of wolves attacking
  125. foresteventrand = rand(1,40)
  126. if foresteventrand <= (1+(bonfire*5)) and daystart > forest_lostday and month >= 4 and month <= 10 and ((hour >= 8 and hour < 12) or (hour >= 14 and hour < 18)): gt 'gadforestlost', 'rescue', 'hunters', $forest_args1
  127. if foresteventrand <= (3+(bonfire*5)) and daystart > forest_lostday+1: gt 'gadforestlost', 'rescue', 'ranger', $forest_args1
  128. end
  129. '<center><H4>Somewhere in the forest</H4></center>'
  130. if $clothingworntype = 'nude':'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_nude'+ rand(1,3) +'.jpg"></center>'
  131. if $clothingworntype ! 'nude' and PCloSkirt = 0 and bonfire = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax1.jpg"></center>'
  132. if $clothingworntype ! 'nude' and PCloSkirt = 0 and bonfire = 1:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax2.jpg"></center>'
  133. if $clothingworntype ! 'nude' and PCloSkirt > 0 and bonfire = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_ski1.jpg"></center>'
  134. if $clothingworntype ! 'nude' and PCloSkirt > 0 and $pantyworntype ! 'none' and bonfire = 1:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_ski2.jpg"></center>'
  135. if $clothingworntype ! 'nude' and PCloSkirt > 0 and $pantyworntype = 'none' and bonfire = 1:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_ski3.jpg"></center>'
  136. *nl
  137. 'You decide this is as good of place as any to stop and take a break.'
  138. if bonfire = 0:
  139. '<font color="red">You should build a bonfire to increase the chance of being rescued and decrease the chance of being attacked by wolves.</font>'
  140. else
  141. '<font color="green">Your bonfire burns bright, increasing the chance of being rescued and decreasing the chance of being attacked by wolves.</font>'
  142. end
  143. act 'Explore the forest': gt 'gadforestlost', $forest_args1
  144. if bonfire = 0:
  145. act 'Build a fire (0:30)':
  146. *clr & cla
  147. menu_off = 1
  148. minut += 30
  149. bonfire = 1
  150. gs 'stat'
  151. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfire1.jpg"></center>'
  152. *nl
  153. 'After a few minutes, you are able to get a nice sized fire started.'
  154. act 'Continue':gt 'gadforestlost', 'relax'
  155. end
  156. act 'Sit and relax (1:00)':
  157. *clr & cla
  158. menu_off = 1
  159. minut += 60
  160. gs 'stat'
  161. if $clothingworntype = 'nude':'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_nude'+rand(1,2)+'.jpg"></center>'
  162. if $clothingworntype ! 'nude' and PCloSkirt = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax3.jpg"></center>'
  163. if $clothingworntype ! 'nude' and $pantyworntype ! 'none' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_ski4.jpg"></center>'
  164. if $clothingworntype ! 'nude' and $pantyworntype = 'none' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_ski5.jpg"></center>'
  165. *nl
  166. 'You spend half an hour relaxing, trying to pretend this is just like any other walk in the woods you''ve done.'
  167. act 'Continue':gt 'gadforestlost', 'relax'
  168. end
  169. if pcs_sleep < 40:
  170. act 'Nap on the ground (2:00)':
  171. *clr & cla
  172. menu_off = 1
  173. pcs_mood += 10
  174. pcs_health -= 5
  175. gs 'sleep_simple', 'nap_base', 120
  176. if $clothingworntype = 'nude':'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleepnude1.'+rand(1,2)+'.jpg"></center>'
  177. if $clothingworntype ! 'nude' and PCloSkirt = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleep.jpg"></center>'
  178. if $clothingworntype ! 'nude' and $pantyworntype ! 'none' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleepski.jpg"></center>'
  179. if $clothingworntype ! 'nude' and $pantyworntype = 'none' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleepski1.jpg"></center>'
  180. *nl
  181. 'You are able to make youself fall asleep for about 2 hours, but that is it. If you want to get a full nights sleep you will have to find a way out of the forest.'
  182. 'Even though you had to sleep on the ground, you do wake up feeling a bit more hopeful and rested.'
  183. act 'Continue':gt 'gadforestlost', 'relax'
  184. end
  185. end
  186. elseif bonfire = 1:
  187. act 'Warm up by the fire (1:00)':
  188. *clr & cla
  189. menu_off = 1
  190. minut += 60
  191. if frost > 0: frost -= 1
  192. gs 'stat'
  193. if hour >= 6 and hour < 21:
  194. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfire2.jpg"></center>'
  195. else
  196. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfire3.jpg"></center>'
  197. end
  198. *nl
  199. 'You spend half an hour huddled by the flames'
  200. act 'Continue':gt 'gadforestlost', 'relax'
  201. end
  202. if pcs_sleep < 40:
  203. act 'Nap by the fire (2:00)':
  204. *clr & cla
  205. menu_off = 1
  206. pcs_mood += 20
  207. frost = 0
  208. gs 'sleep_simple', 'nap_base', 120
  209. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfiresleep.jpg"></center>'
  210. *nl
  211. 'You are able to make youself fall asleep for about 2 hours, but that is it. If you want to get a full nights sleep you will have to find a way out of the forest.'
  212. 'Even though you had to sleep on the ground, you do wake up feeling a bit more hopeful and rested.'
  213. act 'Continue':gt 'gadforestlost', 'relax'
  214. end
  215. end
  216. if boletus > 0:
  217. act 'Cook some mushrooms in the fire (0:15)':
  218. *clr & cla
  219. menu_off = 1
  220. minut += 15
  221. boletus_cooked += 1
  222. boletus -= 1
  223. frost = 0
  224. gs'stat'
  225. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/boletushot.jpg"></center>'
  226. *nl
  227. 'You spend 15 minutes grilling some mushrooms in the fire.'
  228. act 'Continue':gt 'gadforestlost', 'relax'
  229. end
  230. end
  231. end
  232. if boletus_cooked > 0:
  233. act 'Eat cooked mushrooms (0:15)':
  234. *clr & cla
  235. menu_off = 1
  236. minut += 15
  237. boletus_cooked -= 1
  238. pcs_health += 10
  239. pcs_mood += 10
  240. fat += 1
  241. pcs_energy += 20
  242. gs'stat'
  243. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/boletuscook.jpg"></center>'
  244. *nl
  245. 'You eat some cooked mushrooms. They are pretty tasty considering your circumstances.'
  246. act 'Continue':gt 'gadforestlost', 'relax'
  247. end
  248. end
  249. if bilberry > 0:
  250. act 'Eat berries (0:15)':
  251. *clr & cla
  252. menu_off = 1
  253. minut += 15
  254. bilberry -= 1
  255. pcs_health += 10
  256. pcs_mood += 10
  257. fat += 1
  258. pcs_energy += 10
  259. pcs_hydra += 10
  260. gs'stat'
  261. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/bilberry.jpg"></center>'
  262. *nl
  263. 'You eat some berries. These would be great to eat even if you weren''t lost.'
  264. act 'Continue':gt 'gadforestlost', 'relax'
  265. end
  266. end
  267. end
  268. ! this gs handles mushroom and berry picking for Sveta in the various locations of the forest when she is lost
  269. ! $forest_args1 - location of forest where this is called from
  270. ! Example: gs 'gadforestlost', 'picking'
  271. if $ARGS[0] = 'picking':
  272. if DayStage < 4 and month >= 6 and month <= 9 and boletus + boletus_cooked + bilberry < 5:
  273. act 'Look for mushrooms and berries (0:30)':
  274. *clr & cla
  275. menu_off = 1
  276. if $forest_args1 = 'forest_outskirts':
  277. outskirts_pickingday = daystart
  278. mushroom_pickers_check = 2
  279. max_boletus = 2
  280. max_bilberry = 2
  281. elseif $forest_args1 = 'forest_center':
  282. center_pickingday = daystart
  283. mushroom_pickers_check = 3
  284. max_boletus = 3
  285. max_bilberry = 3
  286. end
  287. minut += 30
  288. new_boletus = 0
  289. new_bilberry = 0
  290. gs 'gadforestlost', 'bushcraft', $forest_args1
  291. if $clothingworntype = 'nude' and pcs_inhib < 50:inhib_exp += rand(1,5)
  292. gs 'stat'
  293. if mushroom_pickers ! mushroom_pickers_check:
  294. new_boletus += max_boletus
  295. new_bilberry += max_bilberry
  296. boletus += new_boletus
  297. bilberry += new_bilberry
  298. pcs_mood += 10
  299. gs 'stat'
  300. gs 'gadforest', 'picking_clothes', $forest_args1, 'berry'
  301. *nl
  302. 'After searching for mushrooms and berries for half an hour you found <<new_boletus>> kg of mushrooms and <<new_bilberry>> kg of berries.'
  303. elseif mushroom_pickers = mushroom_pickers_check:
  304. new_boletus += rand(0,max_boletus)
  305. new_bilberry += rand(0,max_bilberry)
  306. boletus += new_boletus
  307. bilberry += new_bilberry
  308. gs 'stat'
  309. if new_boletus > 0 and new_bilberry > 0:
  310. pcs_mood += 10
  311. gs 'stat'
  312. gs 'gadforest', 'picking_clothes', $forest_args1, 'berry'
  313. *nl
  314. 'After searching for mushrooms and berries for half an hour you found <<new_boletus>> kg of mushrooms and <<new_bilberry>> kg of berries.'
  315. elseif new_boletus = 0 and new_bilberry > 0:
  316. pcs_mood += 5
  317. gs 'stat'
  318. gs 'gadforest', 'picking_clothes', $forest_args1, 'berry'
  319. *nl
  320. 'After searching for mushrooms and berries for half an hour you found <<new_bilberry>> kg of berries.'
  321. elseif new_boletus > 0 and new_bilberry = 0:
  322. pcs_mood += 5
  323. gs 'stat'
  324. gs 'gadforest', 'picking_clothes', $forest_args1, 'mushroom'
  325. *nl
  326. 'After searching for mushrooms and berries for half an hour you found <<new_boletus>> kg of mushrooms'
  327. elseif new_boletus = 0 and new_bilberry = 0:
  328. pcs_mood -= 5
  329. gs 'stat'
  330. gs 'gadforest', 'picking_clothes_empty', $forest_args1
  331. *nl
  332. 'After searching for mushrooms and berries for half an hour you found nothing.'
  333. end
  334. end
  335. act 'Continue':gt 'gadforestlost', $forest_args1
  336. end
  337. end
  338. end
  339. ! $ARGS[1] - location of forest where this is called from
  340. if $ARGS[0] = 'finish':
  341. *clr & cla
  342. menu_off = 1
  343. bonfire = 0
  344. pcs_mood += 20
  345. gs 'exp_gain', 'bushcraft', rand(1,5)
  346. gs 'clothing', 'swamp_clothes', 0
  347. gs 'stat'
  348. '<center><H4>Somewhere in the forest</H4></center>'
  349. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadjoy.jpg"></center>'
  350. *nl
  351. 'After half an hour wandering around, you finally see some familiar sights.'
  352. if $clothingworntype = 'nude':
  353. if $ARGS[1] = 'forest_outskirts':
  354. act 'Continue':
  355. if meadow > 0:
  356. foresteventrand = rand(1,3)
  357. else
  358. foresteventrand = rand(1,2)
  359. end
  360. if foresteventrand = 1: minut += 15 & gt 'gadforest','forest_edge'
  361. if foresteventrand = 2: gt 'gadforest','forest_outskirts'
  362. if foresteventrand = 3: minut += 35 & gt 'meadow', 'start'
  363. end
  364. elseif $ARGS[1] = 'forest_center':
  365. act 'Continue':
  366. if hunterscabin = 1 and meadow > 0:
  367. foresteventrand = rand(1,5)
  368. elseif meadow > 0:
  369. foresteventrand = rand(1,4)
  370. else
  371. foresteventrand = rand(1,3)
  372. end
  373. if foresteventrand = 1: minut += 30 & gt 'gadforest','forest_edge'
  374. if foresteventrand = 2: minut += 15 & gt 'gadforest','forest_outskirts'
  375. if foresteventrand = 3: gt 'gadforest','forest_center'
  376. if foresteventrand = 4: minut += 50 & gt 'meadow', 'start'
  377. if foresteventrand = 5: minut += 30 & gt 'swamp_yard', 'start'
  378. end
  379. end
  380. else
  381. if $ARGS[1] = 'forest_outskirts':
  382. act 'Continue':
  383. if meadow > 0:
  384. foresteventrand = rand(1,6)
  385. else
  386. foresteventrand = rand(1,5)
  387. end
  388. if foresteventrand = 1: minut += 15 & gt 'gadforest','forest_edge'
  389. if foresteventrand = 2: gt 'gadforest','forest_outskirts'
  390. if foresteventrand = 3: minut += 40 & gt 'gadfield','field'
  391. if foresteventrand = 4: minut += 30 & gt 'gadroad'
  392. if foresteventrand = 5: minut += 40 & gt 'gadriver','start'
  393. if foresteventrand = 6: minut += 35 & gt 'meadow', 'start'
  394. end
  395. elseif $ARGS[1] = 'forest_center':
  396. act 'Continue':
  397. if hunterscabin = 1 and meadow > 0:
  398. foresteventrand = rand(1,8)
  399. elseif meadow > 0:
  400. foresteventrand = rand(1,7)
  401. else
  402. foresteventrand = rand(1,6)
  403. end
  404. if foresteventrand = 1: minut += 30 & gt 'gadforest','forest_edge'
  405. if foresteventrand = 2: minut += 15 & gt 'gadforest','forest_outskirts'
  406. if foresteventrand = 3: gt 'gadforest','forest_center'
  407. if foresteventrand = 4: minut += 55 & gt 'gadfield','field'
  408. if foresteventrand = 5: minut += 45 & gt 'gadroad'
  409. if foresteventrand = 6: minut += 55 & gt 'gadriver','start'
  410. if foresteventrand = 7: minut += 50 & gt 'meadow', 'start'
  411. if foresteventrand = 8: minut += 30 & gt 'swamp_yard', 'start'
  412. end
  413. end
  414. end
  415. end
  416. ! $ARGS[1] - who is rescuing player
  417. ! $ARGS[2] - location of forest where this is called from
  418. if $ARGS[0] = 'rescue':
  419. *clr & cla
  420. menu_off = 1
  421. bonfire = 0
  422. pcs_mood += 20
  423. gs 'exp_gain', 'bushcraft', rand(1,5)
  424. lost_girl = 0
  425. if swamp_clothes = 1:
  426. 'You remove the terrible excuse for clothing the hunters gave you. You''re sure you can find something better to wear at your grandparents house.'
  427. gs 'clothing', 'strip', 'gadforest'
  428. gs 'clothing', 'swamp_clothes', 0
  429. end
  430. gs 'stat'
  431. if $ARGS[1] = 'pickers':
  432. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/mushroom_pickers2.jpg"></center>'
  433. *nl
  434. 'Suddenly you hear the sounds of people approaching. A group of pickers from the village appear out of the bushes.'
  435. if bonfire = 1:'They notice your fire and praise you, "When lost, it''s very smart if you stay in one place and make a fire. It will keep you warm, and make you visible to others."'
  436. if grandmaQW['block'] = 0:
  437. 'They walk up to you and say, "Your grandparents are very worried about you. They asked us to keep an eye out for you. Follow us, we will lead you back '+iif($clothingworntype ! 'nude','to their house."','to the edge of the forest."')
  438. if $clothingworntype ! 'nude':
  439. if $ARGS[2] = 'forest_outskirts':
  440. act 'Continue': minut += 45 & gt 'gadhouse', 'start'
  441. elseif $ARGS[2] = 'forest_center':
  442. act 'Continue': minut += 60 & gt 'gadhouse', 'start'
  443. end
  444. else
  445. if $ARGS[2] = 'forest_outskirts':
  446. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  447. elseif $ARGS[2] = 'forest_center':
  448. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  449. end
  450. end
  451. else
  452. 'They walk up to you and say, "We heard there may have been a missing girl in the forest. Follow us, we will lead you back '+iif($clothingworntype ! 'nude','out of the forest."','to the edge of the forest."')
  453. if $clothingworntype ! 'nude':
  454. if $ARGS[2] = 'forest_outskirts':
  455. act 'Continue': minut += 30 & gt 'gadroad'
  456. elseif $ARGS[2] = 'forest_center':
  457. act 'Continue': minut += 45 & gt 'gadroad'
  458. end
  459. else
  460. if $ARGS[2] = 'forest_outskirts':
  461. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  462. elseif $ARGS[2] = 'forest_center':
  463. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  464. end
  465. end
  466. end
  467. elseif $ARGS[1] = 'hunters':
  468. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/hanters.jpg"></center>'
  469. *nl
  470. 'Suddenly you hear the sounds of people approaching. '+iif(hunters_were_met=1,'The hunters from the swamp ','A group of hunters ')+'appear out of the bushes.'
  471. if bonfire = 1:'They notice your fire and praise you, "When lost, it''s very smart if you stay in one place and make a fire. It will keep you warm, and make you visible to others."'
  472. if grandmaQW['block'] = 0:
  473. 'They walk up to you and say, "Your grandparents are very worried about you. They asked us to keep an eye out for you. Follow us, you can stay at our camp for the time being until someone can take you back."'
  474. if $ARGS[2] = 'forest_outskirts':
  475. act 'Continue': minut += 45 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  476. else
  477. act 'Continue': minut += 30 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  478. end
  479. else
  480. 'They walk up to you and say, "We heard there may have been a missing girl in the forest. Follow us, you can stay at our camp for the time being until someone can take you back."'
  481. if $ARGS[2] = 'forest_outskirts':
  482. act 'Continue': minut += 45 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  483. else
  484. act 'Continue': minut += 30 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  485. end
  486. end
  487. elseif $ARGS[1] = 'ranger':
  488. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/forester.jpg"></center>'
  489. *nl
  490. 'Suddenly you hear the sound of a person approaching. A man you vaguely recognize from the village appears out of the bushes.'
  491. if bonfire = 1:'They notice your fire and praise you, "When lost, it''s very smart if you stay in one place and make a fire. It will keep you warm, and make you visible to others."'
  492. if grandmaQW['block'] = 0:
  493. 'He walks up to you and says, "Your grandparents are very worried about you. They asked me to keep an eye out for you. Follow me, I will lead you back '+iif($clothingworntype ! 'nude','to their house."','to the edge of the forest."')
  494. if $clothingworntype ! 'nude':
  495. if $ARGS[2] = 'forest_outskirts':
  496. act 'Continue': minut += 45 & gt 'gadhouse', 'start'
  497. elseif $ARGS[2] = 'forest_center':
  498. act 'Continue': minut += 60 & gt 'gadhouse', 'start'
  499. elseif $ARGS[2] = 'swamp_yard':
  500. act 'Continue': minut += 90 & gt 'gadhouse', 'start'
  501. end
  502. else
  503. if $ARGS[2] = 'forest_outskirts':
  504. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  505. elseif $ARGS[2] = 'forest_center':
  506. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  507. elseif $ARGS[2] = 'swamp_yard':
  508. act 'Continue': minut += 60 & gt 'gadforest', 'forest_edge'
  509. end
  510. end
  511. else
  512. 'He walks up to you and says, "I heard there may have been a missing girl in the forest. Follow me, I will lead you back '+iif($clothingworntype ! 'nude','out of the forest."','to the edge of the forest."')
  513. if $clothingworntype ! 'nude':
  514. if $ARGS[2] = 'forest_outskirts':
  515. act 'Continue': minut += 30 & gt 'gadroad'
  516. elseif $ARGS[2] = 'forest_center':
  517. act 'Continue': minut += 45 & gt 'gadroad'
  518. elseif $ARGS[2] = 'swamp_yard':
  519. act 'Continue': minut += 75 & gt 'gadroad'
  520. end
  521. else
  522. if $ARGS[2] = 'forest_outskirts':
  523. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  524. elseif $ARGS[2] = 'forest_center':
  525. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  526. elseif $ARGS[2] = 'swamp_yard':
  527. act 'Continue': minut += 60 & gt 'gadforest', 'forest_edge'
  528. end
  529. end
  530. end
  531. end
  532. end
  533. ! $ARGS[1] - location of forest where this is called from
  534. if $ARGS[0] = 'wolves':
  535. *clr & cla
  536. menu_off = 1
  537. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/howl.jpg"></center>'
  538. *nl
  539. 'Suddenly your hear a terrifying howl nearby.'
  540. act 'Run away':
  541. *clr & cla
  542. gs 'exercise', 'tier4', 1, 'run'
  543. gs 'stat'
  544. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run.jpg"></center>'
  545. *nl
  546. 'Instincts take over and you begin running without a second thought.'
  547. if $ARGS[1] = 'forest_edge':
  548. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70:
  549. foresteventrand = rand(0, 19)
  550. else
  551. foresteventrand = rand(1, 19)
  552. end
  553. if foresteventrand = 0:
  554. gs 'exp_gain', 'bushcraft', rand(1, 2)
  555. gs 'stat'
  556. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  557. *nl
  558. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  559. elseif foresteventrand <= 10:
  560. gs 'exp_gain', 'bushcraft', rand(1, 3)
  561. gs 'stat'
  562. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  563. *nl
  564. 'You are successful in escaping the wolves, but unfortunately are still in the forest.'
  565. else
  566. gs 'exp_gain', 'bushcraft', rand(1, 5)
  567. gs 'stat'
  568. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  569. *nl
  570. 'You are successful in escaping the wolves, and also are no longer in the forest.'
  571. end
  572. act 'Continue':
  573. if foresteventrand = 0:
  574. gs 'gameover', 'check', 11
  575. msg '<font color=red><B>You should die in this forest, but Cheat Mode keeps you Alive.</B></font>'
  576. gt 'gadforestlost', 'forest_edge'
  577. elseif foresteventrand <= 10:
  578. gt 'gadforestlost', 'forest_edge'
  579. elseif foresteventrand <= 13:
  580. gt 'gadforestlost', 'forest_edge'
  581. elseif foresteventrand <= 15:
  582. gt 'gadfield', 'field'
  583. elseif foresteventrand <= 17:
  584. gt 'gadroad'
  585. else
  586. gt 'gadriver', 'start'
  587. end
  588. end
  589. elseif $ARGS[1] = 'forest_outskirts':
  590. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70:
  591. foresteventrand = rand(0, 19)
  592. else
  593. foresteventrand = rand(1, 19)
  594. end
  595. if foresteventrand = 0:
  596. gs 'exp_gain', 'bushcraft', rand(1, 2)
  597. gs 'stat'
  598. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  599. *nl
  600. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  601. elseif foresteventrand <= 14:
  602. gs 'exp_gain', 'bushcraft', rand(1, 3)
  603. gs 'stat'
  604. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  605. *nl
  606. 'You are successful in escaping the wolves, but unfortunately are still lost in the forest.'
  607. else
  608. gs 'exp_gain', 'bushcraft', rand(1, 5)
  609. gs 'stat'
  610. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  611. *nl
  612. 'You are successful in escaping the wolves, and also are no longer lost as you recognize your surroundings.'
  613. end
  614. act 'Continue':
  615. if foresteventrand = 0:
  616. gt 'gameover', 'check', 11
  617. msg '<font color=red><B>You should die in this forest, but Cheat Mode keeps you Alive.</B></font>'
  618. gt 'gadforestlost', 'forest_outskirts'
  619. elseif foresteventrand <= 9:
  620. gt 'gadforestlost', 'forest_outskirts'
  621. elseif foresteventrand <= 14:
  622. gt 'gadforestlost', 'forest_edge'
  623. elseif foresteventrand = 15:
  624. gt 'gadforest', 'forest_outskirts'
  625. elseif foresteventrand = 16:
  626. gt 'gadforest', 'forest_edge'
  627. elseif foresteventrand = 17:
  628. gt 'gadfield', 'field'
  629. elseif foresteventrand = 18:
  630. gt 'gadroad'
  631. else
  632. gt 'gadriver', 'start'
  633. end
  634. end
  635. elseif $ARGS[1] = 'forest_center':
  636. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70:
  637. foresteventrand = rand(0, 19)
  638. else
  639. foresteventrand = rand(1, 19)
  640. end
  641. if foresteventrand = 0:
  642. gs 'exp_gain', 'bushcraft', rand(1, 2)
  643. gs 'stat'
  644. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  645. *nl
  646. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  647. elseif foresteventrand <= 13:
  648. gs 'exp_gain', 'bushcraft', rand(1, 3)
  649. gs 'stat'
  650. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  651. *nl
  652. 'You are successful in escaping the wolves, but unfortunately are still lost in the forest.'
  653. else
  654. gs 'exp_gain', 'bushcraft', rand(1, 5)
  655. gs 'stat'
  656. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  657. *nl
  658. 'You are successful in escaping the wolves, and also are no longer lost as you recognize your surroundings.'
  659. end
  660. act 'Continue':
  661. if foresteventrand = 0:
  662. gt 'gameover', 'check', 11
  663. msg '<font color=red><B>You should die in this forest, but Cheat Mode keeps you Alive.</B></font>'
  664. gt 'gadforestlost', 'forest_center'
  665. elseif foresteventrand <= 8:
  666. gt 'gadforestlost', 'forest_center'
  667. elseif foresteventrand <= 11:
  668. gt 'gadforestlost', 'forest_outskirts'
  669. elseif foresteventrand <= 13:
  670. gt 'gadforestlost', 'forest_edge'
  671. elseif foresteventrand = 14:
  672. gt 'gadforest','forest_center'
  673. elseif foresteventrand = 15:
  674. gt 'gadforest','forest_outskirts'
  675. elseif foresteventrand = 16:
  676. gt 'gadforest','forest_edge'
  677. elseif foresteventrand = 17:
  678. gt 'gadfield','field'
  679. elseif foresteventrand = 18:
  680. gt 'gadroad'
  681. else
  682. gt 'gadriver','start'
  683. end
  684. end
  685. elseif $ARGS[1] = 'swamp':
  686. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70:
  687. foresteventrand = rand(0, 19)
  688. else
  689. foresteventrand = rand(1, 19)
  690. end
  691. if foresteventrand = 0:
  692. gs 'exp_gain', 'bushcraft', rand(1, 2)
  693. gs 'stat'
  694. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  695. *nl
  696. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  697. elseif foresteventrand <= 8:
  698. gs 'exp_gain', 'bushcraft', rand(1, 3)
  699. gs 'stat'
  700. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  701. *nl
  702. 'You are successful in escaping the wolves, but unfortunately are still lost in the forest.'
  703. else
  704. gs 'exp_gain', 'bushcraft', rand(1, 5)
  705. gs 'stat'
  706. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  707. *nl
  708. 'You are successful in escaping the wolves, and also are no longer in the forest.'
  709. end
  710. act 'Continue':
  711. if foresteventrand = 0:
  712. gt 'gameover', 'check', 11
  713. msg '<font color=red><B>You should die in this forest, but Cheat Mode keeps you Alive.</B></font>'
  714. gt 'gadforestlost', 'swamp'
  715. elseif foresteventrand <= 4:
  716. gt 'gadforestlost','swamp'
  717. elseif foresteventrand <= 6:
  718. gt 'gadforestlost','forest_center'
  719. elseif foresteventrand <= 8:
  720. gt 'gadforestlost','forest_outskirts'
  721. elseif foresteventrand <= 10:
  722. gt 'gadforestlost','forest_edge'
  723. elseif foresteventrand = 11:
  724. gt 'gadforest','swamp'
  725. elseif foresteventrand = 12:
  726. gt 'gadforest','forest_center'
  727. elseif foresteventrand = 13:
  728. gt 'gadforest','forest_outskirts'
  729. elseif foresteventrand = 14:
  730. gt 'gadforest','forest_edge'
  731. elseif foresteventrand = 15:
  732. gt 'gadfield','field'
  733. elseif foresteventrand = 16:
  734. gt 'gadroad'
  735. elseif foresteventrand = 17:
  736. gt 'gadriver','start'
  737. elseif foresteventrand = 18:
  738. gt 'swamp_yard','start'
  739. else
  740. gt 'swamp_woods','start'
  741. end
  742. end
  743. end
  744. end
  745. end
  746. ! this gs handles images for generic forest locations while lost
  747. ! Example: gs 'gadforestlost', 'gadforestlost_picture'
  748. if $ARGS[0] = 'gadforestlost_picture':
  749. '<center><H4>Somewhere in the forest</H4></center>'
  750. if month >= 4 and month <= 10:
  751. if DayStage < 4:
  752. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost0.'+rand(1,6)+'.jpg"></center>'
  753. *nl
  754. 'You are lost in the woods. You don''t recognize any of your surroundings and there aren''t any good landmarks to help pinpoint where you are.'
  755. 'You would normally consider the woods a relaxing and scenic place, but are too stressed to appreciate the beauty of nature right now.'
  756. else
  757. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_night0.'+rand(1,4)+'.jpg"></center>'
  758. *nl
  759. 'You are lost in the woods. You don''t recognize any of your surroundings and there aren''t any good landmarks to help pinpoint where you are.'
  760. '<font color="red">With nightfall, your chances of finding your way are practically nothing. You should stop and rest until daylight.</font>'
  761. end
  762. else
  763. if DayStage < 4:
  764. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_winter0.'+rand(1,5)+'.jpg"></center>'
  765. *nl
  766. 'You are lost in the woods. You don''t recognize any of your surroundings and there aren''t any good landmarks to help pinpoint where you are.'
  767. 'You would normally consider the woods a relaxing and scenic place, but are too stressed to appreciate the beauty of nature right now.'
  768. else
  769. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_winter_night0.'+rand(1,4)+'.jpg"></center>'
  770. *nl
  771. 'You are lost in the woods. You don''t recognize any of your surroundings and there aren''t any good landmarks to help pinpoint where you are.'
  772. '<font color="red">With nightfall, your chances of finding your way are practically nothing. You should stop and rest until daylight.</font>'
  773. end
  774. end
  775. end
  776. --- gadforestlost ---------------------------------