Wiki

trigger · career_profile_check_value

Definition

  • Supported scope:any
  • Supported target:any

Description

Compares a career profile value to a number

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

career_profile_check_value is commonly used in career system-related mods to unlock special events, decisions, or rewards based on numeric thresholds accumulated by the player across various metrics. For example, in achievement-oriented mods, you can check whether a player's career profile value has reached a certain threshold to trigger exclusive narrative events.

# Example: When a specific metric in the career profile reaches a certain magnitude, allow triggering a special decision
available = {
    career_profile_check_value = {
        id = my_career_stat
        value > 50
    }
}

Synergy

  • [career_profile_check_points](/wiki/trigger/career_profile_check_points): Combining with this trigger allows simultaneous evaluation of both "total points" and "specific values" across two dimensions, establishing stricter unlock conditions.
  • [career_profile_check_ratio](/wiki/trigger/career_profile_check_ratio): Use in tandem when you need to assess both "absolute value" and "ratio" simultaneously, preventing logic gaps caused by relying on a single metric alone.
  • [career_profile_check_medal](/wiki/trigger/career_profile_check_medal): In medal/achievement assignment logic, use this trigger first to confirm the numeric prerequisites, then use that trigger to verify medal status, forming a complete prerequisite chain.
  • [check_variable](/wiki/trigger/check_variable): When career profile values need to be compared in conjunction with temporary variables, the two work together by first storing the value in a temporary variable before performing complex evaluations.

Common Pitfalls

  1. Incorrect id field entry: The id must match exactly (including case sensitivity) with the actual value key name defined in the career profile system. Entering a non-existent key name will not produce an error but will always return false, causing the condition block to silently fail and be difficult to debug.
  2. Misuse outside career mode: This trigger depends on the existence of career profile data. If used in an environment without the relevant DLC or career features activated, you should first apply protective checks using [is_ironman](/wiki/trigger/is_ironman) or related game rule triggers. Otherwise, the condition may never be satisfied.