//Camel Encounter
//Camel Encounter
//Trigger this script when the player is adjacent to wild Camels after their move.

//Capture difficulties lowered by 1 step as of 15Jan18

// The Soldier does not suggest hunting the Camels unless food is very low.
(Class=Soldier AND Inv(Provisions)<14)
"If you wish, I could bring down one of these wild Camels to provide us with a few days meat..."
Gain(Provisions,35,Wayfare,D2)
#end

//Woods or Trees encounters
(Terrain(Woods) AND Animals>=2 AND Inv(Horses)>0) OR (Terrain(Trees) AND Animals>=4 AND Inv(Horses)>0)
"The trees here might add to the challenge, but please let me take a horse and attempt to rope one of these Camels!"
Gain(Camels,2,Animals,D4)
#end

(Terrain(Woods) AND Wayfare>=3 AND Inv(Horses)>0) OR (Terrain(Woods) AND Wayfare>=4 AND Inv(Camels)>0) OR (Terrain(Trees) AND Wayfare>=3 AND Inv(Horses)>0) OR (Terrain(Trees) AND Wayfare>=4 AND Inv(Camels)>0)
"It should be easy to flank these wild Camels amidst the trees, and if I can drive them towards us we might capture one..."
RosterGain(Camels,2,Animals,D3)
#end

(Terrain(Woods) AND Wayfare>=3 AND Inv(Horses)=0 AND Inv(Camels)>0) OR (Terrain(Trees) AND Animals>=3 AND Inv(Horses)=0 AND Inv(Camels)>0)
"Without horses, I'd be forced to attempt to capture these wild Camels from another Camel - difficult enough, even without the trees, but worth the attempt..."
Gain(Camels,2,Animals,D6)
#end

//Desert encounters
(Terrain(Desert) AND Animals>=3 AND Inv(Horses)>0)
"The wild Camels have the advantage here in the desert, but with a horse and rope I might yet capture one - it is worth the attempt!"
Gain(Camels,2,Animals,D4)
#end

(Terrain(Desert) AND Wayfare>=3 AND Inv(Horses)>0)
"The desert is too open for me to flank these wild Camels unnoticed, but let me try and drive one towards us anyway - the capture of even one would be a great prize!"
RosterGain(Camels,2,Animals,D5)
#end

(Terrain(Desert) AND Wayfare>=3 AND Inv(Camels)>0)
"If I lay low upon the back of a Camel, their wild brethren might not notice me until I cry out and startle them. Hide amidst the dunes here and with luck we might capture one."
RosterGain(Camels,2,Animals,D3)
#end

(Terrain(Desert) AND Animals>=3 AND Inv(Horses)=0 AND Inv(Camels)>0)
"Capturing wild Camels from the back of a Camel is a great challenge, but here in the desert I might succeed..."
Gain(Camels,2,Animals,D4)
#end

//Default terrain encounters
(Animals>=4 AND Inv(Horses)>0)
"With my skills as a rider, I swear I shall rope a wild Camel this day!"
Gain(Camels,2,Animals,D3)
#end

(Animals>=2 AND Inv(Horses)>0)
"Please let me take a horse and attempt to catch one of these wild Camels with a rope! It would be a great asset to us."
Gain(Camels,2,Animals,D3)
#end

(Wayfare>=2 AND Inv(Horses)>0) OR (Wayfare>=2 AND Inv(Camels)>0)
"If I flank these wild Camels, I may be able to drive one towards our caravan, that we might capture it..."
RosterGain(Camels,2,Animals,D4)
#end

(Animals>=2 AND Inv(Horses)=0 AND Inv(Camels)>0)
"It is hard to capture a Camel from the back of another Camel, but I am willing to try."
Gain(Camels,1,Animals,D5)
#end

