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

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

// The Soldier does not suggest hunting the Horses unless food is very low.
(Class=Soldier AND Inv(Provisions)<14)
"By your command, I could hunt these wild Horses to replenish our dwindled supplies of meat."
Gain(Provisions,35,Battle,D2)
#end



//Woods or Trees encounters
(NearTerrain(Woods) AND Animals>=5 AND ClassCount(Guide)>=1 AND RosterSkill(Wayfare)>=5 AND Inv(Horses)>0) OR (Terrain(Trees) AND Animals>=5 AND ClassCount(Guide)>=1 AND RosterSkill(Wayfare)>=5 AND Inv(Horses)>0)
"With a careful plan, we can catch many Horses here - set up nets in the trees and give our Guide a Horse to drive the herd into our snare..."
RosterGain(Horses,5,Animals,D4)
#end

(NearTerrain(Woods) AND Animals>=4 AND ClassCount(Guide)>=1 AND RosterSkill(Wayfare)>=4 AND Inv(Guards)>=5 AND Inv(Horses)>0) OR (Terrain(Trees) AND Animals>=4 AND ClassCount(Guide)>=1 AND RosterSkill(Wayfare)>=4 AND Inv(Guards)>=5 AND Inv(Horses)>0)
"This is an ideal place to capture Horses - have a detachment of Guards set up nets amidst the trees and dispatch our Guide to drive the herd into our trap."
RosterGain(Horses,5,Animals,D4)
#end

(NearTerrain(Woods) AND Animals>=3 AND Inv(Horses)>0) OR (Terrain(Trees) AND Animals>=3 AND Inv(Horses)>0)
"The trees will make it challenging, but if fortune smiles on me I may capture a wild Horse here!"
Gain(Horses,2,Animals,D4)
#end

(NearTerrain(Woods) AND Wayfare>=3 AND Inv(Horses)>0) OR (Terrain(Trees) AND Wayfare>=3 AND Inv(Horses)>0)
"With the trees for cover, I should be able to reach the far side of this herd and drive the wild Horses towards our caravan for capture."
RosterGain(Horses,2,Animals,D3)
#end

(NearTerrain(Woods) AND Animals>=3 AND Inv(Horses)=0 AND Inv(Camels)>0) OR (Terrain(Trees) AND Animals>=3 AND Inv(Horses)=0 AND Inv(Camels)>0)
"Riding a Camel in a forest to catch a Horse... it is not likely to work, but it is worth a try!"
Gain(Horses,2,Animals,D6)
#end

(NearTerrain(Woods) AND Animals>=1 AND Animals<3 AND Inv(Horses)>0) OR (Terrain(Trees) AND Animals>=1 AND Animals<5 AND Inv(Horses)>0)
"Shall I try and catch one of these wild Horses? I have little experience, but the trees may work to my favour."
Gain(Horses,2,Animals,D5)
#end



//Desert encounters
(NearTerrain(Desert) AND Animals>=3 AND Inv(Horses)>0)
"A Horse handles a desert quite well, but it will not make capturing a wild Horse any easier..."
Gain(Horses,2,Animals,D5)
#end

(NearTerrain(Desert) AND Wayfare>=3 AND Inv(Horses)>0)
"The dunes might help me flank these wild Horses and drive the herd to where we might capture one."
RosterGain(Horses,2,Animals,D3)
#end

(NearTerrain(Desert) AND Animals>=3 AND Inv(Horses)=0 AND Inv(Camels)>0)
"Here in the sands my chances of catching a wild Horse from the back of a Camel is greatly improved!"
Gain(Horses,2,Animals,D3)
#end

(NearTerrain(Desert) AND Animals>=1 AND Animals<3 AND Inv(Horses)>0)
"Not many can say they have caught a wild Horse in the desert - but please, let me try!"
Gain(Horses,2,Animals,D5)
#end



//Default terrain encounters
(Animals=1 AND Inv(Horses)>0)
"I do not promise to catch one of these wild Horses, but I vow to give everything in the attempt!"
Gain(Horses,1,Animals,D6)
#end

(Animals>=5 AND Inv(Horses)>0)
"I can catch many Horses from this herd if fortune favours me this day!"
Gain(Horses,3,Animals,D4)
#end

(Animals>=4 AND Inv(Horses)>0)
"With my skill as a rider - and good fortune on our side - I will capture one of these wild Horses!"
Gain(Horses,2,Animals,D4)
#end

(Animals>=2 AND Inv(Horses)>0)
"Our Horses are the match of these wild beasts - let me try and capture one!"
Gain(Horses,2,Animals,D5)
#end

(Wayfare>=2 AND Inv(Horses)>0)
"If I ride around the herd, I might drive one of these wild Horses through our caravan's path to be captured."
RosterGain(Horses,2,Animals,D4)
#end

