This might be helpful.
Code:
;------------------------------------------
;Section: Seleukid Cataphract Reforms
;------------------------------------------
Trigger seleukid_beaten_by_cats
WhenToTest PostBattle
Condition IsGeneral
and not WonBattle
and I_ConflictType Normal
and FactionType romans_julii
and I_TurnNumber > 75
and PercentageUnitCategory cavalry > 10
; and NumEnemiesInBattle > 250
and NumFriendsInBattle > 250
and not BattleOdds > 0.7
and PercentageOfArmyKilled > 20
and PercentageBodyguardKilled > 20
Affects BeatenByCats 1 Chance 100
;----------------------------
;Trigger: beaten_by_baktrian_cats
; o <ImpressedByCats> 1 Chance 100
Trigger beaten_by_baktrian_cats
WhenToTest PostBattle
Condition IsGeneral
and Trait BeatenByCats > 0
and GeneralFoughtFaction romans_brutii
and Trait ImpressedByCats < 1
Affects ImpressedByCats 1 Chance 100
;----------------------------
;Trigger: beaten_by_armenian_cats
; o <ImpressedByCats> 1 Chance 100
Trigger beaten_by_armenian_cats
WhenToTest PostBattle
Condition IsGeneral
and Trait BeatenByCats > 0
and GeneralFoughtFaction romans_scipii
and Trait ImpressedByCats < 1
Affects ImpressedByCats 1 Chance 100
;----------------------------
;Trigger: beaten_by_parthian_cats
; o <ImpressedByCats> 1 Chance 100
Trigger beaten_by_parthian_cats
WhenToTest PostBattle
Condition IsGeneral
and Trait BeatenByCats > 0
and GeneralFoughtFaction parthia
and Trait ImpressedByCats < 1
Affects ImpressedByCats 1 Chance 100
;----------------------------
Trigger Reverse_beaten_by_some_cats
WhenToTest PostBattle
Condition IsGeneral
and Trait BeatenByCats > 0
Affects ReverseBeatenByCats 1 Chance 100
;----------------------------
Trigger dad_impressed_by_cats
WhenToTest CharacterTurnEnd
Condition FatherTrait ImpressedByCats > 0
and Trait ImpressedByCats < 1
Affects ImpressedByCats 1 Chance 100
;son impressed that cats beat his dad
;------------------------------------------
;Trigger: SeleukidBeaten_By_Cats_season_passes
; o <ImpressedByCats> 1 Chance 100
Trigger SeleukidBeaten_By_Cats_season_passes
WhenToTest CharacterTurnEnd
Condition Trait ImpressedByCats > 0
and Trait ImpressedByCats < 2
Affects ImpressedByCats 1 Chance 100
Bookmarks