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,应配合相关条件(如确认战争状态或和会触发时机)限定其生效范围。