Wiki

effect · remove_country_leader_trait

Definition

  • Supported scope:COUNTRY, CHARACTER
  • Supported target:none

Description

Remove country leader trait from the scoped character or scoped country's leader.
In scoped character, will need to give the ideology if the character has several country leader roles.
Example 1: SOV_joseph_stalin = { remove_country_leader_trait = underage_monarch }
Example 2: HUN_miklos_horthy = { remove_country_leader_trait = { ideology = oligarchism trait = anti_communist } }
Example 3: SOV = { remove_country_leader_trait = underage_monarch }

实战 · 配合 · 坑

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

实战用法

在历史 mod 或事件链中,当某位领袖因政局变化不再适合某种执政特质时,可用此效果动态调整其属性,例如一国领袖在经历政治改革后移除"独裁者"或"underage_monarch"等特质。若某角色同时拥有多种阵营意识形态的领袖角色(如匈牙利霍尔蒂同时担任多个意识形态的领袖),则必须通过 ideology 字段精确指定目标角色,否则游戏无法判断要移除哪个角色的特质。

# 在一个事件 option 中,移除苏联斯大林的某个特质
SOV_joseph_stalin = {
    remove_country_leader_trait = underage_monarch
}

# 对拥有多意识形态角色的领袖,必须指定 ideology
HUN_miklos_horthy = {
    remove_country_leader_trait = {
        ideology = oligarchism
        trait = anti_communist
    }
}

配合关系

  • [add_country_leader_trait](/wiki/effect/add_country_leader_trait):最常见的配对,先移除旧特质再添加新特质,实现领袖特质的"替换"逻辑,常用于事件驱动的性格转变。
  • [add_country_leader_role](/wiki/effect/add_country_leader_role) / [remove_country_leader_role](/wiki/effect/remove_country_leader_role):当需要彻底重塑一个角色的领袖定位时,往往先清理特质再增删角色,保证数据一致性。
  • [can_be_country_leader](/wiki/trigger/can_be_country_leader):在执行移除前用作条件检查,确认目标角色当前确实持有领袖身份,避免对不活跃角色执行无效操作。
  • [promote_character](/wiki/effect/promote_character):有时在晋升某角色为新领袖后,需要同步移除其继承自前任的不适当特质,两者常出现在同一 effect 块中。

常见坑

  1. 多意识形态角色忘写 ideology 字段:若角色同时持有多个意识形态的领袖角色,直接写 remove_country_leader_trait = some_trait 不会报错但可能静默失效或行为不确定,必须用 { ideology = ... trait = ... } 的完整写法明确指定。
  2. 在 COUNTRY scope 下误用于非当前执政领袖:以国家 scope 调用时,效果只作用于当前执政领袖,若想对某个尚未执政的备用角色(bench character)移除特质,必须切换到对应的 CHARACTER scope,否则会修改到错误的人物。

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

In historical mods or event chains, when a leader's governing traits become unsuitable due to political shifts, this effect can be used to dynamically adjust their attributes. For example, a nation's leader may have "dictator" or "underage_monarch" traits removed following political reforms. If a character holds multiple leader roles across different ideologies (such as Hungary's Miklós Horthy serving as leader under multiple ideologies), the ideology field must be specified to precisely target the correct character; otherwise, the game cannot determine which character's trait should be removed.

# In an event option, remove a trait from Stalin of the Soviet Union
SOV_joseph_stalin = {
    remove_country_leader_trait = underage_monarch
}

# For leaders with multi-ideology roles, ideology must be specified
HUN_miklos_horthy = {
    remove_country_leader_trait = {
        ideology = oligarchism
        trait = anti_communist
    }
}

Synergy

  • [add_country_leader_trait](/wiki/effect/add_country_leader_trait): The most common pairing; remove an old trait and add a new one to implement "replacement" logic for leader traits, frequently used in event-driven personality transformations.
  • [add_country_leader_role](/wiki/effect/add_country_leader_role) / [remove_country_leader_role](/wiki/effect/remove_country_leader_role): When completely reshaping a character's leader positioning, traits are often cleared first before adding or removing roles to ensure data consistency.
  • [can_be_country_leader](/wiki/trigger/can_be_country_leader): Used as a condition check before removal to confirm the target character currently holds leader status, preventing ineffective operations on inactive characters.
  • [promote_character](/wiki/effect/promote_character): Sometimes after promoting a character to a new leadership position, inappropriate traits inherited from the predecessor must be simultaneously removed; the two often appear in the same effect block.

Common Pitfalls

  1. Forgetting the ideology field for multi-ideology characters: If a character holds multiple leader roles across different ideologies, writing remove_country_leader_trait = some_trait directly won't cause an error but may silently fail or behave unpredictably. The complete syntax { ideology = ... trait = ... } must be used to explicitly specify the target.
  2. Misusing in COUNTRY scope for non-ruling leaders: When called under nation scope, this effect only targets the currently ruling leader. To remove traits from a bench character not yet in power, you must switch to the corresponding CHARACTER scope; otherwise, you risk modifying the wrong character.