//Ritegiver comments
(Class=Ritegiver AND AdvisorCulture=Kushan)
"These Camels are a good omen... the god Prabuji is an ally of the great Shiva."
Spirit(+5%,Rituals,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Parthian)
"The father of the prophet Zartosht reared Camels... perhaps fortune will favour us this day."
Spirit(+2%,Rituals,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Nomad)
"It is fortunate when a wild Camel crosses your path."
Spirit(+2%,Rituals,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Roman)
"I know no rites or gods of Camels, alas..."
Spirit(-1%,Rituals,D2)
#end



//Error: no Guide or Drover
(RosterSkill(Animals)<3 AND RosterSkill(Wayfare)<3)
"Catching wild Camels requires a talent not one of us possesses. Perhaps we should seek out a Drover or a Guide in the local Caravanserai..."
#end



//Soldiers complain about the risk of ambush
(Class=Soldier AND NearTerrain(Mountain))
"Beware of chasing Camels near the mountains... ambushers could take advantage of our lowered guard."
Spirit(-1%,Battle,D2)
#end

(Class=Soldier AND NearTerrain(Woods))
"This terrain is uneven and makes pursuit more dangerous that I should like... and what if bandits have hidden amidst the trees?"
Spirit(-1%,Battle,D2)
#end

//Wayfare comments on the terrain
(Wayfare>=2 AND NearTerrain(Water))
"You sometimes have to follow a Camel for a whole moon before it leads you to water..."
#end

(Wayfare>=1 AND NearTerrain(Woods))
"It is quite unusual to find wild Camels where there are trees."
Spirit(1%,Wayfare,D2)
#end

(Wayfare>=1 AND NearTerrain(Mountain))
"I have seen wild Camels near the mountains before, but it is not where you expect to see them."
Spirit(1%,Wayfare,D2)
#end

//Default responses, diversified by terrain
(NearTerrain(Desert) AND AdvisorCulture=Parthian) OR (NearTerrain(Desert) AND AdvisorCulture=Nomad)
"These wild Camels thrive in the desert like no other beast."
#end

(NearTerrain(Desert) AND AdvisorCulture=Roman) OR (NearTerrain(Desert) AND AdvisorCulture=Kushan) OR (NearTerrain(Desert) AND AdvisorCulture=Han)
"Where do these Camels find their water, I wonder..."
#end

(NearTerrain(Woods) AND AdvisorCulture=Parthian) OR (NearTerrain(Woods) AND AdvisorCulture=Nomad) OR (NearTerrain(Trees) AND AdvisorCulture=Parthian) OR (NearTerrain(Trees) AND AdvisorCulture=Nomad)
"Camels amidst the trees? That is not an everyday sight!"
#end

(NearTerrain(Woods) AND AdvisorCulture=Roman) OR (NearTerrain(Woods) AND AdvisorCulture=Kushan) OR (NearTerrain(Woods) AND AdvisorCulture=Han) OR (NearTerrain(Trees) AND AdvisorCulture=Roman) OR (NearTerrain(Trees) AND AdvisorCulture=Kushan) OR (NearTerrain(Trees) AND AdvisorCulture=Han)
"What brings these Camels to these trees, I wonder...?"
#end

(NearTerrain(Water) AND AdvisorCulture=Parthian) OR (NearTerrain(Water) AND AdvisorCulture=Nomad)
"These Camels must come here to drink..."
#end

(NearTerrain(Water) AND AdvisorCulture=Roman) OR (NearTerrain(Water) AND AdvisorCulture=Kushan) OR (NearTerrain(Water) AND AdvisorCulture=Han)
"If the Camels come here to drink, do more dangerous beasts come here also?"
Spirit(-2%,Animals,D2)
#end

(AdvisorCulture=Parthian) OR (AdvisorCulture=Nomad)
"Wild Camels - hard to catch, alas..."
#end

(AdvisorCulture=Roman) OR (AdvisorCulture=Kushan) OR (AdvisorCulture=Han)
"I shall never get used to the stink of wild Camels..."
#end
