// Wolf Encounter
// Trigger this script when wolves move close to the caravan after its move.

//
//Sheep or Goats in Danger
//

(Animals>=3 AND Inv(Sheep)>0)
"Do not let these wolves make off with a sheep - drive them off now with a banging of shields!"
RosterReduce(Goats,2%,Animals,D3)
RosterReduce(Sheep,2%,Animals,D3)
Spirit(-2%,Animals,D2)
#end

(Animals>=3 AND Inv(Goats)>0)
"Given half a chance, these wolves will steal a goat from us - drive them off with loud noises!"
RosterReduce(Goats,2%,Animals,D3)
RosterReduce(Sheep,2%,Animals,D3)
Spirit(-2%,Animals,D2)
#end

(Animals>=3 AND Inv(Sheep,Goats)>0)
"Quickly, strike our shields together to drive these wolves away before they get to the livestock!"
RosterReduce(Goats,2%,Animals,D3)
RosterReduce(Sheep,2%,Animals,D3)
Spirit(-2%,Animals,D2)
#end

(Animals>=3 AND Inv(Sheep,Goats)>0)
"Strike metal together to drive away these wolves before they steal some of our livestock!"
RosterReduce(Goats,2%,Animals,D3)
RosterReduce(Sheep,2%,Animals,D3)
Spirit(-2%,Animals,D2)
#end

(Animals>=3 AND Inv(Sheep,Goats)>0)
"Loud noises will drive these wolves away before they take any of our livestock!"
RosterReduce(Goats,2%,Animals,D3)
RosterReduce(Sheep,2%,Animals,D3)
Spirit(-2%,Animals,D2)
#end

(Wayfare>=3 AND Inv(Sheep,Goats)>0)
"The wolves have the scent of our livestock - we must be vigilant."
RosterReduce(Goats,3%,Battle,D3)
RosterReduce(Sheep,3%,Battle,D3)
Spirit(-2%,Wayfare,D2)
#end



//
//Special Wolf Events
//

//Join the Hunt
(AdvisorCulture=Roman AND Animals>=5 AND NearTerrain(Woods)) OR (AdvisorCulture=Roman AND Animals>=5 AND NearTerrain(Trees))
"These wolves will let me hunt with them, if we share the kills."
RosterGain(Provisions,18,Animals,D6)
Time(1)
#end

(AdvisorCulture=Parthian AND Animals>=5 AND NearTerrain(Woods)) OR (AdvisorCulture=Parthian AND Animals>=5 AND NearTerrain(Trees))
"If we can wait for a short time, I can go hunting with these wolves and maybe catch something large enough to make the stop worthwhile."
RosterGain(Provisions,18,Animals,D6)
Time(1)
#end

(AdvisorCulture=Kushan AND Animals>=5 AND NearTerrain(Woods)) OR (AdvisorCulture=Kushan AND Animals>=5 AND NearTerrain(Trees))
"May I hunt with these wolves? I can befriend this pack long enough to catch something big enough to share."
RosterGain(Provisions,18,Animals,D6)
Time(1)
#end

(AdvisorCulture=Han AND Animals>=5 AND NearTerrain(Woods)) OR (AdvisorCulture=Han AND Animals>=5 AND NearTerrain(Trees))
"Through cunning measures, I might coax this pack to take to the hunt with me..."
RosterGain(Provisions,18,Animals,D6)
Time(1)
#end

(AdvisorCulture=Nomad AND Animals>=5 AND NearTerrain(Woods)) OR (AdvisorCulture=Nomad AND Animals>=5 AND NearTerrain(Trees))
"Will you permit me to go hunting with these wolves? It could be worth the delay..."
RosterGain(Provisions,18,Animals,D6)
Time(1)
#end



//Wolf Guard
(AdvisorCulture=Roman AND Animals>=4 AND NearTerrain(Shrubs) AND Inv(Wolves)=0 AND Inv(Provisions)>20)
"There is a wolf following this pack who is not a part of it - if we offer food, they might stay the rest of the day with us..."
Spirit(2%,1%,Animals,D6)
Dec(Provisions,1)
Time(1)
#end

