Wiki

trigger · has_enough_influence_for_leadership

Definition

  • Supported scope:COUNTRY
  • Supported target:any

Description

Checks if the current country has enough political influence to become faction leader

### Examples

TAG = { has_enough_influence_for_leadership = yes }

实战 · 配合 · 坑

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

实战用法

常用于派系相关的 focus 或 decision 中,限制只有积累了足够政治影响力的国家才能触发"夺取派系领导权"的选项,避免实力弱小的国家意外成为领袖。例如在某个争夺亚洲霸权的 mod 里,可以用它保护领导权争夺逻辑的合理性:

available = {
    has_enough_influence_for_leadership = yes
    faction_influence_rank = { rank < 2 }
}

配合关系

  • [faction_influence_rank](/wiki/trigger/faction_influence_rank):常一起使用,前者判断是否达到"够格"的绝对门槛,后者进一步限制国家在派系内的相对排名,两者联用可精确控制领导权争夺条件。
  • [faction_influence_ratio](/wiki/trigger/faction_influence_ratio):用于检查影响力占比,与本 trigger 搭配可同时覆盖"达到阈值"和"比例领先"两个维度的判断。
  • [add_faction_influence_score](/wiki/effect/add_faction_influence_score):当条件未满足时,可在 effect 块中用它补充影响力分数,引导 AI 或玩家先积累影响力再争夺领导权。
  • [create_faction](/wiki/effect/create_faction):创建新派系前通常需要确认本国已有足够影响力,与本 trigger 搭配可作为创建派系的前置门槛。

常见坑

  1. scope 写错:本 trigger 只在 COUNTRY scope 下有效,若放在 STATECHARACTER scope 中使用将静默失败或报错,务必确认外层块的 scope 是国家。
  2. 误以为可以传参:新手有时尝试写成 has_enough_influence_for_leadership = { value = X } 来自定义门槛,但该 trigger 只接受 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

Commonly used in faction-related focuses or decisions to restrict only countries that have accumulated sufficient political influence from triggering the "seize faction leadership" option, preventing weaker nations from unexpectedly becoming leaders. For example, in a mod competing for Asian hegemony, you can use it to preserve the logic of leadership competition:

available = {
    has_enough_influence_for_leadership = yes
    faction_influence_rank = { rank < 2 }
}

Synergy

  • [faction_influence_rank](/wiki/trigger/faction_influence_rank): Often used together; the former checks whether an absolute threshold of "qualification" is met, while the latter further restricts the country's relative ranking within the faction. Using both in combination allows precise control over leadership competition conditions.
  • [faction_influence_ratio](/wiki/trigger/faction_influence_ratio): Used to check influence percentage. Pairing with this trigger covers both "reaching threshold" and "leading in ratio" dimensions of judgment simultaneously.
  • [add_faction_influence_score](/wiki/effect/add_faction_influence_score): When conditions are not met, you can use this in the effect block to supplement influence score, guiding AI or players to accumulate influence before competing for leadership.
  • [create_faction](/wiki/effect/create_faction): Before creating a new faction, you typically need to confirm the country already has sufficient influence. Pairing with this trigger can serve as a prerequisite gate for faction creation.

Common Pitfalls

  1. Incorrect scope: This trigger is only valid under COUNTRY scope. If used in STATE or CHARACTER scope, it will silently fail or throw an error. Always verify that the outer block's scope is a country.
  2. Mistaking it for parameterizable: Newcomers sometimes try writing has_enough_influence_for_leadership = { value = X } to customize the threshold, but this trigger only accepts yes. The threshold value is determined by the game's internal logic and does not support manual value specification.