命令百科

effect · uncomplete_national_focus

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

uncompletes a focus for a country. If specified, the 'on_uncomplete' effect will be executed on each uncompleted focus.
Example: uncomplete_national_focus = {
	focus = GER_oppose_hitler
	uncomplete_children = yes # Optional. Default is no. If yes, all proceeding focuses will also be uncompleted if their prerequisite aren't met after the preceeding focuses are uncompleted.
	refund_political_power = no # Optional. Default is no. If yes, the country is refunded the political power invested in the current focus if it's canceled as a result of its prerequisites being uncompleted.
}

实战 · 配合 · 坑

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

实战用法

uncomplete_national_focus 常用于剧本重置类 mod,例如在玩家选择某个"历史回溯"选项或内战爆发后,需要将某国已完成的国策撤销,使其回到未解锁的状态。配合 uncomplete_children = yes 可以级联撤销后续依赖国策,适合大幅重置科技树走向或阵营路线。

# 某国家内战爆发,重置其工业化路线相关国策
option = {
    name = "重置工业化路线"
    uncomplete_national_focus = {
        focus = GER_four_year_plan
        uncomplete_children = yes
        refund_political_power = no
    }
    add_political_power = -50
}

配合关系

  • [has_completed_focus](/wiki/trigger/has_completed_focus):在执行撤销前先用此触发器判断目标国策是否已完成,避免对未完成国策执行无效操作或引发逻辑错误。
  • [complete_national_focus](/wiki/effect/complete_national_focus):与本命令形成互补,可在撤销旧路线后立即引导玩家/AI走向新路线,实现国策路线的"切换"效果。
  • [add_political_power](/wiki/effect/add_political_power):若选择不自动退还政治点(refund_political_power = no),通常需要手动通过此命令对国家进行补偿或惩罚,保持游戏平衡。
  • [add_ideas](/wiki/effect/add_ideas):撤销国策后,该国策带来的 idea 并不会自动移除,需配合此命令的逆操作(remove_ideas)手动清理相关加成,否则效果会残留。

常见坑

  1. 国策附带的 idea 不会自动消失uncomplete_national_focus 仅将国策标记为未完成,但国策 on_complete 中通过 add_ideas 添加的 modifier 或 idea 并不会被自动撤销,需要在 on_uncomplete 块或手动脚本中明确移除,否则加成会永久残留在国家身上。
  2. uncomplete_children 的前提判断依赖已撤销状态:启用 uncomplete_children = yes 时,子国策是否被连带撤销取决于其前提条件在父级被撤销后是否仍满足,若子国策有多条前提路径仍被满足,则不会被撤销——新手常误以为该参数会无条件级联移除所有后续国策。