Okay, thanks for all the help the other day with buildings and ancillaries. Everything worked perfectly. But then I got the crazy idea that my ancillaries weren’t really of sufficient importance to take up one of the eight ancillary slots, so I decided to transfer the whole concept to the EDCT. Unfortunately, that caused all sorts of lovely problems. The entire series of traits fires in rapid succession, regardless of conditions and prerequisites.
Here’s the first trigger, which works perfectly. I have my logging set up to trace and this one is not only firing, but firing on schedule.
The second trigger fires erratically and often not at all, but the character receives the second level of trait regardless. Typically the character receives this trait the following turn after Regidor, when it should arrive four turns later.Code:;------------------------------------------ Trigger spanish_government_regidor WhenToTest CharacterTurnEnd Condition IsGeneral and EndedInSettlement and CharacterNumTurnsIdle >= 2 and not Trait Negro >= 1 and not Trait Mestizo >= 1 and SettlementBuildingExists = cabildo Affects Spanish_Government 1 Chance 100
And finally the third level, which is supposed to be dependent upon the next level of government building, but fires within two or three turns without the second level of building being constructed.Code:;------------------------------------------ Trigger spanish_government_alcalde WhenToTest CharacterTurnEnd Condition IsGeneral and EndedInSettlement and CharacterNumTurnsIdle >= 6 and not Trait Negro >= 1 and not Trait Mestizo >= 1 and SettlementBuildingExists = cabildo Affects Spanish_Government 2 Chance 100
And finally the trait itself so you can see how I set up the levels.Code:;------------------------------------------- Trigger spanish_government_corregidore WhenToTest CharacterTurnEnd Condition IsGeneral and EndedInSettlement and CharacterNumTurnsIdle >= 8 and not Trait Negro >= 1 and not Trait Mestizo >= 1 and SettlementBuildingExists = residence_corregidore Affects Spanish_Government 4 Chance 100
Code:;---------------------------------------------- Trait Spanish_Government Characters family Level Regidor Description Regidor_desc EffectsDescription Regidor_effects_desc Threshold 1 Level Alcalde Description Alcalde_desc EffectsDescription Alcalde_effects_desc Threshold 2 Level Corregidore Description Corregidore_desc EffectsDescription Corregidore_effects_desc Threshold 4
EDIT: I just found out that since the trait advances one level each EndTurn, that explains my problem. However, I can’t figure out how to rework this so it will work. I tried scripting is as AntiTraits, but that doesn’t work any better. Any ideas?





Reply With Quote









































