维多利亚3
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“条件”的源代码
←
条件
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
==List of triggers== {{Computer generated}} {| class="wikitable sortable" width="100%" ! width="15%" | Name ! width="15%" | Description ! width="40%" | Usage ! width="10%" | Traits ! width="10%" | Supported Scopes ! width="10%" | Supported Targets |- | law_approved_by | Checks whether the scoped law is approved by an interest group | law_approved_by = ig_rural_folk | | law | |- | law_approved_by | Checks whether the scoped law is approved by an interest group | law_approved_by = ig_rural_folk | | law | |- |- | has_ideology | Check if scoped object has ideology | | | interest_group, character | |- |- | law_stance | Compares the stance of the scoped character or interest group about the specified law | | | interest_group, character | |- |- | check_area | Compares areas of object to another object | | | country, state, province, strategic_region, state_region, theater | |- |- | civil_war_progress | Compare progress of civil war | civil_war_progress > 50 | <, <=, =, !=, >, >= | civil_war | |- |- | civil_war_progress_gain | Checks how much progress the civil war is gaining each tick. | any_civil_war = { revolution_progress_gain > 0 } | <, <=, =, !=, >, >= | civil_war | |- |- | is_civil_war_type | Check if the scoped civil war is of a specific type | is_civil_war_type = revolution / secession | | civil_war | |- |- | is_revolutionary | Check if the country is revolutionary | | yes/no | country, interest_group | |- |- | has_discrimination_trait | Checks if scoped culture or religion has the given discrimination trait | has_trait = trait | | culture, religion | |- |- | culture_is_discriminated_in | Checks if a culture is discriminated against within the scope country | culture_is_discriminated_in = c:USA | country scope | culture | country |- |- | culture_secession_progress | Checks the culture's progress percentage towards secession in a country. 0 if no secession movement is active for the culture. | culture_secession_progress = { target = scope:example_country value > 0.5 } | <, <=, =, !=, >, >= | culture | |- |- | has_cultural_obsession | Checks if a culture has a certain goods as obsession | has_cultural_obsession = <goods key> | | culture | |- |- | has_culture_graphics | Checks if a culture has a certain culture_graphics | has_culture_graphics = <culture graphics key> | | culture | |- |- | has_homeland | Checks if scoped culture has a homeland in target state or state region | has_homeland = state/state region | | culture | |- |- | is_primary_culture_of | Checks if culture is any of a country's primary cultures | is_primary_culture_of = <country> | country scope | culture | country |- |- | shares_heritage_and_other_trait_with_any_primary_culture | Checks if culture shares any trait marked as 'heritage' and other 'non-heritage' trait with any of a country's primary cultures | shares_heritage_and_other_trait_with_any_primary_culture = <country> | country scope | culture | country |- |- | shares_heritage_trait_with_any_primary_culture | Checks if culture shares any trait marked as 'heritage' with any of a country's primary cultures | shares_heritage_trait_with_any_primary_culture = <country> | country scope | culture | country |- |- | shares_non_heritage_trait_with_any_primary_culture | Checks if culture shares any trait *other than* one marked as 'heritage' with any of a country's primary cultures | shares_non_heritage_trait_with_any_primary_culture = <country> | country scope | culture | country |- |- | shares_trait_with_any_primary_culture | Checks if the culture shares any trait with any of a country's primary cultures | shares_trait_with_any_primary_culture = <country> | country scope | culture | country |- |- | any_market_goods | Iterate through all active (market) goods in a market | any_market_goods = { <count=num/all> / <percent=fixed_point> <triggers> } | | market | market_goods |- |- | any_scope_country | Iterate through all countries with a presence in the supported scope (currently: only market scope) | any_scope_country = { <count=num/all> / <percent=fixed_point> <triggers> } | | market | country |- |- | market_has_goods_shortage | Check if market has a shortage on any of its building inputs | market_has_goods_shortage = yes/no | yes/no | market | |- |- | age | Compares the character age | age > 20 | <, <=, =, !=, >, >= | character | |- |- | commander_pm_usage | Checks how the ratio of Combat Units on the scoped Commander, on the target country's side, with the specified Production Method compares to the value | where X = country scope and Y = production method key and Z = value to compare to | <, <=, =, !=, >, >= | character | |- |- | commander_rank | Compares the commanders rank | commander_rank > 2 | <, <=, =, !=, >, >= | character | |- |- | experience_level | Compares the character experience level | experience_level > 1 | <, <=, =, !=, >, >= | character | |- |- | has_commander_order | Checks characters order | has_order = order key/order scope | | character | |- |- | has_culture | Checks characters culture | has_culture = culture scope or character scope | | character | |- |- | has_high_attrition | Checks if a Commander's attrition is higher than defined NORMAL_ATTRITION | has_high_attrition = bool | yes/no | character | |- |- | has_religion | Checks characters religion | has_religion = religion/character scope | | character | |- |- | has_role | Checks if character has the specified role | has_role = role | | character | |- |- | has_trait | Checks if character has specific trait | has_trait = trait | | character | |- |- | is_advancing_on_front | Checks if a commander is advancing on a front | is_advancing_on_front = front | front scope | character | front |- |- | is_attacker_in_battle | Checks if a Commander is attacker in a battle | is_attacker_in_battle = bool | yes/no | character | |- |- | is_busy | Check if character is busy | is_busy = bool | yes/no | character | |- |- | is_character_alive | Checks if the scoped character is alive | is_character_alive = bool | yes/no | character | |- |- | is_defender_in_battle | Checks if a Commander is defender in a battle | is_defender_in_battle = bool | yes/no | character | |- |- | is_female | Check if character is female | is_female = bool | yes/no | character | |- |- | is_heir | Checks whether the scoped character is an heir | is_heir = yes / no | yes/no | character | |- |- | is_in_battle | Checks if a Commander is engaged in battle | is_in_battle = bool | yes/no | character | |- |- | is_in_void | Check if character is in the void | is_in_void = bool | yes/no | character | |- |- | is_mobilized | Checks if the commander is mobilized | is_mobilized = bool | yes/no | character | |- |- | is_monarch | Checks if character is a monarch of a country with hereditary succession | is_monarch = bool | yes/no | character | |- |- | is_on_front | Checks is a character has been assigned to a Front and has arrived there | is_on_front = yes/no | yes/no | character | |- |- | is_repairing | Checks if an Admiral is unavailable and repairing after loosing a naval battle | is_repairing = bool | yes/no | character | |- |- | is_ruler | Checks if character is a ruler/head of state of a country | is_ruler = bool | yes/no | character | |- |- | is_traveling | Checks if the commander is traveling | is_traveling = bool | yes/no | character | |- |- | trait_value | Compares the character's total trait value | trait_value < experience_level | <, <=, =, !=, >, >= | character | |- |- | is_same_law_group_as | Checks if scope law type is in the same group as the target law type scope | is_same_law_group_as = <law type scope> | law_type scope | law_type | law_type |- |- | has_building | True if a state/market/state region/country has a building type | has_building = building | | country, state, market, state_region | |- |- | country_definition_has_culture | Checks if a culture is one of the cultures of the country definition | country_definition_has_culture = <culture> | culture scope | country_definition | culture |- |- | any_scope_pop | Iterate through all pops in a: country, state, interest group, culture | any_scope_pop = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, culture, state, interest_group | pop |- |- | is_trade_route_active | Checks if the scoped trade route is active | is_trade_route_active = yes/no | yes/no | trade_route | |- |- | is_trade_route_productive | Checks if the scoped trade route is productive | is_trade_route_productive = yes/no | yes/no | trade_route | |- |- | trade_route_needs_convoys_to_grow | Checks if the scoped trade route needs more convoys to be able to grow | trade_route_needs_convoys_to_grow = yes/no | yes/no | trade_route | |- |- | front_side_pm_usage | Checks how the ratio of Combat Units on the scoped Front, on the target country's side, with the specified Production Method compares to the value | where X = country scope and Y = production method key and Z = value to compare to | <, <=, =, !=, >, >= | front | |- |- | is_vulnerable_front | Whether the scoped Front doesn't have any Battalions nor Generals on target side, and the enemy has at least one General. | is_vulnerable_front = scope:example_country | country scope | front | country |- |- | any_scope_state | Iterate through all states including provinces from a: country, state_region, theater, or front | any_scope_state = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, strategic_region, state_region, theater, front | state |- |- | has_diplomatic_play | Check if strategic region has a diplomatic play or not | | yes/no | strategic_region | |- |- | is_state_religion | Checks if the religion is the state religion in a country | is_accepted_religion = <country> | country scope | religion | country |- |- | shares_heritage_trait_with_state_religion | Checks if the religion shares any trait marked as 'religion_group' with a country's religion | shares_heritage_trait_with_state_religion = <country> | country scope | religion | country |- |- | shares_trait_with_state_religion | Checks if the religion shares any trait with a country's state religion | shares_trait_with_state_religion = <country> | country scope | religion | country |- |- | any_scope_interest_marker | Iterate through all interest markers in a: country, strategic region | any_scope_interest_marker = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, strategic_region | interest_marker |- |- | any_neighbouring_state | Iterate through all states neighbouring a state region | any_neighbouring_state = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, state, strategic_region, state_region | state |- |- | active_lens | Checks if the specified lens is open | An interface trigger, can only be used in specific places | | none | |- |- | active_lens_option | Checks if the specified lens option is activated | An interface trigger, can only be used in specific places | | none | |- |- | add_to_temporary_list | Saves a temporary target for use during the trigger execution | In order to add every instance of a scope that fulfills certain conditions, use "count = all" while also placing this "effect" at the very end of the any-trigger (so that every condition is evaluated for every iteration). | | none | |- |- | all_false | true if all children are false (equivalent to NOR) | | | none | |- |- | always | Always the same value | always = yes | yes/no | none | |- |- | and | all inside trigger must be true | | | none | |- |- | any_character | Iterate through all characters globally | any_character = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | character |- |- | any_character_in_void | Iterate through characters in the void | any_character_in_void = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | character |- |- | any_country | Iterate through all countries globally | any_country = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | country |- |- | any_diplomatic_play | Iterate through all diplomatic plays globally | any_diplomatic_play = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | diplomatic_play |- |- | any_false | true if any child is false (equivalent to NAND) | | | none | |- |- | any_in_global_list | Iterate through all items in global list. list = name or variable = name | any_in_global_list = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | |- |- | any_in_list | Iterate through all items in list. list = name or variable = name | any_in_list = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | |- |- | any_in_local_list | Iterate through all items in local list. list = name or variable = name | any_in_local_list = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | |- |- | any_market | Iterate through all markets globally | any_market = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | market |- |- | any_state | Iterate through all states globally | any_state = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | state |- |- | any_state_region | Iterate through all state regions | any_state_region = { <count=num/all> / <percent=fixed_point> <triggers> } | | none | state_region |- |- | assert_if | Conditionally cause an assert during run time | assert_if = { limit = { X } text = Y }, where X is a trigger and Y is an optional string | | none | |- |- | assert_read | Conditionally cause an assert during read time | assert_read = X, where X is yes or the string to be printed in the assert | | none | |- |- | calc_true_if | Returns true if the specified number of sub-triggers return true | calc_true_if = { amount = 2 <trigger> <trigger> <trigger> } | | none | |- |- | can_start_tutorial_lesson | Can the specified tutorial lesson be started? | An interface trigger, can only be used in specific places | | none | |- |- | current_tooltip_depth | Returns the number of tooltips currently open on screen | An interface trigger, can only be used in specific places | <, <=, =, !=, >, >= | none | |- |- | custom_description | Wraps triggers that get a custom description instead of the auto-generated one | } | | none | |- |- | custom_tooltip | Replaces the tooltips for the enclosed triggers with a custom text | } | | none | |- |- | debug_log | Log whether the parent trigger succeeded or failed | | | none | |- |- | debug_log_details | Log whether the parent trigger succeeded or failed. Log which children succeeded or failed | | | none | |- |- | error_check | Checks an error in code that specifically uses the CErrorTable::CheckTrigger path, in general avoid this and just use normal script | | | none | |- |- | exists | Checks whether the specified socope target exists (check for not being the null object) | exists = from.owner.var:cool_var.mother | | none | |- |- | game_date | Compare to current game date | current_game_date = 1837.1.1 | <, <=, =, !=, >, >= | none | |- |- | global_variable_list_size | Checks the size of a variable list | Where Y is a script value or number | | none | |- |- | has_cosmetic_dlc | Does the client have this cosmetic DLC | An interface trigger, can only be used in specific places | | none | |- |- | has_game_rule | Is the given game rule setting enabled? | has_game_rule = faster_conversion | | none | |- |- | has_game_started | True if game has started | has_game_started = bool | yes/no | none | |- |- | has_gameplay_dlc | Does the host have this gameplay DLC | | | none | |- |- | has_global_variable | Checks whether the current scope has the specified variable set | has_variable = name | | none | |- |- | has_global_variable_list | Checks whether the current scope has the specified variable list set | has_variable_list = name | | none | |- |- | has_local_variable | Checks whether the current scope has the specified variable set | has_variable = name | | none | |- |- | has_local_variable_list | Checks whether the current scope has the specified variable list set | has_variable_list = name | | none | |- |- | has_map_interaction | Checks if the map interaction type is active | An interface trigger, can only be used in specific places | | none | |- |- | has_map_interaction_diplomatic_action | Checks if our current map interaction is a specific diplomatic action | An interface trigger, can only be used in specific places | | none | |- |- | has_map_interaction_export_goods | Checks if the specified lens option is to export the specified goods | An interface trigger, can only be used in specific places | | none | |- |- | has_map_interaction_import_goods | Checks if the specified lens option is to import the specified goods | An interface trigger, can only be used in specific places | | none | |- |- | has_reached_end_date | True if the end date (NDefines::NGame::END_DATE) has been reached | has_reached_end_date = yes | yes/no | none | |- |- | has_unification_candidate | Check if there is at least one unification candidate for country tag | has_country_unification_candidate = GER | | none | |- |- | has_variable | Checks whether the current scope has the specified variable set | has_variable = name | | none | |- |- | has_variable_list | Checks whether the current scope has the specified variable list set | has_variable_list = name | | none | |- |- | hidden_trigger | AndTrigger that doesn't generate tooltips for contents within | hidden_trigger = {} | | none | |- |- | is_building_type_expanded | Checks if the CProductionMethodsPanelEntry for a particular CBuildingType is expanded | An interface trigger, can only be used in specific places | | none | |- |- | is_game_paused | Checks if the game is paused | An interface trigger, can only be used in specific places | yes/no | none | |- |- | is_gamestate_tutorial_active | Is the gamestate tutorial active? See save_progress_in_gamestate in tutorial_lesson_chains documentation. | An interface trigger, can only be used in specific places | yes/no | none | |- |- | is_in_list | Checks if a target in in a list | | | none | |- |- | is_lens_open | Checks if a certain lens is open, specified as a lens key. Specify an optional named tab to check if this tab is open. | An interface trigger, can only be used in specific places | | none | |- |- | is_objective_completed | Is the objective completed for the country in scope? | is_objective_completed = yes | yes/no | none | |- |- | is_panel_open | Checks if a certain infopanel is open, specified as an event target (target) or as a string (panel_name). Specify an optional named tab (tab_name) to check if this tab is open. | An interface trigger, can only be used in specific places | | none | |- |- | is_popup_open | Checks if the specified popup panel is open | An interface trigger, can only be used in specific places | | none | |- |- | is_rightclick_menu_open | Checks if the specified rightclick menu is open | An interface trigger, can only be used in specific places | | none | |- |- | is_target_in_global_variable_list | Checks if a target is in a variable list | Where Y is an event target | | none | |- |- | is_target_in_local_variable_list | Checks if a target is in a variable list | Where Y is an event target | | none | |- |- | is_target_in_variable_list | Checks if a target is in a variable list | Where Y is an event target | | none | |- |- | is_tutorial_active | Is the tutorial active? | An interface trigger, can only be used in specific places | yes/no | none | |- |- | is_tutorial_lesson_active | Is this the current tutorial lesson? | An interface trigger, can only be used in specific places | | none | |- |- | is_tutorial_lesson_chain_completed | Has the tutorial lesson chain with the specified key been finished? | An interface trigger, can only be used in specific places | | none | |- |- | is_tutorial_lesson_completed | has the tutorial lesson with the specified name been finished? | An interface trigger, can only be used in specific places | | none | |- |- | is_tutorial_lesson_step_completed | Has the tutorial lesson step been finished? | An interface trigger, can only be used in specific places | | none | |- |- | list_size | Checks the size of a list | Where Y is a script value | <, <=, =, !=, >, >= | none | |- |- | local_variable_list_size | Checks the size of a variable list | Where Y is a script value or number | | none | |- |- | nand | a negated AND trigger | | | none | |- |- | nor | a negated OR trigger | | | none | |- |- | not | negates content of trigger | | | none | |- |- | or | at least one entry inside trigger must be true | | | none | |- |- | save_temporary_scope_as | Saves a temporary target for use during the trigger execution | | | none | |- |- | save_temporary_scope_value_as | Saves a numerical or bool value as an arbitrarily-named temporary target to be referenced later in the same effect | save_temporary_scope_value_as = { name = <string> value = x } | | none | |- |- | should_show_nudity | can nudity be shown? | An interface trigger, can only be used in specific places | yes/no | none | |- |- | switch | Switch on a trigger for the evaluation of another trigger with an optional fallback trigger. | fallback = { <triggers> } | | none | |- |- | trigger_else | Evaluates the triggers if the display_triggers of preceding 'trigger_if' or 'trigger_else_if' is not mettrigger_if = { limit = { <display_triggers> } <triggers> } | trigger_else = { <triggers> } | | none | |- |- | trigger_else_if | Evaluates the enclosed triggers if the display_triggers of the preceding `trigger_if` or `trigger_else_if` is not met and its own display_trigger of the limit is mettrigger_if = { limit = { <display_triggers> } <triggers> } | trigger_else_if = { limit = { <display_triggers> } <triggers> } | | none | |- |- | trigger_if | Evaluates the triggers if the display_triggers of the limit are met | trigger_if = { limit = { <display_triggers> } <triggers> } | | none | |- |- | variable_list_size | Checks the size of a variable list | Where Y is a script value or number | | none | |- |- | weighted_calc_true_if | Returns true if the sum of weights of fulfilled sub-triggers amount to the specified sum | weighted_calc_true_if = { amount = 10 5 = { <trigger> } 15 = { <trigger> } 7 = { <trigger> } } | | none | |- |- | year | Compares the current year of the game | year > 1850 | <, <=, =, !=, >, >= | none | |- |- | infrastructure | Compares the infrastructure value of a given state | infrastructure > 10 | <, <=, =, !=, >, >= | state, state_region | |- |- | infrastructure_usage | Compares the infrastructure usage value of a given state | infrastructure_usage > 10 | <, <=, =, !=, >, >= | state, state_region | |- |- | has_label | Check if the scope object has the specified label | has_label = label_key | | province | |- |- | has_terrain | Check if the province has the specified terrain type | has_terrain = terrain_key | | province | |- |- | is_province_land | Check if the province is on land | | yes/no | province | |- |- | is_interest_active | Is the interest marker active | is_interest_active = yes/no | yes/no | interest_marker | |- |- | aggressive_diplomatic_plays_permitted | True if country is independent or permitted to start their own Diplomatic Plays | aggressive_diplomatic_plays_permitted = bool | yes/no | country | |- |- | any_active_party | Iterate through all active political parties in a country | any_active_party = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | party |- |- | any_civil_war | Iterate through all civil wars related to the scoped country | any_civil_war = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | civil_war |- |- | any_in_hierarchy | Any country in current hierarchy, including current | any_in_hierarchy = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | any_law | Iterate through all laws in a country | any_law = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | law |- |- | any_overlord_or_above | Any country above current in hierarchy | any_overlord_or_above = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | any_political_movement | Iterate through all political movements in a country | any_political_movement = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | political_movement |- |- | any_potential_party | Iterate through all potential political parties in a country | any_potential_party = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | party |- |- | any_rival_country | Any country that is rival to the country in a scope | any_rival_country = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | any_scope_ally | Iterate through all allies to a: country | any_scope_ally = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | any_scope_cobelligerent | Iterate through all co-belligerents to a: country | any_scope_cobelligerent = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | any_scope_theater | Iterate through all theaters in a: country | any_scope_theater = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | theater |- |- | any_scope_violate_sovereignty_interested_parties | Iterate through all countries that would be interested if country in scope has their sovereignty violated | any_scope_violate_sovereignty_interested_parties = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | any_scope_violate_sovereignty_wars | Iterate through all relevant wars if target country had their sovereignty violated by scoped country | any_scope_violate_sovereignty_wars = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | war |- |- | any_scope_war | Iterate through all wars related to the scope | any_scope_war = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | war |- |- | any_subject_or_below | Any country below current in hierarchy | any_subject_or_below = { <count=num/all> / <percent=fixed_point> <triggers> } | | country | country |- |- | approaching_bureaucracy_shortage | Check if Institutions in the country will incur a Bureaucracy shortage eventually | | yes/no | country | |- |- | arable_land_country | Compare arable land in *all* states | arable_land_country > 10 | <, <=, =, !=, >, >= | country | |- |- | army_reserves | Compare the amount of Army Reserves | | <, <=, =, !=, >, >= | country | |- |- | authority | Compares the available authority of the scoped country | | <, <=, =, !=, >, >= | country | |- |- | average_country_infrastructure | Check average infrastructure in all states owned by scope country | average_country_infrastructure = 3 | <, <=, =, !=, >, >= | country | |- |- | average_incorporated_country_infrastructure | Check average infrastructure in incorporated states owned by the scope country | average_incorporated_country_infrastructure = 3 | <, <=, =, !=, >, >= | country | |- |- | bureaucracy | Compares the available bureaucracy of the scoped country | | <, <=, =, !=, >, >= | country | |- |- | can_afford_diplomatic_action | Checks if the country in scope can afford the Influence for the specified diplomatic action (pact or ongoing) | Where X = country and Y = diplomatic action type | | country | |- |- | can_establish_any_export_route | Check if a country can establish any export routes | can_establish_any_export_route = <goods key/scope> | goods scope | country | goods |- |- | can_establish_any_import_route | Check if a country can establish any import routes | can_establish_any_import_route = <goods key/scope> | goods scope | country | goods |- |- | can_form_nation | Check if the target country is able to potentially form a nation | can_form_nation = <tag> | | country | |- |- | can_have_as_subject | Checks if a country can have another country as a particular type of subject | Where X = country and Y = subject type | | country | |- |- | can_have_subjects | Check if the country is able to have subjects of it sown | | yes/no | country | |- |- | can_research | True if a country can research an technology | can_research = technology | | country | |- |- | can_take_on_scaled_debt | Checks if scoped country can take on a certain amount of scaled debt from another country | Where X = country and Y = decimal value | | country | |- |- | construction_queue_duration | Compares the predicted duration in weeks of the total number of building projects in the construction queue | | <, <=, =, !=, >, >= | country | |- |- | construction_queue_num_queued_levels | Compares the number of building levels in the construction queue | | <, <=, =, !=, >, >= | country | |- |- | country_has_primary_culture | Checks if a culture is one of the primary cultures in the country | country_has_primary_culture = <culture> | culture scope | country | culture |- |- | country_has_state_religion | Checks if a religion is the state religion in the country | country_has_accepted_religion = <religion> | religion scope | country | religion |- |- | country_or_subject_owns_entire_state_region | Checks whether the scoped country or any of its subjects owns the entire specified state region | country_or_subject_owns_entire_state_region = key | | country | |- |- | country_pm_usage | Checks how the ratio of Combat Units (of the same type) on the scoped Country with the specified Production Method compares to the value | where X = country scope and Y = production method key and Z = value to compare to | <, <=, =, !=, >, >= | country | |- |- | country_rank | Compares a Country's Power Ranking | country_rank < rank_value:major_power | <, <=, =, !=, >, >= | country | |- |- | country_tier | Compare tier of country tag | country_tier = x | | country | |- |- | enacting_any_law | Checks if you're enacting any law. | enacting_any_law = bool | yes/no | country | |- |- | expanding_institution | Checks if the institution is expanding | expanding_institution = <scope/key> | | country | |- |- | global_country_ranking | Compares a Country's Power Ranking (position) | global_country_ranking > 42 | <, <=, =, !=, >, >= | country | |- |- | gold_reserves | Does the country have the required gold reserves | gold_reserves > 500 | <, <=, =, !=, >, >= | country | |- |- | gold_reserves_limit | Compares the country's gold reserves limit | gold_reserves > gold_reserves_limit | <, <=, =, !=, >, >= | country | |- |- | government_legitimacy | Compare Legitimacy | | <, <=, =, !=, >, >= | country | |- |- | has_active_peace_deal | True if the country is in a war where there is a proposed peace deal | has_active_peace_deal = bool | yes/no | country | |- |- | has_any_secessionists_broken_out | Check if the country has secessionists broken out | | yes/no | country | |- |- | has_any_secessionists_growing | Check if the country has any secessionists growing | | yes/no | country | |- |- | has_any_secessionists_possible | Check if the country has any new secessionists possible | | yes/no | country | |- |- | has_attitude | Checks if scoped country has a particular attitude towards another country | Where X = country and Y = attitude type | | country | |- |- | has_claim | Checks if country in scope has a claim on state/state region | has_claim = <scope> | | country | |- |- | has_completed_subgoal | Checks if the scoped country has completed a certain subgoal | has_completed_subgoal = subgoal_key | | country | |- |- | has_consumption_tax | Checks if the country is taxing the target good. | c:FRA = { has_consumption_tax = g:grain } | goods scope | country | goods |- |- | has_convoys_being_sunk | Check if the country has convoys being sunk through convoy raiding | | yes/no | country | |- |- | has_decreasing_interests | Checks if the country has decreasing interest levels | | yes/no | country | |- |- | has_diplomatic_pact | Checks if two countries have an active diplomatic pact of type | Where X = country and Y = diplomatic action type, is_initiator is optional parameter that checks to see if scope country is the original initiator/target of the pact | | country | |- |- | has_diplomatic_relevance | Checks if target country is diplomatically relevant for scope country | has_diplomatic_relevance = <scope> | country scope | country | country |- |- | has_diplomats_expelled | Checks if country in scope has recently expelled diplomats of event target | has_diplomats_expelled = country | country scope | country | country |- |- | has_export_priority_tariffs | Checks if scoped country has Import Prioritized tariffs for a good | has_export_priority_tariffs = <key/scope> | goods scope | country | goods |- |- | has_free_government_reform | Check if the country has a free (of radicals) government reform | has_free_government_reform = <yes/no> | yes/no | country | |- |- | has_global_highest_gdp | Checks if the scoped country has the highest GDP | has_global_highest_gdp = yes/no | yes/no | country | |- |- | has_global_highest_innovation | Checks if the scoped country has the highest weekly innovation | has_global_highest_innovation = yes/no | yes/no | country | |- |- | has_government_clout | Does the country's government have the necessary total Clout | | <, <=, =, !=, >, >= | country | |- |- | has_government_type | Is the country's government type as specified | has_government_type = key | | country | |- |- | has_healthy_economy | Check if the country has a healthy economy | | yes/no | country | |- |- | has_import_priority_tariffs | Checks if scoped country has Import Prioritized tariffs for a good | has_import_priority_tariffs = <key/scope> | goods scope | country | goods |- |- | has_institution | Checks if scope country has a particular type of institution | has_institution = <scope/key> | | country | |- |- | has_insurrectionary_interest_groups | Check if the country has Interest Groups that are insurrectionary | | yes/no | country | |- |- | has_interest_marker_in_region | True if scope country has an interest marker in target region | has_interest_marker_in_region = region scope/tag | | country | |- |- | has_journal_entry | Check if the country has at least one active journal entry of the specified type | has_journal_entry = key | | country | |- |- | has_law | Checks if a country has a certain Law active | | law_type scope | country | law_type |- |- | has_no_priority_tariffs | Checks if scoped country has Unprioritized tariffs for a good | has_no_priority_tariffs = <key/scope> | goods scope | country | goods |- |- | has_objective | Checks if the scoped country has a certain objective type | has_objective = objective_type_key | | country | |- |- | has_overlapping_interests | Checks if country in scope has an overlapping interest marker with any of target country's interests | has_overlapping_interests = <scope> | country scope | country | country |- |- | has_researchable_technology | Check if the country has any researchable technology left. | | yes/no | country | |- |- | has_revolution | Check if the country has revolutionary uprising | | yes/no | country | |- |- | has_ruling_interest_group | Does the country's government include the named IG | | | country | |- |- | has_ruling_interest_group_count | Does the country's government consist of the specified number of IGs | | <, <=, =, !=, >, >= | country | |- |- | has_secret_goal | Checks if scoped country has a particular secret goal towards another country | Where X = country and Y = secret_goal type | | country | |- |- | has_state_in_state_region | Check if country has a state in the state region | has_state_in_state_region = key | | country | |- |- | has_strategic_adjacency | Checks if country in scope has a strategic adjacency (direct/coastal/wargoal adjacency) to target state/country | has_strategic_adjacency = <scope> | | country | |- |- | has_strategy | Checks if country in scope has a particular AI strategy | has_strategy = <key> | | country | |- |- | has_subject_relation_with | Checks if country in scope is subject or overlord of event target | has_subject_relation_with = country | country scope | country | country |- |- | has_technology_progress | Does the country have the required progress for an technology | Where X is an technology and Y is a fixed point | <, <=, =, !=, >, >= | country | |- |- | has_technology_researched | True if a country has researched an technology | has_technology_researched = <scope/key> | | country | |- |- | has_treaty_port_in_country | Checks if the scoped country has a treaty port in target country | c:POR = { has_treaty_port_in_country = c:CHI } | country scope | country | country |- |- | has_truce_with | Check if a country has a truce with a different target country | has_truce_with = c:GBR | country scope | country | country |- |- | has_war_with | Checks if country in scope is at war with event target | has_war_with = country | country scope | country | country |- |- | has_wasted_construction | Check if country is wasting any of its produced construction. | | yes/no | country | |- |- | highest_secession_progress | Compares the highest secession progress of any secession movement in a given country | highest_secession_progress > 0.7 | <, <=, =, !=, >, >= | country | |- |- | in_default | Check if the country is currently in default | | yes/no | country | |- |- | in_election_campaign | Check if the country is in election campaign period | in_election_campaign = <yes/no> | yes/no | country | |- |- | influence | Compares the available influence of the scoped country | | <, <=, =, !=, >, >= | country | |- |- | institution_investment_level | Compares the level of investment in an institution | institution_investment_level = { institution = <key> value = <comparator value> } | <, <=, =, !=, >, >= | country | |- |- | investment_pool | Compares the money in the investment pool of a given country | investment_pool > 1000 | <, <=, =, !=, >, >= | country | |- |- | is_adjacent | Checks if country in scope is adjacent to a target country | is_adjacent = <scope> | country scope | country | country |- |- | is_ai | True if country scope is controlled by an AI | is_ai = bool | yes/no | country | |- |- | is_at_war | Check if the country is at war | | yes/no | country | |- |- | is_banning_goods | Check if a country is banning a good | is_banning_goods = <goods key/scope> | | country | |- |- | is_construction_paused | Check if construction in a state is paused. | | yes/no | country | |- |- | is_country_alive | Checks if the scoped country is alive, i.e. if it has at least one state on the map and can be interacted with | is_country_alive = yes/no | yes/no | country | |- |- | is_country_type | Checks the countrys type | is_country_type = country type | | country | |- |- | is_diplomatic_play_committed_participant | True if country is a committed participant of any diplomatic play | is_diplomatic_play_participant = bool | yes/no | country | |- |- | is_diplomatic_play_enemy_of | Checks if country in scope is in a diplomatic play against event target | is_diplomatic_play_enemy_of = country | country scope | country | country |- |- | is_diplomatic_play_initiator | True if country is the initiator of any diplomatic play | is_diplomatic_play_initiator = bool | yes/no | country | |- |- | is_diplomatic_play_target | True if country is the target of any diplomatic play | is_diplomatic_play_target = bool | yes/no | country | |- |- | is_diplomatic_play_undecided_participant | True if country is a undecided participant of any diplomatic play | is_diplomatic_play_participant = bool | yes/no | country | |- |- | is_direct_subject_of | Checks if country in scope is a direct subject (not subject-of-subject) of event target | is_subject_of = country | country scope | country | country |- |- | is_enacting_law | Checks if the scoped country is enacting a specific law type. | is_enacting_law = law_type:law_conscription | law_type scope | country | law_type |- |- | is_expanding_institution | Are you expanding an institution | is_expanding_institution = <yes>/<no> | yes/no | country | |- |- | is_home_country_for | Checks if a country is the home country for target country | | country scope | country | country |- |- | is_in_customs_union | Check if the country is part of a customs union | | yes/no | country | |- |- | is_in_war_together | Checks if country in scope is in war on the same side as event target | is_in_war_together = country | country scope | country | country |- |- | is_junior_in_customs_union | True if country is a junior country in a customs custom | is_junior_in_customs_union = bool | yes/no | country | |- |- | is_local_player | True if country scope is a player | is_local_player = bool | yes/no | country | |- |- | is_losing_power_rank | Check if the country is in the process of dropping in power ranking | | yes/no | country | |- |- | is_owed_obligation_by | Checks if the scoped country is owed a obligation by the target country | is_owed_obligation_by = c:FRA | country scope | country | country |- |- | is_player | True if country scope is a player | is_player = bool | yes/no | country | |- |- | is_researching_technology | Check if the country is actively researching a tech | is_researching_technology = <scope/key/any> | | country | |- |- | is_researching_technology_category | Check if the country is actively researching a tech category | is_researching_technology_category = <key/any> | | country | |- |- | is_secessionist | Check if the country is secessionist | | yes/no | country | |- |- | is_subject | True if country is a subject | is_subject = bool | yes/no | country | |- |- | is_subject_of | Checks if country in scope is subject (or subject-of-subject) of event target | is_subject_of = country | country scope | country | country |- |- | is_subject_type | Checks the country's subject type | is_subject_type = subject type | | country | |- |- | is_supporting_unification_candidate | Check if scope country is supporting a unification candidate for a specific country formation | is_supporting_unification_candidate = { who = c:PRU country_formation = GER } | | country | |- |- | is_taxing_goods | Check if a country is taxing a good | has_embargo = <goods key/scope> | | country | |- |- | is_unification_candidate | Check if scope country is a unification candidate for country tag | has_country_unification_candidate = GER | | country | |- |- | is_violating_sovereignty_of | Check if the scoped country is violating the sovereignty of a target country | is_violating_sovereignty_of = c:GBR | country scope | country | country |- |- | isolated_states | Compare number of Isolated States | | <, <=, =, !=, >, >= | country | |- |- | leading_producer_of | Checks if country is producing the most of a certain good | leading_producer_of = g:luxury_clothes | goods scope | country | goods |- |- | leads_customs_union | Check if any other country is part of this country's customs union | leads_customs_union = bool | yes/no | country | |- |- | max_num_declared_interests | Compares the maximum number of declared interests of scoped country | max_num_declared_interests = <value> | <, <=, =, !=, >, >= | country | |- |- | navy_reserves | Compare the amount of Navy Reserves | | <, <=, =, !=, >, >= | country | |- |- | num_declared_interests | Compares the number of declared interests of scoped country | num_declared_interests = <value> | <, <=, =, !=, >, >= | country | |- |- | num_taxed_goods | Compares the number of consumption taxed goods of scoped country | num_taxed_goods = <value> | <, <=, =, !=, >, >= | country | |- |- | owes_obligation_to | Checks if country in scope owes a obligation to event target | owes_obligation_to = country | country scope | country | country |- |- | owns_entire_state_region | Check if country owns entire region | owns_entire_state_region = key | | country | |- |- | owns_treaty_port_in | Does country own the treaty port in assigned state region | owns_treaty_port_in = key | | country | |- |- | pop_type_percent_country | Checks whether the scoped country has <percent> of its population belonging to the specified pop type | } | <, <=, =, !=, >, >= | country | |- |- | prestige | Compare prestige | | <, <=, =, !=, >, >= | country | |- |- | produced_authority | Compares the produced authority of the scoped country | | <, <=, =, !=, >, >= | country | |- |- | produced_bureaucracy | Compares the produced bureaucracy of the scoped country | | <, <=, =, !=, >, >= | country | |- |- | produced_influence | Compares the produced influence of the scoped country | | <, <=, =, !=, >, >= | country | |- |- | scaled_debt | Compare value to a country's debt relative to debt ceiling | scaled_debt = value | <, <=, =, !=, >, >= | country | |- |- | should_set_wargoal | Check if the country is lacking a primary wargoal in any diplomatic play it is part of | | yes/no | country | |- |- | shrinking_institution | Checks if the institution is shrinking | expanding_institution = <scope/key> | | country | |- |- | supply_network_strength | Compares the country's supply network strength (can exceed 1) | supply_network_strength > 1.1 | <, <=, =, !=, >, >= | country | |- |- | taking_loans | Check if the country is currently running a weekly deficit and taking loans to compensate | | yes/no | country | |- |- | tax_level | Compares the overall tax level of scoped country | tax_level = <level> | <, <=, =, !=, >, >= | country | |- |- | tax_level_value | Compares the overall tax level integer value of scoped country | income_tax_level_value = <level> | <, <=, =, !=, >, >= | country | |- |- | total_population | Compares the total population of a given country | total_population > 100000 | <, <=, =, !=, >, >= | country | |- |- | weekly_net_fixed_income | Does the country have this amount of weekly income after fixed expenses | weekly_net_income > 1000 | <, <=, =, !=, >, >= | country | |- |- | culture_accepted | Checks if pop's culture is accepted | culture_accepted = bool | yes/no | pop | |- |- | has_ongoing_assimilation | Checks if the scoped pop has ongoing cultural assimilation | has_ongoing_assimilation = yes | yes/no | pop | |- |- | has_ongoing_conversion | Checks if the scoped pop has ongoing religious conversion | has_ongoing_conversion = yes | yes/no | pop | |- |- | has_pop_culture | Checks if pop has specific culture | has_pop_culture = culture | | pop | |- |- | has_pop_religion | Checks if pop has specific religion | has_religion = religion | | pop | |- |- | has_state_religion | Check if the Pop has the state religion | | yes/no | pop | |- |- | is_employed | Check if the pop is employed | | yes/no | pop | |- |- | is_pop_type | Checks if pop is of specified type | is_pop_type = poptype | | pop | |- |- | pop_employment_building | Checks if pop is working in a specific building type | pop_employment_building = building | | pop | |- |- | pop_employment_building_group | Checks if pop is working in a specific building type | pop_employment_building = building | | pop | |- |- | pop_has_primary_culture | Checks if pop's culture is primary | pop_has_primary_culture = bool | yes/no | pop | |- |- | pop_is_discriminated | Checks if pop is discriminated against | pop_is_discriminated = bool | yes/no | pop | |- |- | quality_of_life | Compares the quality of life of the given pop | quality_of_life > 10 | <, <=, =, !=, >, >= | pop | |- |- | religion_accepted | Checks if pop's religion is accepted | religion_accepted = bool | yes/no | pop | |- |- | standard_of_living | Compares the standard of living of a given pop | standard_of_living > 10 | <, <=, =, !=, >, >= | pop | |- |- | strata | Checks the strata of the scoped pop | strata >= rich/middle/poor | <, <=, =, !=, >, >= | pop | |- |- | wealth | Checks if a pop has a certain amount of wealth | wealth = value | <, <=, =, !=, >, >= | pop | |- |- | battle_side_pm_usage | Checks how the ratio of Combat Units on the scoped Battle, on the target country's side, with the specified Production Method compares to the value | where X = country scope and Y = production method key and Z = value to compare to | <, <=, =, !=, >, >= | battle | |- |- | building_has_goods_shortage | Check if building has a shortage of any of its inputs | building_has_goods_shortage = yes/no | yes/no | building | |- |- | cash_reserves_available | Evaluates a production building's available cash reserves | cash_reserves_available > 25000 | <, <=, =, !=, >, >= | building | |- |- | cash_reserves_ratio | Evaluates a production building's available cash reserve ratio compared to its maximum | cash_reserves_ratio > 0.2 | <, <=, =, !=, >, >= | building | |- |- | earnings | Compare a building's current annual earnings per employee | earnings >= 10 | <, <=, =, !=, >, >= | building | |- |- | has_active_production_method | Checks if a scoped building has the specified production method active | has_active_production_method = key | | building | |- |- | has_employee_slots_filled | Checks whether the amount of employees of a certain poptype are above or below a given percentage of the total amount the building can currently hire. I.e. if a building is at 80% (given as 0.8) of its current hiring capacity for Shopkeepers, for example. | Where X is a pop type and Y is a fixed point | | building | |- |- | has_failed_hires | Checks if a building failed to hire someone last week | has_failed_hires = yes/no | yes/no | building | |- |- | is_buildable | Check if a building is buildable = yes (default) | is_buildable = yes/no | yes/no | building | |- |- | is_building_group | True if scope is a building of given group | building_group = building | | building | |- |- | is_building_type | True if scope is a building of given type | is_building_type = building | | building | |- |- | is_government_funded | Check if a building is is_government_funded | is_government_funded = yes/no | yes/no | building | |- |- | is_subsidized | Check if a building is being subsidized | is_subsidized = yes/no | yes/no | building | |- |- | is_subsistence_building | Check if a building is a subsistence building | is_subsistence_building = yes/no | yes/no | building | |- |- | is_under_construction | Checks if building is under construction | is_under_construction = bool | yes/no | building | |- |- | occupancy | Evaluates a building's current occupancy | occupancy < 0.25 | <, <=, =, !=, >, >= | building | |- |- | weekly_profit | Checks whether the profits the building has made this week are above or below a given value | weekly_profit >= 20.0 | <, <=, =, !=, >, >= | building | |- |- | is_tradeable | Check if a goods or market goods is tradeable | is_tradeable = yes/no | yes/no | market_goods, goods | |- |- | is_diplomatic_pact_in_danger | Checks if diplomatic pact is in danger of breaking | is_diplomatic_pact_in_danger = yes | yes/no | diplomatic_pact | |- |- | any_scope_front | Iterate through all Fronts related to the scoped War | any_scope_front = { <count=num/all> / <percent=fixed_point> <triggers> } | | war | front |- |- | has_war_exhaustion | Checks the war exhaustion of the target country in the scoped war | has_war_exhaustion = { target = c:GBR value > 50 } | <, <=, =, !=, >, >= | war | |- |- | has_war_goal | Checks if war has a certain war goal type | has_war_goal = return_state | | war | |- |- | has_war_support | Checks the war support of the target country in the scoped war | has_war_support = { target = c:GBR value > 50 } | <, <=, =, !=, >, >= | war | |- |- | is_war_participant | Check if the target country is participant in a war | | country scope | war | country |- |- | is_warleader | Check if country is warleader in war | | country scope | war | country |- |- | num_casualties | Checks the number of total casualties in the scoped war | num_casualties >= 5000 | <, <=, =, !=, >, >= | war | |- |- | num_country_casualties | checks the number of casualties for a specific country in the scoped war | num_country_casualties = { target = country value < 5000 } | <, <=, =, !=, >, >= | war | |- |- | num_country_dead | checks the number of dead for a specific country in the scoped war | num_country_dead = { target = country value < 5000 } | <, <=, =, !=, >, >= | war | |- |- | num_country_wounded | checks the number of wounded for a specific country in the scoped war | num_country_wounded = { target = country value < 5000 } | <, <=, =, !=, >, >= | war | |- |- | num_dead | Checks the number of total dead in the scoped war | num_dead >= 5000 | <, <=, =, !=, >, >= | war | |- |- | num_wounded | Checks the number of total wounded in the scoped war | num_wounded >= 5000 | <, <=, =, !=, >, >= | war | |- |- | has_active_building | True if a state has an active building type | has_active_building = building | | state, market | |- |- | has_modifier | Check if a supported scope has a certain timed modifier | has_modifier = <key> | | country, state, building, interest_group, character, institution, front, political_movement | |- |- | any_trade_route | Iterate through all trade routes in a: market, country, marketgoods | any_trade_route = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, market, market_goods | trade_route |- |- | has_port | Check if state has at least one port | has_port = yes/no | yes/no | country, state, market | |- |- | any_supporting_interest_group | Iterate through all interest groups supporting a political movement | any_supporting_interest_group = { <count=num/all> / <percent=fixed_point> <triggers> } | | political_movement | interest_group |- |- | is_political_movement_type | Check if a political movement is a particular type | is_political_movement_type = movement_to_enact | | political_movement | |- |- | political_movement_radicalism | Compare radicalism of political movement | political_movement_radicalism > 50 | <, <=, =, !=, >, >= | political_movement | |- |- | political_movement_support | Compare support of political movement | political_movement_support > 50 | <, <=, =, !=, >, >= | political_movement | |- |- | any_primary_culture | Primary cultures of the scoped country or country definition | any_primary_culture = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, state, country_definition | culture |- |- | has_party | True if IG scope has a party | has_party = bool | yes/no | interest_group | |- |- | ig_approval | Compare to scoped interest group approval | Usages: ig_approval > 2, ig_approval < happy | <, <=, =, !=, >, >= | interest_group | |- |- | ig_clout | Compare to scoped interest group's clout | ig_clout >= 0.2 | <, <=, =, !=, >, >= | interest_group | |- |- | ig_government_power_share | Compare to scoped interest group's political strength divided by total government political strength | ig_government_power_share >= 0.5 | <, <=, =, !=, >, >= | interest_group | |- |- | interest_group_population | Compares population number in an interest group | interest_group_population > 1000 | <, <=, =, !=, >, >= | interest_group | |- |- | interest_group_population_percentage | Compares percentage of population in an interest group | interest_group_population_percentage > 0.2 | <, <=, =, !=, >, >= | interest_group | |- |- | is_being_bolstered | Check if scoped ig is being bolstered | is_being_bolstered = <yes>/<no> | yes/no | interest_group | |- |- | is_being_suppressed | Check if scoped ig is being suppressed | is_being_suppressed = <yes>/<no> | yes/no | interest_group | |- |- | is_in_government | True if IG scope is in the government | is_in_government = bool | yes/no | interest_group | |- |- | is_insurrectionary | True if IG scope is contributing to a brewing revolution | is_insurrectionary = bool | yes/no | interest_group | |- |- | is_interest_group_type | Checks if Interest Group is of a certain type | is_interest_group_type = x | | interest_group | |- |- | is_marginal | True if IG scope is marginal | is_marginal = bool | yes/no | interest_group | |- |- | is_member_of_party | Checks if Interest Group is a member of target party | is_member_of_party = <party> | party scope | interest_group | party |- |- | is_powerful | True if IG scope is influential | is_powerful = bool | yes/no | interest_group | |- |- | is_same_interest_group_type | Checks if Interest Group is of the same IG type as target | is_interest_group_type = scope:neighbor_leading_ig | interest_group scope | interest_group | interest_group |- |- | most_powerful_strata | Compares an interest groups most powerful strata | | | interest_group | |- |- | any_combat_units | Iterate through all combat units of input scope | any_combat_units = { <count=num/all> / <percent=fixed_point> <triggers> } | | building, character | combat_unit |- |- | election_momentum | Compare election momentum of the scoped party against a value | election_momentum = 0.75 | <, <=, =, !=, >, >= | party | |- |- | has_party_member | Checks if the target interest group is a member of scope party | has_party_member = <ig> | interest_group scope | party | interest_group |- |- | is_party | Checks if the target party is same as scoped party. Will only work on exact same party object, meaning you can't compare across countries. | is_party = <party> | party scope | party | party |- |- | is_party_type | Checks if the scoped party's type is the specified one | is_party_type = party_type_database_key | | party | |- |- | is_same_party_type | Checks if Party is of the same party type as target | is_same_party_type_as = scope:neighboring_party | party scope | party | party |- |- | is_land_theater | Checks if a theater is a land theater | is_land_theater = bool | yes/no | theater | |- |- | arable_land | Check arable land in state | arable_land > 10 | <, <=, =, !=, >, >= | state | |- |- | available_jobs | Checks the state's number of available jobs in non-subsistence buildings | available_jobs > 10000 | <, <=, =, !=, >, >= | state | |- |- | can_activate_production_method | Checks if the building of a particular type in scoped state is able to active the specified production method | can_activate_production_method = { building_type = <key> production_method = <key> } | | state | |- |- | devastation | Compares the devastation of a given state | devastation > 5 | <, <=, =, !=, >, >= | state | |- |- | free_arable_land | Check free arable land in state | free_arable_land > 0 | <, <=, =, !=, >, >= | state | |- |- | has_assimilating_pops | Check if a state has any pops currently in the process of assimilating. | | yes/no | state | |- |- | has_claim_by | Checks if a state is claimed by a country | } | country scope | state | country |- |- | has_converting_pops | Check if a state has any pops currently in the process of converting. | | yes/no | state | |- |- | has_decree | Checks if scope state has a particular type of decree | has_decree = <key> | | state | |- |- | has_potential_resource | Checks if the specificed building group is allowed in the scoped state. Used to check if a state can potentially produce a resource | has_potential_resource = bg_rubber_plantations | | state | |- |- | has_state_trait | Checks if scoped state region has a certain trait | has_state_trait = key | | state | |- |- | ig_state_pol_strength_share | True if IG in scope has scripted political strength in state | } | <, <=, =, !=, >, >= | state | |- |- | incorporation_progress | Check incorporation progress in state | incorporation_progress > 0.25 | <, <=, =, !=, >, >= | state | |- |- | is_capital | Check if state is the capital of the owner = bool | | yes/no | state | |- |- | is_coastal | Check if state borders a (non-impassable) sea region | is_coastal = yes/no | yes/no | state | |- |- | is_homeland_of_country_cultures | Checks if state is homeland of any of the target country's primary cultures | is_homeland_of_country_cultures = <country> | country scope | state | country |- |- | is_in_revolt | Check if a state has any chance to split off into a revolutionary or seceding country | is_in_revolt = yes/no. | yes/no | state | |- |- | is_incorporated | Check if state is incorporated = bool | | yes/no | state | |- |- | is_isolated_from_market | Check if a state is isolated from its market | | yes/no | state | |- |- | is_largest_state_in_region | Check if state is the largest in the state region = bool | | yes/no | state | |- |- | is_mass_migration_target | Mass migration target is state. | any_state = { limit = { owner = ROOT is_mass_migration_target = yes } } | yes/no | state | |- |- | is_production_method_active | Checks if the building of a particular type in scoped state has the specified production method active | is_production_method_active = { building_type = <key> production_method = <key> } | | state | |- |- | is_sea_adjacent | Check if state borders a sea region (regular or impassable) | is_sea_adjacent = yes/no | yes/no | state | |- |- | is_slave_state | Check if a state employs or has the potential to employ slaves. | | yes/no | state | |- |- | is_split_state | Checks if the scoped state is a split state. | scope:example_state = { is_split_state = yes } | yes/no | state | |- |- | is_target_of_wargoal | Checks if state is target of any wargoal in wars involving a specific country | has_war_goal = <country> | country scope | state | country |- |- | is_treaty_port | Checks if the scoped state is a treaty port | is_treaty_port = yes/no | yes/no | state | |- |- | is_under_colonization | Check if state is under colonization | is_under_colonization = yes/no | yes/no | state | |- |- | loyalty | Compares the loyalty in a given state, i.e. the fraction of Loyalists | loyalty > 0.2 | <, <=, =, !=, >, >= | state | |- |- | market_access | Checks the market access of the scoped state | market_access > 0.8 | <, <=, =, !=, >, >= | state | |- |- | pollution_generation | Compare total pollution generation across all buildings in the state | | <, <=, =, !=, >, >= | state | |- |- | relative_infrastructure | Compares the infrastructure to infrastructure usage of a state | relative_infrastructure > 1.1 | <, <=, =, !=, >, >= | state | |- |- | state_has_goods_shortage | Check if state has a shortage on any of its building inputs | state_has_goods_shortage = yes/no | yes/no | state | |- |- | state_population | Checks the total population of the scoped state | state_population <= 250000 | <, <=, =, !=, >, >= | state | |- |- | state_unemployment_rate | Checks the unemployment rate (percentage) in the scoped state | state_unemployment_rate > 0.1 | <, <=, =, !=, >, >= | state | |- |- | tax_capacity | Checks the taxation capacity of the scoped state | tax_capacity > 50 | <, <=, =, !=, >, >= | state | |- |- | tax_capacity_usage | Checks the taxation capacity usage of the scoped state | tax_capacity_usage > 50 | <, <=, =, !=, >, >= | state | |- |- | total_urbanization | Compares the total urbanization of a given state/ntotal_urbanization > 5 | | <, <=, =, !=, >, >= | state | |- |- | turmoil | Compares the turmoil in a given state, i.e. the fraction of Radicals | turmoil > 0.2 | <, <=, =, !=, >, >= | state | |- |- | is_consumed_by_government_buildings | Check if the market goods is instrumental in running the bureaucratic machine | | yes/no | market_goods | |- |- | is_consumed_by_military_buildings | Check if the goods is instrumental in running the war machine | | yes/no | market_goods | |- |- | market_goods_buy_orders | Checks if market goods has the specified number of buy orders | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_cheaper | Checks if market goods is at least the specified percentage cheaper than base price | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_consumption | Checks if market goods has the specified number of total consumption | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_delta | Checks if market has the specified goods delta (production + imports) | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_exports | Checks if market goods has the specified number of exports | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_has_goods_shortage | Check if market goods has a shortage in the market | market_goods_has_goods_shortage = yes/no | yes/no | market_goods | |- |- | market_goods_imports | Checks if market goods has the specified number of imports | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_pricier | Checks if market goods is at least the specified percentage more expensive than base price | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_production | Checks if market goods has the specified number of total production | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | market_goods_sell_orders | Checks if market goods has the specified number of sell orders | Where X = fixed point | <, <=, =, !=, >, >= | market_goods | |- |- | contains_capital_of | Checks if scoped state region contains the capital of target tag | contains_capital_of = country scope/tag | | state_region | |- |- | is_homeland | Checks if scoped state region is a homeland of target culture | is_homeland = culture scope/name | | state_region | |- |- | is_state_region_land | Check if the state region is on land | | yes/no | state_region | |- |- | pollution_amount | Compare state region pollution | | <, <=, =, !=, >, >= | state_region | |- |- | remaining_undepleted | Check remaining amount of resource, like gold mines in a state | } | <, <=, =, !=, >, >= | state_region | |- |- | is_goal_complete | Check if the journal entry's goal has been met | is_goal_complete = yes/no | yes/no | journalentry | |- |- | is_progressing | Check if the journal entry is progressing | is_progressing = yes/no | yes/no | journalentry | |- |- | any_scope_building | Iterate through all buildings in a: state, country | any_scope_building = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, state | building |- |- | any_scope_culture | Iterate through all cultures in the scope | any_scope_culture = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, state | culture |- |- | loyalist_fraction | Compares loyalist fraction in pops in state or country, all parameters except value are optional | loyalist_fraction = { value = x pop_type = <key> strata = <key> culture = <key/scope> religion = <key/scope> } | <, <=, =, !=, >, >= | country, state | |- |- | radical_fraction | Compares radical fraction in pops in state or country, all parameters except value are optional | radical_fraction = { value = x pop_type = <key> strata = <key> culture = <key/scope> religion = <key/scope> } | <, <=, =, !=, >, >= | country, state | |- |- | any_scope_initiator_ally | Iterate through all allies to an initiator in a: diplomatic play | any_scope_initiator_ally = { <count=num/all> / <percent=fixed_point> <triggers> } | | diplomatic_play | country |- |- | any_scope_play_involved | Iterate through all involved in a: diplomatic play | any_scope_play_involved = { <count=num/all> / <percent=fixed_point> <triggers> } | | diplomatic_play | country |- |- | any_scope_target_ally | Iterate through all allies to a target in a: diplomatic play | any_scope_target_ally = { <count=num/all> / <percent=fixed_point> <triggers> } | | diplomatic_play | country |- |- | diplomatic_play_pm_usage | Checks how the ratio of Combat Units (of the same type) on the scoped Diplomatic Play, on the target country's side, with the specified Production Method compares to the value | where X = country scope and Y = production method key and Z = value to compare to | <, <=, =, !=, >, >= | diplomatic_play | |- |- | escalation | Checks whether escalation has passed a certain threshold | escalation > -58 | <, <=, =, !=, >, >= | diplomatic_play | |- |- | has_play_goal | Checks if diplomatic play has a certain war goal type | has_play_goal = return_state | | diplomatic_play | |- |- | initiator_is | Checks who the initiator of a diplomatic play is | initiator_is = country | country scope | diplomatic_play | country |- |- | is_diplomatic_play_type | Checks diplomatic play is of a certain type | is_diplomatic_play_type = play type | | diplomatic_play | |- |- | is_war | True if the diplomatic play has escalated into war | is_war = bool | yes/no | diplomatic_play | |- |- | target_is | Checks who the target of a diplomatic play is | target_is = country | country scope | diplomatic_play | country |- |- | literacy_rate | Checks if a pop, state or country has a certain amount of literacy | literacy = value | <, <=, =, !=, >, >= | country, state, pop | |- |- | any_scope_admiral | Iterate through all admirals in a: country or interestgroup | any_scope_admiral = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, interest_group, front | character |- |- | any_scope_character | Iterate through all characters in a: country, interestgroup, or front | any_scope_character = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, interest_group, front | character |- |- | any_scope_general | Iterate through all generals in a: country, interestgroup, or front | any_scope_general = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, interest_group, front | character |- |- | any_scope_politician | Iterate through all politicians in a: country or interestgroup | any_scope_politician = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, interest_group, front | character |- |- | any_interest_group | Iterate through all interest groups in a country | any_interest_group = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, party | interest_group |- |- | any_member | Iterate through all interest group members of a party | any_member = { <count=num/all> / <percent=fixed_point> <triggers> } | | country, party | interest_group |- |} {{Modding navbox}} [[Category:Modding]]
本页使用的模板:
Template:Ambox-enwiki
(
查看源代码
)
Template:Ambox/core
(
查看源代码
)
Template:Clear
(
查看源代码
)
Template:Computer generated
(
查看源代码
)
Template:Modding navbox
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:Navboxgroup
(
查看源代码
)
返回
条件
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录