trigger · is_owner_neighbor_of
Definition
- Supported scope:
COUNTRY - Supported target:
THIS,ROOT,PREV,FROM,OWNER,CONTROLLER,OCCUPIED,CAPITAL
Description
check if neighbor ( owned territory ) with specified country
is_owner_neighbor_ofCOUNTRYTHIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITALcheck if neighbor ( owned territory ) with specified country
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.
is_owner_neighbor_of is commonly used to check whether two nations are adjacent through land-controlled territories, with typical scenarios including: triggering border tension events, restricting certain diplomatic decisions to only territorially adjacent nations, or determining feasible expansion directions within focus trees. Note that it checks adjacency based on "owned territories" rather than mere map borders.
# available block of a certain decision: only available when the target nation shares territorial borders with us
available = {
TAG = {
is_owner_neighbor_of = ROOT
}
}
[any_neighbor_country](/wiki/trigger/any_neighbor_country) — Use this trigger first to iterate through all neighboring nations, then apply is_owner_neighbor_of within it to precisely filter out nations adjacent through "owned territories," avoiding false positives from leased or controlled regions.[controls_state](/wiki/trigger/controls_state) — When combined, both can distinguish the difference between "control" and "ownership": use them together when you need to satisfy both "territorial ownership adjacency" and "actual control of a certain state."[create_wargoal](/wiki/effect/create_wargoal) — After confirming the target nation is a territorial neighbor using is_owner_neighbor_of in allowed / available, use this effect to generate targeted war goals for more rigorous logic.[has_defensive_war_with](/wiki/trigger/has_defensive_war_with) — Often written in parallel with is_owner_neighbor_of within the same condition block to check "whether a territorially adjacent neighbor is currently at war with us," triggering relevant defensive coordination events.is_owner_neighbor_of with the concept of simple map adjacency — if a nation merely controls rather than owns a border state, this trigger will return false, causing conditions that appear satisfied to never fire.THIS and the target nation, completely reversing the logic.