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:- Collection: What entities the modifier affects (units, cities, players, etc.)
- Effect: What the modifier actually does (adjust combat strength, change yields, etc.)
- Requirements: Optional conditions that must be met for the modifier to apply
- Arguments: Values that configure how the effect works
- 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:- Clear Descriptions: Write clear descriptions for your modifiers so players understand what they do
- Balanced Effects: Keep effects balanced to avoid overpowered gameplay
- Meaningful Requirements: Use requirements that make sense thematically
- Test Combinations: Test how modifiers interact with each other
- Consider Performance: Complex modifiers with many requirements may impact performance
- Organize by Theme: Group related modifiers together for easier maintenance
Debugging Modifiers
When debugging modifiers, keep these tips in mind:- Check that the collection targets the correct entities
- Verify that requirements are not too restrictive
- Ensure that argument names and values are correct
- Test with different combinations of game conditions
- Use clear localization to help track which modifiers are active