trigger · is_owned_and_controlled_by
Definition
- Supported scope:
STATE - Supported target:
THIS,ROOT,PREV,FROM,OWNER,CONTROLLER,OCCUPIED,CAPITAL
Description
check if state is owned by
is_owned_and_controlled_bySTATETHIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITALcheck if state is owned by
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
is_owned_and_controlled_by 常用于抵抗运动、占领法、合规度等系统的条件判断,确保某个州同时被目标国家拥有且控制(而非仅占领)才触发逻辑。例如在决策或事件中,判断玩家是否已完全稳固掌控某战略州:
# 决策的 available 块:只有在自己完全掌控该州时才可执行
available = {
42 = { # 某州 ID
is_owned_and_controlled_by = ROOT
}
}
[is_owned_by](/wiki/trigger/is_owned_by):当只需判断主权归属、不关心实际控制权时使用,与本 trigger 形成互补,帮助区分"名义拥有"和"实际掌控"两种场景。[is_controlled_by](/wiki/trigger/is_controlled_by):配合使用可分别细化"仅控制但未拥有"的占领状态,常在抵抗事件中与本 trigger 并列写在 if/else 分支里。[set_occupation_law](/wiki/effect/set_occupation_law):在确认州被完全拥有且控制后再设置占领法,避免对尚未稳固控制的州错误施加政策。[compliance](/wiki/trigger/compliance):常与本 trigger 一同放在 limit 块中,确保合规度检查只针对真正掌控的州执行。is_controlled_by 处理占领情形。capital_scope 等方式切换到对应州 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_owned_and_controlled_by is commonly used in resistance movements, occupation laws, compliance systems, and other condition checks to ensure a state is both owned and controlled by the target country (not merely occupied). For example, in decisions or events, you can check whether the player has completely secured control of a strategic state:
# available block in a decision: only executable when you fully control the state
available = {
42 = { # some state ID
is_owned_and_controlled_by = ROOT
}
}
[is_owned_by](/wiki/trigger/is_owned_by): Use when you only need to check sovereignty without caring about actual control. It complements this trigger by helping distinguish between "nominal ownership" and "actual control" scenarios.[is_controlled_by](/wiki/trigger/is_controlled_by): When used together, you can separately refine "control without ownership" occupation states. Often paired with this trigger in if/else branches during resistance events.[set_occupation_law](/wiki/effect/set_occupation_law): Set occupation laws only after confirming a state is fully owned and controlled, avoiding incorrect policy application to states that aren't yet securely held.[compliance](/wiki/trigger/compliance): Frequently placed alongside this trigger in limit blocks to ensure compliance checks apply only to states you truly control.is_controlled_by instead for occupation scenarios.capital_scope before using it.