Skip to main content
This guide covers how to create leader-civilization associations and work with age-specific content using the Civilization VII TypeScript Modding Tools.

Creating Leader-Civilization Associations

In Civilization VII, the TypeScript Modding Tools primarily support associating existing game leaders with civilizations rather than creating entirely new leaders. The toolkit provides the LeaderUnlockBuilder class for this purpose.
You can also define civilization transitions between Ages:

Creating Entirely New Leaders

To create entirely new leaders (rather than just associating existing ones), you’ll need to use direct XML manipulation, as the toolkit doesn’t provide a dedicated LeaderBuilder class. Here’s how to approach this:
  1. Create XML Files Directly: Define leaders using the database schema structure
  2. Import XML Files: Use ImportFileBuilder to include your custom XML files
For example:

Working with Age-Specific Content

Civilization VII’s Age system affects how leaders and civilizations evolve throughout the game. Here’s how to work with age-specific content:

Age-Specific Leader Abilities

You can create leader abilities that only apply in specific Ages:

Leader Transitions Between Ages

Similar to civilizations, you can define how leaders transition between Ages:

Best Practices for Age and Leader Content

When working with leaders across multiple Ages, keep these points in mind:
  1. Historical Accuracy: Leaders should generally transition in ways that make historical sense
  2. Gameplay Balance: Consider how a leader’s abilities interact across different Ages
  3. Civilization Synergy: Ensure leader abilities complement their civilization’s strengths
  4. XML Documentation: Thoroughly document any direct XML leader definitions
  5. Leader Traits: Use appropriate traits to guide AI behavior in different Ages

Multiple Leaders for the Same Civilization

You can define multiple leaders for the same civilization:
This approach gives players more choices when selecting a leader-civilization combination.