How do you add traits to the sovereign creation screen?

By on May 12, 2012 9:03:29 PM from Elemental Forums Elemental Forums

jshores

Join Date 09/2009
+11

I've created the below code:

 

Code: xml
  1. <AbilityBonuses>
  2. <AbilityBonus>
  3. <AbilityBonusOption InternalName="Anarchist">
  4. <DisplayName>Anarchist</DisplayName>
  5. <Description>-30% to trade value.</Description>
  6. <Icon>AOW_Anarchist_Icon.png</Icon>
  7. <GameModifier>
  8. <ModType>Player</ModType>
  9. <Attribute>AbilityBonus</Attribute>
  10. <StrVal>A_Diplomacy</StrVal>
  11. <Value>-30</Value>
  12. </GameModifier>
  13. <Cost>-1</Cost>
  14. <HideWhenUpgraded>0</HideWhenUpgraded>
  15. <AIData AIPersonality="AI_General">
  16. <AIPriority>5</AIPriority>
  17. </AIData>
  18. </AbilityBonusOption>
  19. </AbilityBonus>
  20. </AbilityBonuses>

 

I can get it to appear in game if I manually add it to a sovereign. But I cannot figure out how to implement it in the sovereign creation screen. I expected to find an XML file somewhere that calls to the InternalName and puts it in the Weaknesses section, or some code somewhere in the CoreAbilities file that denotes that it should go into the weaknesses section.

Locked Post 3 Replies +1
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
May 13, 2012 2:24:07 AM from Elemental Forums Elemental Forums


Burp!, I would like to know so I can track this topic! Burp!

Reason for Karma (Optional)
Successfully updated karma reason!
May 13, 2012 3:28:19 AM from Elemental Forums Elemental Forums

You need to do two things (if your intent is to make a "profession")

1) The internal name of your AbilityBonus school has to match the already existing ones, otherwise they are not mutually exclusive

<AbilityBonus InternalName="Champion_History">

2) If you look at the AbilityBonus in CoreAbilities.xml they will have a special tag inside them. This denotes what type they are - unit design traits, traits for champion level-ups and so on. For a profession, the abilitybonus should have this

<AbilityBonusType>Champion_History</AbilityBonusType>

 

 


 

 

If you want to make a "talent" that you can select, you should make up your own internalname for the abilitybonus (otherwise they are mutually exclusive

<AbilityBonus InternalName="Mynewthinghere">

The corresponding type

<AbilityBonusType>Champion_Talent</AbilityBonusType>

 

 


 

 

If you want to make a champion weakness, they are also mutually exclusive so you need

<AbilityBonus InternalName="Champion_Weakness">

the type

<AbilityBonusType>Champion_Talent</AbilityBonusType>

and note that your <Cost> is negative instead of positive

 

Reason for Karma (Optional)
Successfully updated karma reason!
May 13, 2012 1:01:55 PM from Elemental Forums Elemental Forums

I was able to get it to work with your help. Thanks!

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #108432  walnut2   Server Load Time: 00:00:00.0000109   Page Render Time: