Wiki

trigger · is_military_industrial_organization

Definition

  • Supported scope:INDUSTRIAL_ORG
  • Supported target:none

Description

Checks if the Military Industrial Organisation in scope matches the input token
ex:
var:my_mio_var = {
  is_military_industrial_organization = my_mio_token
}

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

在 MIO 相关事件或决策中,当你需要对特定军工组织执行逻辑分支时,可用此 trigger 在变量引用的 scope 下确认当前组织身份,避免逻辑误判。常见场景是遍历多个 MIO 变量后,针对某一特定组织给予奖励或施加限制。

# 在事件选项中,仅对特定军工组织解锁特性
var:selected_mio = {
    is_military_industrial_organization = tank_manufacturer_alpha
    add_mio_research_bonus = {
        specialization = mio_cat_spec_tank
        bonus = 0.10
    }
}

配合关系

  • [has_mio_flag](/wiki/trigger/has_mio_flag):通常先用此 trigger 确认是目标组织,再检查该组织是否已设置特定 flag,形成精确的双重过滤条件。
  • [has_mio_trait](/wiki/trigger/has_mio_trait):确认组织身份后,进一步判断其是否已拥有某特性,决定后续逻辑走向。
  • [complete_mio_trait](/wiki/effect/complete_mio_trait):在确认组织匹配后,紧接着用此 effect 直接完成某个特性,是「身份验证 → 奖励执行」的标准链路。
  • [set_mio_flag](/wiki/effect/set_mio_flag):验证组织身份成立后立即打 flag 作标记,防止事件反复触发同一组织的同一逻辑。

常见坑

  1. 直接在国家 scope 下调用:此 trigger 仅在 INDUSTRIAL_ORG scope 下有效,新手常忘记先通过变量或专属 scope 进入 MIO 上下文,直接在国家事件 trigger 块里写会导致脚本报错或判断始终为假。
  2. token 名与实际 MIO 定义不一致:填写的 token 必须与 mio 文件夹中对应组织的 token = xxx 字段完全一致(区分大小写),拼写哪怕一个字符错误都会使条件永远不成立,且游戏通常不会给出明显报错提示。

Hands-On Notes

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.

Hands-On Usage

In MIO-related events or decisions, when you need to execute conditional logic for a specific military industrial organization, use this trigger within the scope referenced by a variable to confirm the current organization's identity and avoid logical errors. A common scenario is iterating through multiple MIO variables and then applying rewards or restrictions to a particular organization.

# In event options, unlock a trait only for a specific military industrial organization
var:selected_mio = {
    is_military_industrial_organization = tank_manufacturer_alpha
    add_mio_research_bonus = {
        specialization = mio_cat_spec_tank
        bonus = 0.10
    }
}

Synergy

  • [has_mio_flag](/wiki/trigger/has_mio_flag): Typically use this trigger first to confirm the target organization, then check whether that organization has already set a specific flag, forming a precise dual-filter condition.
  • [has_mio_trait](/wiki/trigger/has_mio_trait): After confirming the organization's identity, further determine whether it already possesses a certain trait to decide the subsequent logic flow.
  • [complete_mio_trait](/wiki/effect/complete_mio_trait): After confirming the organization matches, immediately follow up with this effect to directly complete a trait—the standard workflow of "identity verification → reward execution".
  • [set_mio_flag](/wiki/effect/set_mio_flag): Immediately apply a flag as a marker after the organization identity is confirmed, preventing the event from repeatedly triggering the same logic for the same organization.

Common Pitfalls

  1. Calling directly under national scope: This trigger is only valid under INDUSTRIAL_ORG scope. Beginners often forget to first enter the MIO context via a variable or dedicated scope and write it directly in the national event trigger block, which causes script errors or the condition to always evaluate to false.
  2. Token name inconsistent with actual MIO definition: The token you provide must exactly match the token = xxx field of the corresponding organization in the mio folder (case-sensitive). Even a single character misspelling will make the condition never true, and the game typically will not provide an obvious error message.