;------------------------------------------
;default settings code
; Set x for forage. Set xest for estates
;------------------------------------------
; level 1 code: estates 2000
; level 2 code: : standard forage 200 per 1/4 army
;------------------------------------------
Trigger Xest_Factor1a_start
    WhenToTest CharacterTurnStart

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait xest < 1

    Affects xest  1  Chance  100
;------------------------------------------
Trigger Xest_Factor1b_start
    WhenToTest CharacterTurnStart

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait xest > 1

    Affects xestReset  1  Chance  100
;------------------------------------------
Trigger Xest_Factor1_becomes
    WhenToTest BecomesFactionLeader

    Condition Trait xest < 1

    Affects xest  1  Chance  100
;------------------------------------------
Trigger Xest_Factor1a
    WhenToTest CharacterTurnEnd

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait xest < 1

    Affects xest  1  Chance  100
;------------------------------------------
Trigger Xest_Factor1b
    WhenToTest CharacterTurnEnd

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait xest > 1

    Affects xestReset  1  Chance  100
;------------------------------------------
Trigger X_Factor2a_start
    WhenToTest CharacterTurnStart

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait x < 2

    Affects x  1  Chance  100
;------------------------------------------
Trigger X_Factor2b_start
    WhenToTest CharacterTurnStart

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait x < 2

    Affects x  1  Chance  100
;------------------------------------------
Trigger X_Factor2_becomes1
    WhenToTest BecomesFactionLeader

    Condition Trait x < 2

    Affects x  1  Chance  100
;------------------------------------------
Trigger X_Factor2_becomes2
    WhenToTest BecomesFactionLeader

    Condition Trait x < 2

    Affects x  1  Chance  100
;------------------------------------------
Trigger X_Factor2a
    WhenToTest CharacterTurnEnd

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait x < 2

    Affects x  1  Chance  100
;------------------------------------------
Trigger X_Factor2b
    WhenToTest CharacterTurnEnd

    Condition CharacterIsLocal
          and IsFactionLeader
          and Trait x < 2

    Affects x  1  Chance  100
;------------------------------------------