Hands-On Usage
fighting_army_strength_ratio is commonly used in AI decisions or diplomatic events to assess the actual combat strength ratio between your forces and a target country, thereby determining whether to launch an attack, request a ceasefire, or trigger specific events. For example, in a "battle assessment" event, an offensive advantage option is triggered only when your fighting strength exceeds the enemy's by 1.5 times:
# Check for combat strength advantage in event option trigger
trigger = {
fighting_army_strength_ratio = {
tag = ENG
ratio > 1.5
}
}
Synergy
[enemies_strength_ratio](/wiki/trigger/enemies_strength_ratio): fighting_army_strength_ratio measures only actively engaged combat forces, while enemies_strength_ratio measures total enemy military strength. Using both together allows you to distinguish between "global disadvantage but local superiority" scenarios, enabling more precise AI judgments.
[has_defensive_war_with](/wiki/trigger/has_defensive_war_with): First confirm a defensive war status with the target country, then combine it with the strength ratio trigger to determine whether to transition from defense to offense—a more rigorous logical flow.
[any_enemy_country](/wiki/trigger/any_enemy_country): When iterating through enemy countries, pair this with the strength ratio trigger to identify opponents where you hold a clear advantage, making it easier for AI to concentrate attacks on weaker targets.
[create_wargoal](/wiki/effect/create_wargoal): Once the strength ratio condition is met, use this as an effect to generate war goals, completing the full logical loop of "strength leads to attack."
Common Pitfalls
- Confusion with total military strength: This trigger compares only the strength of actively engaged forces, not total national military capacity. If there is no actual combat between the two countries, the return value may not match expectations, and it cannot be used as a substitute for
alliance_strength_ratio for pure military comparisons.
- Using your own tag in the
tag field: Setting tag to your own country's scope results in a ratio that is always 1, causing the condition to always resolve to a fixed true or false value. Beginners should ensure the tag field points to the opposing country.