Wiki

trigger · pc_is_winner

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Checks if country is a winner in the peace conference.
Example:
ENG = { pc_is_winner = yes }

实战 · 配合 · 坑

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

实战用法

pc_is_winner 常用于和会结算阶段的事件或决议中,判断本国是否作为胜利方参与了和会,从而给予胜利奖励、解锁特殊决策或触发剧情事件。例如在二战后和平结算 mod 中,可以根据是否为胜利方决定是否发放领土红利或外交加成:

# 在和会后触发的国家事件中
trigger = {
    pc_is_winner = yes
}

# 胜利方专属奖励效果块
effect = {
    if = {
        limit = {
            pc_is_winner = yes
        }
        add_political_power = 100
        add_stability = 0.05
    }
}

配合关系

  • [has_capitulated](/wiki/trigger/has_capitulated):通常搭配使用,先检查目标国是否已投降,再结合 pc_is_winner 确认本国是否以胜者身份进入和会,避免逻辑矛盾。
  • [any_enemy_country](/wiki/trigger/any_enemy_country):在遍历敌方国家时配合使用,筛选出和会中己方确为胜利一侧后,再对战败国执行后续判断。
  • [add_state_core](/wiki/effect/add_state_core):胜利方往往需要在和会后添加核心领土,以 pc_is_winner = yes 作为前置条件保证只有真正的胜者才能获得该效果。
  • [country_event](/wiki/effect/country_event):根据是否为胜利方触发不同剧情分支事件,是和会叙事 mod 中最常见的搭配方式。

常见坑

  1. scope 混用pc_is_winner 只能在 COUNTRY scope 下使用,新手有时在 STATECHARACTER scope 内直接调用,导致脚本报错或条件永远不成立,务必确认当前 scope 为国家。
  2. 和会外时机误判:该 trigger 仅在和会(peace conference)进行期间有意义,在和会结束后的普通事件中调用往往返回 no,建议配合专门在和会阶段触发的事件 ID 使用,而非挂在常规 on_action 钩子上。

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_is_winner is commonly used in events or decisions during the peace conference settlement phase to determine whether your nation participated as a victor, thereby granting victory bonuses, unlocking special decisions, or triggering narrative events. For example, in a post-WWII peace settlement mod, you can decide whether to grant territorial rewards or diplomatic bonuses based on whether you were on the winning side:

# In a country event triggered after the peace conference
trigger = {
    pc_is_winner = yes
}

# Effect block exclusive to the victor
effect = {
    if = {
        limit = {
            pc_is_winner = yes
        }
        add_political_power = 100
        add_stability = 0.05
    }
}

Synergy

  • [has_capitulated](/wiki/trigger/has_capitulated): Typically used in conjunction to first check if the target nation has capitulated, then combine with pc_is_winner to confirm whether your nation entered the peace conference as a victor, avoiding logical contradictions.
  • [any_enemy_country](/wiki/trigger/any_enemy_country): Used when iterating through enemy nations to filter out cases where your side was indeed the victor in the peace conference, then execute subsequent checks against defeated nations.
  • [add_state_core](/wiki/effect/add_state_core): Victors often need to add core territories after the peace conference; use pc_is_winner = yes as a prerequisite condition to ensure only true victors receive this effect.
  • [country_event](/wiki/effect/country_event): Trigger different narrative branches depending on whether you were the victor, the most common synergy pattern in peace conference narrative mods.

Common Pitfalls

  1. Scope confusion: pc_is_winner can only be used under the COUNTRY scope. Beginners sometimes call it directly within STATE or CHARACTER scopes, causing script errors or conditions that never evaluate to true. Always verify that your current scope is set to country.
  2. Timing errors outside peace conferences: This trigger is only meaningful during an active peace conference. Calling it in regular events after the peace conference ends will typically return no. It is recommended to use it in events specifically triggered during the peace conference phase rather than attaching it to regular on_action hooks.