Wiki

trigger · pc_total_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_total_score > 400 }

实战 · 配合 · 坑

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

实战用法

pc_total_score 常用于和平会议结算阶段的事件或决议中,判断某个国家是否累积了足够的和平分才能触发特殊奖励、领土索取或剧情事件。例如在自定义战争结算 mod 里,可以根据得分高低给予不同的政治奖励:

# 在和平会议相关事件的 trigger 块中使用
trigger = {
    pc_total_score > 400
    has_country_flag = war_leader_flag
}

配合关系

  • [has_country_flag](/wiki/trigger/has_country_flag):先用国家旗帜标记参战方阵营,再用 pc_total_score 检查其得分,避免在非和平会议阶段误触发。
  • [any_war_score](/wiki/trigger/any_war_score):两者联合使用可同时校验战争得分与和平会议总分,对多场连续战争的结算逻辑更严谨。
  • [add_political_power](/wiki/effect/add_political_power):分数达标后给予政治点奖励,是最典型的"高分奖励"结算模式。
  • [add_state_claim](/wiki/effect/add_state_claim):得分充足时额外声索领土,模拟高贡献国家在会议桌上获得更多话语权的历史逻辑。

常见坑

  1. 在非胜利方上使用:官方明确说明该 trigger 只对处于胜利方的国家有效,若在失败方或中立国的 scope 下调用,条件永远不会为真,且不会报错,容易导致逻辑静默失效,调试时需特别注意。
  2. 在非和平会议阶段调用pc_total_score 仅在和平会议进行期间有实际意义,若把它放在常规 focus 的 available 或日常事件的 trigger 里,得分值通常为 0,导致条件始终不满足,应配合时机判断(如国家旗帜或特定事件链)严格限定触发窗口。

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_total_score is commonly used in peace conference settlement events or decisions to check whether a nation has accumulated sufficient peace points to trigger special rewards, territorial claims, or story events. For example, in a custom war settlement mod, different political bonuses can be granted based on score tiers:

# Use within trigger block of peace conference-related events
trigger = {
    pc_total_score > 400
    has_country_flag = war_leader_flag
}

Synergy

  • [has_country_flag](/wiki/trigger/has_country_flag): First mark belligerent factions with country flags, then use pc_total_score to check their scores, preventing accidental triggers outside the peace conference phase.
  • [any_war_score](/wiki/trigger/any_war_score): Combined usage allows simultaneous validation of war score and peace conference total score, making settlement logic more robust across consecutive wars.
  • [add_political_power](/wiki/effect/add_political_power): Grant political power rewards when score thresholds are met; the archetypal "high score reward" settlement pattern.
  • [add_state_claim](/wiki/effect/add_state_claim): Add territorial claims when score is sufficient, simulating how higher-contributing nations gain more negotiating power at the conference table in historical terms.

Common Pitfalls

  1. Using on non-victorious side: The official documentation explicitly states this trigger only works for nations on the victorious side. If called from a defeated or neutral nation's scope, the condition will never be true and no error is logged, leading to silent logic failure. Extra care is needed during debugging.
  2. Calling outside peace conference phase: pc_total_score only has practical meaning during an active peace conference. If placed in a regular focus's available or a routine event's trigger, the score value is typically 0, causing conditions to always fail. Pair it with timing checks (such as country flags or specific event chains) to strictly constrain the trigger window.