Here is a simple example of adding a Trait. (I am not clear on the Creative Trait)
New Trait 'Genius' involves editing 2 files plus the language files.
In Data/Traits folder copy & paste the 'Trait_Smart.lua' file & rename to 'Trait_Genius.lua.'
Edit the new Genius Trait as follows:
Trait{
-- Base data
ID = "Trait_Genius",
Name = "Trait_Genius_Name",
Description = "Trait_Genius_Description",
Stats = "Trait_Genius_Stats",
IconPath = "Graphics/Traits/Trait_Smart_Icon",
-- Stats
PickPoints = 6,
IsPositive = true,
ExcludedTraitID = "Trait_Dumb", (Note: only 1 Excluded Trait appears to be allowed)
-- Reference
ModifierID = "Modifier_Trait_Genius",
}
NEXT:
Repeat this format in the Data/Modifiers folder, copy & paste 'Modifier_Trait_Smart.lua' & rename to'Modifier_Trait_Genius.lua'
Edit new new Genius Modifier as follows:
Modifier{
ID = "Modifier_Trait_Genius",
ResearchPercentage = 50, (Note: Smart Trait is 25)
}
Now for the hard part
In Data/Localization folder are the 'Language' files.
Per English I edit both of them.
Open one (Notepad ++ is great for this) & find the 'Smart Trait' Description near the very bottom.
<data name="Trait_Smart_Description" xml:space="preserve">
<value>While others would grow in strength or agility, our ancestors grew in cunning and planning, to not only survive but prosper in our homeworld. This is probably why now in the galactic age, we find ourselves contemplating ideas, which others consider complex in nature; but seem relative simple to us. In the struggle for the stars, this is obviously a great advantage to have and we will certainly make good use of it.</value>
</data>
<data name="Trait_Smart_Name" xml:space="preserve">
<value>Smart</value>
</data>
Copy & Paste this directly under this description So that it will look like this:
<data name="Trait_Genius_Description" xml:space="preserve">
<value>While others would grow in strength or agility, our ancestors grew in brilliance, cunning and planning, to not only survive but prosper in our homeworld. This is probably why now in the galactic age, we find ourselves contemplating ideas, which others consider complex in nature; but seem relative simple to us. In the struggle for the stars, this is obviously a great advantage to have and we will certainly make good use of it.</value>
</data>
<data name="Trait_Genius_Name" xml:space="preserve">
<value>Genius</value>
</data>
Note: I added the 'brilliance' word for flavor
Load the game & you will have a new Trait called Genius & will cost you 6 points.
Due to the fact (?) that only 1 Excluded Trait can be applied, I am not sure if the
Smart & Genius Traits would stack to 75%.



