命令百科

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,否则会修改到错误的人物。