Skip to content
HOI4DOC

Character

68 effects, 3 modifiers and 64 triggers in the Character scope or category.

135 items

add advisor role to character May directly activate (aka hire) using activate = yes

Adds attack skill to a character

Adds maneuver skill to a unit leader

add corps commander role to character

add country leader role to character

Add country leader trait to the scoped character or scoped country's leader. In scoped character, will need to give the ideology if the character has several country leader roles.

Adds defense skill to a unit leader

adds a dynamic modifier to the containing scope (country / state / unit-leader / special-project). Updates the cooldown if exists. Optionaly you can give a scope that will restrict the dynamic modifier to it.

add field marshall role to character

Adds logistics skill to a unit leader

Adds maneuver skill to a unit leader

Adds a max assignable trait slot for a general

Add the specified nationalty to the scoped-in operative. Examples

Add naval commander to character

Adds planning skill to a unit leader

add random trait from specified list to unit leader. add_random_trait = { old_guard brilliant_strategist inflexible_strategist }

Add levels to a special project specialization for a scientist character in scope. The level parameter is a scoped variable

Add scientist role to a character. The character can come from the scope or from an input parameter. The scientist role format is the same as in the character DB. Except the visible trigger - a scientist role created via effect cannot have triggers. Examples

Add a trait to a scientist character in scope.

Add experience to a special project specialization for a scientist character in scope. The experience parameter is a scoped variable.

Adds a skill level to a unit leader

add a timed trait to unit leader

add trait from specified list to character.

Add trait to unit leader.

Return true if the character has an advisor role and they can be fired. Warning: will return false if the character has no advisor role or it does not match the input slot. You should use has_advisor_role trigger first to really test the can_be_fired flag.

Compares attack skill level of a unit leader.

Compares the average stats for a unit leader.

No example in the documentation

Boost planning of units that are belongs to the army group/navy of this unit leader

Checks if the current character can be captured while deployed in a division

Returns true if specified character has a least one country leader role.

check if leader can select a trait

Capture an operative Can be used from a scope and a target that is either a country or a unit leader. Examples

clear character flag

clear unit leader flag This effect is deprecated in favor of clr_character_flag.

Compares defense skill level of a unit leader.

Demotes field marshal to general

Force an operative into hiding, preventing him from performing mission. The specified values is subject to modifiers

updates the modifiers in current scope (use if you don't want to wait for daily update to update them)

Free an operative Can be used from a scope and a target that is either a country or a unit leader.

Grant experience to the scoped in unit leader. Cannot be used to remove experience. The unit leader is promoted to the next skill level if applicable.

Harm an operative. The specified value is subject to modifiers.

does unit leader have the abilityCheck if a unit leader has the ability.

Checks if the character in scope has an advisor role for the given slot

Checks if the current character has an air ledger

Checks if the current character has an army ledger

has a character flag been setCheck flag val date set and days since set.

Checks if scope has a dynamic modifier.

check unit leader has specified ID. Don't localize this. Tooltip only for debug.

Checks if the current character has a country leader role matching the sub-ideology

Checks if the current character has a country leader role matching the ideology group

Checks whether the operative has the specified nationality. NOTE: this is invalid on non-operatives. Examples

Checks if the current character has a navy ledger

Checks if the scientist of the character in scope matches the skill level condition for a specialization. Supports < > = operators.

check if sides leader has trait

This trigger is deprecated in favor of has_character_flag (which does the same)has a character flag been setCheck flag val date set and days since set.

A hidden trigger, that will not be displayed in the tooltip. The trigger can still be evaluate when generating a tooltip. This might be required in the following cases

Injure a scientist for x amount of days to a scientist character in scope.

Checks if the scientist of the character in scope is assigned to a project

Checks if the current character is an advisor

Checks if the character in scope is hired as an air chief