trigger · pc_is_loser
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Checks if country is a loser in the peace conference.
Example:
ENG = { pc_is_loser = yes }
pc_is_loserCOUNTRYnoneChecks if country is a loser in the peace conference.
Example:
ENG = { pc_is_loser = yes }
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
pc_is_loser 常用于和平会议相关的事件或决议中,判断某国是否处于战败方地位,从而触发惩罚性条款、傀儡化脚本或特殊对话。例如在一个战后重建 mod 里,可以让战败国自动获得"战后阴影"idea:
country_event = {
id = my_mod.10
trigger = {
is_in_peace_conference = yes
pc_is_loser = yes
}
option = {
name = my_mod.10.a
add_ideas = postwar_devastation
}
}
[has_capitulated](/wiki/trigger/has_capitulated):投降是成为战败方的前置条件,两者常组合使用以区分"已投降但尚未进入和会"与"正在和会中的战败方"两个阶段。[has_defensive_war](/wiki/trigger/has_defensive_war):判断是否处于防御战,与 pc_is_loser 联用可区分主动侵略者落败还是防御者被迫接受战败条款,实现差异化剧情。[add_ideas](/wiki/effect/add_ideas):确认为战败方后,立即附加战败相关的国策或修正,是最典型的后续 effect 搭配。[add_stability](/wiki/effect/add_stability):战败方通常需要稳定度惩罚,搭配负值 add_stability 模拟战败带来的国内动荡。pc_is_loser 只能在 COUNTRY scope 下使用,新手常在 state 或 character scope 中调用,导致脚本报错或静默失效;务必确认外层 scope 是目标国家而非州或角色。available 块中无条件调用,会因为根本不存在和平会议上下文而始终返回 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_loser is commonly used in peace conference-related events or decisions to determine whether a country is in the defeated position, thereby triggering punitive clauses, puppet scripts, or special dialogue. For example, in a post-war reconstruction mod, you can automatically grant a defeated nation the "Postwar Shadow" idea:
country_event = {
id = my_mod.10
trigger = {
is_in_peace_conference = yes
pc_is_loser = yes
}
option = {
name = my_mod.10.a
add_ideas = postwar_devastation
}
}
[has_capitulated](/wiki/trigger/has_capitulated): Capitulation is a prerequisite for becoming a loser in the peace conference. These two are often combined to distinguish between "has capitulated but not yet entered the peace conference" and "in the peace conference as a defeated party" stages.[has_defensive_war](/wiki/trigger/has_defensive_war): Determines whether a country is in a defensive war. Used together with pc_is_loser, it can differentiate between an aggressor losing versus a defender being forced to accept defeat terms, enabling branching narratives.[add_ideas](/wiki/effect/add_ideas): After confirming a country as the loser, immediately attach defeat-related national spirits or modifiers. This is the most typical follow-up effect pairing.[add_stability](/wiki/effect/add_stability): Defeated nations typically require stability penalties. Pairing with negative add_stability simulates domestic unrest from defeat.pc_is_loser can only be used under COUNTRY scope. Beginners often call it in state or character scope, causing script errors or silent failures. Always verify that the outer scope is the target country, not a state or character.available block, it will always return no because there is no peace conference context. Use relevant conditions (such as confirming war status or peace conference timing) to properly scope its application.