gad_swamp.qsrc 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # gad_swamp
  2. if $ARGS[0] = 'start':
  3. gs 'shortgs', 'setloc', 'gad_swamp', 'start'
  4. $location_type = 'secluded'
  5. menu_off = 0
  6. CLOSE ALL
  7. gs 'gadukino_event', 'sound'
  8. gs 'stat'
  9. '<center><H4>Swamp</H4></center>'
  10. if month >= 4 and month <= 10:
  11. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/'+iif(DayStage < 4,'swamp.jpg','swamp_night.jpg')+'"></center>'
  12. else
  13. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/'+iif(DayStage < 4,'swamp_winter.jpg','swamp_winter_night.jpg')+'"></center>'
  14. end
  15. *nl
  16. 'You are at the village''s swamp on the far side of the woods.'
  17. 'It can be dangerous to hike in this area unless you are physically fit or know the forest well.'
  18. act 'Head back to the forest (0:15)': minut += 15 & gt 'gad_forest', 'forest_center'
  19. if hunterscabin = 1:
  20. 'You can see the small path to the clearing that contains the hunters'' cabin.'
  21. act 'Walk to the hunters'' cabin (0:15)':
  22. ! daytime chance to get stuck in swamp - use bike to get there 100% of the time
  23. if DayStage < 4:
  24. if rand(0, 9) = 0:
  25. gt 'gad_swamp_yard', 'start'
  26. else
  27. swamp_stuck = 0
  28. gt 'gad_swamp', 'stuck', 'swamp'
  29. end
  30. ! nighttime chased by wolves - Sveta probably should not be roaming the forest at this time
  31. else
  32. gt 'gad_forest_lost', 'wolves', 'swamp'
  33. end
  34. end
  35. end
  36. end
  37. if $ARGS[0] = 'stuck':
  38. ! if player is skilled at forest or very agile or strong then don''t get stuck in swamp at all
  39. if pcs_bushcraft < 80 and pcs_agil < 70 and pcs_stren < 70:
  40. gs 'shortgs', 'setloc', 'gad_swamp', 'stuck'
  41. $location_type = 'secluded'
  42. menu_off = 0
  43. CLOSE ALL
  44. gs 'gadukino_event', 'sound'
  45. gs 'stat'
  46. '<center><H4>Swamp</H4></center>'
  47. if $clothingworntype ! 'nude' and PCloSkirt = 0:
  48. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp1.jpg"></center>'
  49. elseif $clothingworntype ! 'nude' and PCloSkirt > 0:
  50. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_ski1.jpg"></center>'
  51. elseif $clothingworntype = 'nude':
  52. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_nude0.'+rand(4,5)+'.jpg"></center>'
  53. end
  54. *nl
  55. 'As you walk through the swamp, you feel yourself begin to sink into the mud with each step.'
  56. 'You know you''re so close to your destination, but you''re not sure you can make it.'
  57. act 'Struggle':
  58. *clr & cla
  59. swamp_stuck += 1
  60. minut += 15
  61. gs 'sweat', 'add', 15
  62. gs 'stat'
  63. if swamp_stuck mod 3 = 0:
  64. swamp_check = pcs_stren + pcs_agil + pcs_bushcraft
  65. swamprand = rand(0,225)
  66. elseif swamp_stuck mod 2 = 0:
  67. swamp_check = pcs_stren + pcs_agil
  68. swamprand = rand(0,150)
  69. else
  70. swamp_check = pcs_stren
  71. swamprand = rand(0,75)
  72. end
  73. if swamp_stuck = 10:
  74. gs 'gameover', 'check', 10
  75. msg '<font color=red><B>You should die in this swamp, but Cheat Mode keeps you Alive.</B></font>'
  76. end
  77. if swamp_check > swamprand:
  78. '<center><H4>Swamp</H4></center>'
  79. if $clothingworntype ! 'nude' and PCloSkirt = 0:
  80. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp.jpg"></center>'
  81. elseif $clothingworntype ! 'nude' and PCloSkirt > 0:
  82. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_ski.jpg"></center>'
  83. elseif $clothingworntype = 'nude':
  84. swamprand = rand(0,3)
  85. if swamprand = 0:
  86. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_nude0..jpg"></center>'
  87. else
  88. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_nude0.' + rand(1,3) + '.jpg"></center>'
  89. end
  90. end
  91. *nl
  92. 'Your efforts are not vain as you begin to feel the mud''s hold loosen. Then, with another burst of strength, you free yourself and sigh in relief.'
  93. act 'Success!': gt 'gad_swamp_yard', 'start'
  94. else
  95. '<center><H4>Swamp</H4></center>'
  96. if $clothingworntype ! 'nude' and PCloSkirt = 0:
  97. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp1.jpg"></center>'
  98. elseif $clothingworntype ! 'nude' and PCloSkirt > 0:
  99. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_ski1.jpg"></center>'
  100. elseif $clothingworntype = 'nude':
  101. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/goswamp_nude0.' + rand(4,5) + '.jpg"></center>'
  102. end
  103. *nl
  104. 'Your efforts are for nothing. The mud''s hold feels as tight as ever. In fact, you feel yourself sinking even deeper.'
  105. act 'Failure': gt 'gad_swamp', 'stuck'
  106. end
  107. end
  108. if month >= 4 and month <= 10:
  109. act 'Scream for help':
  110. *clr & cla
  111. minut += 15
  112. if ((hour >= 8 and hour < 12) or (hour >= 14 and hour < 18)):
  113. swamprand = rand(1,4)
  114. elseif (hour >= 7 and hour < 23):
  115. swamprand = rand(1,5)
  116. else
  117. swamprand = rand(1,6)
  118. end
  119. '<center><H4>Swamp</H4></center>'
  120. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/gadforestlosthelp.jpg"></center>'
  121. *nl
  122. 'You don''t think you''re strong enough to break free of the mud and decide your best chance is to simply yell for help. Hopefully, you''re close enough to the hunters'' cabin that they''ll hear you.'
  123. if swamprand = 1:
  124. act 'Success!':
  125. *clr & cla
  126. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/handshelp.jpg"></center>'
  127. *nl 'You hear men speaking and begin to shout louder. The voices come closer, and finally, you feel strong hands grab you and drag you out to the solid ground.'
  128. gs 'stat'
  129. act 'Relax': gt 'gad_swamp_yard','start'
  130. end
  131. else
  132. *nl 'You yell out into the void, but your only response is the howling of the wind and the chirp of some crickets.'
  133. gs 'stat'
  134. act 'Failure': gt 'gad_swamp','stuck'
  135. end
  136. end
  137. end
  138. else
  139. '<center><H4>Swamp</H4></center>'
  140. if month >= 4 and month <= 10:
  141. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/'+iif(DayStage < 4,'gadforestlostswamp.jpg', 'gadforestlostswamp_night.jpg')+'"></center>'
  142. else
  143. '<center><img <<$set_imgh>> src="images/locations/gadukino/hunters/'+iif(DayStage < 4,'gadforestlostswamp_winter.jpg', 'gadforestlostswamp_winter_night.jpg')+'"></center>'
  144. end
  145. *nl
  146. if $ARGS[1] = 'forest_edge':
  147. minut += 60
  148. 'After an hour of walking through the forest, you finally see the hunters'' cabin ahead.'
  149. elseif $ARGS[1] = 'swamp':
  150. minut += 15
  151. 'After walking through the swamp for a few minutes, you finally see the hunters'' cabin ahead.'
  152. end
  153. gs 'stat'
  154. act 'Continue': gt 'gad_swamp_yard', 'start'
  155. end
  156. end
  157. --- gad_swamp ---------------------------------