Hands-On Usage
pc_is_on_same_side_as is primarily used in peace conference-related decisions or events to determine whether two nations stand on the same side within a single peace conference (both as victors or both as defeated), commonly appearing in scenarios involving interest distribution after multi-nation wars, unlocking special diplomatic options, or adjusting AI strategies. For example, you can restrict a certain decision to trigger only when Poland and England are on the same side of the peace conference:
# Only allow this decision when Poland and England are on the same peace conference side
available = {
pc_is_on_same_side_as = ENG
}
Synergy
[has_defensive_war](/wiki/trigger/has_defensive_war): First confirm that your nation is engaged in a defensive war, then use this trigger to verify whether allies appear on the same side at the peace conference. Combined together, these two precisely filter the "post-defensive war victory joint distribution" scenario.
[any_allied_country](/wiki/trigger/any_allied_country): Nest this trigger inside an any_allied_country loop to batch-check whether at least one of all allies stands on your side, avoiding hard-coding individual ally tags one by one.
[has_annex_war_goal](/wiki/trigger/has_annex_war_goal): In peace conference trigger combinations, this often appears alongside the present trigger to determine whether a victorious nation holds an annexation war goal, thus deciding whether special narrative events should fire.
[exists](/wiki/trigger/exists): Nations may be eliminated during peace conferences; use exists first to confirm the target nation still exists before calling this trigger, preventing script errors or unintended consequences.
Common Pitfalls
- Silent failure when used outside peace conference scope: This trigger only has meaning during an active peace conference. If called in regular country events or focus conditions, the game will not error but the condition will always return false, causing logic to appear normal but never trigger. When debugging, always confirm you are actually within a peace conference flow.
- Writing the target as a variable or dynamic tag without quotes: Beginners often mistakenly write the target nation tag in lowercase or wrap it in variable syntax (such as
= var:target_country), but this trigger's target only accepts fixed tags or built-in scope keywords (THIS/ROOT etc.). Using unsupported dynamic references causes parsing failures or unexpected behavior.