gad_forest_lost.qsrc 34 KB

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