;--------------------------------------------------------------------
; ;;;Triggers of Byzantine Relics;;;;;;;;
;--------------------------------------------------------------------
Trigger banner_of_Great_Constantine
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and IsFactionLeader
and SettlementName Constantinople
and FactionType byzantium
and not I_WorldwideAncillaryExists banner_of_Great_Constantine
and not HasAncType Relic_banner
and Trait GoodCommander >= 3
AcquireAncillary banner_of_Great_Constantine chance 33
;----------------------------------------------
Trigger sword_of_Basil_Bulgaroctonos
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and IsGeneral
and SettlementName Sofia
and FactionType byzantium
and not I_WorldwideAncillaryExists sword_of_Basil_Bulgaroctonos
and not HasAncType Relic_sword
and Trait GoodCommander >= 3
AcquireAncillary sword_of_Basil_Bulgaroctonos chance 33
;----------------------------------------------
Trigger Banner_of_Herakleios
WhenToTest PostBattle
Condition WonBattle
and FactionReligion catholic
and GeneralFoughtCulture middle_eastern
and BattleSuccess = crushing
and FactionType byzantium
and not I_WorldwideAncillaryExists Banner_of_Herakleios
and not HasAncType Relic_banner
and Trait GoodCommander >= 3
AcquireAncillary Banner_of_Herakleios chance 66
;----------------------------------------------
Trigger sword_of_Great_Constantine
WhenToTest PostBattle
Condition IsGeneral
and WonBattle
and PercentageEnemyKilled > 25
and BattleOdds <= 0.50
and FactionType byzantium
and not I_WorldwideAncillaryExists sword_of_Great_Constantine
and not HasAncType Relic_sword
and Trait GoodCommander >= 3
AcquireAncillary sword_of_Great_Constantine chance 66
;----------------------------------------------
Trigger banner_of_Justinian
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and IsGeneral
and SettlementName Rome
and FactionType byzantium
and not I_WorldwideAncillaryExists banner_of_Justinian
and not HasAncType Relic_banner
and Trait GoodCommander >= 3
AcquireAncillary banner_of_Justinian chance 33
;----------------------------------------------
Trigger sword_of_Nikephoros_Phokas
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and IsGeneral
and SettlementName Constantinople
and FactionType byzantium
and not I_WorldwideAncillaryExists sword_of_Nikephoros_Phokas
and not HasAncType Relic_sword
and Trait GoodCommander >= 3
and Trait Military_Career_In_Byzantium = 9
AcquireAncillary sword_of_Nikephoros_Phokas chance 66
;----------------------------------------------
;;;;;;;;;;;;;;Triggers of office start here;;;;;;;;;;;
;------------------------------------------
Trigger Etairiarches_vnv_trigger
WhenToTest HireMercenaries
Condition IsGeneral
and FactionType byzantium
and not IsFactionLeader
and not IsFactionHeir
AcquireAncillary Etairiarches chance 15
;------------------------------------------
Trigger Stratopedarches_vnv_trigger
WhenToTest CharacterTurnEnd
Condition IsGeneral
and FactionType byzantium
and not IsFactionLeader
and not IsFactionHeir
and Trait Disciplinarian >= 1
and Trait GoodCommander >= 2
AcquireAncillary Stratopedarches chance 33
;------------------------------------------
Trigger Megas_Primikerios_vnv_trigger
WhenToTest CharacterTurnEnd
Condition IsGeneral
and FactionType byzantium
and not IsFactionLeader
and not IsFactionHeir
and Trait Loyal >= 1
and Trait GoodCommander >= 3
and not FactionwideAncillaryExists Megas_Primikerios
and not HasAncType office
AcquireAncillary Megas_Primikerios chance 100
;-----------------------------------------
Trigger Megas_Kontostablos_vnv_trigger
WhenToTest HireMercenaries
Condition IsGeneral
and FactionType byzantium
and not IsFactionLeader
and not IsFactionHeir
and Trait Loyal >= 1
and Trait Xenophilia >= 1
and Trait GoodCommander >= 3
and not FactionwideAncillaryExists Megas_Kontostablos
and not HasAncType office
AcquireAncillary Megas_Kontostablos chance 100
;------------------------------------------
Trigger Protospatharios_vnv_trigger
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and FactionType byzantium
and not IsFactionLeader
and not IsFactionHeir
and RemainingMPPercentage = 100
and SettlementBuildingExists >= militia_drill_square
and Trait Loyal > 2
and Trait GoodCommander >= 3
and not FactionwideAncillaryExists Protospatharios
and IsGeneral
and not HasAncType office
AcquireAncillary Protospatharios chance 100
;------------------------------------------
Trigger Protalagator_vnv_trigger
WhenToTest GovernorUnitTrained
Condition TrainedUnitCategory cavalry
and FactionType byzantium
and not IsFactionLeader
and not IsFactionHeir
and SettlementBuildingExists > knights_stables
and Trait GoodCommander >= 3
and Trait Loyal >= 1
and IsGeneral
and not FactionwideAncillaryExists Protalagator
and not HasAncType office
AcquireAncillary Protalagator chance 100