Wiki

trigger · pc_current_score

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Checks country's total peace conference score. Only usable if the country is on the winning side.
Example:
CZE = { pc_current_score > 400 }

实战 · 配合 · 坑

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

实战用法

pc_current_score 常用于和会结算阶段的特殊事件或决议触发,例如当某国在和会中积累了足够积分时,解锁额外的吞并选项或触发剧情事件。典型场景是在胜利方达到特定分数阈值后,自动激活某个决议或弹出奖励事件。

# 当德国和会积分超过 400 时触发特殊事件
GER = {
    limit = {
        pc_current_score > 400
    }
    country_event = { id = my_mod.peace_bonus }
}

配合关系

  • [has_country_flag](/wiki/trigger/has_country_flag):在和会期间先用 flag 标记某国是否已触发过奖励,避免积分条件反复触发同一效果。
  • [any_war_score](/wiki/trigger/any_war_score):两者结合可区分"当前和会积分"与"战争分数贡献",在不同阈值下给予差异化奖励。
  • [country_event](/wiki/effect/country_event)(即 country_event effect):积分达标后第一时间弹出剧情事件,是最常见的后续动作搭配。
  • [add_political_power](/wiki/effect/add_political_power):根据和会积分高低赋予政治点数奖励,用于体现外交胜利带来的国内凝聚力提升。

常见坑

  1. 在败方 scope 下使用会静默失败:该 trigger 仅对胜利方有效,若在和会中对战败国使用,条件永远不成立且不会报错,容易导致逻辑漏洞难以排查,务必配合 [has_defensive_war](/wiki/trigger/has_defensive_war) 或阵营判断先过滤 scope。
  2. 混淆"当前和会积分"与"战争分数"pc_current_score 只在和会进行期间有意义,和会结束后数值归零,不能用它在和会外检查历史积分;如需持久化记录,应在和会期间主动用 flag 或变量存储。

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

pc_current_score is commonly used to trigger special events or decisions during the peace conference settlement phase. For example, when a nation accumulates sufficient points in the conference, it can unlock additional annexation options or trigger narrative events. A typical scenario involves automatically activating a decision or popping a reward event once the victorious side reaches a specific score threshold.

# Trigger a special event when Germany's peace conference score exceeds 400
GER = {
    limit = {
        pc_current_score > 400
    }
    country_event = { id = my_mod.peace_bonus }
}

Synergy

  • [has_country_flag](/wiki/trigger/has_country_flag): Mark whether a nation has already triggered a reward during the peace conference using flags to prevent the score condition from repeatedly firing the same effect.
  • [any_war_score](/wiki/trigger/any_war_score): Combining these two allows you to distinguish between "current peace conference points" and "war score contribution," enabling differentiated rewards at different thresholds.
  • [country_event](/wiki/effect/country_event) (the country_event effect): Pop a narrative event immediately when the score threshold is met; this is the most common follow-up action pairing.
  • [add_political_power](/wiki/effect/add_political_power): Award political power based on the peace conference score level to reflect the domestic consolidation gains from diplomatic victory.

Common Pitfalls

  1. Using it under the loser's scope will silently fail: This trigger only applies to the victorious side. If used on the defeated nation during the peace conference, the condition will never evaluate to true and produce no error, easily leading to hard-to-debug logic flaws. Always filter the scope first using [has_defensive_war](/wiki/trigger/has_defensive_war) or faction checks.
  2. Confusing "current peace conference score" with "war score": pc_current_score is only meaningful during the active peace conference period; the value resets to zero after the conference ends and cannot be used to check historical points outside the conference. If you need persistent record-keeping, actively store the value in flags or variables during the conference itself.