Adding Ability/Trait to Custom Civ

Bonyduck Campersang

Odd looking duck
Joined
Dec 11, 2022
Messages
4,157
For my custom civ I'm trying to model its ability on partly on Assyria's. Assyria's trait in the XML files says:

XML:
<Row>
  <Traits>
            <Type>TRAIT_SLAYER_OF_TIAMAT</Type>
            <Description>TXT_KEY_TRAIT_SLAYER_OF_TIAMAT</Description>
            <ShortDescription>TXT_KEY_TRAIT_SLAYER_OF_TIAMAT_SHORT</ShortDescription>
            <TechFromCityConquer>true</TechFromCityConquer>
  </Traits>
</Row>

Which is odd, because the free tech from conquering a city has 2 conditions: 1) civ must be more technologically advanced 2) can only happen once per civ. Evidently TechFromCityConquer is a misleading nomer. Now what I want to do is make it so that my civ gets a free social policy from conquering a city, without any of those conditions (for now). Himbal's trait tutorial in the Tutorials and References thread has a custom ability made through LUA, and every mod I've downloaded also has the civ ability in LUA. Presumably vanilla Civ5 does the same. Yet the only LUA files I find seem to only be for the game UI; where do I look for the civ abilities?
 
Presumably vanilla Civ5 does the same.
No, it doesn't. The effects of these database columns are implemented directly in the C++ game core/DLL, which you're not going to be able to fiddle with without doing an overwrite of the DLL.
 
Top Bottom