gadforestlost.qsrc 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  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. minut += 120
  174. pcs_sleep += 20
  175. pcs_health += 5
  176. pcs_mood += 10
  177. gs'stat'
  178. if $clothingworntype = 'nude':'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleepnude1.'+rand(1,2)+'.jpg"></center>'
  179. if $clothingworntype ! 'nude' and PCloSkirt = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleep.jpg"></center>'
  180. if $clothingworntype ! 'nude' and $pantyworntype ! 'none' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleepski.jpg"></center>'
  181. if $clothingworntype ! 'nude' and $pantyworntype = 'none' and PCloSkirt > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_sleepski1.jpg"></center>'
  182. *nl
  183. '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.'
  184. 'Even though you had to sleep on the ground, you do wake up feeling a bit more hopeful and rested.'
  185. act 'Continue':gt 'gadforestlost', 'relax'
  186. end
  187. end
  188. elseif bonfire = 1:
  189. act 'Warm up by the fire (1:00)':
  190. *clr & cla
  191. menu_off = 1
  192. minut += 60
  193. if frost > 0: frost -= 1
  194. gs 'stat'
  195. if hour >= 6 and hour < 21:
  196. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfire2.jpg"></center>'
  197. else
  198. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfire3.jpg"></center>'
  199. end
  200. *nl
  201. 'You spend half an hour huddled by the flames'
  202. act 'Continue':gt 'gadforestlost', 'relax'
  203. end
  204. if pcs_sleep < 40:
  205. act 'Nap by the fire (2:00)':
  206. *clr & cla
  207. menu_off = 1
  208. minut += 120
  209. pcs_sleep += 20
  210. pcs_health += 10
  211. pcs_mood += 20
  212. frost = 0
  213. gs 'stat'
  214. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestrelax_bonfiresleep.jpg"></center>'
  215. *nl
  216. '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.'
  217. 'Even though you had to sleep on the ground, you do wake up feeling a bit more hopeful and rested.'
  218. act 'Continue':gt 'gadforestlost', 'relax'
  219. end
  220. end
  221. if boletus > 0:
  222. act 'Cook some mushrooms in the fire (0:15)':
  223. *clr & cla
  224. menu_off = 1
  225. minut += 15
  226. boletus_cooked += 1
  227. boletus -= 1
  228. frost = 0
  229. gs'stat'
  230. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/boletushot.jpg"></center>'
  231. *nl
  232. 'You spend 15 minutes grilling some mushrooms in the fire.'
  233. act 'Continue':gt 'gadforestlost', 'relax'
  234. end
  235. end
  236. end
  237. if boletus_cooked > 0:
  238. act 'Eat cooked mushrooms (0:15)':
  239. *clr & cla
  240. menu_off = 1
  241. minut += 15
  242. boletus_cooked -= 1
  243. pcs_health += 10
  244. pcs_mood += 10
  245. fat += 1
  246. pcs_energy += 20
  247. gs'stat'
  248. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/boletuscook.jpg"></center>'
  249. *nl
  250. 'You eat some cooked mushrooms. They are pretty tasty considering your circumstances.'
  251. act 'Continue':gt 'gadforestlost', 'relax'
  252. end
  253. end
  254. if bilberry > 0:
  255. act 'Eat berries (0:15)':
  256. *clr & cla
  257. menu_off = 1
  258. minut += 15
  259. bilberry -= 1
  260. pcs_health += 10
  261. pcs_mood += 10
  262. fat += 1
  263. pcs_energy += 10
  264. pcs_hydra += 10
  265. gs'stat'
  266. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/bilberry.jpg"></center>'
  267. *nl
  268. 'You eat some berries. These would be great to eat even if you weren''t lost.'
  269. act 'Continue':gt 'gadforestlost', 'relax'
  270. end
  271. end
  272. end
  273. ! this gs handles mushroom and berry picking for Sveta in the various locations of the forest when she is lost
  274. ! $forest_args1 - location of forest where this is called from
  275. ! Example: gs 'gadforestlost', 'picking'
  276. if $ARGS[0] = 'picking':
  277. if DayStage < 4 and month >= 6 and month <= 9 and boletus + boletus_cooked + bilberry < 5:
  278. act 'Look for mushrooms and berries (0:30)':
  279. *clr & cla
  280. menu_off = 1
  281. if $forest_args1 = 'forest_outskirts':
  282. outskirts_pickingday = daystart
  283. mushroom_pickers_check = 2
  284. max_boletus = 2
  285. max_bilberry = 2
  286. elseif $forest_args1 = 'forest_center':
  287. center_pickingday = daystart
  288. mushroom_pickers_check = 3
  289. max_boletus = 3
  290. max_bilberry = 3
  291. end
  292. minut += 30
  293. new_boletus = 0
  294. new_bilberry = 0
  295. gs 'gadforestlost', 'bushcraft', $forest_args1
  296. if $clothingworntype = 'nude' and pcs_inhib < 50:inhib_exp += rand(1,5)
  297. gs 'stat'
  298. if mushroom_pickers ! mushroom_pickers_check:
  299. new_boletus += max_boletus
  300. new_bilberry += max_bilberry
  301. boletus += new_boletus
  302. bilberry += new_bilberry
  303. pcs_mood += 10
  304. gs 'stat'
  305. gs 'gadforest', 'picking_clothes', $forest_args1, 'berry'
  306. *nl
  307. 'After searching for mushrooms and berries for half an hour you found <<new_boletus>> kg of mushrooms and <<new_bilberry>> kg of berries.'
  308. elseif mushroom_pickers = mushroom_pickers_check:
  309. new_boletus += rand(0,max_boletus)
  310. new_bilberry += rand(0,max_bilberry)
  311. boletus += new_boletus
  312. bilberry += new_bilberry
  313. gs 'stat'
  314. if new_boletus > 0 and new_bilberry > 0:
  315. pcs_mood += 10
  316. gs 'stat'
  317. gs 'gadforest', 'picking_clothes', $forest_args1, 'berry'
  318. *nl
  319. 'After searching for mushrooms and berries for half an hour you found <<new_boletus>> kg of mushrooms and <<new_bilberry>> kg of berries.'
  320. elseif new_boletus = 0 and new_bilberry > 0:
  321. pcs_mood += 5
  322. gs 'stat'
  323. gs 'gadforest', 'picking_clothes', $forest_args1, 'berry'
  324. *nl
  325. 'After searching for mushrooms and berries for half an hour you found <<new_bilberry>> kg of berries.'
  326. elseif new_boletus > 0 and new_bilberry = 0:
  327. pcs_mood += 5
  328. gs 'stat'
  329. gs 'gadforest', 'picking_clothes', $forest_args1, 'mushroom'
  330. *nl
  331. 'After searching for mushrooms and berries for half an hour you found <<new_boletus>> kg of mushrooms'
  332. elseif new_boletus = 0 and new_bilberry = 0:
  333. pcs_mood -= 5
  334. gs 'stat'
  335. gs 'gadforest', 'picking_clothes_empty', $forest_args1
  336. *nl
  337. 'After searching for mushrooms and berries for half an hour you found nothing.'
  338. end
  339. end
  340. act 'Continue':gt 'gadforestlost', $forest_args1
  341. end
  342. end
  343. end
  344. ! $ARGS[1] - location of forest where this is called from
  345. if $ARGS[0] = 'finish':
  346. *clr & cla
  347. menu_off = 1
  348. bonfire = 0
  349. pcs_mood += 20
  350. gs 'exp_gain', 'bushcraft', rand(1,5)
  351. gs 'clothing', 'swamp_clothes', 0
  352. gs 'stat'
  353. '<center><H4>Somewhere in the forest</H4></center>'
  354. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadjoy.jpg"></center>'
  355. *nl
  356. 'After half an hour wandering around, you finally see some familiar sights.'
  357. if $clothingworntype = 'nude':
  358. if $ARGS[1] = 'forest_outskirts':
  359. act 'Continue':
  360. if meadow > 0:
  361. foresteventrand = rand(1,3)
  362. else
  363. foresteventrand = rand(1,2)
  364. end
  365. if foresteventrand = 1: minut += 15 & gt 'gadforest','forest_edge'
  366. if foresteventrand = 2: gt 'gadforest','forest_outskirts'
  367. if foresteventrand = 3: minut += 35 & gt 'meadow', 'start'
  368. end
  369. elseif $ARGS[1] = 'forest_center':
  370. act 'Continue':
  371. if hunterscabin = 1 and meadow > 0:
  372. foresteventrand = rand(1,5)
  373. elseif meadow > 0:
  374. foresteventrand = rand(1,4)
  375. else
  376. foresteventrand = rand(1,3)
  377. end
  378. if foresteventrand = 1: minut += 30 & gt 'gadforest','forest_edge'
  379. if foresteventrand = 2: minut += 15 & gt 'gadforest','forest_outskirts'
  380. if foresteventrand = 3: gt 'gadforest','forest_center'
  381. if foresteventrand = 4: minut += 50 & gt 'meadow', 'start'
  382. if foresteventrand = 5: minut += 30 & gt 'swamp_yard', 'start'
  383. end
  384. end
  385. else
  386. if $ARGS[1] = 'forest_outskirts':
  387. act 'Continue':
  388. if meadow > 0:
  389. foresteventrand = rand(1,6)
  390. else
  391. foresteventrand = rand(1,5)
  392. end
  393. if foresteventrand = 1: minut += 15 & gt 'gadforest','forest_edge'
  394. if foresteventrand = 2: gt 'gadforest','forest_outskirts'
  395. if foresteventrand = 3: minut += 40 & gt 'gadfield','field'
  396. if foresteventrand = 4: minut += 30 & gt 'gadroad'
  397. if foresteventrand = 5: minut += 40 & gt 'gadriver','start'
  398. if foresteventrand = 6: minut += 35 & gt 'meadow', 'start'
  399. end
  400. elseif $ARGS[1] = 'forest_center':
  401. act 'Continue':
  402. if hunterscabin = 1 and meadow > 0:
  403. foresteventrand = rand(1,8)
  404. elseif meadow > 0:
  405. foresteventrand = rand(1,7)
  406. else
  407. foresteventrand = rand(1,6)
  408. end
  409. if foresteventrand = 1: minut += 30 & gt 'gadforest','forest_edge'
  410. if foresteventrand = 2: minut += 15 & gt 'gadforest','forest_outskirts'
  411. if foresteventrand = 3: gt 'gadforest','forest_center'
  412. if foresteventrand = 4: minut += 55 & gt 'gadfield','field'
  413. if foresteventrand = 5: minut += 45 & gt 'gadroad'
  414. if foresteventrand = 6: minut += 55 & gt 'gadriver','start'
  415. if foresteventrand = 7: minut += 50 & gt 'meadow', 'start'
  416. if foresteventrand = 8: minut += 30 & gt 'swamp_yard', 'start'
  417. end
  418. end
  419. end
  420. end
  421. ! $ARGS[1] - who is rescuing player
  422. ! $ARGS[2] - location of forest where this is called from
  423. if $ARGS[0] = 'rescue':
  424. *clr & cla
  425. menu_off = 1
  426. bonfire = 0
  427. pcs_mood += 20
  428. gs 'exp_gain', 'bushcraft', rand(1,5)
  429. lost_girl = 0
  430. if swamp_clothes = 1:
  431. '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.'
  432. gs 'clothing', 'strip', 'gadforest'
  433. gs 'clothing', 'swamp_clothes', 0
  434. end
  435. gs 'stat'
  436. if $ARGS[1] = 'pickers':
  437. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/mushroom_pickers2.jpg"></center>'
  438. *nl
  439. 'Suddenly you hear the sounds of people approaching. A group of pickers from the village appear out of the bushes.'
  440. 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."'
  441. if grandmaQW['block'] = 0:
  442. '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."')
  443. if $clothingworntype ! 'nude':
  444. if $ARGS[2] = 'forest_outskirts':
  445. act 'Continue': minut += 45 & gt 'gadhouse', 'start'
  446. elseif $ARGS[2] = 'forest_center':
  447. act 'Continue': minut += 60 & gt 'gadhouse', 'start'
  448. end
  449. else
  450. if $ARGS[2] = 'forest_outskirts':
  451. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  452. elseif $ARGS[2] = 'forest_center':
  453. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  454. end
  455. end
  456. else
  457. '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."')
  458. if $clothingworntype ! 'nude':
  459. if $ARGS[2] = 'forest_outskirts':
  460. act 'Continue': minut += 30 & gt 'gadroad'
  461. elseif $ARGS[2] = 'forest_center':
  462. act 'Continue': minut += 45 & gt 'gadroad'
  463. end
  464. else
  465. if $ARGS[2] = 'forest_outskirts':
  466. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  467. elseif $ARGS[2] = 'forest_center':
  468. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  469. end
  470. end
  471. end
  472. elseif $ARGS[1] = 'hunters':
  473. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/hanters.jpg"></center>'
  474. *nl
  475. '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.'
  476. 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."'
  477. if grandmaQW['block'] = 0:
  478. '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."'
  479. if $ARGS[2] = 'forest_outskirts':
  480. act 'Continue': minut += 45 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  481. else
  482. act 'Continue': minut += 30 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  483. end
  484. else
  485. '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."'
  486. if $ARGS[2] = 'forest_outskirts':
  487. act 'Continue': minut += 45 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  488. else
  489. act 'Continue': minut += 30 & gt 'hunter_interactions', 'meet_hunters_after_rescue'
  490. end
  491. end
  492. elseif $ARGS[1] = 'ranger':
  493. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/forester.jpg"></center>'
  494. *nl
  495. 'Suddenly you hear the sound of a person approaching. A man you vaguely recognize from the village appears out of the bushes.'
  496. 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."'
  497. if grandmaQW['block'] = 0:
  498. '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."')
  499. if $clothingworntype ! 'nude':
  500. if $ARGS[2] = 'forest_outskirts':
  501. act 'Continue': minut += 45 & gt 'gadhouse', 'start'
  502. elseif $ARGS[2] = 'forest_center':
  503. act 'Continue': minut += 60 & gt 'gadhouse', 'start'
  504. elseif $ARGS[2] = 'swamp_yard':
  505. act 'Continue': minut += 90 & gt 'gadhouse', 'start'
  506. end
  507. else
  508. if $ARGS[2] = 'forest_outskirts':
  509. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  510. elseif $ARGS[2] = 'forest_center':
  511. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  512. elseif $ARGS[2] = 'swamp_yard':
  513. act 'Continue': minut += 60 & gt 'gadforest', 'forest_edge'
  514. end
  515. end
  516. else
  517. '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."')
  518. if $clothingworntype ! 'nude':
  519. if $ARGS[2] = 'forest_outskirts':
  520. act 'Continue': minut += 30 & gt 'gadroad'
  521. elseif $ARGS[2] = 'forest_center':
  522. act 'Continue': minut += 45 & gt 'gadroad'
  523. elseif $ARGS[2] = 'swamp_yard':
  524. act 'Continue': minut += 75 & gt 'gadroad'
  525. end
  526. else
  527. if $ARGS[2] = 'forest_outskirts':
  528. act 'Continue': minut += 15 & gt 'gadforest', 'forest_edge'
  529. elseif $ARGS[2] = 'forest_center':
  530. act 'Continue': minut += 30 & gt 'gadforest', 'forest_edge'
  531. elseif $ARGS[2] = 'swamp_yard':
  532. act 'Continue': minut += 60 & gt 'gadforest', 'forest_edge'
  533. end
  534. end
  535. end
  536. end
  537. end
  538. ! $ARGS[1] - location of forest where this is called from
  539. if $ARGS[0] = 'wolves':
  540. *clr & cla
  541. menu_off = 1
  542. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/howl.jpg"></center>'
  543. *nl
  544. 'Suddenly your hear a terrifying howl nearby.'
  545. act 'Run away':
  546. *clr & cla
  547. gs 'exercise', 'tier4', 1, 'run_exp'
  548. gs 'stat'
  549. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run.jpg"></center>'
  550. *nl
  551. 'Instincts take over and you begin running without a second thought.'
  552. if $ARGS[1] = 'forest_edge':
  553. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70 and Enable_nogameover = 0:
  554. foresteventrand = rand(1,7)
  555. else
  556. foresteventrand = rand(1,6)
  557. end
  558. if foresteventrand <= 3:
  559. gs 'exp_gain', 'bushcraft', rand(1,3)
  560. gs 'stat'
  561. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  562. *nl
  563. 'You are successful in escaping the wolves, but unfortunately are still in the forest.'
  564. elseif foresteventrand <= 6:
  565. gs 'exp_gain', 'bushcraft', rand(1,5)
  566. gs 'stat'
  567. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  568. *nl
  569. 'You are successful in escaping the wolves, and also are no longer in the forest.'
  570. elseif foresteventrand <= 7:
  571. gs 'exp_gain', 'bushcraft', rand(1,2)
  572. gs 'stat'
  573. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  574. *nl
  575. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  576. end
  577. act 'Continue':
  578. if foresteventrand <= 3: gt 'gadforest','forest_edge'
  579. if foresteventrand <= 4: gt 'gadfield','field'
  580. if foresteventrand <= 5: gt 'gadroad'
  581. if foresteventrand <= 6: gt 'gadriver','start'
  582. if foresteventrand <= 7:over = 11 & gt 'gameover'
  583. end
  584. elseif $ARGS[1] = 'forest_outskirts':
  585. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70 and Enable_nogameover = 0:
  586. foresteventrand = rand(1,10)
  587. else
  588. foresteventrand = rand(1,9)
  589. end
  590. if foresteventrand <= 5:
  591. gs 'exp_gain', 'bushcraft', rand(1,3)
  592. gs 'stat'
  593. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  594. *nl
  595. 'You are successful in escaping the wolves, but unfortunately are still lost in the forest.'
  596. elseif foresteventrand <= 9:
  597. gs 'exp_gain', 'bushcraft', rand(1,5)
  598. gs 'stat'
  599. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  600. *nl
  601. 'You are successful in escaping the wolves, and also are no longer lost as you recognize your surroundings.'
  602. elseif foresteventrand <= 10:
  603. gs 'exp_gain', 'bushcraft', rand(1,2)
  604. gs 'stat'
  605. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  606. *nl
  607. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  608. end
  609. act 'Continue':
  610. if foresteventrand <= 3: gt 'gadforestlost', 'forest_outskirts'
  611. if foresteventrand <= 5: gt 'gadforest','forest_edge'
  612. if foresteventrand <= 6: gt 'gadforest','forest_outskirts'
  613. if foresteventrand <= 7: gt 'gadfield','field'
  614. if foresteventrand <= 8: gt 'gadroad'
  615. if foresteventrand <= 9: gt 'gadriver','start'
  616. if foresteventrand <= 10:over = 11 & gt 'gameover'
  617. end
  618. elseif $ARGS[1] = 'forest_center':
  619. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70 and Enable_nogameover = 0:
  620. foresteventrand = rand(1,13)
  621. else
  622. foresteventrand = rand(1,2)
  623. end
  624. if foresteventrand <= 6:
  625. gs 'exp_gain', 'bushcraft', rand(1,3)
  626. gs 'stat'
  627. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  628. *nl
  629. 'You are successful in escaping the wolves, but unfortunately are still lost in the forest.'
  630. elseif foresteventrand <= 12:
  631. gs 'exp_gain', 'bushcraft', rand(1,5)
  632. gs 'stat'
  633. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  634. *nl
  635. 'You are successful in escaping the wolves, and also are no longer lost as you recognize your surroundings.'
  636. elseif foresteventrand <= 13:
  637. gs 'exp_gain', 'bushcraft', rand(1,2)
  638. gs 'stat'
  639. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  640. *nl
  641. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  642. end
  643. act 'Continue':
  644. if foresteventrand <= 2: gt 'gadforestlost', 'forest_outskirts'
  645. if foresteventrand <= 6: gt 'gadforestlost', 'forest_center'
  646. if foresteventrand <= 7: gt 'gadforest','forest_edge'
  647. if foresteventrand <= 8: gt 'gadforest','forest_outskirts'
  648. if foresteventrand <= 9: gt 'gadforest','forest_center'
  649. if foresteventrand <= 10: gt 'gadfield','field'
  650. if foresteventrand <= 11: gt 'gadroad'
  651. if foresteventrand <= 12: gt 'gadriver','start'
  652. if foresteventrand <= 13:over = 11 & gt 'gameover'
  653. end
  654. elseif $ARGS[1] = 'swamp':
  655. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70 and Enable_nogameover = 0:
  656. foresteventrand = rand(1,14)
  657. else
  658. foresteventrand = rand(1,13)
  659. end
  660. if foresteventrand <= 8:
  661. gs 'exp_gain', 'bushcraft', rand(1,3)
  662. gs 'stat'
  663. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end2.jpg"></center>'
  664. *nl
  665. 'You are successful in escaping the wolves, but unfortunately are still lost in the forest.'
  666. elseif foresteventrand <= 13:
  667. gs 'exp_gain', 'bushcraft', rand(1,5)
  668. gs 'stat'
  669. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/run_end1.jpg"></center>'
  670. *nl
  671. 'You are successful in escaping the wolves, and also are no longer in the forest.'
  672. elseif foresteventrand <= 14:
  673. gs 'exp_gain', 'bushcraft', rand(1,2)
  674. gs 'stat'
  675. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/horror.jpg"></center>'
  676. *nl
  677. 'The wolves are simply too fast and you cannot lose them. Suddenly you feel a sharp pain as a wolf bites your leg.'
  678. end
  679. act 'Continue':
  680. if foresteventrand <= 4: gt 'gadforest','forest_edge'
  681. if foresteventrand <= 6: gt 'gadforest','forest_outskirts'
  682. if foresteventrand <= 8: gt 'gadforest','forest_center'
  683. if foresteventrand <= 9: gt 'gadfield','field'
  684. if foresteventrand <= 10: gt 'gadroad'
  685. if foresteventrand <= 11: gt 'gadriver','start'
  686. if foresteventrand <= 12: gt 'swamp_yard','start'
  687. if foresteventrand <= 13: gt 'swamp_woods','start'
  688. if foresteventrand <= 14:over = 11 & gt 'gameover'
  689. end
  690. end
  691. end
  692. end
  693. ! this gs handles images for generic forest locations while lost
  694. ! Example: gs 'gadforestlost', 'gadforestlost_picture'
  695. if $ARGS[0] = 'gadforestlost_picture':
  696. '<center><H4>Somewhere in the forest</H4></center>'
  697. if month >= 4 and month <= 10:
  698. if DayStage < 4:
  699. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost0.'+rand(1,6)+'.jpg"></center>'
  700. *nl
  701. '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.'
  702. 'You would normally consider the woods a relaxing and scenic place, but are too stressed to appreciate the beauty of nature right now.'
  703. else
  704. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_night0.'+rand(1,4)+'.jpg"></center>'
  705. *nl
  706. '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.'
  707. '<font color="red">With nightfall, your chances of finding your way are practically nothing. You should stop and rest until daylight.</font>'
  708. end
  709. else
  710. if DayStage < 4:
  711. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_winter0.'+rand(1,5)+'.jpg"></center>'
  712. *nl
  713. '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.'
  714. 'You would normally consider the woods a relaxing and scenic place, but are too stressed to appreciate the beauty of nature right now.'
  715. else
  716. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_winter_night0.'+rand(1,4)+'.jpg"></center>'
  717. *nl
  718. '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.'
  719. '<font color="red">With nightfall, your chances of finding your way are practically nothing. You should stop and rest until daylight.</font>'
  720. end
  721. end
  722. end
  723. --- gadforestlost ---------------------------------