elseif $loc = 'southForest':
KILLVAR('encounterArray') & !kil the previous version of the array if exist
! generate encounter that occur in south forest
! --- No markers ---
! -- Witch hut --
if NO witchHutFound:
witchHutChance=RAND(0,14)
encounterArray[]=witchHutChance
end
if circeMet and NO twoFight:
harpyTwoEncounterChance=RAND(0,14)-@absoluteDifference(CirceHutPosition, northroad)
encounterArray[]=harpyTwoEncounterChance
end
! -- Healer statue --
if NO HealerStatueFound:
encounterArray[]=RAND(0,14)
end
! -- Hunter statue --
if hunterStatueFound=0:
encounterArray[]=RAND(0,14)
end
! --- Marker 1: Silas tomb ---
! --- Marker 2: forest brothel ---
if NO forestBrothelFound:
forestBrothelEncounterChance=RAND(0,14)-@absoluteDifference(ForestBrothelPosition, northroad)
forestEncounterArray[]=forestBrothelEncounterChance
end
! --- Marker 3: farm of player ---
! --- Marker 4: farmland farms ---
! --- Marker 5: Avedon ---
! --- Marker 6: nothing? ---
! --- Marker 7: spaceship crash zone ---
! --- Marker 8: local bandit den ---
if NO banditDenFound:
banditDenChance=RAND(0,14)-@absoluteDifference(BanditDenPosition, northroad)
forestEncounterArray[]=banditDenChance
end
banditChance=RAND(0,14)-@absoluteDifference(BanditDenPosition, northroad)
forestEncounterArray[]=banditChance
! --- Marker 9: elven ruins ---
! --- Marker 10: nothing? ---
! --- Marker 11: werewolf den ---
if NO werewolfDenFound:
werewolfDenChance=RAND(0,14)-@absoluteDifference(WerewolfDenPosition, northroad)
forestEncounterArray[]=werewolfDenChance
end
if (NO werewolfCaptured and NO wolfMate) or (NO werewolfKilled and NO wolfMate) or denWerewolves>0:
werewolfEncounterChance=RAND(0,14)-@absoluteDifference(WerewolfDenPosition, northroad)
forestEncounterArray[]=werewolfEncounterChance
end
! --- Marker 12: the_door tm ---
! --- Marker 13: Britmor ---
! --- Marker 14: Goblin lair ---
if NO goblinLairFound:
goblinLairChance=RAND(0,14)-@absoluteDifference(GoblinLairPosition, northroad)
forestEncounterArray[]=goblinLairChance
end
goblinEncounterChance=RAND(0,14)-@absoluteDifference(GoblinLairPosition, northroad)
forestEncounterArray[]=goblinEncounterChance
if witchHutChance >= MAX('forestEncounterArray')
gt 'witchHut'
end
elseif ...