Hands-On Usage
Commonly used in scenarios requiring detection of whether a nation has unlocked sufficient quantities of advisors with specific traits, such as determining whether the player has more than one available intelligence chief to trigger the unlock conditions for specific decisions or focuses.
# The available block of a certain decision: requires the nation to have at least 2 available ideas with the head_of_intelligence trait
available = {
has_available_idea_with_traits = {
idea = head_of_intelligence
limit = 1
characters = yes
ignore = generic_head_of_intelligence
}
}
Synergy
[has_allowed_idea_with_traits](/wiki/trigger/has_allowed_idea_with_traits): These two are frequently used as a pair—the former checks "allowed" ideas while this trigger checks "currently available" ideas. Combined together, they enable precise distinction between whether an advisor is theoretically permitted to recruit or practically available at the moment.
[has_character](/wiki/trigger/has_character): When characters = yes, this trigger only applies to character-type advisors. Combined with has_character, it can further confirm whether a specific character actually exists within the nation, avoiding logical gaps in condition evaluation.
[activate_advisor](/wiki/effect/activate_advisor): After confirming an available advisor exists, use activate_advisor to activate it immediately—this is the standard "check-then-execute" pairing pattern.
[amount_taken_ideas](/wiki/trigger/amount_taken_ideas): Used to check the number of occupied advisor slots. When combined with this trigger, it enables compound gating logic such as "slots not full and suitable candidates available".
Common Pitfalls
- Confusing the semantics of
limit: limit means "quantity must be greater than that value" (strictly greater than), not "greater than or equal to". If you want at least 1 available advisor, use limit = 0; filling limit = 1 actually requires 2 or more, which is the most frequent numerical offset error.
- Overlooking the scope of the
characters field: When omitted or set to characters = no, the trigger will scan both character-type and non-character-type ideas simultaneously. If all your advisors are character-system-based (character = { ... }) but you forget to add characters = yes, you may inadvertently include ordinary ideas in the count, producing unexpected true values.