(AdvisorCulture=Parthian AND Animals>=4 AND NearTerrain(Shrubs) AND Inv(Wolves)=0 AND Inv(Provisions)>20)
"One of the wolves in this pack seems taken with us. May I feed it, and encourage it to stay till dawn? A wolf makes an excellent night watch..."
Spirit(2%,1%,Animals,D6)
Dec(Provisions,1)
Time(1)
#end

(AdvisorCulture=Kushan AND Animals>=4 AND NearTerrain(Shrubs) AND Inv(Wolves)=0 AND Inv(Provisions)>20)
"I befriended one of these wolves when we met once before... would you permit me to tempt it into staying with us until tomorrow?"
Spirit(2%,1%,Animals,D6)
Dec(Provisions,1)
Time(1)
#end

(AdvisorCulture=Han AND Animals>=4 AND NearTerrain(Shrubs) AND Inv(Wolves)=0 AND Inv(Provisions)>20)
"There is a lone wolf here who thirsts for companionship - shall we quench that thirst for a day, at least?"
Spirit(2%,1%,Animals,D6)
Dec(Provisions,1)
Time(1)
#end

(AdvisorCulture=Nomad AND Animals>=4 AND NearTerrain(Shrubs) AND Inv(Wolves)=0 AND Inv(Provisions)>20)
"Befriend a wolf and you shall never be surprised at night..."
Spirit(2%,1%,Animals,D6)
Dec(Provisions,1)
Time(1)
#end


//Hunt errors
(Animals>=5 AND NOT NearTerrain(Woods)) AND NOT NearTerrain(Trees))
"These wolves would let me hunt with them, but there is no good hunting nearby..."
#end



//
//Standard wolf encounter 
//
(Animals>=3 AND Inv(Goats,Sheep)=0 AND NearTerrain(Shrubs))
"Do not be troubled by these wolves, they are just curious about us."
Spirit(-2%,Animals,D2)
#end

(Animals>=3 AND Inv(Goats,Sheep)=0 AND NearTerrain(Water)) OR (Animals>=3 AND Inv(Goats,Sheep)=0 AND NearTerrain(Shallows))
"The wolves are just here for the water, they should not give us any trouble."
Spirit(-2%,Animals,D2)
#end

(Animals>=3 AND Inv(Goats,Sheep)=0)
"These wolves will not bother us... they are merely curious if we will leave them any scraps to eat."
Spirit(-2%,Animals,D2)
#end

(Wayfare>=3 AND Inv(Sheep,Goats)=0)
"I have no fear of wolves and neither should you - I will slay any that come near!"
Spirit(-2%,Wayfare,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Parthian AND Inv(Sheep,Goats)=0)
"This is a sign that we are divided - we must unite our purposes like a wolf pack."
Spirit(-3%,Rituals,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Roman)
"The wolf is sacred to Ares... t'is an ill omen that this pack approaches us."
RosterReduce(Goats,10%,Battle,D3)
RosterReduce(Sheep,10%,Battle,D3)
Spirit(-3%,Rituals,D3)
#end


//
//Defaults
//
(Class=Soldier)
"Wolves prey upon the unwary... let me lead a hunting party to drive them away."
RosterReduce(Goats,3%,Battle,D3)
RosterReduce(Sheep,3%,Battle,D3)
Spirit(-2%,Battle,D2)
#end

(AdvisorCulture=Roman) OR (AdvisorCulture=Parthian) OR (AdvisorCulture=Kushan)
"Wolves... never a good travelling companion."
RosterReduce(Goats,10%,Animals,D3)
RosterReduce(Sheep,10%,Animals,D3)
Spirit(-3%,Animals,D2)
#end

(AdvisorCulture=Han) OR (AdvisorCulture=Nomad)
"A hungry wolf sees only food..."
RosterReduce(Goats,10%,Animals,D3)
RosterReduce(Sheep,10%,Animals,D3)
Spirit(-3%,Animals,D2)
#end