trigger · has_army_size
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
checks for amount of divisions, additionally of a specified type
has_army_sizeCOUNTRYnonechecks for amount of divisions, additionally of a specified type
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
has_army_size 常用于判断某国是否已积累足够的师团数量,从而解锁特定决策、触发事件或推进国策分支。例如在军事扩张类 mod 中,可以要求玩家必须完成一定规模的陆军建设后才能宣战或获得奖励。
# 国策 available 条件:至少拥有 24 个师才能激活"大陆攻势"
available = {
has_army_size = {
size > 24
}
}
# 仅检查特定类型的师团(如装甲师)
available = {
has_army_size = {
size > 6
type = armor
}
}
[has_army_manpower](/wiki/trigger/has_army_manpower):常与 has_army_size 同时使用,前者检验总兵力人数,后者检验师团数量,两者结合可更全面地评估一国陆军规模是否达标。[divisions_in_state](/wiki/trigger/divisions_in_state):用于进一步限定特定省份或地区内的师团数量,与 has_army_size 形成"全局数量 + 局部部署"的双重校验逻辑。[add_manpower](/wiki/effect/add_manpower):在通过 has_army_size 判断后常作为奖励效果触发,补充兵员以支撑后续扩军。[add_ideas](/wiki/effect/add_ideas):当 has_army_size 满足阈值时,为国家添加代表军事成就的国家精神,适合用在里程碑式的军队建设奖励中。type 字段的精确拼写:type 的值必须与游戏内师团模板的实际子类型 token 完全一致(如 armor、infantry),若拼写错误或使用模板名称而非类型 token,条件将永远无法命中,且游戏不会报错,极难排查。size 理解为兵员数而非师团数:has_army_size 统计的是师团个数,而非士兵总人数;想检查总兵力请改用 [has_army_manpower](/wiki/trigger/has_army_manpower),两者混用会导致逻辑完全错误。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.
has_army_size is commonly used to check whether a nation has accumulated enough divisions, unlocking specific decisions, triggering events, or advancing national focus branches. For example, in military expansion mods, you can require players to complete a certain scale of army development before they can declare war or receive rewards.
# National Focus available condition: requires at least 24 divisions to activate "Continental Offensive"
available = {
has_army_size = {
size > 24
}
}
# Check only specific division types (e.g., armor divisions)
available = {
has_army_size = {
size > 6
type = armor
}
}
[has_army_manpower](/wiki/trigger/has_army_manpower): Frequently used together with has_army_size; the former checks total manpower count while the latter checks division count. Combined, they provide comprehensive evaluation of whether a nation's army scale meets requirements.[divisions_in_state](/wiki/trigger/divisions_in_state): Further restricts division count within specific states or regions, forming a "global count + local deployment" dual-verification logic with has_army_size.[add_manpower](/wiki/effect/add_manpower): Often triggered as a reward effect after has_army_size conditions are met, replenishing manpower to support subsequent army expansion.[add_ideas](/wiki/effect/add_ideas): When has_army_size meets thresholds, adds national spirits to the country representing military achievements, ideal for milestone-style army development rewards.type field: The type value must exactly match the actual division template subtype token in the game (e.g., armor, infantry). Misspellings or using template names instead of type tokens will cause the condition to never trigger, and the game won't report an error, making it extremely difficult to debug.size as manpower count instead of division count: has_army_size counts the number of divisions, not total soldier count. To check total manpower, use [has_army_manpower](/wiki/trigger/has_army_manpower) instead. Mixing the two will result in completely wrong logic.