1
0

gadforestlost.qsrc 11 KB

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