Wiki

trigger · has_facility_specialization

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Checks if the country in scope has a facility with specialization.
ex:
SOV = {
	has_facility_specialization = specialization_nuclear
}

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

has_facility_specialization is commonly used in nuclear weapons or specialized research mods to determine whether a nation has established a specific facility specialization (such as nuclear research facilities), thereby unlocking subsequent decisions or focuses. For example, in a nuclear proliferation mod, you can use it as an available condition for a decision to ensure only nations with nuclear facility specialization can trigger related events:

available = {
    has_facility_specialization = specialization_nuclear
}

Synergy

  • [has_breakthrough_points](/wiki/trigger/has_breakthrough_points): Nuclear facility specialization often operates in parallel with the breakthrough points mechanism, commonly checked together to verify a nation meets both facility and research progress conditions.
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Typically a specific focus must be completed before unlocking facility specialization; combining the two constructs stricter prerequisite chains.
  • [add_breakthrough_points](/wiki/effect/add_breakthrough_points): After confirming a nation possesses this facility specialization, grant breakthrough points as a reward effect, logically forming a complete loop of "has facility → gains research acceleration".
  • [any_owned_state](/wiki/trigger/any_owned_state): If you need to further verify specific state conditions where the facility is located, nest state-level triggers for finer-grained evaluation.

Common Pitfalls

  1. Scope Error: This trigger can only be used under COUNTRY scope. Beginners often mistakenly place it in a limit block under STATE scope, causing script errors or conditions that never evaluate to true.
  2. Specialization Name Spelling: Values like specialization_nuclear must match the in-game definition exactly. Guessing or misspelling won't produce an error message, but the condition will always return false, making it difficult to debug.