gadforestlost.qsrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. # gadforestlost
  2. !make this trigger after 2 days in swamp house, minus a countdown per hour
  3. if $ARGS[0] = 'forestrescue':
  4. cls
  5. $loc = 'gadforestlost'
  6. $metka = 'forestrescue'
  7. $location_type = 'secluded'
  8. $menu_loc = 'gadforestlost'
  9. $menu_arg = 'forestrescue'
  10. menu_off = 0
  11. gs 'gadukino_event', 'sound'
  12. gs'stat'
  13. minut += 150
  14. lost_girl = 0
  15. forest_lostday = 0
  16. hanters = 0
  17. gs 'clothing', 'swamp_clothes', 0
  18. gs 'stat'
  19. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/forester.jpg"></center>'
  20. 'Suddenly you spot a man dressed as a forest ranger.'
  21. 'He walks up to you and says, "And here is our lost girl. Your grandfather and grandmother are very worried about you. They asked me to help find you. Follow me, I will take you home."'
  22. !rescued during rest
  23. if $loc = 'gadforestrelax':
  24. !have fire
  25. if bonfire = 1:
  26. '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.'
  27. else
  28. 'Staying in one place is a good idea when you are lost.'
  29. end
  30. end
  31. 'You get ready quickly and follow the forest ranger out of the woods.'
  32. if $clothingworntype ! 'nude' or swamp_clothes = 0:
  33. 'You can''t wait to get back to your grandparents house and have a bath and a nice hot meal.'
  34. act 'To your grandparents house':gt'Gadhouse'
  35. elseif $clothingworntype = 'nude' or swamp_clothes = 1:
  36. 'The ranger looks you up and down and you feel like he is about to ask you something but he decides against it.'
  37. 'You remember you left your clothes by the edge of the woods and ask the ranger to take you there instead.'
  38. act 'To the edge of the woods':gt'gadforest', '1'
  39. end
  40. end
  41. if $ARGS[0] = '1':
  42. *clr & cla
  43. if StoryLine = 1 and forest_lostday > 0 and daystart > forest_lostday and rand(1,10)> 7: gt 'gadforestlost', 'forestrescue'
  44. $loc = 'gadforestlost'
  45. $metka = '1'
  46. $location_type = 'secluded'
  47. $menu_loc = 'gadforestlost'
  48. $menu_arg = '1'
  49. menu_off = 0
  50. gs 'gadukino_event', 'sound'
  51. gs'stat'
  52. riprand = rand(1,10)
  53. rescuerand = rand(1,10)
  54. wolfrand = rand(1,10)
  55. hantrand = rand(1,10)
  56. gs 'gadforestlost', 'gadforestlost'
  57. if wolfrand = 1 and (hour = 23 or hour >= 0 and hour < 6):gt 'gadforest_event', 'lost'
  58. act 'Look for a way out':
  59. cla
  60. *clr
  61. minut += 60
  62. pcs_mood -= 5
  63. goforest += rand(0,1)
  64. lostrand = rand(1,40)
  65. gs 'stat'
  66. gs 'gadforestlost', 'lostclothes'
  67. if goforest > lostrand:
  68. act 'Look for a way out':gs 'gadforestlost', 'gadforestlostfinish1'
  69. else
  70. act 'Look for a way out':gt 'gadforestlost','1'
  71. end
  72. act 'Take a break':gt 'gadforestrelax'
  73. end
  74. if rand(1,10)> 8: gs 'gadforest', 'torncloth'
  75. gs 'gadforestlost', 'searchfood'
  76. end
  77. if $ARGS[0] = '2':
  78. *clr & cla
  79. if StoryLine = 1 and forest_lostday > 0 and daystart > forest_lostday and rand(1,10)> 8: gt 'gadforestlost', 'forestrescue'
  80. $loc = 'gadforestlost'
  81. $metka = '2'
  82. $location_type = 'secluded'
  83. $menu_loc = 'gadforestlost'
  84. $menu_arg = '2'
  85. menu_off = 0
  86. gs 'gadukino_event', 'sound'
  87. gs'stat'
  88. wolfrand = rand(1,10)
  89. hantrand = rand(1,10)
  90. gs'stat'
  91. gs 'gadforestlost', 'gadforestlost'
  92. if wolfrand <= 2 and (hour = 23 or hour >= 0 and hour < 6):gt 'gadforest_event', 'lost'
  93. if hantrand = 1 and hour > 8 and hour < 20 :forest_lost = 1 & gt 'gadforest_event', 'forest_hanters'
  94. act 'Look for the road':
  95. cla
  96. *clr
  97. minut += 60
  98. pcs_mood -= 5
  99. goforest += rand(0,1)
  100. lostrand = rand(1,120)
  101. gs 'stat'
  102. gs 'gadforestlost', 'lostclothes'
  103. if goforest > lostrand:
  104. act 'Look for a way out':gs 'gadforestlost', 'gadforestlostfinish2'
  105. else
  106. act 'Look for a way out':gt 'gadforestlost','2'
  107. end
  108. act 'Take a break':gt 'gadforestrelax'
  109. end
  110. if rand(1,10)> 7: gs 'gadforest', 'torncloth'
  111. gs 'gadforestlost', 'searchfood'
  112. end
  113. if $ARGS[0] = '3':
  114. *clr & cla
  115. if StoryLine = 1 and forest_lostday > 0 and daystart > forest_lostday and rand(1,10)> 9: gt 'gadforestlost', 'forestrescue'
  116. $loc = 'gadforestlost'
  117. $metka = '3'
  118. $location_type = 'secluded'
  119. $menu_loc = 'gadforestlost'
  120. $menu_arg = '3'
  121. menu_off = 0
  122. gs 'gadukino_event', 'sound'
  123. gs'stat'
  124. wolfrand = rand(1,10)
  125. hantrand = rand(1,10)
  126. gs'stat'
  127. gs 'gadforestlost', 'gadforestlost'
  128. if wolfrand <= 3 and (hour = 23 or hour >= 0 and hour < 6):gt 'gadforest_event', 'lost'
  129. if hantrand = 1 and hour > 8 and hour < 20 :forest_lost = 1 & gt 'gadforest_event', 'forest_hanters'
  130. act 'Look for the road':
  131. cla
  132. *clr
  133. minut += 60
  134. pcs_mood -= 5
  135. goforest += rand(0,1)
  136. lostrand = rand(1,180)
  137. gs 'stat'
  138. gs 'gadforestlost', 'lostclothes'
  139. if goforest > lostrand:
  140. act 'Look for a way out':gs 'gadforestlost', 'gadforestlostfinish3'
  141. else
  142. act 'Look for a way out':gt 'gadforestlost','3'
  143. end
  144. act 'Take a break':gt 'gadforestrelax'
  145. end
  146. if rand(1,10)> 6: gs 'gadforest', 'torncloth'
  147. gs 'gadforestlost', 'searchfood'
  148. end
  149. if $ARGS[0] = '4':
  150. *clr & cla
  151. if StoryLine = 1 and forest_lostday > 0 and daystart > forest_lostday and rand(1,10)> 9: gt 'gadforestlost', 'forestrescue'
  152. $loc = 'gadforestlost'
  153. $metka = '4'
  154. $location_type = 'secluded'
  155. $menu_loc = 'gadforestlost'
  156. $menu_arg = '4'
  157. menu_off = 0
  158. gs 'gadukino_event', 'sound'
  159. gs'stat'
  160. cla
  161. *clr
  162. wolfrand = rand(1,10)
  163. hantrand = rand(1,10)
  164. gs'stat'
  165. gs 'gadforestlost', 'gadforestlost'
  166. if wolfrand <= 4 and (hour = 23 or hour >= 0 and hour < 6):gt 'gadforest_event', 'lost'
  167. if hantrand = 1 and hour > 8 and hour < 20 :forest_lost = 1 & gt 'gadforest_event', 'forest_hanters'
  168. act 'Look for the road':
  169. cla
  170. *clr
  171. minut += 60
  172. pcs_mood -= 5
  173. goforest += rand(0,1)
  174. lostrand = rand(1,300)
  175. temp = rand(1,10)
  176. gs 'stat'
  177. gs 'gadforestlost', 'lostclothes'
  178. act 'Continue looking for the road':
  179. if goforest > lostrand: gs 'gadforestlost', 'gadforestlostfinish4'
  180. if goforest < lostrand and temp > 7:gt 'gadforestswamp','1'
  181. if goforest < lostrand and temp <= 7:gt 'gadforestlost','4'
  182. end
  183. act 'Take a break':gt 'gadforestrelax'
  184. end
  185. if rand(1,10)> 7: gs 'gadforest', 'torncloth'
  186. gs 'gadforestlost', 'searchfood'
  187. end
  188. if $ARGS[0] = 'gadforestlost':
  189. '<center><H4>Forest</H4></center>'
  190. if month >= 4 and month <= 10:
  191. if hour >= 6 and hour < 22:
  192. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost0.'+rand(1,6)+'.jpg"></center>'
  193. 'You get lost in the woods. All around, you see unfamiliar places, you are too stressed to appreciate the beauty of nature right now.'
  194. else
  195. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_night0.'+rand(1,4)+'.jpg"></center>'
  196. 'You get lost in the woods. The situation becomes even worse, because it''s now night time.'
  197. end
  198. else
  199. if hour >= 8 and hour < 18:
  200. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_winter0.'+rand(1,5)+'.jpg"></center>'
  201. 'You get lost in the winter woods. All around, you see unfamiliar places, you are too stressed to appreciate the beauty of nature right now.'
  202. else
  203. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestlost_winter_night0.'+rand(1,4)+'.jpg"></center>'
  204. 'You get lost in the winter woods. The situation becomes even worse, because it''s now night time.'
  205. end
  206. end
  207. end
  208. if $ARGS[0] = 'lostclothes':
  209. if $clothingworntype ! 'nude' and CloSkirtShortness = 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestsearch0.'+rand(1,4)+'.jpg"></center>'
  210. if $clothingworntype ! 'nude' and CloSkirtShortness > 0:'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestsearch_ski0.'+rand(1,4)+'.jpg"></center>'
  211. if $clothingworntype = 'nude':'<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadforestsearch_nude0.'+rand(1,4)+'.jpg"></center>'
  212. 'After wandering through the woods for an hour you decide to....'
  213. end
  214. if $ARGS[0] = 'gadforestlostfinish':
  215. '<center><H4>Somewhere in the woods</H4></center>'
  216. '<center><img <<$set_imgh>> src="images/locations/gadukino/forest/gadjoy.jpg"></center>'
  217. 'You look over and realize that you finally see lights shining from distant houses, glad to get out of this alive you rush forward.'
  218. !clear lost flags by illume
  219. lost_girl = 0
  220. forest_lostday = 0
  221. hanters = 0
  222. gs 'clothing', 'swamp_clothes', 0
  223. gs 'stat'
  224. if $clothingworntype = 'nude':
  225. act 'Leave the woods':
  226. minut += 25
  227. 'You find your way out of the woods, hiding your naked body in shadows.'
  228. 'You make your way back towards the edge of the forest where you left your clothes.'
  229. cla
  230. act 'Continue':gt'gadforest', '1'
  231. end
  232. !disable further actions from being added
  233. temp=0
  234. end
  235. end
  236. if $ARGS[0] = 'gadforestlostfinish1':
  237. cls
  238. *clr
  239. temp = RAND(1,3)
  240. lost = 0
  241. pcs_mood += 20
  242. gs 'stat'
  243. gs 'gadforestlost', 'gadforestlostfinish'
  244. if temp = 1:act 'Leave the woods':minut += 15 & gt'gadforest','1'
  245. if temp = 2:act 'Leave the woods':minut += 15 & gt'gadfield','field'
  246. if temp = 3:act 'Leave the woods':minut += 15 & gt'gadroad'
  247. end
  248. if $ARGS[0] = 'gadforestlostfinish2':
  249. cls
  250. *clr
  251. temp = RAND(1,5)
  252. lost = 0
  253. pcs_mood += 20
  254. gs 'stat'
  255. gs 'gadforestlost', 'gadforestlostfinish'
  256. if temp = 1:act 'Leave the woods':minut += 15 & gt'gadforest','1'
  257. if temp = 2:act 'Leave the woods':minut += 15 & gt'gadfield','field'
  258. if temp = 3:act 'Leave the woods':minut += 15 & gt'gadroad'
  259. if temp = 4:act 'Leave the woods':minut += 15 & gt'gadriver','start'
  260. if temp = 5:act 'Leave the woods':minut += 15 & gt'Meadow'
  261. end
  262. if $ARGS[0] = 'gadforestlostfinish3':
  263. cls
  264. *clr
  265. temp = RAND(1,7)
  266. lost = 0
  267. pcs_mood += 20
  268. gs 'stat'
  269. gs 'gadforestlost', 'gadforestlostfinish'
  270. if temp = 1:act 'Leave the woods':minut += 15 & gt'gadforest','1'
  271. if temp = 2:act 'Leave the woods':minut += 15 & gt'gadfield','field'
  272. if temp = 3:act 'Leave the woods':minut += 15 & gt'gadroad'
  273. if temp = 4:act 'Leave the woods':minut += 15 & gt'gadriver','start'
  274. if temp = 5:act 'Leave the woods':minut += 15 & gt'Meadow'
  275. if temp = 6:act 'Leave the woods':minut += 15 & nroad = 15 & gt'road'
  276. if temp = 7:act 'Leave the woods':minut += 15 & nroad = 10 & gt'road'
  277. end
  278. if $ARGS[0] = 'gadforestlostfinish4':
  279. cls
  280. *clr
  281. temp = RAND(1,9)
  282. lost = 0
  283. pcs_mood += 20
  284. gs 'stat'
  285. gs 'gadforestlost', 'gadforestlostfinish'
  286. if temp = 1:act 'Leave the woods':minut += 15 & gt'gadforest','1'
  287. if temp = 2:act 'Leave the woods':minut += 15 & gt'gadfield','field'
  288. if temp = 3:act 'Leave the woods':minut += 15 & gt'gadroad'
  289. if temp = 4:act 'Leave the woods':minut += 15 & gt'gadriver','start'
  290. if temp = 5:act 'Leave the woods':minut += 15 & gt'Meadow'
  291. if temp = 6:act 'Leave the woods':minut += 15 & nroad = 15 & gt'road'
  292. if temp = 7:act 'Leave the woods':minut += 15 & nroad = 10 & gt'road'
  293. if temp = 8:act 'Leave the woods':minut += 15 & nroad = 10 & gt'road'
  294. if temp = 9 and goswamp = 0:act 'Leave the woods':minut += 15 & gt 'gadforestswamp','1'
  295. if temp = 9 and goswamp = 1:act 'Leave the woods':minut += 15 & gt 'swamp'
  296. end
  297. if $ARGS[0] = 'searchfood':
  298. if hour >= 6 and hour <= 20 and month >= 6 and month <= 9 and boletus + bilberry < 10:
  299. act 'Look for mushrooms and berries':
  300. cla
  301. *clr
  302. minut += 30
  303. new_boletus += rand(1,2)
  304. new_bilberry += rand(1,2)
  305. if new_boletus + new_bilberry > 0:
  306. boletus += new_boletus
  307. bilberry += new_bilberry
  308. pcs_mood += 5
  309. gs 'stat'
  310. gs 'gadforest', 'clothes1'
  311. 'Within half an hour of wandering through the woods in search of mushrooms or berries, you found <<new_boletus>> kg mushrooms and <<new_bilberry>> kg of berries.'
  312. else
  313. pcs_mood -= 5
  314. gs 'stat'
  315. gs 'gadforest', 'clothes2'
  316. 'After half an hour of wandering through the woods in search of mushrooms or berries, you found nothing.'
  317. end
  318. act 'Continue':gt $loc, $metka
  319. end
  320. end
  321. end
  322. --- gadforestlost ---------------------------------