Wiki

trigger · has_manpower_to_become_leader

Definition

  • Supported scope:COUNTRY
  • Supported target:any

Description

Checks if the current country exceeds the current faction leader and its subjects in deployed manpower

### Examples

TAG = { has_manpower_to_become_leader = yes }

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

该 trigger 常用于"夺取派系领导权"相关的 focus 或 decision 的 available 条件中,确保玩家或 AI 国家在兵力上已经足以挑战并取代当前派系领袖。例如在自定义派系争霸 mod 里,可以用它来限制某个挑战派系领导权的决议只有在实际军事实力碾压领袖时才能触发:

# 争夺派系领导权的 decision available 条件示例
available = {
    is_in_faction = yes
    is_faction_leader = no
    has_war = no
    has_manpower_to_become_leader = yes
    has_stability > 0.5
}

配合关系

  • is_in_faction:先确认该国已身处某一派系,再判断是否有足够兵力挑战领袖,两者缺一不可。
  • is_faction_leader:通常与 is_faction_leader = no 联用,排除本身已是领袖的情况,使该 trigger 只对非领袖成员生效。
  • has_war:常搭配 has_war = no 使用,避免在交战状态下触发领导权更迭逻辑,防止出现不合理的派系内部夺权。
  • create_faction:在满足条件后若决定另起炉灶,可在 effect 块中配合使用,先离开旧派系再建立新派系。

常见坑

  1. 误以为该 trigger 比较的是总人力储备:它比较的是已部署(deployed)的兵力,而非人力资源池中的储备数值。因此即使一个国家拥有大量人力库存,但实际下场的师团数量不足,该 trigger 仍会返回假。
  2. 在非派系成员国上使用:该 trigger 的比较对象是"当前派系领袖及其附庸",若使用国本身不在任何派系中,逻辑参照对象不存在,结果可能不符合预期,建议始终搭配 is_in_faction = yes 作前置条件。

Hands-On Notes

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.

Hands-On Usage

This trigger is commonly used in the available condition of focuses or decisions related to "seizing faction leadership," ensuring that the player's or AI's country has sufficient military strength to challenge and replace the current faction leader. For example, in a custom faction-rivalry mod, it can be used to restrict a "challenge for faction leadership" decision so that it only fires when the contender's actual military strength decisively outclasses the leader's:

# Example available condition for a decision to contest faction leadership
available = {
    is_in_faction = yes
    is_faction_leader = no
    has_war = no
    has_manpower_to_become_leader = yes
    has_stability > 0.5
}

Synergy

  • is_in_faction: First confirms that the country is already part of a faction, then checks whether it has enough manpower to challenge the leader — both conditions are indispensable.
  • is_faction_leader: Typically paired with is_faction_leader = no to exclude countries that are already the faction leader, so this trigger only applies to non-leader members.
  • has_war: Commonly used alongside has_war = no to prevent leadership-transfer logic from firing while the country is at war, avoiding unreasonable mid-war power grabs within a faction.
  • create_faction: If the conditions are met and the decision is made to strike out independently, this effect can be used in the effect block — leaving the old faction first and then founding a new one.

Common Pitfalls

  1. Assuming this trigger compares total manpower reserves: It actually compares deployed manpower, not the stockpile sitting in the manpower pool. This means that even if a country has a large manpower reserve, the trigger will still return false if the number of divisions actually fielded is insufficient.
  2. Using it on a country that is not a faction member: The trigger's comparison target is "the current faction leader and its subjects." If the country in question does not belong to any faction, the reference point for the comparison does not exist and the result may be unexpected. It is strongly recommended to always pair this trigger with is_in_faction = yes as a prerequisite.