How to give sov an ability trait depending on faction trait?

Hi all,

Just wondering if anyone has any bright ideas on how I could automatically give the Sov an ability if their faction has a particular faction trait?

For example... maybe the faction trait "Cult of a Hundred Eyes" would automatically give the Sov an ability called "Spider Lord".  Another possibility would be pre-selecting a path.  So maybe the "Enchanters" faction trait would automatically give the Sov the Path of the Mage ability.

I know this GameModifier will give a unit an ability if used in a SpellDef....

<GameModifier>
   <ModType>Unit</ModType>
   <Attribute>UnlockUnitAbility</Attribute>
   <StrVal>SpiderLord</StrVal>
   <Provides>Target becomes the Spider Lord.</Provides>
</GameModifier>

But I can't think how to automatically trigger this on game start?  Any other ideas on how to make it happen?

Thanks.

 

 

3,162 views 2 replies
Reply #1 Top

If you aren't hellbent on making it automatic, you could just have the player cast a spell on the first turn of the game.

Reply #2 Top

Yeah that's what i'm doing at the moment as my work around, not ideal but gets the job done.  Was wondering if i'd overlooked something obvious in terms of getting it to happen automagically.

Thanks for the response.