Skip to content
HOI4DOC

is_in_state

Details

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
}

Source: Triggers Documentation

Name
Supported Scopes
Character
Supported Targets
THISROOTPREVFROMCAPITAL