(Animals>=2 AND Inv(Horses)=0 AND Inv(Camels)>0)
"I have little chance of catching a wild Horse from the back of a Camel - but I am willing to make the attempt all the same..."
Gain(Horses,1,Animals,D7)
#end

(Class=Drover AND Animals<5 AND Inv(Horses)>0)
"I have no great talent for catching wild Horses, but it is surely worth trying regardless!"
Gain(Horses,2,Animals,D6)
#end



//Ritegiver responses
(Class=Ritegiver AND AdvisorCulture=Nomad)
"Our wind Horses be blessed, may Tengri protect our souls from harm."
Spirit(+5%,Rituals,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Roman)
"The Great Mare, the goddess Epona, smiles upon us this day."
Spirit(+5%,Rituals,D2)
#end

(Class=Ritegiver AND AdvisorCulture=Parthian)
"The divine spirit Tishtrya gives us his blessings!"
Spirit(+3%,Rituals,D3)
#end

(Class=Ritegiver AND AdvisorCulture=Kushan)
"Vishnu be praised, we are fortunate to be this close to these wild Horses!"
Spirit(+3%,Rituals,D3)
#end



//Error: no Guide or Drover
(RosterSkill(Animals)<3 AND RosterSkill(Wayfare)<3)
"Alas, without someone skilled in the ways of the wild we cannot hope to catch these Horses. We should seek out a Guide or Drover in the next Caravanserai we visit."
#end



//Soldiers complain about the risk of ambush
(Class=Soldier AND NearTerrain(Mountain))
"Should we really be chasing these Horses in such mountainous terrain? I fear an ambush..."
Spirit(-1%,Battle,D2)
#end

(Class=Soldier AND NearTerrain(Woods))
"Take care here - woods can conceal ambushers, and even if they do not it is perillous to pursue in such treacherous terrain."
Spirit(-1%,Battle,D2)
#end

//Animal skill but no Horses
(Animals>=2 AND Inv(Horses)=0)
"If only we had a Horse, I would gladly try and catch one of these wild beasts!"
#end

//Wayfare comments on the terrain
(Wayfare>=1 AND NearTerrain(Water))
"Wild Horses never stray too far from water..."
#end

(Wayfare>=1 AND NearTerrain(Woods))
"It might be hard to pursue these Horses amidst the trees..."
#end

(Wayfare>=1 AND NearTerrain(Mountain))
"Unusual to find Horses this near to the mountains..."
Spirit(1%,Wayfare,D2)
#end

//Default responses, diversified by terrain
(NearTerrain(Desert) AND AdvisorCulture=Kushan) OR (NearTerrain(Desert) AND AdvisorCulture=Nomad)
"Only the hardiest Horses venture into the desert..."
#end

(NearTerrain(Desert) AND AdvisorCulture=Roman) OR (NearTerrain(Desert) AND AdvisorCulture=Parthian) OR (NearTerrain(Desert) AND AdvisorCulture=Han)
"Horses in the dunes? A rare sight."
Spirit(1%,Animals,D2)
#end

(NearTerrain(Woods) AND AdvisorCulture=Kushan) OR (NearTerrain(Woods) AND AdvisorCulture=Nomad) OR (NearTerrain(Trees) AND AdvisorCulture=Kushan) OR (NearTerrain(Trees) AND AdvisorCulture=Nomad)
"It lifts my soul to see Horses amidst the trees."
Spirit(2%,Animals,D2)
#end

(NearTerrain(Woods) AND AdvisorCulture=Roman) OR (NearTerrain(Woods) AND AdvisorCulture=Parthian) OR (NearTerrain(Woods) AND AdvisorCulture=Han) OR (NearTerrain(Trees) AND AdvisorCulture=Roman) OR (NearTerrain(Trees) AND AdvisorCulture=Parthian) OR (NearTerrain(Trees) AND AdvisorCulture=Han)
"Horses always seem at home in the trees."
#end

(NearTerrain(Water) AND AdvisorCulture=Kushan) OR (NearTerrain(Water) AND AdvisorCulture=Nomad)
"The reflection of Horses in water renews my spirit."
Spirit(1%,Animals,D2)
#end

(NearTerrain(Water) AND AdvisorCulture=Roman) OR (NearTerrain(Water) AND AdvisorCulture=Parthian) OR (NearTerrain(Water) AND AdvisorCulture=Han)
"Do the Horses choose here to drink because it is safe...?"
Spirit(1%,Animals,D2)
#end

(AdvisorCulture=Kushan) OR (AdvisorCulture=Nomad)
"Wild Horses have a nobility I can only admire."
#end

(AdvisorCulture=Roman) OR (AdvisorCulture=Parthian) OR (AdvisorCulture=Han)
"I wish I had the skill to capture one of these wild Horses..."
#end
