Skip to main content
This guide covers how to create modifiers and effects using the Civilization VII TypeScript Modding Tools.

Understanding Modifiers and Effects

Modifiers are at the heart of gameplay effects in Civilization VII. They define how game elements interact with each other and enable you to create unique gameplay mechanics for your mod. A modifier consists of several key components:
  1. Collection: What entities the modifier affects (units, cities, players, etc.)
  2. Effect: What the modifier actually does (adjust combat strength, change yields, etc.)
  3. Requirements: Optional conditions that must be met for the modifier to apply
  4. Arguments: Values that configure how the effect works
  5. Localization: Text descriptions that explain the modifier to players

Basic Modifier Creation

Here’s how to create a simple modifier that provides a flat bonus:

Creating Complex Modifiers with Requirements

For more targeted effects, you can add requirements to your modifiers:

Common Collections

Collections define what game entities are affected by a modifier. Here are some commonly used collections:

Common Effects

Effects define what the modifier actually does. Here are some commonly used effects:

Common Requirements

Requirements define conditions that must be met for the modifier to apply:

Creating Modifiers for Different Game Elements

Unit Modifiers

City Modifiers

Civilization Modifiers

Binding Modifiers to Game Elements

Modifiers generally need to be bound to game elements to take effect:

Temporary vs. Permanent Modifiers

You can create temporary or permanent modifiers:

Conditional Modifiers with Multiple Requirements

Create complex conditional logic using multiple requirements:

Best Practices

When creating modifiers and effects, follow these best practices:
  1. Clear Descriptions: Write clear descriptions for your modifiers so players understand what they do
  2. Balanced Effects: Keep effects balanced to avoid overpowered gameplay
  3. Meaningful Requirements: Use requirements that make sense thematically
  4. Test Combinations: Test how modifiers interact with each other
  5. Consider Performance: Complex modifiers with many requirements may impact performance
  6. Organize by Theme: Group related modifiers together for easier maintenance

Debugging Modifiers

When debugging modifiers, keep these tips in mind:
  1. Check that the collection targets the correct entities
  2. Verify that requirements are not too restrictive
  3. Ensure that argument names and values are correct
  4. Test with different combinations of game conditions
  5. Use clear localization to help track which modifiers are active

Conclusion

Modifiers and effects are powerful tools for creating unique gameplay mechanics in your Civilization VII mods. By combining different collections, effects, requirements, and arguments, you can create a wide variety of gameplay alterations that make your mod stand out.