trigger · is_in_state
Definition
- Supported scope:
CHARACTER - Supported target:
THIS,ROOT,PREV,FROM,CAPITAL
Description
Checks if the character is in a specific state.
Works for deployed generals (HQ location), scientists (facility location including faction programs), and operatives (mission location).
### Example
Check if a general is in a specific state
any_unit_leader = { is_in_state = 64 # Brandenburg }
Check if any scientist is in the capital
every_character = { limit = { is_active_scientist = yes } is_in_state = root.capital }