gadforestlost.qsrc 11 KB

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