Is the number listed there after effect the percentage chance of gaining the ancilleriy?
events.CharacterCompletedBattle[#events.CharacterCompletedBattle+1] =
function (context)
if conditions.CharacterType("General", context) and conditions.CharacterTrait("C_General_Scout", context) == 1 and conditions.CharacterTurnsInEnemyLands(context) >= 0 and conditions.CharacterWonBattle(context) and not conditions.CampaignName("episodic_1", context) and not conditions.CampaignName("episodic_3", context) and not conditions.CharacterCultureType("tribal", context) then
if conditions.DateInRange(1700, 1900, context) then
effect.ancillary("Ancillary_Army_Military_Surveyor", 2, context)
end
return true
end
return false
end
--[[ Ancillary_Army_Ottoman_Turncoat_2_Trigger ]]--
events.CharacterCompletedBattle[#events.CharacterCompletedBattle+1] =
function (context)
if conditions.CharacterType("General", context) and not conditions.CharacterFactionName("ottomans", context) and conditions.CharacterFoughtCulture("middle_east", context) and conditions.CharacterWonBattle(context) and conditions.BattleResult("major_victory", context) and not conditions.CampaignName("episodic_1", context) and not conditions.CampaignName("episodic_3", context) and not conditions.CharacterCultureType("tribal", context) then
if conditions.DateInRange(1700, 1900, context) then
effect.ancillary("Ancillary_Army_Ottoman_Turncoat", 17, context)
end
return true
end
return false
end
Also where are the events being called from?




Reply With Quote









