trigger · is_embargoing
Definition
- Supported scope:
COUNTRY - Supported target:
THIS,ROOT,PREV,FROM,OWNER,CONTROLLER,OCCUPIED,CAPITAL
Description
check if country is embargoing specified country
is_embargoingCOUNTRYTHIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITALcheck if country is embargoing specified country
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
is_embargoing 常用于制裁/封锁类 mod 场景,例如检测某国是否正在对特定国家实施贸易封锁,从而触发相应的外交事件或决议。也可用于 AI 策略逻辑中,判断是否需要打破封锁以维持资源进口。
# 在一个国家事件中,检查玩家国是否正在被某国封锁
trigger = {
FROM = {
is_embargoing = ROOT
}
}
[break_embargo](/wiki/effect/break_embargo):当条件满足(确认封锁存在)后,常用此 effect 在外交事件或决策中解除封锁关系,两者形成"检测→解除"的完整逻辑闭环。[has_opinion_modifier](/wiki/trigger/has_opinion_modifier)(不在白名单,跳过)[has_defensive_war](/wiki/trigger/has_defensive_war):封锁往往伴随防御性战争压力,可联合使用来判断国家是否同时处于外交孤立与军事威胁的双重困境。[any_neighbor_country](/wiki/trigger/any_neighbor_country):遍历邻国时嵌套 is_embargoing 可检查是否有任何邻国正在实施封锁,适合用于区域紧张态势的综合评估。[convoy_threat](/wiki/trigger/convoy_threat):封锁行为通常与海上交通线压力并存,两者组合可更完整地衡量一国的对外贸易受威胁程度。is_embargoing = X 的语义是"当前 scope 的国家正在封锁 X",而非"X 正在封锁当前 scope"。新手常将主被动关系写反,导致条件永远不满足或误触发,需要明确"谁封锁谁"后再决定在哪个 scope 下书写。THIS、ROOT、PREV、FROM 等固定关键字以及 OWNER/CONTROLLER 等,不能直接填写国家 tag(如 GER),若需指向特定国家须先通过 country_event 的 FROM 链或 PREV 链将目标传入 scope。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_embargoing is commonly used in embargo/blockade-themed mod scenarios, such as detecting whether a country is actively imposing a trade embargo on a specific nation, thereby triggering corresponding diplomatic events or decisions. It can also be employed in AI strategy logic to determine whether breaking an embargo is necessary to maintain resource imports.
# In a country event, check if the player nation is being embargoed by a certain country
trigger = {
FROM = {
is_embargoing = ROOT
}
}
[break_embargo](/wiki/effect/break_embargo):Once conditions are met (embargo existence confirmed), this effect is commonly used in diplomatic events or decisions to lift embargo relations, forming a complete logical cycle of "detection → removal" between the two.[has_opinion_modifier](/wiki/trigger/has_opinion_modifier)(not in whitelist, skipped)[has_defensive_war](/wiki/trigger/has_defensive_war):Embargoes are often accompanied by defensive war pressure; combining these can determine whether a nation simultaneously faces dual threats of diplomatic isolation and military pressure.[any_neighbor_country](/wiki/trigger/any_neighbor_country):Nesting is_embargoing when iterating through neighboring countries allows checking whether any neighbor is actively imposing an embargo, suitable for comprehensive assessment of regional tensions.[convoy_threat](/wiki/trigger/convoy_threat):Embargo actions typically coexist with sea lane pressure; combining both provides a more complete measure of a nation's exposure to foreign trade threats.is_embargoing = X means "the current scope's country is embargoing X," not "X is embargoing the current scope." Beginners often reverse the active/passive relationship, causing conditions to never trigger or to trigger incorrectly. Always clarify "who embargoes whom" before deciding which scope to write in.THIS, ROOT, PREV, FROM, and identifiers like OWNER/CONTROLLER; it cannot directly reference country tags (e.g., GER). If you need to target a specific country, you must first pass the target into scope via the FROM chain or PREV chain of a country_event.