This is driving me nuts. I hope someone is willing to help. Making modifications for personal use and have been toying with the idea that certain families in-game get bonuses to their descendants when they come of age. What I can't get is why the game ctd's when triggering for factions that are not player controlled? Like my character gets the bonuses, no ctd's, but other factions crash??? Please help modders....
Here's the stuff you can stick at the bottom of the export_character_desc, no need to test my custom traits (it works), but the triggers for original eb2 traits keep failing.
;------------------------------------------------------------------------------------
Trigger MakedonianAntigonides_Dynast_CharacterComesOfAge
WhenToTest CharacterComesOfAge
Condition FactionType f_makedonia
and FatherTrait MakedonianAntigonides > 0
Affects LoyaltyLevel 2 Chance 50
Affects NaturalCharisma 1 Chance 50
Affects NaturalEnergy 1 Chance 50
Affects Temperament 1 Chance 50
Affects HaleAndHearty 2 Chance 25
;------------------------------------------------------------------------------------
Trigger Arsacid_Dynast_ComesOfAge
WhenToTest CharacterComesOfAge
Condition FactionType f_parthia
and FatherTrait ParthiaArshaki > 2
Affects Brave 4 Chance 50
Affects NaturalIntelligence 1 Chance 100
Affects NaturalCharisma 2 Chance 100
Affects NaturalEnergy 2 Chance 50
Affects Fertility 4 Chance 50
;------------------------------------------------------------------------------------
Trigger Mauryan_Dynast_ComesOfAge
WhenToTest CharacterComesOfAge
Condition FactionType f_gandhara
and FatherTrait GandharaMagadha > 0
Affects Determined 1 Chance 50
Affects NaturalIntelligence 2 Chance 50
Affects NaturalCharisma 2 Chance 100
Affects NaturalEnergy 1 Chance 100
Affects Fertility 4 Chance 50
;------------------------------------------------------------------------------------
Trigger Gens_Cornelia_ComesOfAge
WhenToTest CharacterComesOfAge
Condition FactionType f_rome
and FatherTrait GensCornelia > 1
Affects Determined 3 Chance 50
Affects NaturalIntelligence 2 Chance 50
Affects NaturalCharisma 1 Chance 100
Affects LoyaltyLevel 2 Chance 50
Affects HaleAndHearty 2 Chance 100
;------------------------------------------------------------------------------------
Trigger Gens_Ivlia_ComesOfAge
WhenToTest CharacterComesOfAge
Condition FactionType f_rome
and FatherTrait GensIvlia > 1
Affects GoodLeader 5 Chance 25
Affects NaturalEnergy 1 Chance 50
Affects NaturalCharisma 2 Chance 50
Affects Temperament 1 Chance 50
Affects Fertile 8 Chance 50
;------------------------------------------------------------------------------------
I've tearing my hair out trying to figure what went wrong. The spacing? The trigger names are all unique. I always play as Macedonia, and when there was only one set of custom triggers for my personal faction it went off, no problems. The log always shows this (I modified descr strat so that Yavanaraja is 15, just 4 turns till testing):
18:09:31.732 [game.script.trigger] [trace] Trigger <Mauryan_Dynast_ComesOfAge> fired
18:09:31.732 [system.rpt] [error] Unspecified error. Please compress your error log in a zip format and upload it on the EBII technical help forum.