Just wondering if that Condition actually works properly.

Reason is that I put under every condition that can give the trait ContentGeneral and DiscontentGeneral the additional condition "and not IsFactionLeader" but the leaders in the campaign still seem to be getting those traits.

Similarly, in the BecomesFactionLeader trigger (Whentotest) having in the affects section the removal of the above traits does not actually seem to remove them from the character for some weird reason either.

Example code:

Code:
;------------------------------------------
Trigger factionleader
    WhenToTest BecomesFactionLeader


    Affects Factionleader  1  Chance  100 
    Affects Loyal  -6  Chance  100
    Affects ContentGeneral  -8  Chance  100
    Affects DiscontentGeneral  -8  Chance  100
    Affects Disloyal  -4  Chance  100

;------------------------------------------
Trigger loyalty_check8_extermination
    WhenToTest ExterminatePopulation

    Condition Attribute Chivalry >= 4
          and not IsFactionLeader

    Affects DiscontentGeneral  1  Chance  50 

;------------------------------------------
Trigger loyalty_check9
    WhenToTest BrotherAdopted

    Condition not IsFactionHeir
          and not IsFactionLeader

    Affects DiscontentGeneral  1  Chance  50
What I then did was:

Code:
;------------------------------------------
Trigger factionleader2
    WhenToTest CharacterTurnEnd

    Condition IsFactionLeader

    Affects Loyal  -6  Chance  100
    Affects ContentGeneral  -8  Chance  100
    Affects DiscontentGeneral  -8  Chance  100
    Affects Disloyal  -4  Chance  100

;------------------------------------------
What I found weird then was when I stationed my chivalrous leader in newly captured Dijon (when Metz was my capital) for a few turns doing nothing, he started getting the "feels unappreciated" trait description every turn. Looking at the triggers, there is nothing (besides excommunication) that would actually lead to him obtaining that trait....