Skip to content
HOI4DOC

Any

104 effects and 94 triggers in the Any group.

198 items

adds static modifier to power balance

adds current value of a power balance

Adds either a resistance or compliance modifier to a state. Can only use modifiers from the resistance_modifiers.txt/compliance_modifiers.txt that are marked as is_dynamic = yes

Adds an element to an array

Adds an element to a temporary array

Adds an element to a temporary array

Adds a value, a variable, or a math expression to a temp variable.

Adds a value, a variable, or a math expression to a temporary variable.

Adds a value, a variable, or a math expression to a variable.

adds victory point to province

Checks if the triggers are true for all of the elements in the collection.

check if all countries meets the trigger. tooltip=key can be defined to override title

Checks if all of the provided countries fulfill the specified triggers. The target supports script constants and tooltip supports bindable localization.

check if all country with current scope's original tag meets the trigger. Example

Runs a loop on an array and check a trigger for each value, if any false returns false. otherwise returns true

Runs a loop on an array and check a trigger for each scope in it, if any false returns false. otherwise returns true

check if all other countries meets the trigger. Excludes current country. tooltip=key can be defined to override title

check if all states meets the trigger. tooltip=key can be defined to override title

always returns specified value

No example in the documentation

all inside trigger must be true

Checks if the triggers are true for any of the elements in the collection. If optional parameter count is set, then it checks if the number of elements that the trigger is true for is equal or larger than count.

check if any country meets the trigger

Checks if any of the provided countries fulfill the specified triggers. The target supports script constants and tooltip supports bindable localization.

check if any country with current scope's original tag meets the trigger. Example

Checks if any country that has an original tag that matches any of the provided countries fulfill the specified triggers. The target supports script constants and tooltip supports bindable localization.

Runs a loop on an array and check a trigger for each value, if any true returns true. otherwise returns false

Runs a loop on an array and check a trigger for each scope in it, if any true returns true. otherwise returns false

check if any other country meets the trigger. Excludes current country. tooltip=key can be defined to override title

Checks if any of the provided countries (except for the current country) fulfill the specified triggers. The target supports script constants and tooltip supports bindable localization.

Checks if any country that has an original tag that matches any of the provided countries and isn't the current country fulfill the specified triggers. The target supports script constants and tooltip supports bindable localization.

check if any state meets the trigger. tooltip=key can be defined to override title

check if any state in the given category meets the trigger.

Checks if any of the provided states fulfill the specified triggers. The target supports script constants and tooltip supports bindable localization.

Builds/adds railway level between two provinces or along a path. Example

Checks if a railway can be built according to specifications. Example

cancel border war between two states

Make the Unit Leader in scope be captured by the specified country (needs to be a general). Optionally specify the province where the leader is held captive.

Checks if the required medal is achieved and collected

Compares the ratio (first/second) of two playthrough values to a number

Compares a playthrough value to a number

Compares a career points value to a number

Compares the ratio (first/second) of two career profile values to a number

Checks if the required ribbon is achieved and collected

Compares a career profile value to a number

Checks if the flag is set for the local player

Sets a temporary variable to a value or another variable

Sets a temporary variable to a value or another variable

Changes player to other country

Evaluates a math expression and returns true when the result is non-zero.

Compares a variable to a number or another variable

Clamps a temp variable a variable bet ween two a values or another variables

No example in the documentation

clamps a temp variable between two values/variables

Clamps a variable between two values or variables. Note that either min or max can be omitted. The order in which the operations are applied is Max( Min( var, max ), min ). An error will be logged if max < min as the result will be more often than not undesired (requires the game to run in debug mode).

Clears the contents of array

clear a global event target

clear all global event targets

Clears the contents of a temporary array

Clears the contents of a temporary array

Clears a variable

clear global flag