Question about Player Abilities

 

I have a question about the abilities found in CorePlayerAbilities.xml.

 

Some have a "Default Value", which I see can be changed in a faction file such as:

 

Code: xml
  1. <A_MaterialsYield>1.5</A_MaterialsYield>

 

I've also noticed that some abilities draw from CoreAbilities.xml and are placed in different tags without a value modifier.

 

Code: xml
  1. <SelAbilityBonusOption>MasterSmiths</SelAbilityBonusOption>

 

But what about the ones in CorePlayerAbilities.xml which, in the file, do not indicate a default value?  For example:

  • A_Farmer_Food
  • A_Research
  • A_FreePopulation

How are these added if you put them in a custom faction?  I noticed some seem to be binary (on/off) abilities.  Others seem to suggest that there is a value that can be edited, such as

  • A_Stationed_UnitStat_Essence

Basically I'm not entirely sure how to add the different types of abilities.. which ones can take a custom value (for boosting or nerfing the custom faction).  Any help would be very welcome. :)

2,551 views 2 replies
Reply #1 Top

If there is no defaultvalue, then the defaultvalue is 0. However, if there is a defaultvalue (not 0) then custom factions will record it in their raceconfig. This is a very stupid practice that they should never have implemented.

Reply #2 Top

Thanks.

 

There are number of them that are not used at all in any faction, so I can't look to reference.  You mention "if" they have a default value.  Is there any way to tell which ones do and which ones don't?  And some of them say they have a "bonus" but don't indicate how much.  

 

Maybe it'd have to trial and error to make chances and see what the impact is?