trigger · division_has_majority_template
Definition
- Supported scope:(none)
- Supported target:
none
Description
checks if division template has majority of subunit type.
division_has_majority_templatenonechecks if division template has majority of subunit type.
Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.
division_has_majority_template is commonly used to perform specialized checks on divisions with specific unit composition types. For example, in events or decisions, it can detect whether a division is primarily composed of armor or infantry units, allowing you to grant corresponding bonuses or trigger different narrative branches. In equipment/training mods, it is also frequently used to restrict certain special commands to only apply to divisions that are "primarily of a certain unit type."
# Example: Trigger an event check when a division is primarily composed of armor sub-units
division_has_majority_template = {
type = armor # Check if this division template has armor-type sub-units as the majority
}
Since the current whitelist contains no other effect or trigger commands within the same scope, no cross-reference entries can be listed. For combined usage, please use general condition blocks (such as limit) to compose at higher scope levels.
type field entry errors: The sub-unit type name must strictly match the actual key defined in /common/units/ (case-sensitive). Entering display names or localization text will cause the condition to never trigger, and the game typically will not provide an obvious error message.