Wiki

trigger · is_political_advisor

Definition

  • Supported scope:CHARACTER
  • Supported target:none

Description

is_political_advisor = yes/no - Checks if the character in scope is hired as a political advisor

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

is_political_advisor is commonly used to determine whether a character is currently serving as a political advisor, with typical use cases including: restricting certain logic in focus/event to only trigger when a political advisor is in office, or in available blocks to prevent the same character from being assigned to conflicting advisor positions. For example, detecting whether a character is already a political advisor and, if so, preventing another event from dismissing or reassigning them:

# In the trigger block of an event option, only allow selection when the character is not a political advisor
option = {
    name = my_event.option_a
    trigger = {
        FROM = {
            is_political_advisor = no
        }
    }
    # ... effects
}

Synergy

  • [is_hired_as_advisor](/wiki/trigger/is_hired_as_advisor): Both check advisor status, but is_hired_as_advisor can distinguish specific advisor slot types; using them together enables more granular "is an advisor AND is a political advisor" double confirmation.
  • [has_advisor_role](/wiki/trigger/has_advisor_role): Used to check whether a character possesses a defined advisor role, and when combined with is_political_advisor can distinguish between "has advisor role configuration" and "is actually hired and active" states.
  • [remove_advisor_role](/wiki/effect/remove_advisor_role): After confirming a character is indeed a political advisor (is_political_advisor = yes), safely removes their advisor role, avoiding errors from attempting to remove roles from non-advisors.
  • [set_can_be_fired_in_advisor_role](/wiki/effect/set_can_be_fired_in_advisor_role): Based on the judgment result of is_political_advisor, dynamically control whether the current political advisor can be dismissed, commonly used in story scenarios to lock down key advisors.

Common Pitfalls

  1. Incorrect scope: This trigger must be called under CHARACTER scope. Beginners often mistakenly write is_political_advisor = yes directly in a limit block within COUNTRY scope, causing scope mismatch that results in silent failure or errors. You must first enter character scope using any_character/specific character before using this trigger.
  2. Confusion with is_advisor: is_advisor checks whether a character is any type of advisor, while is_political_advisor specifically refers to political advisors. If you want to check for advisors other than political advisors (such as an army chief of staff), misusing this trigger will silently return false, making the issue hard to detect.