Faction Ability Mod..

Ok, basically all I want to do is give the Naturalist ability to a faction. As it is right now, it's a Champion/Sovereign ability. So, I would figure this would be the code to get it to link to factions based off the AbilityBonuses.xml. So, I added the line into my faction's <SelAbilityBonusOption> pointing to the ability. Below is what I put in to define the ability.

 

<AbilityBonus InternalName="Iron_Master">

  <AbilityBonusType>Player</AbilityBonusType>

  <AbilityBonusOption InternalName = "Iron_Master1">

  <DisplayName>Iron Master</DisplayName>

  <Description>A mine is near sovereign's starting position.</Description>

 <Icon>Talent_Naturalist.png</Icon>

  <GameModifier>

    <ModType>Player</ModType>

    <Attribute>StartPositionHasResource</Attribute>

    <StrVal>IronOreType01</StrVal>

    <Radius>2.0</Radius>

  </GameModifier>

 </AbilityBonusOption>

</AbilityBonusType>

I tried this to no avail. Am I missing something? I'm assuming it can be done, as the ability already exists, just need to direct it to a faction rather than a campion/sov. Any ideas?

 

4,190 views 7 replies
Reply #1 Top

At the end </AbilityBonusType> should be </AbilityBonus> as <...Type >has already been closed. Try that and see if it works.

Reply #2 Top

I thought it was in there, but it wasn't. After adding it, it still doesn't work though.

 

 

Reply #3 Top

still trying to get it to work! ugh

Reply #4 Top

Still doesn't work. I guess you can't change this for now.

Reply #5 Top

Did you have any luck with this?  I've been trying to do something similar today (horses) but with no luck. 

Reply #6 Top

No, I just gave up honestly. It works if you link it to a Sovereign, but not a faction. Not that I can figure out anyways.

Reply #7 Top

Yes that was going to be my back up plan but a little less tidy.  Maybe one of the devs can chip in if this is possible or not.