Wiki

trigger · has_mio_equipment_type

Definition

  • Supported scope:INDUSTRIAL_ORG
  • Supported target:none

Description

Checks if the Military Industrial Organisation in scope has the input equipment type.
(possible values can be found in script_enum_equipment_bonus_type and in common/equipment_groups)
ex:
mio:my_mio = {
	has_mio_equipment_type = my_equipment_type_token
}

实战 · 配合 · 坑

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

实战用法

当你需要根据军工组织当前负责的装备类型来动态解锁特性或限制政策时,这个 trigger 非常有用。例如制作一个专注于装甲或航空的 MIO mod,可以用它来确保某些奖励或任务只对特定装备类型的 MIO 生效。

# 仅当该 MIO 负责坦克装备类型时,才允许激活某项政策
mio:my_armor_mio = {
    limit = {
        has_mio_equipment_type = mio_equipment_type_armor
    }
    add_mio_research_bonus = {
        specialization = land
        bonus = 0.10
    }
}

配合关系

  • [has_mio_research_category](/wiki/trigger/has_mio_research_category):两者常联合使用,前者筛选装备类型,后者进一步限定研究分类,形成双重条件保证奖励精准发放。
  • [is_mio_trait_completed](/wiki/trigger/is_mio_trait_completed):在判断某装备类型的同时检查特性是否已完成,用于构建特性解锁的前置条件链。
  • [add_mio_research_bonus](/wiki/effect/add_mio_research_bonus):通常作为满足装备类型条件后的直接奖励结果,与该 trigger 搭配是最常见的效果输出方式。
  • [has_mio_size](/wiki/trigger/has_mio_size):与装备类型判断组合,可实现"该组织既要达到一定规模,又要专注于对应装备"的复合解锁条件。

常见坑

  1. 装备类型 token 写错:可用值来自 script_enum_equipment_bonus_typecommon/equipment_groups,新手常凭感觉自造字符串(如 infantry 而非正确的枚举值),导致条件永远不触发却不报错,务必对照源文件核实。
  2. Scope 用错:该 trigger 只能在 INDUSTRIAL_ORG scope 下使用,若直接写在国家 scope 或其他 scope 中会静默失败,需要通过 mio:your_mio_tag = { ... } 先切换到对应 MIO scope 再使用。

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

This trigger is particularly useful when you need to dynamically unlock features or restrict policies based on the equipment type currently managed by a military industrial organization. For example, when creating a specialized armor or aviation-focused MIO mod, you can use it to ensure that certain bonuses or missions only apply to MIOs handling specific equipment types.

# Allow activation of a policy only when this MIO is responsible for tank equipment
mio:my_armor_mio = {
    limit = {
        has_mio_equipment_type = mio_equipment_type_armor
    }
    add_mio_research_bonus = {
        specialization = land
        bonus = 0.10
    }
}

Synergy

  • [has_mio_research_category](/wiki/trigger/has_mio_research_category): Often used in conjunction with this trigger, the former filters by equipment type while the latter further narrows down research categories, creating a dual-condition system to ensure precise bonus distribution.
  • [is_mio_trait_completed](/wiki/trigger/is_mio_trait_completed): Check whether a trait is completed simultaneously while filtering by equipment type, useful for constructing prerequisite chains for trait unlocks.
  • [add_mio_research_bonus](/wiki/effect/add_mio_research_bonus): Typically serves as the direct reward following equipment type condition validation, making it the most common effect output pairing with this trigger.
  • [has_mio_size](/wiki/trigger/has_mio_size): When combined with equipment type checks, enables complex unlock conditions such as "the organization must reach a certain size AND specialize in the corresponding equipment type."

Common Pitfalls

  1. Misspelled equipment type tokens: Valid values come from script_enum_equipment_bonus_type and common/equipment_groups. Beginners often fabricate strings based on intuition (e.g., infantry instead of the correct enum value), causing the condition to never fire without raising an error. Always cross-reference against source files to verify.
  2. Wrong scope: This trigger only works within the INDUSTRIAL_ORG scope. Placing it directly in country scope or other contexts will silently fail. You must first switch to the appropriate MIO scope using mio:your_mio_tag = { ... } before using it.