[eInfo] Number of Traits of Designed Units

I just happen to stumble upon this, after i had already given up searching for it.

Inside the the xml for costum factions i found a line

<A_Traits>4.0000</A_Traits>

This is the number of Trais this Race has to design its units i can be added to the standart races in the CoreRaceConfigs.xml to change those as well

the standart is 4 ( 1 Blood 3 Free)

 

Just in case anyone wants to have more possible traits in their mods.

10,371 views 5 replies
Reply #1 Top

The number 4 comes from this bit in CorePlayerAbilities.xml:

  <PlayerAbilityType InternalName="A_Traits">
    <DisplayName>Traits</DisplayName>
    <Description>The amount of traits this faction can support.</Description>
    <Icon>FactionAbility_Traits.png</Icon>
    <UsedAsMultiplier>0</UsedAsMultiplier>
    <DefaultValue>4</DefaultValue>
  </PlayerAbilityType>

It doesn't need to be in a raceconfig if the number is the same as the defaultvalue, if the tag isn't there it will go to the default value (this apples to all PlayerAbilityType and all UnitStatType as well).

 

Added thread to https://forums.elementalgame.com/436142  

 

Edit: One more piece of information. If the A_Traits for a faction is lower than the amount of traits for a unit design, the unit design will not show up in the training window. Be very careful about lowering the amount of traits, and the impact this can have on the AI being able to build units.

Reply #2 Top

Interesting i will have a look at this thread thank you. Can we get the main thread on the topic stickied please?

Reply #3 Top

If you mean the link I posted it is already stickied.

Reply #4 Top


Can this be adjusted for individual default factions (i.e. Tarth, Quendar, etc) or do they all simply source the default value and that's it?

Reply #5 Top

All those values can be adjusted for individual factions. For example the Greenskin in Stormworld have 3 traits instead of 4.