This is something different.
Im now trying to create a TRAIT.
Here's what I have:
The Trait in export_descr_character_traits.txt
Code:
Trait Blessed_in_men_temple
Characters family
ExcludeCultures greek, southern_european, eastern_european, middle_eastern
Hidden
AntiTraits Drink, Arse, BadDisciplinarian, Coward, Slothful, Xenophilia, PublicAtheism, Aesthetic, Ignorance, Gambling, Liar, Embezzler, Corrupt, Disloyal, Unjust, Perverted, Talkative, Superstitious, ExpensiveTastes, Insane, Lewd, ExoticTastes, Corrupted, WaveringFaith, Doomsayer, WaningConviction, Cursed, ReligiousInactivity
Level Blessed_in_men
Description Blessed_in_men_desc
EffectsDescription Blessed_in_men_effects_desc
GainMessage Blessed_in_men_gain_desc
Threshold 1
The Trigger in export_descr_character_traits.txt
Code:
Trigger Blessed_in_men_temple
WhenToTest CharacterTurnEnd
Condition IsGeneral
and EndedInSettlement
and SettlementName Ithilien_Temple
and CharacterIsLocal
Affects Blessed_in_men_temple 1 Chance 100
Code:
The entry in export_VnVs.txt
{Blessed_in_men} Blessed
{Blessed_in_men_desc}
This general was blessed in a temple of his ancestors and got rid of vices
{Blessed_in_men_gain_desc}
This general was blessed in a temple of his ancestors and got rid of vices
{Blessed_in_men_effects_desc}
Clean of vices
To test, I conquer the settlement with a general but when I press the end turn button the game crashes.