Wiki

trigger · career_profile_check_points

Definition

  • Supported scope:any
  • Supported target:any

Description

Compares a career points 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_points is commonly found in career mode-related mod scenarios, such as unlocking special decisions, event options, or hidden achievements based on career points accumulated by the player. The typical use case is checking within a trigger block of an event whether the player has reached a specific points threshold, thereby granting rewards or unlocking additional content.

# Example: Allow a special event to trigger when the player's career points reach a certain threshold
country_event = {
    id = my_mod.1
    trigger = {
        career_profile_check_points = {
            points_type = campaign_score
            compare = greater_than_or_equals
            value = 500
        }
    }
    # ...
}

Synergy

  • [career_profile_check_medal](/wiki/trigger/career_profile_check_medal): Part of the same career profile trigger family, commonly used alongside points checks to simultaneously verify whether both medals and points meet unlock conditions.
  • [career_profile_check_value](/wiki/trigger/career_profile_check_value): Used to check specific values in the career profile; combine when you need to evaluate multiple career dimensions (points + specific values) simultaneously.
  • [num_of_career_profile_points](/wiki/trigger/num_of_career_profile_points): Similar functionality; can cross-verify point counts or serve as an alternative condition within an or block.
  • [custom_trigger_tooltip](/wiki/trigger/custom_trigger_tooltip): Wrap this trigger to display user-friendly localized tooltips in the UI, preventing players from seeing raw script fields.

Common Pitfalls

  1. Incorrect points_type field: points_type must use the actual in-game career points type key name. If you specify a non-existent type, the condition silently returns false without error, causing the feature to appear normal but never trigger.
  2. Using in non-career mode saves: This trigger depends on career profile data; if the player is not playing in career mode, the profile data does not exist and the condition will silently fail. It is recommended to first perform prerequisite checks using [game_rules_allow_achievements](/wiki/trigger/game_rules_allow_achievements) or related flags to avoid logic errors.