I'm trying to make a different 'factionleader' trait for each faction. Although it seems quite easy, I for some reason can't do that without getting a CTD when right-clicking on a faction character.
I tried with the Byzantine faction leader. Here's the trait, as in export_descr_character_traits :
Trait :
Code:
;------------------------------------------
Trait Byzantineleader
Characters family
Level Basileus
Description Basileus_desc
EffectsDescription Basileus_effects_desc
Threshold 1
Effect Influence 2
Effect Command 1
Effect PersonalSecurity 3
;------------------------------------------
Trigger :
Code:
;------------------------------------------
Trigger Byzantineleader
WhenToTest BecomesFactionLeader
Condition FactionType sassanids
Affects Byzantineleader 1 Chance 100
;------------------------------------------
I'm absolutely lost at what was going on. I just deleted all the vanilla traits, both in traits files and descr_strat. I copied the 'factionleader' traits and renamed everything 'Byzantineleader' or 'Basileus', created entries in VnV_enums and corresponding descriptions. I tried to delete or to change the 'Condition FactionType sassanids', but with no effect. The only thing that could cause the issues is that I deleted the anti-trait factionheir.
The trait is correctly validated by the traits and ancilliaries validator.
Bookmarks