Wiki

trigger · is_scientist_injured

Definition

  • Supported scope:CHARACTER
  • Supported target:any

Description

Checks if the scientist of the character in scope is injured
is_scientist_injured = <bool>
ex: my_character = {
        is_scientist_active = yes
	}

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 mod scenarios requiring special handling of injured scientists (such as pausing research projects, triggering scripted events, or restricting scientist actions), you can use this trigger to detect whether a scientist is currently in an injured state. For example, in event options, only allow a scientist to be assigned tasks if they are not injured:

available = {
    is_scientist_injured = no
}

Synergy

  • [is_active_scientist](/wiki/trigger/is_active_scientist) — Typically confirm first whether the character is an active scientist before checking if they are injured, to avoid making invalid checks on non-scientist characters.
  • [injure_scientist_for_days](/wiki/effect/injure_scientist_for_days) — Commonly used to trigger the injury effect, then reverse-verify the injured state with is_scientist_injured to confirm the effect has taken hold, useful for debugging or subsequent conditional branches.
  • [has_scientist_level](/wiki/trigger/has_scientist_level) — High-level scientists often require additional scripted handling when injured; combining these two allows you to trigger different logic for injured scientists of specific levels.
  • [add_scientist_xp](/wiki/effect/add_scientist_xp) — When granting experience rewards to scientists during recovery phases, ensure the injured state has ended; commonly used in conjunction with the negated form of this trigger.

Common Pitfalls

  1. Forgetting to confirm the scope is a scientist character: Using this trigger directly under a country or province scope will cause script errors or permanently return false. Always ensure the current scope points to a CHARACTER with scientist status.
  2. Confusing injured state with inactive state: A scientist not being injured does not mean they are in an active state. is_scientist_injured = no is not equivalent to is_active_scientist = yes; these two conditions must be evaluated separately and cannot be used interchangeably.