trigger · pc_is_on_winning_side
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Checks if country is on the winning side in the peace conference.
Example:
CZE = { pc_is_on_winning_side = yes }
pc_is_on_winning_sideCOUNTRYnoneChecks if country is on the winning side in the peace conference.
Example:
CZE = { pc_is_on_winning_side = yes }
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
pc_is_on_winning_side 常用于和平会议结束后的事件或决议触发,判断某国是否处于胜利方阵营,从而给予奖励(如政治点数、国策解锁、理念加成)或触发特殊剧情分支。例如,在一个二战架空 mod 中,可以用它判断捷克斯洛伐克是否作为胜利方参与了会议,并据此发放对应奖励:
country_event = {
id = my_mod.100
trigger = {
tag = CZE
pc_is_on_winning_side = yes
}
option = {
name = my_mod.100.a
add_political_power = 50
add_stability = 0.05
}
}
[has_capitulated](/wiki/trigger/has_capitulated):常与此配合,先排除已投降国家再检查其胜败立场,避免逻辑矛盾。[any_war_score](/wiki/trigger/any_war_score):用于进一步量化该国在战争中的贡献,与本 trigger 组合可实现"胜利且贡献达标"的双重门槛。[add_political_power](/wiki/effect/add_political_power):胜利方通常需要奖励,这是最常见的效果搭配之一。[add_ideas](/wiki/effect/add_ideas):给予胜利方特定理念(如战后荣誉 buff),与本 trigger 构成典型的"条件→奖励"结构。COUNTRY scope 下有效,若写在 state scope 或 unit leader scope 中会静默失败或报错,务必确认外层作用域是国家。focus 或日常 decision 中使用,其返回值可能始终为 no,导致条件永远不满足。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.
pc_is_on_winning_side is commonly used in events or decisions triggered after peace conferences conclude, to determine whether a country belongs to the victorious faction and grant rewards (such as political power, focus tree unlocks, or idea bonuses) or branch into special narrative paths. For example, in an alternate WWII mod, you can use it to check whether Czechoslovakia participated in the conference as a victor and distribute corresponding rewards:
country_event = {
id = my_mod.100
trigger = {
tag = CZE
pc_is_on_winning_side = yes
}
option = {
name = my_mod.100.a
add_political_power = 50
add_stability = 0.05
}
}
[has_capitulated](/wiki/trigger/has_capitulated): Often paired together; filter out capitulated nations first before checking their victory status to avoid logical contradictions.[any_war_score](/wiki/trigger/any_war_score): Used to further quantify that country's contribution during the war; combining with this trigger enables a "victorious AND contribution threshold met" dual-gate system.[add_political_power](/wiki/effect/add_political_power): Victorious factions typically require rewards, making this one of the most common effect pairings.[add_ideas](/wiki/effect/add_ideas): Grant the victor a specific idea (such as postwar prestige buff), forming a typical "condition → reward" structure with this trigger.COUNTRY scope; placing it in state scope or unit leader scope will silently fail or error out. Always verify the enclosing scope is a country.focus or routine decision unrelated to peace conferences, its return value may perpetually be no, causing the condition to never be satisfied.