[BTS] Units or Buildings for Traits not Civs

Pir Lan Tota

Warlord
Joined
Jan 28, 2008
Messages
276
Location
Manchester
ok, quick question, is it possible to make buildings or units available for specific traits only, not to civs.

So its like a UU for trait, not civ.

I couldnt figure out if its possible, but you people are awesome, so I am sure you have the answer :)
 
I think you need to code something yourself. There is a "can't build unit" python callback you can use and you can mod the DLL to handle this. The latter is the most clean solution with proper pedia display, but it also requires you to figure out how to compile yourself.

I have worked on this for Medieval Conquest and now WTP, both being Colonization mods. However it's based on a solution you don't want to copy paste because it's an overhaul affecting a whole lot of stuff, not just which units you can build. In essence it's about letting xml files share code, instead of having code for civics, traits, civilizations, techs etc, they all draw from the same set of tags, meaning each one can do everything. Needless to say this is a major DLL change, but it sure grants xml freedom.
 
I know for a fact that Rise Of Mankind : A New Dawn 2 has civic and trait specific units. Check out their code but be prepared to merge it yourself unless you want to use their DLL as-is.
It's not AND2 with trait buildings but my modmod for Chronicles of Mankind (see my signature). I used code that was merged into AND2 from C2C. Actually it's a bit mule solution but works :)
But civic buildings/units are coded properly into AND2 and several other mods. I think there was a mod comp for it.

@Pir Lan Tota
I'm still looking for trait building ideas. Are you willing to tell us yours? :)
 
It's not AND2 with trait buildings but my modmod for Chronicles of Mankind (see my signature). I used code that was merged into AND2 from C2C. Actually it's a bit mule solution but works :)
But civic buildings/units are coded properly into AND2 and several other mods. I think there was a mod comp for it.

@Pir Lan Tota
I'm still looking for trait building ideas. Are you willing to tell us yours? :)

I was referring to the capabilities of the DLL. The feature may or may not be in use by the mod
 
Back
Top Bottom