Hello fellow modders!
I was attempting to create a new race ability called "insidious" that gives gradual bonuses to diplomacy and logistics as part of an evil diplomatic race that naturally evolves/learns over time. This would be similar to the "artifact" major event from GalCiv 2, and in fact I learned a couple things from https://forums.galciv3.com/467992/page/5/#3578740, namely that...
-There is no known "OnEachTurn" or similar trigger
-GalCiv 3 does have artifacts in it
The version of the ability I created is something like this
<RaceTrait>
<InternalName>InsidiousAbility</InternalName>
<DisplayName>InsidiousAbility_Name</DisplayName>
<DisplayNameShort>InsidiousAbility_ShortName</DisplayNameShort>
<Description>InsidiousAbility_Desc</Description>
<IsAbility>1</IsAbility>
<Triggers>
<OnEvent>OnStartTurn</OnEvent>
<CriteriaTurnNum>15</CriteriaTurnNum>
<Scope>Global</Scope>
<Target>
<TargetType>Faction</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<Modifier>
<EffectType>LogisticsCap</EffectType>
<Target>
<TargetType>Faction</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>1.0</Value>
</Modifier>
</Triggers>
<Triggers>
<OnEvent>OnStartTurn</OnEvent>
<CriteriaTurnNum>30</CriteriaTurnNum>
<Scope>Global</Scope>
<Target>
<TargetType>Faction</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<Modifier>
<EffectType>LogisticsCap</EffectType>
<Target>
<TargetType>Faction</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>1.0</Value>
</Modifier>
</Triggers>
<Triggers>
<OnEvent>OnStartTurn</OnEvent>
<CriteriaTurnNum>40</CriteriaTurnNum>
<Scope>Global</Scope>
<Target>
<TargetType>Faction</TargetType>
</Target>
<Lifetime>Instant</Lifetime>
<Modifier>
<EffectType>Diplomacy</EffectType>
<Target>
<TargetType>Faction</TargetType>
</Target>
<BonusType>Flat</BonusType>
<Value>0.5</Value>
</Modifier>
</Triggers>
</RaceTrait>
but with many more <Triggers> entries with delayed OnStartTurn events as a sort of workaround. This ability appears on the race editor screen next to all the others, but does not appear to work (as confirmed by my logistics not increasing).
Is there something wrong with having a large number of <Triggers> entries?
EDIT: I have discovered that the <Lifetime>Instant</Lifetime> entry is to blame here; apparently that should only be used for changing things like current population or wealth. Even so, an alternative is desirable.
Is there an OnEvent option for triggering every turn (preferable)?
Is there a way to assign an artifact to a player as part of an ability (even more preferable)?
Is there some list somewhere of all the OnEvent and Action options?