trigger · pc_turn
Definition
- Supported scope:
any - Supported target:
none
Description
Checks turn number in PC.
Example:
pc_turn > 20
pc_turnanynoneChecks turn number in PC.
Example:
pc_turn > 20
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
pc_turn 常用于权力平衡(Power Balance)系统的 mod 中,根据游戏内回合数动态触发事件或解锁选项,例如在特定回合后才允许某一方势力发动行动。也可用于 PC 系统的阶段性判断,比如在一定回合数内限制玩家的选项,营造"时间压力"的叙事体验。
available = {
pc_turn > 20
is_power_balance_in_range = {
id = my_power_balance
range = { min = 0.5 max = 1.0 }
}
}
[is_power_balance_in_range](/wiki/trigger/is_power_balance_in_range):PC 系统通常与权力平衡值联动,先判断当前回合数再检查势力倾向,可实现"第 X 回合后若天平偏向某方则触发"的逻辑。[power_balance_value](/wiki/trigger/power_balance_value):与回合数配合,可在特定回合阶段读取当前权力平衡数值进行精细比较,避免过早或过晚触发。[check_variable](/wiki/trigger/check_variable):当需要追踪跨回合累计状态(如某方累计行动次数)时,与 pc_turn 联用可构造"回合窗口内的条件门槛"。[add_power_balance_value](/wiki/effect/add_power_balance_value):在满足回合条件的 effect 块中执行,用于在特定回合节点推动权力平衡变化,与 pc_turn trigger 形成触发-执行闭环。pc_turn 用于普通国家事件:pc_turn 属于 PC(Power Contention)系统专属的回合计数,与游戏日期(date)或全局变量无关,在非 PC 系统的事件/决议中使用会导致条件始终不满足或行为未定义,应确认当前内容确实运行于 PC 框架下。pc_turn < 20 试图表示"前 20 回合内有效",却忘记 PC 系统回合从 1 开始计数,导致第 1 回合就已满足条件;务必结合实际 PC 流程的起始回合和预期触发窗口仔细核对大于/小于方向。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_turn is commonly used in mods featuring a Power Balance system, dynamically triggering events or unlocking options based on in-game round count. For example, certain faction actions may only be permitted after a specific round. It can also be used for phased logic in PC systems, such as restricting player options within a set number of rounds to create a narrative sense of "time pressure."
available = {
pc_turn > 20
is_power_balance_in_range = {
id = my_power_balance
range = { min = 0.5 max = 1.0 }
}
}
[is_power_balance_in_range](/wiki/trigger/is_power_balance_in_range): The PC system typically coordinates with power balance values. Check the current round first, then verify faction leanings to implement logic like "trigger if the scale tips toward a faction after round X."[power_balance_value](/wiki/trigger/power_balance_value): Pair with round count to read the current power balance value at specific round phases, enabling fine-grained comparisons that avoid premature or delayed triggering.[check_variable](/wiki/trigger/check_variable): When tracking cross-round cumulative states (such as cumulative action counts for a faction), combining with pc_turn constructs "conditional thresholds within a round window."[add_power_balance_value](/wiki/effect/add_power_balance_value): Execute within effect blocks that satisfy round conditions to drive power balance changes at specific round nodes, forming a trigger-execution loop with pc_turn triggers.pc_turn in ordinary nation events: pc_turn is exclusive to the PC (Power Contention) system's round counting and is unrelated to in-game dates (date) or global variables. Using it in non-PC events or decisions causes conditions to never trigger or results in undefined behavior. Always confirm your content actually runs within the PC framework.pc_turn < 20 intending "valid within the first 20 rounds," but forget that PC system rounds count from 1, causing the condition to already be met on round 1. Always carefully verify the greater-than/less-than direction against your PC flow's starting round and intended trigger window.