Well, I found the issue. Apparently, I had to give it an 'antitrait heir'. If I delete it, it CTD's, but it work fine with the antitrait (even if there's no trigger to activate it).
Now, I'm facing another problem. I've spent 1 hour wondering why this trait wouldn't work.
Trait :
Code:
;------------------------------------------
Trait Jorsalfar
Characters family
Level Jorsalfar
Description Jorsalfar_desc
EffectsDescription Jorsalfar_effects_desc
Epithet Jorsalfar_epithet_desc
Threshold 1
Effect Influence 2
Effect Management 2
;------------------------------------------
Trigger :
Code:
;------------------------------------------
Trigger Jerusalem_Captured_Viking
WhenToTest CharacterTurnEnd
Condition EndedInSettlement
and RemainingMPPercentage = 100
and SettlementName Jerusalem
and CultureType hun
Affects Jorsalfar 1 Chance 100
;------------------------------------------
It has the good entries in export_VnVs (including the epithet one). Basically, the character should get this train when he ends his turn in Jerusalem, with his full MP. But, whatever the hell I do, the trait just *won't* work when there's a condition 'and SettlementName Jerusalem'. I tried to make a WhenToTest GeneralCaptureSettlement - Condition SettlementName Jerusalem' trigger, it didn't work either.
Now, I'm not totally stupid, and I double, and even triple checked the settlement's name. I even tried with the settlement in game name ('al-Quds aš-Šarīf'. It caused a fatal error because of unrecognized letters), with the province tag (Judea), and with the province in game name (also Judea).
I know the settlementname condition works with the anciliaries in BI/RTW, but does it work aswell with traits ?
For now, I'll leave it like that, as I don't want to spend a whole day finding the issue, but I just see no reason this trait wouldn't work.
Bookmarks