trigger · pc_is_liberated
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Checks if country has been liberated in the peace conference.
Example:
CZE = { pc_is_liberated = yes }
pc_is_liberatedCOUNTRYnoneChecks if country has been liberated in the peace conference.
Example:
CZE = { pc_is_liberated = yes }
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
pc_is_liberated 常用于和平会议后续事件或决策中,判断某个国家是否刚刚通过和平会议被解放,从而触发对应的剧情或奖励效果。例如在捷克斯洛伐克被德国解放后,触发一段重建国家的事件链:
# 在某个事件的 trigger 块中
trigger = {
CZE = {
pc_is_liberated = yes
}
}
[has_capitulated](/wiki/trigger/has_capitulated):通常先检查目标国是否已投降,再配合 pc_is_liberated 确认其是在和平会议中被解放而非仍处于占领状态。[exists](/wiki/trigger/exists):解放后该国标签会重新存在,配合 exists 确保后续对该国的操作不会因标签不存在而报错。[has_country_flag](/wiki/trigger/has_country_flag):可与国家旗帜配合,在解放事件触发后设旗防止重复触发同一逻辑。[days_since_capitulated](/wiki/trigger/days_since_capitulated):用于限定在投降后多少天内且已被解放的时间窗口,使条件更精确。pc_is_liberated 必须在 COUNTRY scope 下调用,直接写在顶层或写在 STATE scope 下会导致脚本报错或永远返回假,务必用 CZE = { pc_is_liberated = yes } 的形式显式切换到目标国 scope。on_peace_conference_ended 等相关 on_action 来确保在正确时机检查。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_liberated is commonly used in post-peace conference events or decisions to determine whether a nation has just been liberated through a peace conference, thereby triggering corresponding storylines or reward effects. For example, after Czechoslovakia is liberated by Germany, it triggers a chain of events for national reconstruction:
# In the trigger block of an event
trigger = {
CZE = {
pc_is_liberated = yes
}
}
[has_capitulated](/wiki/trigger/has_capitulated): Typically check whether the target nation has capitulated first, then combine with pc_is_liberated to confirm it was liberated in the peace conference rather than remaining under occupation.[exists](/wiki/trigger/exists): After liberation, the country tag will exist again; combine with exists to ensure subsequent operations on that country don't fail due to a missing tag.[has_country_flag](/wiki/trigger/has_country_flag): Can be combined with country flags; set a flag after the liberation event triggers to prevent the same logic from triggering repeatedly.[days_since_capitulated](/wiki/trigger/days_since_capitulated): Used to define a time window within a certain number of days after capitulation while also being liberated, making the condition more precise.pc_is_liberated must be called within a COUNTRY scope. Writing it at the top level or within a STATE scope will cause script errors or always return false. Always use the explicit form CZE = { pc_is_liberated = yes } to switch to the target country's scope.on_peace_conference_ended to ensure the check occurs at the correct moment.