activate_mission — Activates mission, ignoring its normal trigger conditions. Cannot activate a mission that is already active.
activate_mission_tooltip — shows mission will activate and name. Activation needs to be handled manually, effect is just an easier way to display name of mission.
activate_shine_on_focus — Activates the shine effect on the focus with the given id. Focuses that are completed cannot have an activated shine effect.
activate_targeted_decision — Activates targeted decisions or mission, ignoring its normal trigger conditions, cooldown and fire only once. Cannot activate if active in i…
add_dynamic_modifier — adds a dynamic modifier to the containing scope (country / state / unit-leader / special-project).
add_equipment_bonus — Adds the specified equipment bonuses to the country. As description the given loc key or the name of given special project will be used. Sam…
add_mio_policy_cooldown — Add to the base cooldown (in days) after attaching a policy in the MIO policy, found in country in scope with input policy token.
add_mio_policy_cost — Add to the base cost (in PP) for attaching a policy in the MIO policy, found in country in scope with input policy token.
add_mio_research_bonus — Add to the research bonus in the military industrial organization in scope.
add_mio_size — Add size levels to the military industrial organization in scope.
add_mio_size_up_requirement_factor — Add to the factor applied to funds required to size up in the military industrial organization in scope.
add_mio_task_capacity — Add to the maximum task capacity in the military industrial organization in scope.
add_relation_rule_override — Adds an override rule to the country's relation to other countries. If there are multiple applicable overrides for a rule, then they are com…
add_research_slot — Adds a research slot (negative values subtracts)
add_resistance — add resistance to a state. Example: add_resistance = 30
character_list_tooltip — Display in tooltip every character (or "random_select_amount" of random characters if specified) that fulfills the "limit" trigger.
clamp_temp_variable — Clamps a temp variable a variable bet ween two a values or another variables
clamp_variable — Clamps a variable between two values or variables.
country_lock_all_division_template — Lock all the division template at the country level. Note that you need to unlock them in the same way Can also supply the reason it is lock…
create_colonial_division_template — Create a colonial division template for overlord/owner. Available parameters are subject and division_template, where the subject parameter …
custom_effect_tooltip — Append an extra tooltip to the effect. The tooltip is a [bindable localization](script_concept_documentation.md#bindable-localization).
custom_override_tooltip — Executes the provided effects but with a custom tooltip surpressing all tooltips from all other effects inside this block.
D
damage_building — Damages a building in a targeted state or province.
damage_units — damages units for given conditions. no tooltip generated
deactivate_advisor — Dismiss an advisor from their currently occupied role slot
deactivate_shine_on_focus — Deactivate the shine effect on the focus with the given id. The current focus cannot have it's shine effect removed.
end_exile — Ends the exile of of the current scope's country
end_puppet — Stops specefied country being a puppet of current country
event_option_tooltip — Shows the tooltip text of an event option in other tooltips(root and from scopes are swapped).
every_active_scientist — Executes children effects on every active scientist (or \"random_select_amount\" of random character if specified) of the country in scope, …
every_allied_country — Executes children effects on every Allied Country different from the one in scope (or `random_select_amount` of random country if specified)…
every_army_leader — Executes children effects on every Army Leader (or \"random_select_amount\" of random leader if specified) of the country in scope, that ful…
every_character — Executes children effects on every Character (or \"random_select_amount\" of random character if specified) of the country in scope, that fu…
every_collection_element — Applies arbitrary effects to all elements of a collection. To learn more about collections,
every_controlled_state — Executes children effects on every State controlled by the country in scope (or \"random_select_amount\" of random state if specified) that …
every_core_state — Executes children effects on every core State of the country in scope (or \"random_select_amount\" of random state if specified) that fulfil…
every_country — Executes children effects on every Country (or \"random_select_amount\" of random country if specified) that fulfills the \"limit\" trigger.
every_country_division — Executes children effects on every Division of the country in scope (or \"random_select_amount\" of random divisions if specified) that fulf…
every_country_with_original_tag — Executes children effects on a all countries with original tag (or \"random_select_amount\" of random country if specified) that fulfills th…
every_enemy_country — Executes children effects on every enemy Country of the country in scope (or \"random_select_amount\" of random country if specified) that f…
every_faction_member — Executes children effects on every faction member of the country's faction in scope (if country does not have a faction it will only work on…
every_military_industrial_organization — Executes children effects on every Military Industrial Organisation (or \"random_select_amount\" of random MIOs if specified) of the country…
every_navy_leader — Executes children effects on every Navy Leader (or \"random_select_amount\" of random leader if specified) of the country in scope, that ful…
every_neighbor_country — Executes children effects on every neighbor Country of the country in scope (or \"random_select_amount\" of random country if specified) tha…
every_neighbor_state — Executes children effects on every State neighboring the state in scope (or \"random_select_amount\" of random state if specified) that fulf…
every_occupied_country — Executes children effects on every occupied Country by the country in scope (or \"random_select_amount\" of random country if specified) tha…
every_operative — Executes children effects on every operative (or \"random_select_amount\" of random operatives if specified) that fulfills the \"limit\" tri…
every_other_country — Executes children effects on every Country different from the one in scope (or \"random_select_amount\" of random country if specified) that…
every_owned_state — Executes children effects on every State owned by the country in scope (or \"random_select_amount\" of random state if specified) that fulfi…
every_possible_country — Executes children effects on every Country (or \"random_select_amount\" of random country if specified) that fulfills the \"limit\" trigger.
every_purchase_contract — Executes children effects on every purchase contract (or \"random_select_amount\" of random purchase contracts if specified) of the country …
every_scientist — Executes children effects on every scientist (or \"random_select_amount\" of random character if specified) of the country in scope, that fu…
every_state — Executes children effects on every State (or \"random_select_amount\" of random state if specified) that fulfills the \"limit\" trigger.
every_state_division — Executes children effects on every Division currently in the state in scope (or \"random_select_amount\" of random divisions if specified) t…
every_subject_country — Executes children effects on every subject Country of the country in scope (or \"random_select_amount\" of random country if specified) that…
every_unit_leader — Executes children effects on every Unit Leader (or \"random_select_amount\" of random leader if specified) of the country in scope, that ful…
execute_operation_coordinated_strike — Special effect for executing the Coordinated Strike Operation. amount determines how often the simulation is run
F
finalize_border_war — finalizes border war between two states, wins or cancels it
find_highest_in_array — Runs a loop on for each element of an array, finds the highest value and stores result in temp variables
find_lowest_in_array — Runs a loop on for each element of an array, finds the lowest value and stores result in temp variables
for_each_loop — Runs a loop on for each element of an array
for_each_scope_loop — Runs a loop on for each element of an array and changes scope to current element in each iteration
for_loop_effect — Runs a same effects through a loop. example will run the effects for value_name = -3, 0, 3, 6, 9 and then terminate
force_enable_resistance — force enables resistance for scoped state. the resistance will be active even if other conditions doesn't satisfy (even if it is core or res…
force_operative_leader_into_hiding — Force an operative into hiding, preventing him from performing mission. The specified values is subject to modifiers
force_update_dynamic_modifier — updates the modifiers in current scope (use if you don't want to wait for daily update to update them):
free_random_operative — Free a random captured operative of a certain tag by a certain tag
G
gain_xp — Grant experience to the scoped in unit leader. Cannot be used to remove experience.
generate_character — Generates a character. Use in every_country in order to generates one copy of the character per country satisfying the limit conditions.
generate_scientist_character — Generate a new character with a scientist role and recruit it in the country in scope.
get_highest_scored_country — calculates the highest scored country that is defined in a country scorer and sets it to a temp variable. Example:
get_highest_scored_country_temp — calculates the highest scored country that is defined in a country scorer and sets it to a variable. Example:
get_sorted_scored_countries — calculates & sorts all countries in a country scorer and stores them and their scores in arrays. Example:
get_sorted_scored_countries_temp — calculates & sorts all countries in a country scorer and stores them and their scores in temp arrays. Example:
get_supply_vehicles — sets a variable to the number of supply vehicles in stockpile or that are needed. example
get_supply_vehicles_temp — sets a temp variable to the number of supply vehicles in stockpile or that are needed. example
global_every_army_leader — Executes children effects on every Army Leader (or \"random_select_amount\" of random leader if specified) for EVERY COUNTRY, that fulfills …
print_variables — prints all variables in scope and temp variables to a file
promote_character — promotes character to the head of their political party.If this is the ruling party, the character becomes country leader.if the character h…
random_active_scientist — Executes children effects on random scientists that fulfills the "limit" trigger. tooltip=key can be added to override tooltip title
random_allied_country — Executes children effects on a random Allied Country different from the one in scope that fulfills the `limit` trigger.
random_army_leader — Executes children effects on a random Army Leader of the country in scope, that fulfills the \"limit\" trigger.
random_character — Executes children effects on random characters that fulfills the "limit" trigger. tooltip=key can be added to override tooltip title
random_controlled_state — Executes children effects on random controlled state that fulfills the "limit" trigger.
random_core_state — Executes children effects on random core state that fulfills the "limit" trigger.
random_country — Executes children effects on random country that fulfills the "limit" trigger.
random_country_division — Executes children effects on a random division that fulfill the "limit" trigger. tooltip=key can be added to override tooltip title
random_enemy_country — Executes children effects on random enemy country that fulfills the "limit" trigger.
random_list — Picks a random effect from the list based on the weight associated.
random_military_industrial_organization — Executes children effects on a random Military Industrial Organisation of the country in scope, that fulfills the \"limit\" trigger.
random_navy_leader — Executes children effects on a random Navy Leader of the country in scope, that fulfills the \"limit\" trigger.
random_neighbor_country — Executes children effects on random neighbor country that fulfills the "limit" trigger.
random_neighbor_state — Executes children effects on random neighbor state that fulfills the "limit" trigger.
random_occupied_country — Executes children effects on random occupied country that fulfills the "limit" trigger.
random_operative — Executes children effects on a random operatives that fulfills the "limit" trigger.
random_other_country — Executes children effects on random country that fulfills the "limit" trigger. Excludes current country
random_owned_controlled_state — Executes children effects on random owned and controlled state that fulfills the "limit" trigger.
random_owned_state — Executes children effects on random owned state that fulfills the "limit" trigger.
random_purchase_contract — Executes children effects on a random purchase contract of the country in scope, that fulfills the \"limit\" trigger.
random_scientist — Executes children effects on random scientists that fulfills the "limit" trigger. tooltip=key can be added to override tooltip title
random_state — Executes children effects on a random state that fulfills the "limit" trigger.
random_state_division — Executes children effects on a random division that fulfill the "limit" trigger on a state. tooltip=key can be added to override tooltip tit…
random_subject_country — Executes child effects on random subject country that fulfills the limit.
random_unit_leader — Executes children effects on a random Unit Leader of the country in scope, that fulfills the \"limit\" trigger.
recall_attache — Scope country recalls attache from target country. Example: GER = { recall_attache = CHI } means Germany recalls attache from China.
recall_volunteers_from — The scoped in country recall the volunteers sent to the target country.
recruit_character — Attach a character to a country. Must be in country scope.
reduce_focus_completion_cost — Reduce the cost needed to complete a specific focus. The cost accepts [script constants](script_concept_documentation.md#script-constants). …
release — releases specified country as a puppet using your owned states
release_autonomy — releases specified country with specified level of autonomy.
release_captured_generals_from — Makes the scoped country release all captured generals from the specified country kept in the specified province.
release_from_captivity — Releases the scoped army leader from captivity. Has no effect if the leader is not captured.
release_on_controlled — releases specified country as a puppet using your owned or controlled states
release_puppet — releases specified country as puppet using states you own
remove_country_leader_trait — Remove country leader trait from the scoped character or scoped country's leader.
remove_decision — Remove specified active decision for scope country - Does not run the remove_effect or put the decision on cooldown. Ignores fire_only_once
remove_relation_rule_override — Removes an override rule to the country's relation to other countries.The desc key can be used to supply a custom description for the effect…
remove_resistance_target — removes a previously added resistance target using its id. No tooltips are generated.:
remove_resource_rights — Remove resource right to state for scope country. remove_resource_rights = ID
remove_scientist_role — Remove the scientist role from a character.The character can come from the scope or from an input parameter.
reserve_dynamic_country — reserves a dynamic country so it won't be recycled for civil wars. A dynamic country with no owned states must be reserved after it is creat…
set_air_oob — Registers an Order of Battle (OOB) file to be loaded for a country at game start, replacing any previously registered OOB (with key "air") o…
set_autonomy — makes autonomy of specified level and country.
set_border_war — starts a border war in a state with neighbouring state that also has border war
set_building_level — Sets specific level of a building construction for amount of levels in specified state or province
set_can_be_fired_in_advisor_role — Set the value (yes/no) to the "can be fired" flag in Advisor Role. When set to No, the advisor cannot be fired once hired.
set_grand_doctrine — Activate (unlock and assign) the specified grand doctrine
set_keyed_oob — Registers an Order of Battle (OOB) file to be loaded for a country at game start, replacing any previously registered OOB (with the given ke…
set_leader_description — changes the description of unit leader. no tooltip is generated
set_leader_name — changes the name of unit leader. no tooltip is generated
set_leader_portrait — changes the portrait of unit leader. no tooltip is generated
set_legitimacy — set_legitimacy = 10. Sets legitimacy on scope country to specified value. Value has to be 0-100.
set_major — Sets mandatory major country flag. A country can still become a major if their industry is strong enough and they are not a subject.
set_mio_design_team_assign_cost — Set the daily PP cost to assign to research in the military industrial organization in scope.
set_mio_design_team_change_cost — Set the XP cost to change MIO in equipment designer for the military industrial organization in scope.
set_mio_flag — Set flag in the military industrial organization in scope.
set_mio_funds — Set the amount of funds for the military industrial organization in scope.
set_mio_funds_gain_factor — Set the factor applied when gaining funds in the military industrial organization in scope.
set_mio_icon — Set the icon GFX for the military industrial organization in scope.
set_mio_name_key — Set the localisation key used to generate the name of the military industrial organization in scope.
set_mio_policy_cooldown — Set the base cooldown (in days) after attaching a policy in the MIO policy, found in country in scope with input policy
set_mio_policy_cost — Set the base cost (in PP) for attaching a policy in the MIO policy, found in country in scope with input policy
set_mio_research_bonus — Set the research bonus in the military industrial organization in scope.
set_mio_size_up_requirement_factor — Set to the factor applied to funds required to size up in the military industrial organization in scope.
set_mio_task_capacity — Set the maximum task capacity in the military industrial organization in scope.
set_nationality — Transfer from one country to another for the character in scope.
set_naval_oob — Registers an Order of Battle (OOB) file to be loaded for a country at game start, replacing any previously registered OOB (with key "naval")…
set_occupation_law — Sets the occupation law for an occupied country, occupied state, or the default occupation law of an occupying country.
set_occupation_law_where_available — See set_occupation_law for basic functionality. What differentiates this effect is that if the law is not available on the given level it wi…
set_oob — Registers an Order of Battle (OOB) file to be loaded for a country at game start, replacing any previously registered OOB (with no key) on t…
set_party_name — change partyname for an ideology in a country
set_popularities — set popularities for all ideologies in a country. If an ideology is not specified its popularity will be set to zero. The popularities speci…
set_portraits — set portraits for the target character. Syntax is similar to character files.
set_power_balance — sets active power balance for country or sets parameters of the already active power balance
start_border_war — start a border war between two states. Example:
start_civil_war — Given ideology starts a civil war in the country.
start_peace_conference — Starts a limited peace conference between the two countries if at war. Only the specified loser country and their potential subjects are inc…
start_resistance — starts resistance activity for a core country.
white_peace — Makes a white peace between the two countries if at war. ROOT is considered the winner while the target tag is considered the loser (which a…