Divine Yuri
Never Closes Chrome

Download
(WIP) Number of Traits to go : 42
Direct Download |Steamworkshop(when out of WIP)
Note that while this is WIP not all Civilizations have a Secondary Trait.
So in my works of breaking pre-assumptions about what can't be done. I've decided to make a mod that is about adding a Secondary Trait in Civilization 5. Now as I'm not the person to ask if you needed 43 Unique Traits this is being released right now as a work in progress so I can possibly get some help with filling these in. Mostly I've done exactly 2 (at time of Post) Traits which one isn't even a Unique. So right now 42 Unique Secondary Traits are set to my "Generic" Trait, "Tax Nationalization". Which is just a increase of +10%

What I need help with :
(This is the reason it's being released as a WIP)
Ideas for Secondary Traits. I know about some Posts that discuss this, but don't think taking any ideas from that is great. I'm just looking for something simple. To help just give me a name, and ability. Don't be shy on the work required for it. I'm not looking to make these Secondary Uniques boring. I'm willing to put in the lua required for an idea that I find interesting. Also if you can think of something better for a civilization feel free to contribute. Definitely if credit is only to me.
How it's done :
I fix the problems that use to occur in a custom DLL. Also a custom UI is included in the mod that will display all Traits up to four (This doesn't matter with this mod at this time, but if I expand it the same UI will work.).
Problems :
The problems that use to be displayed here have been addressed, and fixed. I'll remove this if non popup before the Common release schedule. Where the technical part of the mod is done, and all that needs to be added are the traits.
For Modders :
Spoiler :
Name : (2nd Trait) Secondary Unique Trait
ID : 211d1d49-02bb-477b-b969-103f24dd9146
You can have any # of extra traits. The base civilizations will only have 2 with the release of this, but a additional one can always be added.
Code:
INSERT INTO Leader_Traits
(LeaderType, TraitType)
SELECT LeaderType, ('TRAIT_YOUR_TRAIT')
FROM Leader_Traits WHERE LeaderType = 'LEADER_YOUR_LEADER'
AND EXISTS ( SELECT Type FROM Traits WHERE Type = 'TRAIT_DY_AMERICAN_SECOND' );
I'll be including the "RandomUtils.lua"(probably going to just be the name of my utils for now on.) in the mod. In it I have a function that is an easy replace for CivID. Mostly just need to change your CivID to something like this:
Code:
include("RandomUtils");
local CivID = GameInfoTypes.CIVILIZATION_YOUR_CIVILIZATION;
if ( GetCivilizationByTrait ~= nil ) then
CivID = GetCivilizationByTrait( "TRAIT_YOUR_TRAIT" ) end
--Just a note: GetCivilizationByUnique is the actual name of the function, and Trait is just a reference to that. So it includes any unique not just traits.
Which if CivID's initial value is set to nil can be used for any extra traits for an easy "Is this mod active" as nil is counted as false when referenced as a boolean, and while it's included in the randomizer it'll still come out as nil if no civilization has it. So the extra Trait above can be counted this way.
The only problem is CombatBonusImprovement. This is the only column with a problem that cannot be fixed. If you use this it'll just be the last non-zero value. So it's highly un-recommended for this.
[/CODE]
Mod Support :
Civilization Trait Merge List :
Ab idea for better compatibility for Modded civs is to make the mod combine two Traits of similar Civilizations by the same Modder. I first need permission from the modder, and a change of their CivilizationID. I have a explanation of RandomUtils in the for Modders section which will allow a easier transition to Trait based CivilizationID.
Spoiler :
Democrat America (Author : Divine Yuri):
- Bernie Sander's America (Unreleased, should be the day before Iowa)
- Hillary Clinton's America (Unreleased, should be the day before Iowa)
- Ted Cruz's America (Unreleased, should be the day before South Carolina/Nevada)
- Trump's America (Unreleased, should be the day before South Carolina/Nevada)