编辑“触发器

警告:您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您登录创建一个账户,您的编辑将归属于您的用户名,且将享受其他好处。

该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。

最后版本 您的文本
第1行: 第1行:
{{Version|1.5}}
{{Version|1.1}}{{需要翻译}}
Triggers are used in the game to check conditions.
触发器在游戏中用于检查条件。
==Triggers==
== 触发器==
===Scripted Triggers===
=== 脚本触发器===
===Trigger Localization===
=== 触发器本地化===


==Custom Triggers==
== 自定义触发器==
===Creating Custom Triggers===
=== 创建自定义触发器===


== Logical Operators/Triggers ==
== 触发器列表==
These triggers provide basic logical functionality.
注意下表是程序生成。
{| class="wikitable sortable" width="100%"
{| class="wikitable sortable" width="100%"
    ! width="15%" | Name
    ! width="15%" | Name
第18行: 第18行:
    ! width="10%" | Supported Targets
    ! width="10%" | Supported Targets
|-
|-
|always
|any_dynasty_member
|Always the same value
|Iterate through all dynasty members
|always = yes
|any_dynasty_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|dynasty
|character
|-
|blood_legacy_track_perks
|How many legacies in the Blood legacy track does this dynasty have?
|
|
|
|<, <=, =, !=, >, >=
|-
|dynasty
|AND
|All inside trigger must be true
|AND = { <triggers> }
|
|
|-
|-
|OR
|dynasty_can_unlock_relevant_perk
|At least one entry inside trigger must be true
|Can the scoped dynasty unlock a 'relevant' legacy? Relevant meaning one that isn't the first in its track unless the dynasty has no partially filled tracks
|OR = { <triggers> }
|
|
|
|
|yes/no
|dynasty
|
|-
|-
|NOT
|dynasty_prestige
|Negates content of trigger
|Does the dynasty have the required prestige?
|NOT = { <triggers> }
|
|
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|-
|NOR
|dynasty_prestige_level
|A negated OR trigger
|Does the dynasty have the required level of splendor?
|NOR = { <triggers> }
|
|
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|-
|NAND
|erudition_legacy_track_perks
|A negated AND trigger
|How many legacies in the Erudition legacy track does this dynasty have?
|NAND = { <triggers> }
|
|
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|-
|all_false
|glory_legacy_track_perks
|True if all children are false (equivalent to NOR)
|How many legacies in the Glory legacy track does this dynasty have?
|all_false = { <triggers> }
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|guile_legacy_track_perks
|How many legacies in the Guile legacy track does this dynasty have?
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|has_dynasty_modifier
|Does the scoped dynasty have a given modifier?
|has_dynasty_modifier = name
|
|dynasty
|
|-
|has_dynasty_modifier_duration_remaining
|Does the scoped dynasty have the duration remaining on a given modifier?
|has_dynasty_modifier_duration_remaining = name
|
|dynasty
|
|-
|has_dynasty_perk
|Does the dynasty have this legacy?
|has_dynasty_perk = key
|
|dynasty
|
|-
|kin_legacy_track_perks
|How many legacies in the Kin legacy track does this dynasty have?
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|-
|any_false
|law_legacy_track_perks
|True if any child is false (equivalent to NAND)
|How many legacies in the Law legacy track does this dynasty have?
|any_false = { <triggers> }
|
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|warfare_legacy_track_perks
|How many legacies in the Warfare legacy track does this dynasty have?
|
|
|<, <=, =, !=, >, >=
|dynasty
|
|-
|-
|switch
|compare_value
|Switch on a trigger for the evaluation of another trigger with an optional fallback trigger
|Compare the scoped value.
|switch = {
|var:variable_name = { compare_value < 4 }
trigger = simple_assign_trigger
|<, <=, =, !=, >, >=
 
|value
case_1 = { <triggers> }
 
case_2 = { <triggers> }
 
case_n = { <triggers> }
 
fallback = { <triggers> }
 
}
|
|
|
|-
|-
|trigger_if
|any_house_member
|Evaluates the triggers if the display_triggers of the limit are met
|Iterate through all house members
|trigger_if = { limit = { <display_triggers> } <triggers> }
|any_house_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|
|dynasty house
|
|character
|-
|-
|trigger_else_if
|has_house_modifier
|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 met
|Does the scoped house have a given modifier?
|trigger_if = { limit = { <display_triggers> } <triggers> }
|has_house_modifier = name
trigger_else_if = { limit = { <display_triggers> } <triggers> }
|
|dynasty house
|
|
|-
|-
|trigger_else
|has_house_modifier_duration_remaining
|Evaluates the triggers if the display_triggers of preceding 'trigger_if' or 'trigger_else_if' is not met
|Does the scoped house have the duration remaining on a given modifier?
|trigger_if = { limit = { <display_triggers> } <triggers> }
|has_house_modifier_duration_remaining = name
trigger_else = { <triggers> }
|
|
|
|}


==List of triggers==
|
Note that this list has been generated programmatically.
|dynasty house
{| class="wikitable sortable" width="100%"
|
   ! width="15%" | Name
|-
   ! width="15%" | Description
|any_faith
   ! width="40%" | Usage
|Iterate through all faiths within a religion
   ! width="10%" | Traits
|any_faith = { <count=num/all> / <percent=fixed_point> <triggers> }
   ! width="10%" | Supported Scopes
|
   ! width="10%" | Supported Targets
|religion
|faith
|-
|is_in_family
|Is the scoped faith in a given religious family?
|is_in_family = rf_abrahamic
 
|religion
|-
|-
|any_dynasty_member
|any_scheme_agent
|Iterate through all dynasty members
|Iterate through all agents in the scheme
|any_dynasty_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_scheme_agent = { <count=num/all> / <percent=fixed_point> <triggers> }
|dynasty
|scheme
|character
|character
|-
|-
|blood_legacy_track_perks
|has_scheme_modifier
|How many legacies in the Blood legacy track does this dynasty have?
|Is the scheme currently affected by the specified modifier?
|
| has_scheme_modifier = X
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|dynasty_can_unlock_relevant_perk
|is_hostile
|Can the scoped dynasty unlock a 'relevant' legacy? Relevant meaning one that isn't the first in its track unless the dynasty has no partially filled tracks
|Is the scoped scheme a hostile scheme?
|
|is_hostile = bool
|yes/no
|yes/no
|dynasty
|scheme
|-
|-
|dynasty_prestige
|is_scheme_agent_exposed
|Does the dynasty have the required prestige?
|Is the target character an exposed agent in the scope scheme?
|
|
|<, <=, =, !=, >, >=
|character target
|dynasty
|scheme
|
|-
|is_scheme_exposed
|Is the scheme exposed?
|
|yes/no
|scheme
|-
|-
|dynasty_prestige_level
|scheme_duration_days
|Does the dynasty have the required level of splendor?
|The number of days since the scheme was started
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|
|-
|scheme_is_character_agent
|Is the target character part of this scheme?
|
|character target
|scheme
|-
|-
|erudition_legacy_track_perks
|scheme_monthly_progress
|How many legacies in the Erudition legacy track does this dynasty have?
|Monthly scheme progress in % (i.e. 50 equals 50%)
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|glory_legacy_track_perks
|scheme_number_of_agents
|How many legacies in the Glory legacy track does this dynasty have?
|The number of agents in a scheme
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|guile_legacy_track_perks
|scheme_number_of_exposed_agents
|How many legacies in the Guile legacy track does this dynasty have?
|The number of exposed agents in a scheme
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|has_dynasty_modifier
|scheme_power
|Does the scoped dynasty have a given modifier?
|Scheme power
|has_dynasty_modifier = name
|
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|has_dynasty_modifier_duration_remaining
|scheme_power_resistance_difference
|Does the scoped dynasty have the duration remaining on a given modifier?
|Scheme power minus scheme resistance
|has_dynasty_modifier_duration_remaining = name
|
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|has_dynasty_perk
|scheme_power_resistance_ratio
|Does the dynasty have this legacy?
|Scheme power/resistance ratio. Set to ±10000 if resistance is zero and power is positive/negative (0 if both power and resistance are 0)
|has_dynasty_perk = key
|
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|kin_legacy_track_perks
|scheme_progress
|How many legacies in the Kin legacy track does this dynasty have?
|Scheme progress (0 - 10 (defined))
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|law_legacy_track_perks
|scheme_resistance
|How many legacies in the Law legacy track does this dynasty have?
|Scheme resistance
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|warfare_legacy_track_perks
|scheme_secrecy
|How many legacies in the Warfare legacy track does this dynasty have?
|Scheme secrecy
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|dynasty
|scheme
|-
|-
|compare_value
|scheme_skill
|Compare the scoped value instead of scoping into it.
|Is the scheme currently affected by the specified modifier?
|var:variable_name = { compare_value < 4 }
| has_scheme_modifier = X
var:variable_name.compare_value < {value = var:other_variable add = 5}
|<, <=, =, !=, >, >=
|scheme
|value
|-
|-
|any_house_member
|scheme_success_chance
|Iterate through all house members
|Scheme success chance
|any_house_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|scheme
|dynasty house
|character
|-
|-
|has_house_modifier
|scheme_type
|Does the scoped house have a given modifier?
|Is the scheme of the specified type?
|has_house_modifier = name
| scheme_type = X
|dynasty house
|scheme
|-
|-
|has_house_modifier_duration_remaining
|active_de_jure_drift_progress
|Does the scoped house have the duration remaining on a given modifier?
|
|has_house_modifier_duration_remaining = name
|task_current_value = scope:county.active_de_jure_drift_progress
 
|<, <=, =, !=, >, >=
|landed title
|dynasty house
|-
|-
|any_faith
|any_claimant
|Iterate through all faiths within a religion
|Iterate through all claimants to title. parameters: explicit = yes/no/all - default yes
|any_faith = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_claimant = { <count=num/all> / <percent=fixed_point> <triggers> }
|religion
|landed title
|faith
|character
|-
|-
|is_in_family
|any_connected_county
|Is the scoped faith in a given religious family?
|Iterate through all counties connected to this one. Is based on top liege
|is_in_family = rf_abrahamic
|any/every/whatever_connected_county = {
 
max_naval_distance = 500
|
allow_one_county_land_gap = yes
|religion
any_connected_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|landed title
|-
|-
|any_scheme_agent
|any_county_province
|Iterate through all agents in the scheme
|Iterate through all baronies in a county
|any_scheme_agent = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_county_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|landed title
|province
|-
|any_de_jure_county_holder
|Iterate through all characters directly holding counties within this de jure title
|any_de_jure_county_holder = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|scheme
|landed title
|character
|character
|-
|-
|has_scheme_modifier
|any_de_jure_top_liege
|Is the scheme currently affected by the specified modifier?
|Iterate through all top lieges of the counts within this de jure title
| has_scheme_modifier = X
|any_de_jure_top_liege = { <count=num/all> / <percent=fixed_point> <triggers> }
|scheme
|landed title
|character
|-
|any_dejure_vassal_title_holder
|Iterate through all the vassal holders of the title
|any_dejure_vassal_title_holder = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|landed title
|character
|-
|-
|is_hostile
|any_election_candidate
|Is the scoped scheme a hostile scheme?
|Iterate through all characters who are valid candidates in an election for a title
|is_hostile = bool
|any_election_candidate = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|scheme
|landed title
|character
|-
|-
|is_scheme_agent_exposed
|any_elector
|Is the target character an exposed agent in the scope scheme?
|Iterate through all characters who are valid electors in an election for a title
|
|any_elector = { <count=num/all> / <percent=fixed_point> <triggers> }
|character target
|scheme
|landed title
|character
|-
|-
|is_scheme_exposed
|any_in_de_facto_hierarchy
|Is the scheme exposed?
|Iterate through the title itself, all de facto vassals, and below. The continue trigger specifies whether to recursively iterate through the vassal's vassals
|
|continue is unrelated to the limit; if the limit is met it is added to the list, but its vassals will get checked even if the limit isn't met as long as the 'continue' trigger is
|yes/no
..._de_jure_vassal_and_below = { continue = { conditions } }
|scheme
any_in_de_facto_hierarchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|landed title
|-
|-
|scheme_duration_days
|any_in_de_jure_hierarchy
|The number of days since the scheme was started
|Iterate through the title itself, all de jure vassals, and below. The continue trigger specifies whether to recursively iterate through the vassal's vassal
|
|This is unrelated to the limit; if the limit is met it is added to the list, but its vassals will get checked even if the limit isn't met as long as the 'continue' trigger is
|<, <=, =, !=, >, >=
..._de_jure_vassal_and_below = { continue = { conditions } }
|scheme
any_in_de_jure_hierarchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|landed title
|-
|-
|scheme_is_character_agent
|any_neighboring_county
|Is the target character part of this scheme?
|Iterate through all neighboring counties. Can only be used in county scope
|
|any_neighboring_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|character target
|scheme
|landed title
|landed title
|-
|-
|scheme_monthly_progress
|any_this_title_or_de_jure_above
|Monthly scheme progress in % (i.e. 50 equals 50%)
|Iterate through this title and all its de jure liege titles
|
|any_this_title_or_de_jure_above = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|scheme
|landed title
|landed title
|-
|-
|scheme_number_of_agents
|any_title_heir
|The number of agents in a scheme
|Line of succession for the scoped title
|
|any_title_heir = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|scheme
|landed title
|character
|-
|-
|scheme_number_of_exposed_agents
|any_title_joined_faction
|The number of exposed agents in a scheme
|Iterate through all factions joined the scope landed title
|
|any_title_joined_faction = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|scheme
|landed title
|faction
|-
|-
|scheme_power
|any_title_to_title_neighboring_and_across_water_barony
|Scheme power
|Scopes from a title to a neighboring barony (incl. across water, looking through the de jure lieges)
|
|any_title_to_title_neighboring_and_across_water_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|scheme
|landed title
|landed title
|-
|-
|scheme_power_resistance_difference
|any_title_to_title_neighboring_and_across_water_county
|Scheme power minus scheme resistance
|Scopes from a title to a neighboring county (incl. across water, looking through the de jure lieges)
|
|any_title_to_title_neighboring_and_across_water_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|scheme
|landed title
|landed title
|-
|-
|scheme_power_resistance_ratio
|any_title_to_title_neighboring_and_across_water_duchy
|Scheme power/resistance ratio. Set to ±10000 if resistance is zero and power is positive/negative (0 if both power and resistance are 0)
|Scopes from a title to a neighboring duchy (incl. across water, looking through the de jure lieges)
|
|any_title_to_title_neighboring_and_across_water_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
 
|scheme
|landed title
|landed title
|-
|-
|scheme_progress
|any_title_to_title_neighboring_and_across_water_empire
|Scheme progress (0 - 10 (defined))
|Scopes from a title to a neighboring empire (incl. across water, looking through the de jure lieges)
|
|any_title_to_title_neighboring_and_across_water_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
 
|scheme
|landed title
|landed title
|-
|-
|scheme_resistance
|any_title_to_title_neighboring_and_across_water_kingdom
|Scheme resistance
|Scopes from a title to a neighboring kingdom (incl. across water, looking through the de jure lieges)
|
|any_title_to_title_neighboring_and_across_water_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
 
|scheme
|landed title
|landed title
|-
|-
|scheme_secrecy
|any_title_to_title_neighboring_barony
|Scheme secrecy
|Scopes from a title to a neighboring barony (looking through the de jure lieges)
|
|any_title_to_title_neighboring_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
 
|scheme
|landed title
|landed title
|-
|-
|scheme_skill
|any_title_to_title_neighboring_county
|Is the scheme currently affected by the specified modifier?
|Scopes from a title to a neighboring county (looking through the de jure lieges)
| has_scheme_modifier = X
|any_title_to_title_neighboring_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|scheme
|landed title
|landed title
|-
|-
|scheme_success_chance
|any_title_to_title_neighboring_duchy
|Scheme success chance
|Scopes from a title to a neighboring duchy (looking through the de jure lieges)
|
|any_title_to_title_neighboring_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
 
|scheme
|landed title
|landed title
|-
|-
|scheme_type
|any_title_to_title_neighboring_empire
|Is the scheme of the specified type?
|Scopes from a title to a neighboring empire (looking through the de jure lieges)
| scheme_type = X
|any_title_to_title_neighboring_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|scheme
|landed title
|landed title
|-
|any_title_to_title_neighboring_kingdom
|Scopes from a title to a neighboring kingdom (looking through the de jure lieges)
|any_title_to_title_neighboring_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|landed title
|-
|-
|active_de_jure_drift_progress
|can_be_leased_out
|Can the scoped title be leased out?
|
|
|task_current_value = scope:county.active_de_jure_drift_progress
|yes/no
|<, <=, =, !=, >, >=
|landed title
|landed title
|-
|-
|any_claimant
|can_title_create_faction
|Iterate through all claimants to title. parameters: explicit = yes/no/all - default yes
|Can the title create the faction of the specified type against the specified character?
|any_claimant = { <count=num/all> / <percent=fixed_point> <triggers> }
|can_title_create_faction = { type = X target = Y }
|landed title
|landed title
|character
|-
|-
|any_connected_county
|can_title_join_faction
|Iterate through all counties connected to this one. Is based on top liege
|Can the the scoped title join the faction?
|any/every/whatever_connected_county = {
|can_title_join_faction = faction
max_naval_distance = 500
allow_one_county_land_gap = yes
any_connected_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|landed title
|
|-
|county_control
|Does the county title have the required county control?
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|
|-
|-
|any_county_province
|county_control_rate
|Iterate through all baronies in a county
|How much county control is the county gaining each month?
|any_county_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|province
|-
|-
|any_de_jure_county_holder
|county_control_rate_modifier
|Iterate through all characters directly holding counties within this de jure title
|What's the multiplier to the control gain rate? E.g., if there's just a +20% modifier, this would return 1.2
|any_de_jure_county_holder = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|<, <=, =, !=, >, >=
|landed title
|-
|county_holder_opinion
|Compares the county's opinion of its holder
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|character
|-
|-
|any_de_jure_top_liege
|county_opinion
|Iterate through all top lieges of the counts within this de jure title
|Compares the county's opinion of the current count
|any_de_jure_top_liege = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|character
|-
|-
|any_dejure_vassal_title_holder
|county_opinion_target
|Iterate through all the vassal holders of the title
|Compares the county's opinion of the target character to the specified value
|any_dejure_vassal_title_holder = { <count=num/all> / <percent=fixed_point> <triggers> }
| county_opinion_target = { target = X value >/</= Y
 
|landed title
|landed title
|character
|-
|-
|any_election_candidate
|de_jure_drift_progress
|Iterate through all characters who are valid candidates in an election for a title
|Compare drift progress towards target with value
|any_election_candidate = { <count=num/all> / <percent=fixed_point> <triggers> }
|<drifting_title> = { de_jure_drift_progress = {    target = <drift_target_title>   value > 50 } }
|landed title
|landed title
|character
|-
|any_elector
|Iterate through all characters who are valid electors in an election for a title
|any_elector = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|character
|-
|-
|any_in_de_facto_hierarchy
|de_jure_drifting_towards
|Iterate through the title itself, all de facto vassals, and below. The continue trigger specifies whether to recursively iterate through the vassal's vassals
|Is the scoped landed title de jure drifting toward another title?
|continue is unrelated to the limit; if the limit is met it is added to the list, but its vassals will get checked even if the limit isn't met as long as the 'continue' trigger is
|<drifting_title> = { de_jure_drifting_towards = <drift_target_title> }
..._de_jure_vassal_and_below = { continue = { conditions } }
|landed title scope
any_in_de_facto_hierarchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|landed title
|landed title
|landed title
|-
|-
|any_in_de_jure_hierarchy
|development_level
|Iterate through the title itself, all de jure vassals, and below. The continue trigger specifies whether to recursively iterate through the vassal's vassal
|Does the county title have the required county development level?
|This is unrelated to the limit; if the limit is met it is added to the list, but its vassals will get checked even if the limit isn't met as long as the 'continue' trigger is
|
..._de_jure_vassal_and_below = { continue = { conditions } }
|<, <=, =, !=, >, >=
any_in_de_jure_hierarchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title
|-
|development_rate
|How much development progress is the county gaining each month?
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|
|-
|development_rate_modifier
|What's the multiplier to the development progress?
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|
|-
|-
|any_neighboring_county
|development_towards_level_increase
|Iterate through all neighboring counties. Can only be used in county scope
|Does the county title have the required progress towards the next level of development? E.g., if level 1 is 100, level 2 is 300 (these are set in defines), and current total is 150, this would return 50
|any_neighboring_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|landed title
|-
|has_character_nominiated
|Has the target character nominated a successor for the scoped title?
|
|character target
|landed title
|landed title
|landed title
|-
|-
|any_this_title_or_de_jure_above
|has_county_modifier
|Iterate through this title and all its de jure liege titles
|Does the scoped county have a given modifier?
|any_this_title_or_de_jure_above = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_county_modifier = name
|landed title
|landed title
|landed title
|-
|-
|any_title_heir
|has_county_modifier_duration_remaining
|Line of succession for the scoped title
|Does the scoped county have the duration remaining on a given modifier?
|any_title_heir = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_county_modifier_duration_remaining = name
|landed title
|landed title
|character
|-
|-
|any_title_joined_faction
|has_disabled_building
|Iterate through all factions joined the scope landed title
|Is the scoped landed title connected to a holding that contains at least one disabled building?
|any_title_joined_faction = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|yes/no
|landed title
|landed title
|faction
|-
|-
|any_title_to_title_neighboring_and_across_water_barony
|has_holy_site_flag
|Scopes from a title to a neighboring barony (incl. across water, looking through the de jure lieges)
|Does the barony have a holy site with the given flag?
|any_title_to_title_neighboring_and_across_water_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
| has_holy_site_flag = some_flag
|landed title
|landed title
|landed title
|-
|-
|any_title_to_title_neighboring_and_across_water_county
|has_order_of_succession
|Scopes from a title to a neighboring county (incl. across water, looking through the de jure lieges)
|Does the scoped title have a given succession type?
|any_title_to_title_neighboring_and_across_water_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_order_of_succession = election
|landed title
|landed title
|
|-
|has_revokable_lease
|Is the title under a lease that can be revoked manually?
|
|yes/no
|landed title
|landed title
|
|-
|-
|any_title_to_title_neighboring_and_across_water_duchy
|has_title_law
|Scopes from a title to a neighboring duchy (incl. across water, looking through the de jure lieges)
|Does the scoped title have the given title-specific law?
|any_title_to_title_neighboring_and_across_water_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|landed title
|landed title
|landed title
|-
|-
|any_title_to_title_neighboring_and_across_water_empire
|has_title_law_flag
|Scopes from a title to a neighboring empire (incl. across water, looking through the de jure lieges)
|Does the scoped title have a title-specific law with the given flag?
|any_title_to_title_neighboring_and_across_water_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|landed title
|landed title
|
|-
|has_wrong_holding_type
|Is the scope landed title connected to a holding that cannot be governed by the current lessee or holder?
|
|yes/no
|landed title
|landed title
|
|-
|-
|any_title_to_title_neighboring_and_across_water_kingdom
|is_capital_barony
|Scopes from a title to a neighboring kingdom (incl. across water, looking through the de jure lieges)
|Is title in the scope a capital barony?
|any_title_to_title_neighboring_and_across_water_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|yes/no
|landed title
|-
|is_coastal_county
|Is the county coastal?
|
|yes/no
|landed title
|landed title
|landed title
|-
|-
|any_title_to_title_neighboring_barony
|is_connected_to
|Scopes from a title to a neighboring barony (looking through the de jure lieges)
|Is the county connected to the other county? Is based on top liege
|any_title_to_title_neighboring_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_connected_to = {
 
max_naval_distance = 500
allow_one_county_land_gap = yes
target = some other county
}
|landed title
|landed title
|landed title
|-
|-
|any_title_to_title_neighboring_county
|is_contested
|Scopes from a title to a neighboring county (looking through the de jure lieges)
|Is the scope landed title contested in any war?
|any_title_to_title_neighboring_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|yes/no
|landed title
|landed title
|landed title
|
|-
|-
|any_title_to_title_neighboring_duchy
|is_de_facto_liege_or_above_target
|Scopes from a title to a neighboring duchy (looking through the de jure lieges)
|Is the title de facto liege or above the target title?
|any_title_to_title_neighboring_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|landed title target
|landed title
|-
|is_de_jure_liege_or_above_target
|Is the title de jure liege or above the target title?
|
|landed title target
|landed title
|landed title
|
|-
|is_holy_order
|Is the scope landed title a holy order?
|
|yes/no
|landed title
|landed title
|
|-
|-
|any_title_to_title_neighboring_empire
|is_holy_site
|Scopes from a title to a neighboring empire (looking through the de jure lieges)
|Is the barony a holy site of any faith?
|any_title_to_title_neighboring_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_holy_site = yes
|yes/no
|landed title
|-
|is_holy_site_controlled_by
|Does the target character control a holy site of the scoped object?
|is_holy_site_controlled_by = root
|character scope
|landed title
|landed title
|landed title
|character
|-
|-
|any_title_to_title_neighboring_kingdom
|is_holy_site_of
|Scopes from a title to a neighboring kingdom (looking through the de jure lieges)
|Is the barony a holy site of the given faith?
|any_title_to_title_neighboring_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_holy_site_of = catholic
|landed title
|landed title
|landed title
|-
|-
|can_be_leased_out
|is_landless_type_title
|Can the scoped title be leased out?
|Is this title considered a landless type title?
|
|
|yes/no
|yes/no
第599行: 第739行:
|-
|-
|can_title_create_faction
|is_leased_out
|Can the title create the faction of the specified type against the specified character?
|Is the scoped title leased out?
|can_title_create_faction = { type = X target = Y }
|
|yes/no
|landed title
|-
|is_mercenary_company
|Is the scope landed title a mercenary company?
|
|yes/no
|landed title
|landed title
|-
|-
|can_title_join_faction
|is_neighbor_to_realm
|Can the the scoped title join the faction?
|Is this landed title adjacent to the character's realm?
|can_title_join_faction = faction
|is_neighbor_to_realm = character
|character scope
|landed title
|landed title
|character
|-
|-
|county_control
|is_target_of_council_task
|Does the county title have the required county control?
|Is the county currently affected by the specified council task? Needs to be in a county title scope
|
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|-
|-
|county_control_rate
|is_title_created
|How much county control is the county gaining each month?
|Is title in the scope created?
|
|
|<, <=, =, !=, >, >=
|yes/no
|landed title
|landed title
|-
|-
|county_control_rate_modifier
|is_titular
|What's the multiplier to the control gain rate? E.g., if there's just a +20% modifier, this would return 1.2
|Is this title titular (has no de jure counties in it, and is not a barony/county)?
|
|
|<, <=, =, !=, >, >=
|yes/no
|landed title
|landed title
|-
|-
|county_holder_opinion
|is_under_holy_order_lease
|Compares the county's opinion of its holder
|Is the scoped title leased out to any holy order?
|
|
|<, <=, =, !=, >, >=
|yes/no
|landed title
|landed title
|-
|-
|county_opinion
|place_in_line_of_succession
|Compares the county's opinion of the current count
|What place in line of succession does the character hold?
|
|
|<, <=, =, !=, >, >=
|landed title
|landed title
|-
|-
|county_opinion_target
|recent_history
|Compares the county's opinion of the target character to the specified value
|Does the scope title have a history entry of the specified type in recent history?
| county_opinion_target = { target = X value >/</= Y } 
|recent_history = { type = X days/months/years = Y }
The type can be omitted, all history types are considered then
Possible types:
*conquest
*conquest_holy_war
*conquest_claim
*conquest_populist
*election
*inheritance
*abdication
*created
*destroyed
*usurped
*granted
*revoked
*independency
*leased_out
*lease_revoked
*returned
*faction_demand
|landed title
|landed title
|-
|-
|de_jure_drift_progress
|target_is_de_facto_liege_or_above
|Compare drift progress towards target with value
|Is the target title de facto liege or above?
|<drifting_title> = { de_jure_drift_progress = {   target = <drift_target_title>   value > 50 } }
|
|landed title
|
|-
|de_jure_drifting_towards
|Is the scoped landed title de jure drifting toward another title?
|<drifting_title> = { de_jure_drifting_towards = <drift_target_title> }
|landed title scope
|landed title
|landed title
|-
|development_level
|Does the county title have the required county development level?
|
|
|<, <=, =, !=, >, >=
|landed title target
|landed title
|landed title
|-
|-
|development_rate
|target_is_de_jure_liege_or_above
|How much development progress is the county gaining each month?
|Is the target title de jure liege or above?
|
|
|<, <=, =, !=, >, >=
|landed title target
|landed title
|landed title
|-
|-
|development_rate_modifier
|tier
|What's the multiplier to the development progress?
|What tier is the scoped title? Use the script values please, not raw numbers
|
|The tiers are
#tier_barony
#tier_county
#tier_duchy
#tier_kingdom
#tier_empire
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|landed title
|landed title
|-
|-
|development_towards_level_increase
|title_create_faction_type_chance
|Does the county title have the required progress towards the next level of development? E.g., if level 1 is 100, level 2 is 300 (these are set in defines), and current total is 150, this would return 50
|Check if the chance to create a faction against a target of the scope landed title is is true against the scripted value
|
|title_create_faction_type_chance = {
|<, <=, =, !=, >, >=
   type = faction_type #An ongoing faction
   target = target_character
   value <|<=|>=|> 0
}
|
|landed title
|landed title
|-
|-
|has_character_nominiated
|title_is_a_faction_member
|Has the target character nominated a successor for the scoped title?
|Is the scope title a member of a faction?
|
|
|character target
|yes/no
|landed title
|landed title
|-
|-
|has_county_modifier
|title_join_faction_chance
|Does the scoped county have a given modifier?
|Check if the chance of the scope landed title to join the faction against the scripted value
|has_county_modifier = name
|title_join_faction_chance = {
   faction = faction_target #An ongoing faction
   value <|<=|>=|> 0
}
 
|landed title
|landed title
|-
|-
|has_county_modifier_duration_remaining
|title_will_leave_sub_realm_on_succession
|Does the scoped county have the duration remaining on a given modifier?
|Will the title leave the sub-realm of the character on the right-hand-side upon succession? That is, is the first heir in someone outside the sub-realm, and the highest tier title they'll inherit from the person holding the title is not higher than their current tier
|has_county_modifier_duration_remaining = name
|
|character target
|landed title
|landed title
|-
|-
|has_disabled_building
|story_type
|Is the scoped landed title connected to a holding that contains at least one disabled building?
|Is the story in scope of this type?
|
|
|yes/no
|landed title
|story cycle
|-
|-
|has_holy_site_flag
|can_get_innovation_from
|Does the barony have a holy site with the given flag?
|Get random applicable innovation from another culture
| has_holy_site_flag = some_flag
|
|landed title
|culture
|-
|-
|has_order_of_succession
|has_all_innovations
|Does the scoped title have a given succession type?
|Has the culture discovered all innovations matching the filter?
|has_order_of_succession = election
|has_all_innovations = {
with_flag = flag_name # innovation matches if it has the flag; optional
without_flag = flag_name # innovation matches if it does not have the flag; optional
culture_era = era_key # innovation matches if it is from the era; optional
}
|landed title
|culture
|-
|-
|has_revokable_lease
|has_cultural_era_or_later
|Is the title under a lease that can be revoked manually?
|Has this culture achieved specified era?
|
|<culture> = { has_cultural_era_or_later = culture_era_early_medieval }
|yes/no
|landed title
|culture
|-
|-
|has_title_law
|has_graphical_culture
|Does the scoped title have the given title-specific law?
|Does the culture (or its culture group) have this graphical culture?
|
|<culture> = { has_graphical_culture = celticgfx }
|landed title
|culture
|-
|-
|has_title_law_flag
|has_innovation
|Does the scoped title have a title-specific law with the given flag?
|Have the culture discovered this innovation?
|
|
|landed title
|culture
|-
|-
|has_wrong_holding_type
|mercenary_company_expiration_days
|Is the scope landed title connected to a holding that cannot be governed by the current lessee or holder?
|How many days are left in the mercenary contract. 0 if not hired.
|
|<, <=, =, !=, >, >=
|mercenary company
|
|-
|age
|Compare character age
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_capital_barony
|ai_boldness
|Is title in the scope a capital barony?
|AI boldness
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_coastal_county
|ai_compassion
|Is the county coastal?
|AI compassion
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_connected_to
|ai_diplomacy_stance
|Is the county connected to the other county? Is based on top liege
|The AI's diplomatic view of the target character
|is_connected_to = {
|ai_diplomacy_stance = {
max_naval_distance = 500
   target = target_character
allow_one_county_land_gap = yes
   stance = neutral/threat/enemy/friend
target = some other county
}
}
|landed title
|character
|-
|-
|is_contested
|ai_energy
|Is the scope landed title contested in any war?
|AI energy
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_de_facto_liege_or_above_target
|ai_greed
|Is the title de facto liege or above the target title?
|AI greed
|
|
|landed title target
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_de_jure_liege_or_above_target
|ai_honor
|Is the title de jure liege or above the target title?
|AI honor
|
|
|landed title target
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_holy_order
|ai_rationality
|Is the scope landed title a holy order?
|AI rationality
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_holy_site
|ai_sociability
|Is the barony a holy site of any faith?
|AI sociability
|is_holy_site = yes
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_holy_site_controlled_by
|ai_values_divergence
|Does the target character control a holy site of the scoped object?
|Compare AI values between characters
|is_holy_site_controlled_by = root
|target = other character value >/</= sum of differences in ai values
|character scope
|landed title
|character
|character
|-
|is_holy_site_of
|Is the barony a holy site of the given faith?
|is_holy_site_of = catholic
|
|landed title
|-
|-
|is_landless_type_title
|ai_vengefulness
|Is this title considered a landless type title?
|AI vengefulness
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_leased_out
|ai_zeal
|Is the scoped title leased out?
|AI zeal
|
|
|yes/no
|<, <=, =, !=, >, >=
|landed title
|character
|-
|-
|is_mercenary_company
|allowed_concubines
|Is the scope landed title a mercenary company?
|Can the scope owner have concubines?
|
|
|yes/no
|yes/no
|landed title
|
|-
|is_neighbor_to_realm
|Is this landed title adjacent to the character's realm?
|is_neighbor_to_realm = character
|character scope
|landed title
|character
|character
|-
|is_target_of_council_task
|Is the county currently affected by the specified council task? Needs to be in a county title scope
|
|
|landed title
|-
|-
|is_title_created
|allowed_more_concubines
|Is title in the scope created?
|Can the scope owner have more concubines?
|
|
|yes/no
|yes/no
|landed title
|character
|-
|-
|is_titular
|allowed_more_spouses
|Is this title titular (has no de jure counties in it, and is not a barony/county)?
|Can the scope owner have more spouses?
|
|
|yes/no
|yes/no
|landed title
|character
|-
|-
|is_under_holy_order_lease
|any_alert_creatable_title
|Is the scoped title leased out to any holy order?
|Iterate through all titles that can be created by the character. (only for alerts)
|
|any_alert_creatable_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|landed title
|character
|landed title
|-
|-
|place_in_line_of_succession
|any_alert_usurpable_title
|What place in line of succession does the character hold?
|Iterate through all titles that can be usurped by the character. (only for alerts)
|
|any_alert_usurpable_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|landed title
|landed title
|-
|any_ally
|Iterate through all allies
|any_ally = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|-
|-
|recent_history
|any_ancestor
|Does the scope title have a history entry of the specified type in recent history?
|Iterate through all the ancestors of the scope character up to 5 generations
|recent_history = { type = X days/months/years = Y }
|any_ancestor = { <count=num/all> / <percent=fixed_point> <triggers> }
The type can be omitted, all history types are considered then
Possible types:
*conquest
*conquest_holy_war
*conquest_claim
*conquest_populist
*election
*inheritance
*abdication
*created
*destroyed
*usurped
*granted
*revoked
*independency
*leased_out
*lease_revoked
*returned
*faction_demand
|
|landed title
|character
|character
|-
|-
|target_is_de_facto_liege_or_above
|any_army
|Is the target title de facto liege or above?
|Iterate through all armies
|
|any_army = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title target
|landed title
|character
|army
|-
|-
|target_is_de_jure_liege_or_above
|any_character_to_title_neighboring_and_across_water_barony
|Is the target title de jure liege or above?
|Scopes from a character to a neighboring barony (incl. across water, looking through the de jure lieges)
|
|any_character_to_title_neighboring_and_across_water_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|landed title target
|character
|landed title
|landed title
|-
|any_character_to_title_neighboring_and_across_water_county
|Scopes from a character to a neighboring county (incl. across water, looking through the de jure lieges)
|any_character_to_title_neighboring_and_across_water_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|-
|character
|tier
|What tier is the scoped title? Use the script values please, not raw numbers
|The tiers are
#tier_barony
#tier_county
#tier_duchy
#tier_kingdom
#tier_empire
|<, <=, =, !=, >, >=
|landed title
|landed title
|
|-
|-
|title_create_faction_type_chance
|any_character_to_title_neighboring_and_across_water_duchy
|Check if the chance to create a faction against a target of the scope landed title is is true against the scripted value
|Scopes from a character to a neighboring duchy (incl. across water, looking through the de jure lieges)
|title_create_faction_type_chance = { 
|any_character_to_title_neighboring_and_across_water_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
   type = faction_type #An ongoing faction
 
   target = target_character
   value <|<=|>=|> 0
}
|character
|landed title
|landed title
|
|-
|-
|title_is_a_faction_member
|any_character_to_title_neighboring_and_across_water_empire
|Is the scope title a member of a faction?
|Scopes from a character to a neighboring empire (incl. across water, looking through the de jure lieges)
|
|any_character_to_title_neighboring_and_across_water_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
 
|landed title
|character
|landed title
|-
|-
|title_join_faction_chance
|any_character_to_title_neighboring_and_across_water_kingdom
|Check if the chance of the scope landed title to join the faction against the scripted value
|Scopes from a character to a neighboring kingdom (incl. across water, looking through the de jure lieges)
|title_join_faction_chance = { 
|any_character_to_title_neighboring_and_across_water_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
   faction = faction_target #An ongoing faction
   value <|<=|>=|> 0
}


|character
|landed title
|landed title
|-
|any_character_to_title_neighboring_barony
|Scopes from a character to a neighboring barony (looking through the de jure lieges)
|any_character_to_title_neighboring_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|landed title
|-
|-
|title_will_leave_sub_realm_on_succession
|any_character_to_title_neighboring_county
|Will the title leave the sub-realm of the character on the right-hand-side upon succession? That is, is the first heir in someone outside the sub-realm, and the highest tier title they'll inherit from the person holding the title is not higher than their current tier
|Scopes from a character to a neighboring county (looking through the de jure lieges)
|
|any_character_to_title_neighboring_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|character target
 
|character
|landed title
|landed title
|
|-
|-
|story_type
|any_character_to_title_neighboring_duchy
|Is the story in scope of this type?
|Scopes from a character to a neighboring duchy (looking through the de jure lieges)
|
|any_character_to_title_neighboring_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|story cycle
|character
|landed title
|-
|-
|can_get_innovation_from
|any_character_to_title_neighboring_empire
|Get random applicable innovation from another culture
|Scopes from a character to a neighboring empire (looking through the de jure lieges)
|
|any_character_to_title_neighboring_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|culture
|character
|landed title
|-
|-
|has_all_innovations
|any_character_to_title_neighboring_kingdom
|Has the culture discovered all innovations matching the filter?
|Scopes from a character to a neighboring kingdom (looking through the de jure lieges)
|has_all_innovations = {
|any_character_to_title_neighboring_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
with_flag = flag_name # innovation matches if it has the flag; optional
 
without_flag = flag_name # innovation matches if it does not have the flag; optional
culture_era = era_key # innovation matches if it is from the era; optional
}
|culture
|character
|landed title
|-
|any_character_war
|Wars of the scoped character
|any_character_war = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|war
|-
|-
|has_cultural_era_or_later
|any_child
|Has this culture achieved specified era?
|Iterate through all children
|<culture> = { has_cultural_era_or_later = culture_era_early_medieval }
|any_child = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|culture
|character
|character
|-
|-
|has_graphical_culture
|any_claim
|Does the culture (or its culture group) have this graphical culture?
|Iterate through the titles of all claims held by a character; parameters: explicit = yes/no/all pressed = yes/no/all
|<culture> = { has_graphical_culture = celticgfx }
|any_claim = { <count=num/all> / <percent=fixed_point> <triggers> }
|
 
|culture
|character
|landed title
|-
|-
|has_innovation
|any_close_family_member
|Have the culture discovered this innovation?
|Iterate through all the close family [father, mother, siblings, children, grandparents]
|
|any_close_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|culture
|character
|character
|-
|any_close_or_extended_family_member
|Iterate through all the close and extended relatives [father, mother, siblings, children, grandparents, uncles/aunts, nephew/niece, cousins]
|any_close_or_extended_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|-
|-
|mercenary_company_expiration_days
|any_concubine
|How many days are left in the mercenary contract. 0 if not hired.
|Iterate through all concubines
|
|any_concubine = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|mercenary company
|character
|character
|-
|-
|age
|any_consort
|Compare character age
|Iterate through all consorts (concubines and spouses)
|
|any_consort = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|character
|-
|ai_boldness
|AI boldness
|
|<, <=, =, !=, >, >=
|character
|character
|
|-
|ai_compassion
|AI compassion
|
|<, <=, =, !=, >, >=
|character
|character
|
|-
|-
|ai_diplomacy_stance
|any_councillor
|The AI's diplomatic view of the target character
|Iterate through all councillors
|ai_diplomacy_stance = {
|any_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
   target = target_character
   stance = neutral/threat/enemy/friend
}
|character
|character
|character
|-
|-
|ai_energy
|any_courtier
|AI energy
|Iterate through all courtiers
|
|any_courtier = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|
|character
|character
|character
|-
|any_courtier_away
|Iterate through all courtiers that are away
|any_courtier_away = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|-
|-
|ai_greed
|any_courtier_or_guest
|AI greed
|Iterate through all courtiers and guests (pool and foreign court guests)
|
|any_courtier_or_guest = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|
|character
|character
|
|-
|ai_honor
|AI honor
|
|<, <=, =, !=, >, >=
|character
|character
|
|-
|-
|ai_rationality
|any_de_jure_claim
|AI rationality
|Iterate through all de jure claims for a character
|
|any_de_jure_claim = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|character
|-
|ai_sociability
|AI sociability
|
|<, <=, =, !=, >, >=
|character
|character
|landed title
|-
|-
|ai_values_divergence
|any_diplomacy_councillor
|Compare AI values between characters
|Iterate through all diplomacy-based councillors
|target = other character value >/</= sum of differences in ai values
|any_diplomacy_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|-
|-
|ai_vengefulness
|any_directly_owned_province
|AI vengefulness
|Iterate through all directly owned provinces
|
|any_directly_owned_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|
|character
|character
|province
|-
|any_election_title
|Iterate through all titles the scoped character can vote on
|any_election_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|-
|ai_zeal
|AI zeal
|
|<, <=, =, !=, >, >=
|character
|character
|landed title
|-
|-
|allowed_concubines
|any_extended_family_member
|Can the scope owner have concubines?
|Iterate through all the extended family [uncles/aunts, nephew/niece, cousins]
|
|any_extended_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|character
|-
|allowed_more_concubines
|Can the scope owner have more concubines?
|
|yes/no
|character
|character
|
|-
|allowed_more_spouses
|Can the scope owner have more spouses?
|
|yes/no
|character
|character
|
|-
|-
|any_alert_creatable_title
|any_foreign_court_guest
|Iterate through all titles that can be created by the character. (only for alerts)
|Iterate through all guests visiting from another court (in contrast to pool_guest they have a liege)
|any_alert_creatable_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_foreign_court_guest = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|character
|-
|-
|any_alert_usurpable_title
|any_former_concubine
|Iterate through all titles that can be usurped by the character. (only for alerts)
|Iterate through all former concubines. Not persisted past death
|any_alert_usurpable_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_former_concubine = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|character
|-
|any_former_concubinist
|Iterate through all former concubinists. Not persisted past death
|any_former_concubinist = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|character
|-
|-
|any_ally
|any_former_spouse
|Iterate through all allies
|Iterate through all former spouses
|any_ally = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_former_spouse = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_ancestor
|any_general_councillor
|Iterate through all the ancestors of the scope character up to 5 generations
|Iterate through all councillors that are not related to a skill
|any_ancestor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_general_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_army
|any_heir
|Iterate through all armies
|Heirs of the scoped character
|any_army = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_heir = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|army
|character
|-
|-
|any_character_to_title_neighboring_and_across_water_barony
|any_heir_title
|Scopes from a character to a neighboring barony (incl. across water, looking through the de jure lieges)
|Iterate through all landed titles character is heir to
|any_character_to_title_neighboring_and_across_water_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_heir_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|landed title
|-
|-
|any_character_to_title_neighboring_and_across_water_county
|any_heir_to_title
|Scopes from a character to a neighboring county (incl. across water, looking through the de jure lieges)
|Iterate through all titles the scoped character is heir to
|any_character_to_title_neighboring_and_across_water_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_heir_to_title = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|landed title
|-
|-
|any_character_to_title_neighboring_and_across_water_duchy
|any_held_title
|Scopes from a character to a neighboring duchy (incl. across water, looking through the de jure lieges)
|Iterate through all held landed titles
|any_character_to_title_neighboring_and_across_water_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_held_title = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|landed title
|-
|-
|any_character_to_title_neighboring_and_across_water_empire
|any_hired_mercenary
|Scopes from a character to a neighboring empire (incl. across water, looking through the de jure lieges)
|Iterate through all hired mercenary companies
|any_character_to_title_neighboring_and_across_water_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_hired_mercenary = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|mercenary company
|-
|-
|any_character_to_title_neighboring_and_across_water_kingdom
|any_hooked_character
|Scopes from a character to a neighboring kingdom (incl. across water, looking through the de jure lieges)
|Iterate through all characters this character has a hook on
|any_character_to_title_neighboring_and_across_water_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_hooked_character = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|character
|-
|-
|any_character_to_title_neighboring_barony
|any_hostile_raider
|Scopes from a character to a neighboring barony (looking through the de jure lieges)
|Iterate through anyone the character is hostile to due to their top liege's realm having been raided
|any_character_to_title_neighboring_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_hostile_raider = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|character
|-
|-
|any_character_to_title_neighboring_county
|any_intrigue_councillor
|Scopes from a character to a neighboring county (looking through the de jure lieges)
|Iterate through all intrigue-based councillors
|any_character_to_title_neighboring_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_intrigue_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|character
|-
|-
|any_character_to_title_neighboring_duchy
|any_knight
|Scopes from a character to a neighboring duchy (looking through the de jure lieges)
|Iterate through all knights
|any_character_to_title_neighboring_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_knight = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|-
|any_character_to_title_neighboring_empire
|Scopes from a character to a neighboring empire (looking through the de jure lieges)
|any_character_to_title_neighboring_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|character
|landed title
|-
|-
|any_character_to_title_neighboring_kingdom
|any_known_secret
|Scopes from a character to a neighboring kingdom (looking through the de jure lieges)
|Iterate through all secrets known by the character
|any_character_to_title_neighboring_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_known_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|secret
|-
|-
|any_character_war
|any_learning_councillor
|Wars of the scoped character
|Iterate through all learning-based councillors
|any_character_war = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_learning_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|war
|character
|-
|-
|any_child
|any_liege_or_above
|Iterate through all children
|Iterate through all lieges above a character (skipping the character themselves)
|any_child = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_liege_or_above = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|character
|character
|-
|-
|any_claim
|any_martial_councillor
|Iterate through the titles of all claims held by a character; parameters: explicit = yes/no/all pressed = yes/no/all
|Iterate through all martial-based councillors
|any_claim = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_martial_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
 
|character
|character
|landed title
|character
|-
|-
|any_close_family_member
|any_neighboring_and_across_water_realm_same_rank_owner
|Iterate through all the close family [father, mother, siblings, children, grandparents]
|A sub-realm or realm bordering the scope character's realm (including across water) that has the same rank as the scoped character (look for lieges of the owner of the land if necessary)
|any_close_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_neighboring_and_across_water_realm_same_rank_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_close_or_extended_family_member
|any_neighboring_and_across_water_top_liege_realm
|Iterate through all the close and extended relatives [father, mother, siblings, children, grandparents, uncles/aunts, nephew/niece, cousins]
|A realm with a different top liege neighboring the realm of the scoped character's top liege (including across water); switches to the realm's top title. Can be based on borders a day or two out of date
|any_close_or_extended_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_neighboring_and_across_water_top_liege_realm = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_concubine
|any_neighboring_and_across_water_top_liege_realm_owner
|Iterate through all concubines
|A realm with a different top liege neighboring the realm of the scope character's top liege (including across water); switches to the holder of the realm. Can be based on borders a day or two out of date
|any_concubine = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_neighboring_and_across_water_top_liege_realm_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_consort
|any_neighboring_realm_same_rank_owner
|Iterate through all consorts (concubines and spouses)
|A sub-realm or realm bordering the scope character's realm and has the same rank as the scope character (look for lieges of he owner of the land if necessary)
|any_consort = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_neighboring_realm_same_rank_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_councillor
|any_neighboring_top_liege_realm
|Iterate through all councillors
|A realm with a different top liege neighboring the realm of the scope character's top liege; switches to the realm's top title. Can be based on borders a day or two out of date
|any_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_neighboring_top_liege_realm = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_courtier
|any_neighboring_top_liege_realm_owner
|Iterate through all courtiers
|A realm with a different top liege neighboring the realm of the scope character's top liege; switches to the holder of the realm. Can be based on borders a day or two out of date
|any_courtier = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_neighboring_top_liege_realm_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_courtier_away
|any_owned_story
|Iterate through all courtiers that are away
|Iterate through all owned stories for a character
|any_courtier_away = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_owned_story = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|story cycle
|-
|-
|any_courtier_or_guest
|any_parent
|Iterate through all courtiers and guests (pool and foreign court guests)
|Iterate through all (both) parents
|any_courtier_or_guest = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_parent = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_de_jure_claim
|any_patroned_holy_order
|Iterate through all de jure claims for a character
|Iterate through all holy orders that the scoped character is a patron of
|any_de_jure_claim = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_patroned_holy_order = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|holy order
|-
|-
|any_diplomacy_councillor
|any_pinned_character
|Iterate through all diplomacy-based councillors
|Iterate through characters this player has pinned
|any_diplomacy_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_pinned_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_directly_owned_province
|any_pinning_character
|Iterate through all directly owned provinces
|Iterate through characters whose player has this character pinned
|any_directly_owned_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_pinning_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|province
|-
|any_election_title
|Iterate through all titles the scoped character can vote on
|any_election_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|character
|landed title
|-
|-
|any_extended_family_member
|any_player_heir
|Iterate through all the extended family [uncles/aunts, nephew/niece, cousins]
|Iterate through player heirs, capped at the first 10
|any_extended_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_player_heir = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_foreign_court_guest
|any_pool_guest
|Iterate through all guests visiting from another court (in contrast to pool_guest they have a liege)
|Iterate through all guests visiting the court from the pool (in contrast to foreign_court_guest they don't have a liege)
|any_foreign_court_guest = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_pool_guest = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_former_concubine
|any_potential_marriage_option
|Iterate through all former concubines. Not persisted past death
|Iterate through all potential selectable marriage or betrothal options
|any_former_concubine = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_potential_marriage_option = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_former_concubinist
|any_pretender_title
|Iterate through all former concubinists. Not persisted past death
|Iterate through all landed titles character is pretender to
|any_former_concubinist = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_pretender_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_former_spouse
|any_primary_war_enemy
|Iterate through all former spouses
|Iterate through all primary war enemies
|any_former_spouse = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_primary_war_enemy = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_general_councillor
|any_prisoner
|Iterate through all councillors that are not related to a skill
|Iterate through all prisoners in the scoped character's dungeon
|any_general_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_prisoner = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_heir
|any_prowess_councillor
|Heirs of the scoped character
|Iterate through all prowess-based councillors
|any_heir = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_prowess_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_heir_title
|any_raid_target
|Iterate through all landed titles character is heir to
|Iterate through anyone the character is hostile to due to having raided them. Only returns top lieges
|any_heir_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_raid_target = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|character
|-
|-
|any_heir_to_title
|any_realm_county
|Iterate through all titles the scoped character is heir to
|Iterate through all counties in the realm. Based on top liege
|any_heir_to_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_realm_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|landed title
|-
|-
|any_held_title
|any_realm_de_jure_duchy
|Iterate through all held landed titles
|Iterate through all de jure duchies that have at least one county in the realm. Based on top liege
|any_held_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_realm_de_jure_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|landed title
|-
|-
|any_hired_mercenary
|any_realm_de_jure_empire
|Iterate through all hired mercenary companies
|Iterate through all de jures empire that have at least one county in the realm. Based on top liege
|any_hired_mercenary = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_realm_de_jure_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|mercenary company
|landed title
|-
|-
|any_hooked_character
|any_realm_de_jure_kingdom
|Iterate through all characters this character has a hook on
|Iterate through all de jure kingdom that have at least one county in the realm. Based on top liege
|any_hooked_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_realm_de_jure_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_hostile_raider
|any_realm_province
|Iterate through anyone the character is hostile to due to their top liege's realm having been raided
|Iterate through all realm provinces [baronies?] of a character
|any_hostile_raider = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_realm_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|province
|-
|-
|any_intrigue_councillor
|any_relation
|Iterate through all intrigue-based councillors
|Iterate through scripted relations of a given type or multiple types. If someone is multiple relations they will only be in the list once
|any_intrigue_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_relation = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_knight
|any_scheme
|Iterate through all knights
|Iterate through all schemes owned by the character
|any_knight = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_scheme = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|scheme
|-
|-
|any_known_secret
|any_secret
|Iterate through all secrets known by the character
|Iterate through all secrets of the character
|any_known_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|secret
|secret
|-
|-
|any_learning_councillor
|any_sibling
|Iterate through all learning-based councillors
|Iterate through all siblings
|any_learning_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sibling = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_liege_or_above
|any_spouse
|Iterate through all lieges above a character (skipping the character themselves)
|Iterate through all spouses
|any_liege_or_above = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_spouse = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_martial_councillor
|any_spouse_candidate
|Iterate through all martial-based councillors
|Iterate through all the spouse candidates of a character. WARNING: THIS IS VERY SLOW DO NOT DO IT OFTEN.
|any_martial_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_spouse_candidate = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_neighboring_and_across_water_realm_same_rank_owner
|any_stewardship_councillor
|A sub-realm or realm bordering the scope character's realm (including across water) that has the same rank as the scoped character (look for lieges of the owner of the land if necessary)
|Iterate through all stewardship-based councillors
|any_neighboring_and_across_water_realm_same_rank_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_stewardship_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_neighboring_and_across_water_top_liege_realm
|any_sub_realm_barony
|A realm with a different top liege neighboring the realm of the scoped character's top liege (including across water); switches to the realm's top title. Can be based on borders a day or two out of date
|Iterate through all baronies in sub-realm
|any_neighboring_and_across_water_top_liege_realm = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sub_realm_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|landed title
|-
|-
|any_neighboring_and_across_water_top_liege_realm_owner
|any_sub_realm_county
|A realm with a different top liege neighboring the realm of the scope character's top liege (including across water); switches to the holder of the realm. Can be based on borders a day or two out of date
|Iterate through all counties in sub-realm
|any_neighboring_and_across_water_top_liege_realm_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sub_realm_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_neighboring_realm_same_rank_owner
|any_sub_realm_duchy
|A sub-realm or realm bordering the scope character's realm and has the same rank as the scope character (look for lieges of he owner of the land if necessary)
|Iterate through all duchies in sub-realm
|any_neighboring_realm_same_rank_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sub_realm_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_neighboring_top_liege_realm
|any_sub_realm_empire
|A realm with a different top liege neighboring the realm of the scope character's top liege; switches to the realm's top title. Can be based on borders a day or two out of date
|Iterate through all empires in sub-realm
|any_neighboring_top_liege_realm = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sub_realm_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|landed title
|-
|-
|any_neighboring_top_liege_realm_owner
|any_sub_realm_kingdom
|A realm with a different top liege neighboring the realm of the scope character's top liege; switches to the holder of the realm. Can be based on borders a day or two out of date
|Iterate through all kingdoms in sub-realm
|any_neighboring_top_liege_realm_owner = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sub_realm_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|landed title
|-
|-
|any_owned_story
|any_sub_realm_title
|Iterate through all owned stories for a character
|Iterate through all titles in sub-realm
|any_owned_story = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_sub_realm_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|story cycle
|landed title
|-
|-
|any_parent
|any_targeting_faction
|Iterate through all (both) parents
|Iterate through all factions targeting the scoped character
|any_parent = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_targeting_faction = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|faction
|-
|-
|any_patroned_holy_order
|any_targeting_scheme
|Iterate through all holy orders that the scoped character is a patron of
|Iterate through all schemes targeting the character
|any_patroned_holy_order = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_targeting_scheme = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|holy order
|scheme
|-
|-
|any_pinned_character
|any_targeting_secret
|Iterate through characters this player has pinned
|Iterate through all secrets that target the specified scope
|any_pinned_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_targeting_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|secret
|-
|-
|any_pinning_character
|any_traveling_family_member
|Iterate through characters whose player has this character pinned
|Iterate though all characters that should travel with the scoped one (when moving between courts for instance); includes the scoped character
|any_pinning_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_traveling_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_player_heir
|any_truce_holder
|Iterate through player heirs, capped at the first 10
|Iterate through all characters that have a truce with this character
|any_player_heir = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_truce_holder = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_pool_guest
|any_truce_target
|Iterate through all guests visiting the court from the pool (in contrast to foreign_court_guest they don't have a liege)
|Iterate through all characters this character has a truce with
|any_pool_guest = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_truce_target = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_potential_marriage_option
|any_unspent_known_secret
|Iterate through all potential selectable marriage or betrothal options
|Iterate through all unspent (not revealed/blackmailed) secrets known by the character
|any_potential_marriage_option = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_unspent_known_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|secret
|-
|-
|any_pretender_title
|any_vassal
|Iterate through all landed titles character is pretender to
|Iterate through all DIRECT vassals
|any_pretender_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_vassal = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|landed title
|character
|-
|-
|any_primary_war_enemy
|any_vassal_or_below
|Iterate through all primary war enemies
|Iterate through ALL vassals, not just direct vassals
|any_primary_war_enemy = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_vassal_or_below = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_prisoner
|any_war_ally
|Iterate through all prisoners in the scoped character's dungeon
|Iterate through all direct war allies
|any_prisoner = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_war_ally = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_prowess_councillor
|any_war_enemy
|Iterate through all prowess-based councillors
|Iterate through all direct war enemies
|any_prowess_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|any_war_enemy = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|character
|character
|-
|-
|any_raid_target
|attraction
|Iterate through anyone the character is hostile to due to having raided them. Only returns top lieges
|Attraction value for the scoped character
|any_raid_target = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|character
|-
|base_weight
|Base weight of the scoped character
|base_weight > 10
|<, <=, =, !=, >, >=
|character
|character
|character
|-
|-
|any_realm_county
|can_add_hook
|Iterate through all counties in the realm. Based on top liege
|Will trying to hook the target character override the current hook? (if no current hook, always returns true)
|any_realm_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|can_add_hook = {
target = <character>
type = <hook type>
days/months/year = whatever (optional; will use the duration from the type if not provided)
}
|character
|character
|landed title
|-
|-
|any_realm_de_jure_duchy
|can_attack_in_hierarchy
|Iterate through all de jure duchies that have at least one county in the realm. Based on top liege
|Can the scope character attack the given character based on their liege-vassal relations?
|any_realm_de_jure_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character target
|character
|character
|landed title
|-
|any_realm_de_jure_empire
|Iterate through all de jures empire that have at least one county in the realm. Based on top liege
|any_realm_de_jure_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|landed title
|-
|-
|any_realm_de_jure_kingdom
|can_be_child_of
|Iterate through all de jure kingdom that have at least one county in the realm. Based on top liege
|Would the target character have been able to have children at the time of the scoped character's birth? Only age is taken into account
|any_realm_de_jure_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character target
|character
|-
|can_be_parent_of
|Would the scoped character have been able to have children at the time of the target character's birth? Only age is taken into account
|
|character target
|character
|character
|landed title
|-
|-
|any_realm_province
|can_create_faction
|Iterate through all realm provinces [baronies?] of a character
|Can the character create the faction of the specified type against the specified character?
|any_realm_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|can_create_faction = { type = X target = Y }
|character
|character
|province
|-
|-
|any_relation
|can_execute_decision
|Iterate through scripted relations of a given type or multiple types. If someone is multiple relations they will only be in the list once
|Is the scoped character able to execute the given decision?
|any_relation = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|character
|character
|-
|-
|any_scheme
|can_have_children
|Iterate through all schemes owned by the character
|Can the character have children? Only checks hard blocks from traits, not fertility
|any_scheme = { <count=num/all> / <percent=fixed_point> <triggers> }
|can_have_children = yes/no
|yes/no
|character
|character
|scheme
|-
|any_secret
|Iterate through all secrets of the character
|any_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|secret
|-
|-
|any_sibling
|can_join_activities
|Iterate through all siblings
|Can the character join activities?
|any_sibling = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|yes/no
|character
|character
|character
|-
|-
|any_spouse
|can_join_faction
|Iterate through all spouses
|Can the scope character join the faction?
|any_spouse = { <count=num/all> / <percent=fixed_point> <triggers> }
|can_join_faction = faction
|character
|character
|
|-
|can_join_or_create_faction_against
|Can the scope character create if join a faction against the target?
|can_join_or_create_faction_against = scope:faction_target
can_join_or_create_faction_against = {
who = scope:faction_target
faction = faction_key # optional
check_in_a_faction = no # default: yes
}
|character target
|character
|character
|
|-
|-
|any_spouse_candidate
|can_start_scheme
|Iterate through all the spouse candidates of a character. WARNING: THIS IS VERY SLOW DO NOT DO IT OFTEN.
|Can the character start the given scheme against the given character?
|any_spouse_candidate = { <count=num/all> / <percent=fixed_point> <triggers> }
|can_start_scheme = { type = X target = Y }
|character
|character
|character
|-
|-
|any_stewardship_councillor
|character_has_commander_trait_scope_does_not
|Iterate through all stewardship-based councillors
|Does the character have a commander trait that the scope does not?
|any_stewardship_councillor = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character target
|character
|character
|character
|-
|any_sub_realm_barony
|Iterate through all baronies in sub-realm
|any_sub_realm_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|landed title
|-
|-
|any_sub_realm_county
|character_is_land_realm_neighbor
|Iterate through all counties in sub-realm
|Is the scoped character a realm neighbor of the target? Meaning they're independent or have the same liege, and border your realm.
|any_sub_realm_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character target
|character
|-
|character_is_realm_neighbor
|Is the scoped character a realm neighbor of the target? Meaning they're independent or has the same liege, and border your realm. Including across two sea zones
|
|character target
|character
|character
|landed title
|-
|-
|any_sub_realm_duchy
|completely_controls
|Iterate through all duchies in sub-realm
|Coes the character control all counties and baronies inside de jure title (no hostile occupation either)?
|any_sub_realm_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|landed title scope
|character
|character
|landed title
|landed title
|-
|-
|any_sub_realm_empire
|completely_controls_region
|Iterate through all empires in sub-realm
|Does the character control all counties and baronies inside the specified region (no hostile occupation either)?
|any_sub_realm_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|character
|landed title
|-
|-
|any_sub_realm_kingdom
|council_task_monthly_progress
|Iterate through all kingdoms in sub-realm
|Is the scoped character's monthly progress on their assigned council task this big?
|any_sub_realm_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|character
|character
|landed title
|-
|-
|any_sub_realm_title
|create_faction_type_chance
|Iterate through all titles in sub-realm
|Check if the chance to create a faction against a target of the scope character is is true against the scripted value
|any_sub_realm_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|create_faction_type_chance = { 
   type = faction_type #An ongoing faction
   target = target_character
   value <|<=|>=|> 0
}
|character
|character
|landed title
|-
|-
|any_targeting_faction
|current_weight
|Iterate through all factions targeting the scoped character
|Current weight of the scoped character
|any_targeting_faction = { <count=num/all> / <percent=fixed_point> <triggers> }
|current_weight > 10
|<, <=, =, !=, >, >=
|character
|-
|current_weight_for_portrait
|Current weight of the scoped character as a value for portraits scaled between 0.0 and 1.0
|current_weight_for_portrait > 0.1
|<, <=, =, !=, >, >=
|character
|character
|faction
|-
|-
|any_targeting_scheme
|days_in_prison
|Iterate through all schemes targeting the character
|Number of days the character has been imprisoned for (0 if not imprisoned)
|any_targeting_scheme = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|character
|-
|days_of_continuous_peace
|Number of days the character has been at peace (0 if at war). Raids count as 'not peace'
|
|<, <=, =, !=, >, >=
|character
|character
|scheme
|-
|-
|any_targeting_secret
|days_of_continuous_war
|Iterate through all secrets that target the specified scope
|Number of days the character has been at war (0 if at peace)
|any_targeting_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|character
|character
|secret
|-
|-
|any_traveling_family_member
|death_reason
|Iterate though all characters that should travel with the scoped one (when moving between courts for instance); includes the scoped character
|Does the scoped character have the given death reason?
|any_traveling_family_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|death_reason = death_natural_causes
|character
|character
|
|-
|diplomacy
|Does the character have the required diplomacy skill level?
|
|<, <=, =, !=, >, >=
|character
|character
|
|-
|-
|any_truce_holder
|diplomacy_diff
|Iterate through all characters that have a truce with this character
|Does the character have the required diplomacy skill level difference against target?
|any_truce_holder = { <count=num/all> / <percent=fixed_point> <triggers> }
|diplomacy = { target = character value <= script_value abs = yes/no(optional, default no) }
|<, <=, =, !=, >, >=
|character
|-
|diplomacy_for_portrait
|Diplomacy skill scaled between 0.0 and 1.0 for portraits
|
|<, <=, =, !=, >, >=
|character
|character
|
|-
|diplomacy_lifestyle_perk_points
|How many diplomacy perk points does the character have available?
|
|<, <=, =, !=, >, >=
|character
|character
|
|-
|-
|any_truce_target
|diplomacy_lifestyle_perks
|Iterate through all characters this character has a truce with
|How many diplomacy perks does the character have?
|any_truce_target = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|character
|-
|diplomacy_lifestyle_xp
|How much diplomacy lifestyle experience does the character have?
|
|<, <=, =, !=, >, >=
|character
|character
|character
|-
|-
|any_unspent_known_secret
|does_ai_liege_in_vassal_contract_desire_obligation_change
|Iterate through all unspent (not revealed/blackmailed) secrets known by the character
|Does the AI liege in a vassal contract desire changing an obligation level?
|any_unspent_known_secret = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|yes/no
|character
|character
|secret
|-
|any_vassal
|Iterate through all DIRECT vassals
|any_vassal = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|-
|-
|any_vassal_or_below
|does_ai_vassal_in_vassal_contract_desire_obligation_change
|Iterate through ALL vassals, not just direct vassals
|Does the AI vassal in a vassal contract desire changing an obligation level?
|any_vassal_or_below = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|
|yes/no
|character
|character
|-
|any_war_ally
|Iterate through all direct war allies
|any_war_ally = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|character
|character
|-
|any_war_enemy
|Iterate through all direct war enemies
|any_war_enemy = { <count=num/all> / <percent=fixed_point> <triggers> }
|character
|character
|-
|-
|attraction
|domain_limit
|Attraction value for the scoped character
|Is the scoped character's domain limit this big?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第1,851行: 第1,993行:
|-
|-
|base_weight
|domain_limit_available
|Base weight of the scoped character
|Is there this much space left in the character's domain limit? Negative values also work for checking characters that are above their limit
|base_weight > 10
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_add_hook
|domain_limit_percentage
|Will trying to hook the target character override the current hook? (if no current hook, always returns true)
|Is the scoped character's domain this big in comparison to their limit?
|can_add_hook = {
|
target = <character>
|<, <=, =, !=, >, >=
type = <hook type>
days/months/year = whatever (optional; will use the duration from the type if not provided)
}
|
|character
|character
|-
|-
|can_attack_in_hierarchy
|domain_size
|Can the scope character attack the given character based on their liege-vassal relations?
|Is the scoped character's domain this big?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_be_child_of
|dread
|Would the target character have been able to have children at the time of the scoped character's birth? Only age is taken into account
|Does the character have the required dread?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_be_parent_of
|dread_modified_ai_boldness
|Would the scoped character have been able to have children at the time of the target character's birth? Only age is taken into account
|AI boldness modified by the dread of the specified character
|
|dread_modified_ai_boldness = {
|character target
character = root # the character whose dread is affecting the target character
value >= 5
}
|character
|character
|-
|-
|can_create_faction
|effective_age
|Can the character create the faction of the specified type against the specified character?
|Age of character. If immortal, age they became immortal at
|can_create_faction = { type = X target = Y }
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_execute_decision
|fertility
|Is the scoped character able to execute the given decision?
|Does the character have the required fertility?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_have_children
|focus_progress
|Can the character have children? Only checks hard blocks from traits, not fertility
|Does the character have this much focus progress?
|can_have_children = yes/no
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_join_activities
|gold
|Can the character join activities?
|GHoes the character have the required gold?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|can_join_faction
|government_allows
|Can the scope character join the faction?
|Checks if the government of the character allows something
|can_join_faction = faction
|
|character
|character
|-
|-
|can_join_or_create_faction_against
|government_disallows
|Can the scope character create if join a faction against the target?
|Checks if the government of the character disallows something
|can_join_or_create_faction_against = scope:faction_target
|
can_join_or_create_faction_against = {
who = scope:faction_target
faction = faction_key # optional
check_in_a_faction = no # default: yes
}
|character target
|character
|character
|-
|-
|can_start_scheme
|government_has_flag
|Can the character start the given scheme against the given character?
|Checks if the government of the character has a specific flag
|can_start_scheme = { type = X target = Y }
|
|character
|character
|-
|-
|character_has_commander_trait_scope_does_not
|has_any_cb_on
|Does the character have a commander trait that the scope does not?
|Does the scope character have any casus belli on the target character?
|
|
|character target
|character target
第1,951行: 第2,087行:
|-
|-
|character_is_land_realm_neighbor
|has_any_display_cb_on
|Is the scoped character a realm neighbor of the target? Meaning they're independent or have the same liege, and border your realm.
|Does the scope character have any casus belli on the target character that should be displayed? (Allowed to fail valid_to_start_display_regardless)
|
|
|character target
|character target
第1,958行: 第2,094行:
|-
|-
|character_is_realm_neighbor
|has_any_focus
|Is the scoped character a realm neighbor of the target? Meaning they're independent or has the same liege, and border your realm. Including across two sea zones
|Does the character have any focus set?
|
|
|character target
|yes/no
|character
|character
|-
|-
|completely_controls
|has_any_nickname
|Coes the character control all counties and baronies inside de jure title (no hostile occupation either)?
|Does the scope character have a nickname?
|
|
|landed title scope
|yes/no
|character
|character
|landed title
|-
|-
|completely_controls_region
|has_any_scripted_relation
|Does the character control all counties and baronies inside the specified region (no hostile occupation either)?
|Does the scope character have any scripted relation with the target character?
|
|
|character target
|character
|character
|-
|-
|council_task_monthly_progress
|has_any_secret_relation
|Is the scoped character's monthly progress on their assigned council task this big?
|Does the scope character have any secret relationship with the target character?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|create_faction_type_chance
|has_any_secrets
|Check if the chance to create a faction against a target of the scope character is is true against the scripted value
|Does the character have any secrets?
|create_faction_type_chance = {
|
   type = faction_type #An ongoing faction
|yes/no
   target = target_character
   value <|<=|>=|> 0
}
|character
|character
|-
|-
|current_weight
|has_bad_nickname
|Current weight of the scoped character
|Does the scope character have a bad nickname?
|current_weight > 10
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|current_weight_for_portrait
|has_banish_reason
|Current weight of the scoped character as a value for portraits scaled between 0.0 and 1.0
|Does the character have the banish reason towards the target?
|current_weight_for_portrait > 0.1
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|days_in_prison
|has_cb_on
|Number of days the character has been imprisoned for (0 if not imprisoned)
|Does the scoped character have the specified casus belli on the taget character? Invalid target returns false
|
|has_cb_on = { target = X casus_belli/cb = Y }
|<, <=, =, !=, >, >=
|
|character
|character
|-
|-
|days_of_continuous_peace
|has_character_flag
|Number of days the character has been at peace (0 if at war). Raids count as 'not peace'
|Does the character have this flag?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|days_of_continuous_war
|has_character_modifier
|Number of days the character has been at war (0 if at peace)
|Does the scoped character have a given modifier?
|
|has_character_modifier = name
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|death_reason
|has_character_modifier_duration_remaining
|Does the scoped character have the given death reason?
|Does the scoped character have the duration remaining on a given modifier?
|death_reason = death_natural_causes
|has_character_modifier_duration_remaining = name
|character
|character
|-
|-
|diplomacy
|has_claim_on
|Does the character have the required diplomacy skill level?
|Does the character have a claim on the target title?
|
|
|<, <=, =, !=, >, >=
|landed title target
|character
|character
|-
|-
|diplomacy_diff
|has_council_position
|Does the character have the required diplomacy skill level difference against target?
|Does the scoped character have the given position?
|diplomacy = { target = character value <= script_value abs = yes/no(optional, default no) }
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|diplomacy_for_portrait
|has_councillor_for_skill
|Diplomacy skill scaled between 0.0 and 1.0 for portraits
|Does the scoped character have a councillor for the specified skill?
|
| has_councillor_for_skill = X, where X is a skill name or 'general'
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|diplomacy_lifestyle_perk_points
|has_culture
|How many diplomacy perk points does the character have available?
|Does the character have this culture?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|diplomacy_lifestyle_perks
|has_culture_group
|How many diplomacy perks does the character have?
|Is the character's culture in this culture group?
|
|has_culture_group = culture_group:east_slavic_group
|<, <=, =, !=, >, >=
|culture group scope
|character
|character
|culture group
|-
|-
|diplomacy_lifestyle_xp
|has_de_jure_claim_on
|How much diplomacy lifestyle experience does the character have?
|Does the scope character have a de jure claim against the target?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|does_ai_liege_in_vassal_contract_desire_obligation_change
|has_disable_non_aggression_pacts
|Does the AI liege in a vassal contract desire changing an obligation level?
|Does the character have disabled non-aggression pacts with the target?
|
|
|yes/no
|character target
|character
|character
|-
|-
|does_ai_vassal_in_vassal_contract_desire_obligation_change
|has_divorce_reason
|Does the AI vassal in a vassal contract desire changing an obligation level?
|Does the character have the divorce reason towards the target?
|
|
|yes/no
|character target
|character
|character
|-
|-
|domain_limit
|has_dread_level_towards
|Is the scoped character's domain limit this big?
|How scared is the scope character of the target? 0 = not intimidated, 1 = intimidated, 2 = terrified.
|
|has_dread_level_towards = {
|<, <=, =, !=, >, >=
target = X
level >/</>=/<=/= Y
}
|
|character
|character
|-
|-
|domain_limit_available
|has_dynasty
|Is there this much space left in the character's domain limit? Negative values also work for checking characters that are above their limit
|Does the character have a valid dynasty?
|
|
|<, <=, =, !=, >, >=
|yes ("no" does not work)
|character
|character
|-
|-
|domain_limit_percentage
|has_election_vote_of
|Is the scoped character's domain this big in comparison to their limit?
|Is the target character voting for the scoped character in the election of the target title
|
|has_election_vote_of = { who = scope:actor title = primary_title }
|<, <=, =, !=, >, >=
|
|character
|character
|-
|-
|domain_size
|has_execute_reason
|Is the scoped character's domain this big?
|Does the character have the execute reason towards the target?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|dread
|has_faith
|Does the character have the required dread?
|Does the character have this faith?
|
|has_faith = faith:baltic_pagan
|<, <=, =, !=, >, >=
|faith scope
|character
|character
|faith
|-
|-
|dread_modified_ai_boldness
|has_father
|AI boldness modified by the dread of the specified character
|does the character have a valid living father?
|dread_modified_ai_boldness = {
|
character = root # the character whose dread is affecting the target character
|yes/no
value >= 5
}
|character
|character
|-
|-
|effective_age
|has_focus
|Age of character. If immortal, age they became immortal at
|Does the character have this focus?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|fertility
|has_free_council_slot
|Does the character have the required fertility?
|Does the scope character have a council position to fill? (ignoring automatically filled positions)
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|focus_progress
|has_gene
|Does the character have this much focus progress?
|Does the character have the specified gene template? Only works for morph genes. An interface trigger, can only be used in specific places
|
| has_gene = { category = X template = Y }
|<, <=, =, !=, >, >=
|character
|-
|gold
|GHoes the character have the required gold?
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|government_allows
|has_government
|Checks if the government of the character allows something
|Checks if the character has a specific government type
| has_government = X
Where X is any government type (e.g. feudal_government, clan_government, tribal_government, etc.)
|
|
|
|character
|character
|-
|-
|government_disallows
|has_had_focus_for_days
|Checks if the government of the character disallows something
|Has the character had a focus for the given amount of time?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|government_has_flag
|has_hook
|Checks if the government of the character has a specific flag
|Does the character have a hook on the target?
|
| has_hook = <character>
|character scope
|character
|character
|-
|has_hook_from_secret
|Does the character have a hook based on the target's secret?
|has_hook_from_secret = scope:saved_secret
|
|character
|
|-
|has_hook_of_type
|Does the character have a hook on the target of the given type?
|has_hook_of_type = { target = X type = Y }
|character
|character
|-
|-
|has_any_cb_on
|has_imprisonment_reason
|Does the scope character have any casus belli on the target character?
|Does the character have an imprisonment reason towards the target?
|
|
|character target
|character target
第2,196行: 第2,336行:
|-
|-
|has_any_display_cb_on
|has_inactive_trait
|Does the scope character have any casus belli on the target character that should be displayed? (Allowed to fail valid_to_start_display_regardless)
|Does the character have this trait or a trait of this trait group amongst their inactive traits?
|
|
|character target
|character
|character
|-
|-
|has_any_focus
|has_lifestyle
|Does the character have any focus set?
|Does the character have this lifestyle?
|
|
|yes/no
|character
|character
|-
|-
|has_any_nickname
|has_mother
|Does the scope character have a nickname?
|Does the character have a valid living mother?
|
|
|yes/no
|yes/no
第2,217行: 第2,357行:
|-
|-
|has_any_scripted_relation
|has_nickname
|Does the scope character have any scripted relation with the target character?
|Does the character have this nickname?
|
|
|character target
|character
|character
|-
|-
|has_any_secret_relation
|has_non_aggression_pact
|Does the scope character have any secret relationship with the target character?
|Does the character have a non-aggression pact with the target?
|
|
|character target
|character target
第2,231行: 第2,371行:
|-
|-
|has_any_secrets
|has_non_interference
|Does the character have any secrets?
|Does the character have the non-interference reason towards the target?
|
|
|yes/no
|character target
|character
|character
|-
|-
|has_bad_nickname
|has_opinion_modifier
|Does the scope character have a bad nickname?
|Does the character have the specified opinion modifier on the target? (optional *value <|<=|=|>=|> X* or *value = { MIN MAX }* inclusive)
|
|
|yes/no
|character
|character
|-
|-
|has_banish_reason
|has_opposite_relation
|Does the character have the banish reason towards the target?
|Does the scoped character have an opposite relationship of the relation value with the target character? target = , relation =
|
|
|character target
|character
|
|-
|has_cb_on
|Does the scoped character have the specified casus belli on the taget character? Invalid target returns false
|has_cb_on = { target = X casus_belli/cb = Y }
|character
|character
|-
|-
|has_character_flag
|has_owned_scheme
|Does the character have this flag?
|Does this character own a scheme?
|
|
|yes/no
|character
|character
|-
|-
|has_character_modifier
|has_pending_interaction_of_type
|Does the scoped character have a given modifier?
|Does the character have a pending interaction of the type? Only works if the scope is player-controlled.
|has_character_modifier = name
|Example: has_pending_interaction = interaction_key
|character
|character
|-
|-
|has_character_modifier_duration_remaining
|has_perk
|Does the scoped character have the duration remaining on a given modifier?
|Does the character have this perk?
|has_character_modifier_duration_remaining = name
|
|character
|character
|-
|-
|has_claim_on
|has_primary_title
|Does the character have a claim on the target title?
|Does the character has specific title as his primary title?
|
|
|landed title target
|landed title scope
|character
|character
|landed title
|-
|-
|has_council_position
|has_raid_immunity_against
|Does the scoped character have the given position?
|Is the scoped character's (top-liege) realm immune to raiding by the target due to having defeated their raid army?
|
|has_raid_immunity_against = scope:character
|character scope
|character
|character
|-
|has_raised_armies
|Does the character have raised or gathering armies?
|
|yes/no
|character
|character
|-
|-
|has_councillor_for_skill
|has_realm_law
|Does the scoped character have a councillor for the specified skill?
|Does the scoped character have the given realm law?
| has_councillor_for_skill = X, where X is a skill name or 'general'
|
|character
|character
|-
|-
|has_culture
|has_realm_law_flag
|Does the character have this culture?
|Does the scoped character have a law with the given flag?
|
|
第2,308行: 第2,448行:
|-
|-
|has_culture_group
|has_relation_best_friend
|Is the character's culture in this culture group?
|Checks for a scripted relationship with a target character
|has_culture_group = culture_group:east_slavic_group
|
|culture group scope
|character target
|character
|character
|culture group
|-
|-
|has_de_jure_claim_on
|has_relation_bully
|Does the scope character have a de jure claim against the target?
|Checks for a scripted relationship with a target character
|
|
|character target
|character target
第2,322行: 第2,462行:
|-
|-
|has_disable_non_aggression_pacts
|has_relation_court_physician
|Does the character have disabled non-aggression pacts with the target?
|Checks for a scripted relationship with a target character
|
|
|character target
|character target
第2,329行: 第2,469行:
|-
|-
|has_divorce_reason
|has_relation_crush
|Does the character have the divorce reason towards the target?
|Checks for a scripted relationship with a target character
|
|
|character target
|character target
第2,336行: 第2,476行:
|-
|-
|has_dread_level_towards
|has_relation_flag
|How scared is the scope character of the target? 0 = not intimidated, 1 = intimidated, 2 = terrified.
|Does the scope character have a specific flag on a relation with the target character? target = , relation = , flag
|has_dread_level_towards = {
|
target = X
level >/</>=/<=/= Y
}
|character
|character
|-
|-
|has_dynasty
|has_relation_friend
|Does the character have a valid dynasty?
|Checks for a scripted relationship with a target character
|
|
|yes ("no" does not work)
|character target
|character
|character
|-
|-
|has_election_vote_of
|has_relation_guardian
|Is the target character voting for the scoped character in the election of the target title
|Checks for a scripted relationship with a target character
|has_election_vote_of = { who = scope:actor title = primary_title }
|
|character target
|character
|-
|has_relation_intrigue_mentor
|Checks for a scripted relationship with a target character
|
|character target
|character
|character
|-
|-
|has_execute_reason
|has_relation_intrigue_student
|Does the character have the execute reason towards the target?
|Checks for a scripted relationship with a target character
|
|
|character target
|character target
第2,367行: 第2,511行:
|-
|-
|has_faith
|has_relation_lover
|Does the character have this faith?
|Checks for a scripted relationship with a target character
|has_faith = faith:baltic_pagan
|
|faith scope
|character target
|character
|character
|faith
|-
|-
|has_father
|has_relation_mentor
|does the character have a valid living father?
|Checks for a scripted relationship with a target character
|
|
|yes/no
|character target
|character
|character
|-
|-
|has_focus
|has_relation_nemesis
|Does the character have this focus?
|Checks for a scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_free_council_slot
|has_relation_oaf
|Does the scope character have a council position to fill? (ignoring automatically filled positions)
|Checks for a scripted relationship with a target character
|
|
|yes/no
|character target
|character
|character
|-
|-
|has_gene
|has_relation_potential_friend
|Does the character have the specified gene template? Only works for morph genes. An interface trigger, can only be used in specific places
|Checks for a scripted relationship with a target character
| has_gene = { category = X template = Y }
|
|character target
|character
|character
|-
|-
|has_government
|has_relation_potential_lover
|Checks if the character has a specific government type
|Checks for a scripted relationship with a target character
| has_government = X
Where X is any government type (e.g. feudal_government, clan_government, tribal_government, etc.)
|
|
|character target
|character
|character
|-
|-
|has_had_focus_for_days
|has_relation_potential_rival
|Has the character had a focus for the given amount of time?
|Checks for a scripted relationship with a target character
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|has_hook
|has_relation_rival
|Does the character have a hook on the target?
|Checks for a scripted relationship with a target character
| has_hook = <character>
|
|character scope
|character target
|character
|character
|character
|
|-
|-
|has_hook_from_secret
|has_relation_soldier_friend
|Does the character have a hook based on the target's secret?
|Checks for a scripted relationship with a target character
|has_hook_from_secret = scope:saved_secret
|
|character target
|character
|character
|-
|-
|has_hook_of_type
|has_relation_soulmate
|Does the character have a hook on the target of the given type?
|Checks for a scripted relationship with a target character
|has_hook_of_type = { target = X type = Y }
|
|character target
|character
|character
|-
|-
|has_imprisonment_reason
|has_relation_student
|Does the character have an imprisonment reason towards the target?
|Checks for a scripted relationship with a target character
|
|
|character target
|character target
第2,445行: 第2,588行:
|-
|-
|has_inactive_trait
|has_relation_victim
|Does the character have this trait or a trait of this trait group amongst their inactive traits?
|Checks for a scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_lifestyle
|has_relation_ward
|Does the character have this lifestyle?
|Checks for a scripted relationship with a target character
|
|
|character target
|character
|-
|has_religion
|Does the character have this religion?
|has_religion = religion:buddhism_religion
|religion scope
|character
|character
|religion
|-
|-
|has_mother
|has_revoke_title_reason
|Does the character have a valid living mother?
|Does the character have the revoke title reason towards the target?
|
|
|yes/no
|character target
|character
|character
|-
|-
|has_nickname
|has_same_culture_as
|Does the character have this nickname?
|Does the character have the same culture as the target?
|
|
|character target
|character
|character
|-
|-
|has_non_aggression_pact
|has_same_culture_group_as
|Does the character have a non-aggression pact with the target?
|Does the character have the same culture group as the target?
|
|
|character target
|character target
第2,480行: 第2,631行:
|-
|-
|has_non_interference
|has_same_focus_as
|Does the character have the non-interference reason towards the target?
|Does the character have the same focus as the other?
|
|
|character target
|character target
第2,487行: 第2,638行:
|-
|-
|has_opinion_modifier
|has_same_government
|Does the character have the specified opinion modifier on the target?
|Checks if the character has the same government type as another character
|has_opinion_modifier = { target = X modifier = Y }
|
|character target
|character
|character
|-
|-
|has_opposite_relation
|has_secret_relation_best_friend
|Does the scoped character have an opposite relationship of the relation value with the target character? target = , relation =
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_owned_scheme
|has_secret_relation_bully
|Does this character own a scheme?
|Checks for a secret scripted relationship with a target character
|
|
|yes/no
|character target
|character
|character
|-
|-
|has_pending_interaction_of_type
|has_secret_relation_court_physician
|Does the character have a pending interaction of the type? Only works if the scope is player-controlled.
|Checks for a secret scripted relationship with a target character
|Example: has_pending_interaction = interaction_key
|
|character target
|character
|character
|-
|-
|has_perk
|has_secret_relation_crush
|Does the character have this perk?
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_primary_title
|has_secret_relation_friend
|Does the character has specific title as his primary title?
|Checks for a secret scripted relationship with a target character
|
|
|landed title scope
|character target
|character
|character
|landed title
|-
|-
|has_raid_immunity_against
|has_secret_relation_guardian
|Is the scoped character's (top-liege) realm immune to raiding by the target due to having defeated their raid army?
|Checks for a secret scripted relationship with a target character
|has_raid_immunity_against = scope:character
|
|character scope
|character target
|character
|character
|character
|
|-
|-
|has_raised_armies
|has_secret_relation_intrigue_mentor
|Does the character have raised or gathering armies?
|Checks for a secret scripted relationship with a target character
|
|
|yes/no
|character target
|character
|character
|-
|-
|has_realm_law
|has_secret_relation_intrigue_student
|Does the scoped character have the given realm law?
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_realm_law_flag
|has_secret_relation_lover
|Does the scoped character have a law with the given flag?
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_relation_best_friend
|has_secret_relation_mentor
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,564行: 第2,715行:
|-
|-
|has_relation_bully
|has_secret_relation_nemesis
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,571行: 第2,722行:
|-
|-
|has_relation_court_physician
|has_secret_relation_oaf
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,578行: 第2,729行:
|-
|-
|has_relation_crush
|has_secret_relation_potential_friend
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,585行: 第2,736行:
|-
|-
|has_relation_flag
|has_secret_relation_potential_lover
|Does the scope character have a specific flag on a relation with the target character? target = , relation = , flag =
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character
|character
|-
|-
|has_relation_friend
|has_secret_relation_potential_rival
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,599行: 第2,750行:
|-
|-
|has_relation_guardian
|has_secret_relation_rival
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,606行: 第2,757行:
|-
|-
|has_relation_intrigue_mentor
|has_secret_relation_soldier_friend
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,613行: 第2,764行:
|-
|-
|has_relation_intrigue_student
|has_secret_relation_soulmate
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,620行: 第2,771行:
|-
|-
|has_relation_lover
|has_secret_relation_student
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,627行: 第2,778行:
|-
|-
|has_relation_mentor
|has_secret_relation_victim
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,634行: 第2,785行:
|-
|-
|has_relation_nemesis
|has_secret_relation_ward
|Checks for a scripted relationship with a target character
|Checks for a secret scripted relationship with a target character
|
|
|character target
|character target
第2,641行: 第2,792行:
|-
|-
|has_relation_oaf
|has_sexuality
|Checks for a scripted relationship with a target character
|Does the character's sexuality match the scripted? (heterosexual, homosexual, bisexual, asexual, none). Characters that have yet to get a sexuality (children) have none set.
|
|
|character target
|character
|character
|-
|-
|has_relation_potential_friend
|has_strong_claim_on
|Checks for a scripted relationship with a target character
|Does the character have a pressed claim on the target title?
|
|
|character target
|landed title target
|character
|character
|-
|-
|has_relation_potential_lover
|has_strong_hook
|Checks for a scripted relationship with a target character
|Does the character have a strong hook on the target?
|has_strong_hook = <character>
|character scope
|character
|character
|-
|has_strong_usable_hook
|Does the character have a strong hook on the target that is not on cooldown?
|has_strong_usable_hook = <character>
|character scope
|character
|character
|-
|has_targeting_faction
|Is there a faction targeting the scoped character?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_relation_potential_rival
|has_title
|Checks for a scripted relationship with a target character
|Does the character hold the title?
|
|
|character target
|landed title scope
|character
|character
|landed title
|-
|-
|has_relation_rival
|has_trait
|Checks for a scripted relationship with a target character
|Does the character have this trait or a trait of this trait group?
|
|
|character target
|character
|character
|-
|-
|has_relation_soldier_friend
|has_trait_rank
|Checks for a scripted relationship with a target character
|Compare the trait rank of a character to a value or other character.
|
|has_trait_rank = {
|character target
  trait = TRAIT_GROUP
  rank <=> number (can be script value) # need only one of rank or character
  character <=> character target # need only one of rank or character
}
Note that not having the trait and having rank 0 count as the same thing. rank < X on its own will therefore return true for a character that does not have the trait.
|
|character
|character
|-
|-
|has_relation_soulmate
|has_trait_with_flag
|Checks for a scripted relationship with a target character
|Does the scope character have a trait with a certain flag?
|
|has_trait_with_flag = can_not_marry
|character target
|character
|character
|-
|-
|has_relation_student
|has_truce
|Checks for a scripted relationship with a target character
|Does the scope character have a truce with the target character? Truces are one way, which means we ask if the scope character can't attack the target character
|
|
|character target
|character target
第2,697行: 第2,867行:
|-
|-
|has_relation_victim
|has_usable_hook
|Checks for a scripted relationship with a target character
|Does the character have a hook on the target that isn't on cooldown
|has_usable_hook = <character>
|character scope
|character
|character
|-
|has_weak_claim_on
|Does the character have an unpressed claim on the target title?
|
|
|character target
|landed title target
|character
|character
|-
|-
|has_relation_ward
|has_weak_hook
|Checks for a scripted relationship with a target character
|Does the character have a weak hook on the target? A strong hook will *not* count.
|has_weak_hook = <character>
|character scope
|character
|character
|-
|health
|Does the character have the required health?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_religion
|highest_held_title_tier
|Does the character have this religion?
|What is the highest held landed title tier of the character?
|has_religion = religion:buddhism_religion
|
 
|<, <=, =, !=, >, >=
|religion scope
|character
|character
|religion
|-
|-
|has_revoke_title_reason
|highest_skill
|Does the character have the revoke title reason towards the target?
|Is the skill the highest skill (excluding prowess) of the character? True if tied for highest
|
|
|character target
|character
|character
|-
|-
|has_same_culture_as
|holds_landed_title
|Does the character have the same culture as the target?
|Is the scope character landed (holds a county or barony)?
|
|
|character target
|yes/no
|character
|
|-
|important_action_is_valid_but_invisible
|Is there an important action available to the character, but they dismissed it?
|important_action_is_valid_but_invisible = important_action_key
|
|character
|character
|-
|-
|has_same_culture_group_as
|important_action_is_visible
|Does the character have the same culture group as the target?
|Is there an important action shown to the character?
|
|important_action_is_visible = important_action_key
|character target
|character
|character
|-
|-
|has_same_focus_as
|in_activity_type
|Does the character have the same focus as the other?
|Is the character in an activity of the specified type?
|
|
|character target
|character
|character
|-
|-
|has_same_government
|in_activity_with
|Checks if the character has the same government type as another character
|Is the character in the same activity?
|
|
|character target
|character target
第2,754行: 第2,944行:
|-
|-
|has_secret_relation_best_friend
|in_diplomatic_range
|Checks for a secret scripted relationship with a target character
|Are the scoped character and the target character within each other's diplomatic range?
|
|
|character target
|character target
第2,761行: 第2,951行:
|-
|-
|has_secret_relation_bully
|intrigue
|Checks for a secret scripted relationship with a target character
|Does the character have the required intrigue skill level?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_secret_relation_court_physician
|intrigue_diff
|Checks for a secret scripted relationship with a target character
|Does the character have the required intrigue skill level difference against target?
|
|intrigue = { target = character value <= script_value abs = yes/no(optional, default no) }
|character target
 
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_secret_relation_crush
|intrigue_for_portrait
|Checks for a secret scripted relationship with a target character
|Intrigue skill scaled between 0.0 and 1.0 for portraits
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_secret_relation_friend
|intrigue_lifestyle_perk_points
|Checks for a secret scripted relationship with a target character
|How many intrigue perk points does the character have available?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_secret_relation_guardian
|intrigue_lifestyle_perks
|Checks for a secret scripted relationship with a target character
|How many intrigue perks does the character have?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_secret_relation_intrigue_mentor
|intrigue_lifestyle_xp
|Checks for a secret scripted relationship with a target character
|How much intrigue lifestyle experience does the character have?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|has_secret_relation_intrigue_student
|is_a_faction_leader
|Checks for a secret scripted relationship with a target character
|Is the scoped character a leader of a faction?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_lover
|is_a_faction_member
|Checks for a secret scripted relationship with a target character
|Is the scoped character a member of a faction?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_mentor
|is_adult
|Checks for a secret scripted relationship with a target character
|Is the scoped character adult?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_nemesis
|is_agent_exposed_in_scheme
|Checks for a secret scripted relationship with a target character
|Is the scoped character an exposed agent in the target scheme?
|
|
|character target
|character
|character
|-
|-
|has_secret_relation_oaf
|is_ai
|Checks for a secret scripted relationship with a target character
|Is the character played by AI?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_potential_friend
|is_alive
|Checks for a secret scripted relationship with a target character
|Is the character alive?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_potential_lover
|is_allied_in_war
|Checks for a secret scripted relationship with a target character
|Is the scoped character allied to the target character in a war?
|
|
|character target
|character target
第2,852行: 第3,043行:
|-
|-
|has_secret_relation_potential_rival
|is_allied_to
|Checks for a secret scripted relationship with a target character
|Is the scoped character allied to the target character?
|
|
|character target
|character target
第2,859行: 第3,050行:
|-
|-
|has_secret_relation_rival
|is_at_home
|Checks for a secret scripted relationship with a target character
|Is the character at home?
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_soldier_friend
|is_at_location
|Checks for a secret scripted relationship with a target character
|Is the character currently in the target province?
|
|
|character target
|province target
|character
|character
|-
|-
|has_secret_relation_soulmate
|is_at_same_location
|Checks for a secret scripted relationship with a target character
|Is the character currently in the same province as the target character?
|
|
|character target
|character target
第2,880行: 第3,071行:
|-
|-
|has_secret_relation_student
|is_at_war
|Checks for a secret scripted relationship with a target character
|Is the character at war? Does not consider lieges' wars
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_victim
|is_at_war_as_attacker
|Checks for a secret scripted relationship with a target character
|Is the character at war as an attacker? Does not consider lieges' wars
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_secret_relation_ward
|is_at_war_as_defender
|Checks for a secret scripted relationship with a target character
|Is the character at war as a defender? Does not consider lieges' wars
|
|
|character target
|yes/no
|character
|character
|-
|-
|has_sexuality
|is_at_war_with
|Does the character's sexuality match the scripted? (heterosexual, homosexual, bisexual, asexual, none). Characters that have yet to get a sexuality (children) have none set.
|Is the character at war with the target? Does not consider lieges' wars
|
|
|character target
|character
|character
|-
|-
|has_strong_claim_on
|is_at_war_with_liege
|Does the character have a pressed claim on the target title?
|Is the character at war with their liege?
|
|
|landed title target
|yes/no
|character
|character
|-
|-
|has_strong_hook
|is_attacker_in_war
|Does the character have a strong hook on the target?
|Is the scope character in the target war as an attacker?
|has_strong_hook = <character>
|
|character scope
|character
|character
|character
|
|-
|-
|has_strong_usable_hook
|is_attracted_to_gender_of
|Does the character have a strong hook on the target that is not on cooldown?
|Does the sexuality of the scope character make them attracted to the target character?
|has_strong_usable_hook = <character>
|
|character scope
|character target
|character
|character
|character
|
|-
|-
|has_targeting_faction
|is_attracted_to_men
|Is there a faction targeting the scoped character?
|Is the character attracted to men?
|
|
|yes/no
|yes/no
第2,936行: 第3,127行:
|-
|-
|has_title
|is_attracted_to_women
|Does the character hold the title?
|Is the character attracted to women?
|
|
|landed title scope
|yes/no
|character
|character
|landed title
|-
|-
|has_trait
|is_away_from_court
|Does the character have this trait or a trait of this trait group?
|Is the character away from the court?
|
|
|yes/no
|character
|-
|is_betrothed
|Is the scope character betrothed?
|
|yes/no
|character
|character
|-
|-
|has_trait_rank
|is_causing_raid_hostility_towards
|Compare the trait rank of a character to a value or other character.
|Is the scoped character making the target hostile due to having raided their (top-liege's) realm?
|has_trait_rank = {
|is_causing_raid_hostility_towards = scope:character
  trait = TRAIT_GROUP
|character scope
  rank <=> number (can be script value) # need only one of rank or character
|character
  character <=> character target # need only one of rank or character
|character
|-
|is_character_interaction_potentially_accepted
|Is the character interaction specified available and potentially accepted for the target character?
|is_character_interaction_potentially_accepted = {
   recipient = character
   interaction = interaction_name
}
}
Note that not having the trait and having rank 0 count as the same thing. rank < X on its own will therefore return true for a character that does not have the trait.
|character
|character
|-
|-
|has_trait_with_flag
|is_character_interaction_shown
|Does the scope character have a trait with a certain flag?
|Is the character interaction specified shown for the target character?
|has_trait_with_flag = can_not_marry
|is_character_interaction_shown = {
   recipient = character
   interaction = interaction_name
}
|character
|character
|-
|-
|has_truce
|is_character_interaction_valid
|Does the scope character have a truce with the target character? Truces are one way, which means we ask if the scope character can't attack the target character
|Is the character interaction specified valid (shown and usable) for the target character?
|
|is_character_interaction_valid = {
|character target
   recipient = character
   interaction = interaction_name
}
|character
|character
|-
|-
|has_usable_hook
|is_character_window_main_character
|Does the character have a hook on the target that isn't on cooldown
|Does the local player have knowledge about the secret?
|has_usable_hook = <character>
|An interface trigger, can only be used in specific places
|character scope
|yes/no
|character
|character
|character
|
|-
|-
|has_weak_claim_on
|is_child_of
|Does the character have an unpressed claim on the target title?
|Is the character a child of the target character?
|
|
|landed title target
|character target
|character
|character
|-
|-
|has_weak_hook
|is_claimant
|Does the character have a weak hook on the target? A strong hook will *not* count.
|Is the character a claimant to any landed titles?
|has_weak_hook = <character>
|
|character scope
|yes/no
|character
|character
|character
|
|-
|-
|health
|is_clergy
|Does the character have the required health?
|Is the scoped character clergy?
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|highest_held_title_tier
|is_close_family_of
|What is the highest held landed title tier of the character?
|Is the character a close family [parents, children, siblings, grandparents, grandchildren] of the target character?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|highest_skill
|is_close_or_extended_family_of
|Is the skill the highest skill (excluding prowess) of the character? True if tied for highest
|Is the character a close or extended family [parents, children, siblings, grandparents, grandchildren, cousins, uncles, aunts, nephews, nieces] of the target character?
|
|
|character target
|character
|character
|-
|-
|holds_landed_title
|is_commanding_army
|Is the scope character landed (holds a county or barony)?
|Is the character commanding an army?
|
|
|yes/no
|yes/no
第3,025行: 第3,234行:
|-
|-
|important_action_is_valid_but_invisible
|is_concubine
|Is there an important action available to the character, but they dismissed it?
|Is the scoped character a concubine?
|important_action_is_valid_but_invisible = important_action_key
|
|yes/no
|character
|character
|-
|-
|important_action_is_visible
|is_concubine_of
|Is there an important action shown to the character?
|Is the target character a concubine of the scoped character?
|important_action_is_visible = important_action_key
|
|character target
|character
|character
|-
|-
|in_activity_type
|is_consort_of
|Is the character in an activity of the specified type?
|Is the character a spouse or concubine of the target character?
|
|
|character target
|character
|character
|-
|-
|in_activity_with
|is_councillor
|Is the character in the same activity?
|Is the scoped character a councillor?
|
|
|character target
|yes/no
|character
|character
|-
|-
|in_diplomatic_range
|is_councillor_of
|Are the scoped character and the target character within each other's diplomatic range?
|Is the scoped character a councillor for the specified character?
|
|
|character target
|character target
第3,060行: 第3,269行:
|-
|-
|intrigue
|is_courtier
|Does the character have the required intrigue skill level?
|Is the scope character a courtier?
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|intrigue_diff
|is_courtier_of
|Does the character have the required intrigue skill level difference against target?
|Is the scoped character a courtier of the target character?
|intrigue = { target = character value <= script_value abs = yes/no(optional, default no) }
|
 
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|intrigue_for_portrait
|is_cousin_of
|Intrigue skill scaled between 0.0 and 1.0 for portraits
|Is the character a cousin of the target character?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|intrigue_lifestyle_perk_points
|is_defender_in_war
|How many intrigue perk points does the character have available?
|Is the scoped character in the target war as a defender?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|intrigue_lifestyle_perks
|is_employer_of
|How many intrigue perks does the character have?
|Is the target character a courtier of the scope character?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|intrigue_lifestyle_xp
|is_extended_family_of
|How much intrigue lifestyle experience does the character have?
|Is the character extended family [cousins, uncles, aunts, nephews, nieces] of the target character?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|is_a_faction_leader
|is_female
|Is the scoped character a leader of a faction?
|Is the scoped character female?
|
|
|yes/no
|yes/no
第3,110行: 第3,318行:
|-
|-
|is_a_faction_member
|is_forbidden_from_scheme
|Is the scoped character a member of a faction?
|Is the scoped character forbidden from joining the target scheme?
|
|
|yes/no
|character
|character
|-
|-
|is_adult
|is_forced_into_faction
|Is the scoped character adult?
|Is the scope character forced to be part of a faction?
|
|
|yes/no
|yes/no
第3,124行: 第3,332行:
|-
|-
|is_agent_exposed_in_scheme
|is_forced_into_scheme
|Is the scoped character an exposed agent in the target scheme?
|Checks if the scope character is forced into the target scheme
|
|
第3,131行: 第3,339行:
|-
|-
|is_ai
|is_foreign_court_guest
|Is the character played by AI?
|Is the character a guest from another a court? In contrast to is_pool_guest the character has a liege
|
|
|yes/no
|yes/no
第3,138行: 第3,346行:
|-
|-
|is_alive
|is_foreign_court_guest_of
|Is the character alive?
|Is the character a guest from another a court, visiting the target character's court? In contrast to is_pool_guest_of the character has a liege
|
|character target
|character
|
|-
|is_foreign_court_or_pool_guest
|Is the character a guest? (is_pool_guest or is_foreign_court_guest)
|
|
|yes/no
|yes/no
第3,145行: 第3,360行:
|-
|-
|is_allied_in_war
|is_foreign_court_or_pool_guest_of
|Is the scoped character allied to the target character in a war?
|Is the character a guest? (is_pool_guest_of or is_foreign_court_guest_of)
|
|
|character target
|character target
第3,152行: 第3,367行:
|-
|-
|is_allied_to
|is_grandchild_of
|Is the scoped character allied to the target character?
|Is the character a grandchild of the target character?
|
|
|character target
|character target
第3,159行: 第3,374行:
|-
|-
|is_at_home
|is_grandparent_of
|Is the character at home?
|Is the character a grandparent of the target character?
|
|
|yes/no
|character target
|character
|character
|-
|-
|is_at_location
|is_great_grandchild_of
|Is the character currently in the target province?
|Is the character a great grandchild of the target character?
|
|
|province target
|character target
|character
|character
|-
|-
|is_at_same_location
|is_great_grandparent_of
|Is the character currently in the same province as the target character?
|Is the character a great grandparent of the target character?
|
|
|character target
|character target
第3,180行: 第3,395行:
|-
|-
|is_at_war
|is_heir_of
|Is the character at war? Does not consider lieges' wars
|Is the character an heir of the target [placeholder]?
|
|
|yes/no
|character target
|character
|character
|-
|-
|is_at_war_as_attacker
|is_immortal
|Is the character at war as an attacker? Does not consider lieges' wars
|Is the character immortal?
|
|
|yes/no
|yes/no
第3,194行: 第3,409行:
|-
|-
|is_at_war_as_defender
|is_imprisoned
|Is the character at war as a defender? Does not consider lieges' wars
|is the character imprisoned?
|
|
|yes/no
|yes/no
第3,201行: 第3,416行:
|-
|-
|is_at_war_with
|is_imprisoned_by
|Is the character at war with the target? Does not consider lieges' wars
|Is the scope character imprisoned by the target character?
|
|is_imprisoned_by = TARGET
|character target
|character target
|character
|character
|-
|-
|is_at_war_with_liege
|is_in_an_activity
|Is the character at war with their liege?
|Checks whether the character is currently in, or has joined an activity
|
|
|yes/no
|yes/no
第3,215行: 第3,430行:
|-
|-
|is_attacker_in_war
|is_in_army
|Is the scope character in the target war as an attacker?
|Is the character in an army (a commander or a knight)?
|
|
|yes/no
|character
|character
|-
|-
|is_attracted_to_gender_of
|is_in_civil_war
|Does the sexuality of the scope character make them attracted to the target character?
|Is the character at war with their liege, or one or more of their vassals?
|
|
|character target
|yes/no
|character
|character
|-
|-
|is_attracted_to_men
|is_in_ongoing_great_holy_war
|Is the character attracted to men?
|Is the character in an ongoing (i.e. the war has started) great holy war?
|
|
|yes/no
|yes/no
第3,236行: 第3,451行:
|-
|-
|is_attracted_to_women
|is_in_pool_at
|Is the character attracted to women?
|Is the character in the pool the target province is a part of
|
|
|yes/no
|province target
|character
|character
|-
|-
|is_away_from_court
|is_in_prison_type
|Is the character away from the court?
|Is the character imprisoned in a prison of the specified type? Accepts any static modifier (see also imprison effect).
|
|is_in_prison_type = house_arrest
|yes/no
|character
|character
|-
|-
|is_betrothed
|is_in_target_activity
|Is the scope character betrothed?
|Is the scope character participating in the target activity?
|
|
|yes/no
|character
|character
|-
|-
|is_causing_raid_hostility_towards
|is_in_the_same_court_as
|Is the scoped character making the target hostile due to having raided their (top-liege's) realm?
|Is the character in the same court as the target character (they have the same court owner or one is a courtier of the other)?
|is_causing_raid_hostility_towards = scope:character
|
|character scope
|character target
|character
|character
|character
|
|-
|-
|is_character_interaction_potentially_accepted
|is_in_the_same_court_as_or_guest
|Is the character interaction specified available and potentially accepted for the target character?
|Is the character in the same court as the target character (they have the same court owner or one is a courtier of the other)? Includes guests in the court.
|is_character_interaction_potentially_accepted = {
|
   recipient = character
|character target
   interaction = interaction_name
}
|
|character
|character
|-
|-
|is_character_interaction_shown
|is_incapable
|Is the character interaction specified shown for the target character?
|Is the character incapable?
|is_character_interaction_shown = {
|
   recipient = character
|yes/no
   interaction = interaction_name
}
|character
|character
|-
|-
|is_character_interaction_valid
|is_independent_ruler
|Is the character interaction specified valid (shown and usable) for the target character?
|Is the character an independent ruler?
|is_character_interaction_valid = {
|
   recipient = character
|yes/no
   interaction = interaction_name
}
|character
|character
|-
|-
|is_character_window_main_character
|is_knight
|Does the local player have knowledge about the secret?
|Is the scoped character a knight?
|An interface trigger, can only be used in specific places
|
|yes/no
|yes/no
|character
|character
|-
|-
|is_child_of
|is_knight_of
|Is the character a child of the target character?
|Is the scoped character a knight of the target character?
|
|
|character target
|character target
第3,308行: 第3,514行:
|-
|-
|is_claimant
|is_landed
|Is the character a claimant to any landed titles?
|Is the scoped character landed (holds a county or barony)?
|
|
|yes/no
|yes/no
第3,315行: 第3,521行:
|-
|-
|is_clergy
|is_leader_in_war
|Is the scoped character clergy?
|Is the scoped character leading one of the sides in the target war?
|
|
|yes/no
|character
|character
|-
|-
|is_close_family_of
|is_leading_faction_type
|Is the character a close family [parents, children, siblings, grandparents, grandchildren] of the target character?
|Is the character leading a faction of the specified type?
|
|
|character target
|character
|character
|-
|-
|is_close_or_extended_family_of
|is_liege_or_above_of
|Is the character a close or extended family [parents, children, siblings, grandparents, grandchildren, cousins, uncles, aunts, nephews, nieces] of the target character?
|Is the scope character a liege or above of the target character?
|
|
|character target
|character target
第3,336行: 第3,542行:
|-
|-
|is_commanding_army
|is_local_player
|Is the character commanding an army?
|Is the character the local player?
|An interface trigger, can only be used in specific places
|yes/no
|character
|
|-
|is_lowborn
|Is the character lowborn?
|
|
|yes/no
|yes/no
第3,343行: 第3,556行:
|-
|-
|is_concubine
|is_male
|Is the scoped character a concubine?
|Is the scope character male?
|
|
|yes/no
|yes/no
第3,350行: 第3,563行:
|-
|-
|is_concubine_of
|is_married
|Is the target character a concubine of the scoped character?
|Is the scope character married?
|
|
|character target
|yes/no
|character
|character
|-
|-
|is_consort_of
|is_nibling_of
|Is the character a spouse or concubine of the target character?
|Is the character a nibling (niece/nephew) of the target character?
|
|
|character target
|character target
第3,364行: 第3,577行:
|-
|-
|is_councillor
|is_normal_councillor
|Is the scoped character a councillor?
|Is the scoped character a regular councillor?
|
|
|yes/no
|yes/no
第3,371行: 第3,584行:
|-
|-
|is_councillor_of
|is_obedient
|Is the scoped character a councillor for the specified character?
|Is the character obedient towards the target?
|
|
|character target
|character target
第3,378行: 第3,591行:
|-
|-
|is_courtier
|is_overriding_designated_winner
|Is the scope character a courtier?
|Is the scoped character overriding the winner in the GHW they're pledged to (will put their beneficiary on the throne if they're top participant)?
|
|
|yes/no
|yes/no
第3,385行: 第3,598行:
|-
|-
|is_courtier_of
|is_parent_of
|Is the scoped character a courtier of the target character?
|Is the character a parent of the target character?
|
|
|character target
|character target
第3,392行: 第3,605行:
|-
|-
|is_cousin_of
|is_participant_in_war
|Is the character a cousin of the target character?
|Is the scope character participating in the target war as an attacker or defender?
|
|
|character target
|character
|character
|-
|-
|is_defender_in_war
|is_performing_council_task
|Is the scoped character in the target war as a defender?
|Is the scoped character performing the given task?
|
|
第3,406行: 第3,619行:
|-
|-
|is_employer_of
|is_player_heir_of
|Is the target character a courtier of the scope character?
|Is the scope character the player heir of the target character?
|
|
|character target
|character target
第3,413行: 第3,626行:
|-
|-
|is_extended_family_of
|is_pledged_ghw_attacker
|Is the character extended family [cousins, uncles, aunts, nephews, nieces] of the target character?
|Is the scoped character a pledged attacker in the current GHW? (it's an error to check this if there's no GHW around)
|
|
|character target
|yes/no
|character
|character
|-
|-
|is_female
|is_pool_character
|Is the scoped character female?
|Is the character in the pool? (not a ruler, courtier or guest at any court)
|
|
|yes/no
|yes/no
第3,427行: 第3,640行:
|-
|-
|is_forbidden_from_scheme
|is_pool_guest
|Is the scoped character forbidden from joining the target scheme?
|Is the character a guest from the pool? In contrast to is_foreign_court_guest the character has no liege
|
|
|yes/no
|character
|-
|is_pool_guest_of
|Is the character a guest from the pool, visiting the target character's court? In contrast to is_foreign_court_guest_of the character has no liege
|
|character target
|character
|character
|-
|-
|is_forced_into_faction
|is_powerful_vassal
|Is the scope character forced to be part of a faction?
|Is the character a powerful vassal?
|
|
|yes/no
|yes/no
第3,441行: 第3,661行:
|-
|-
|is_forced_into_scheme
|is_powerful_vassal_of
|Checks if the scope character is forced into the target scheme
|Is the character a powerful vassal of the target?
|
|
|character target
|character
|character
|-
|-
|is_foreign_court_guest
|is_pregnant
|Is the character a guest from another a court? In contrast to is_pool_guest the character has a liege
|Is the character pregnant?
|
|
|yes/no
|yes/no
第3,455行: 第3,675行:
|-
|-
|is_foreign_court_guest_of
|is_primary_heir_of
|Is the character a guest from another a court, visiting the target character's court? In contrast to is_pool_guest_of the character has a liege
|Is the character the heir of the target's primary title?
|
|
|character target
|character target
第3,462行: 第3,682行:
|-
|-
|is_foreign_court_or_pool_guest
|is_ruler
|Is the character a guest? (is_pool_guest or is_foreign_court_guest)
|Is the scope character a ruler (holds any title)?
|
|
|yes/no
|yes/no
第3,469行: 第3,689行:
|-
|-
|is_foreign_court_or_pool_guest_of
|is_scheming_against
|Is the character a guest? (is_pool_guest_of or is_foreign_court_guest_of)
|Checks whether the scope character is an owner or an owner agent in a scheme against the target. There are 3 possible ways to use it:
|
|
|character target
*is_scheming_against = { target = X type = Y } limits to schemes of type Y
*is_scheming_against = { target = X scheme_skill = Y } limits to schemes of Y skill category
*is_scheming_against = { target = X } considers all schemes
|character
|character
|-
|-
|is_grandchild_of
|is_sibling_of
|Is the character a grandchild of the target character?
|Is the character a sibling of the target character?
|
|
|character target
|character target
第3,483行: 第3,706行:
|-
|-
|is_grandparent_of
|is_special_councillor
|Is the character a grandparent of the target character?
|Is the scoped character a special councillor?
|
|
|character target
|yes/no
|character
|character
|-
|-
|is_great_grandchild_of
|is_spouse_of
|Is the character a great grandchild of the target character?
|Is the character a spouse of the target character, and are both alive?
|
|
|character target
|character target
第3,497行: 第3,720行:
|-
|-
|is_great_grandparent_of
|is_spouse_of_even_if_dead
|Is the character a great grandparent of the target character?
|Is the character a spouse of the target character, even if one or both are dead?
|
|
|character target
|character target
第3,504行: 第3,727行:
|-
|-
|is_heir_of
|is_theocratic_lessee
|Is the character an heir of the target [placeholder]?
|Is the scope character a theocratic lessee (bishop)?
|
|
|character target
|yes/no
|character
|character
|-
|-
|is_immortal
|is_twin_of
|Is the character immortal?
|Is the character a twin of the target character?
|
|
|yes/no
|character target
|character
|character
|-
|-
|is_imprisoned
|is_unborn_child_of_concubine
|is the character imprisoned?
|Is the unborn a child of a concubine?
|
|
|yes/no
|yes/no
第3,525行: 第3,748行:
|-
|-
|is_imprisoned_by
|is_unborn_known_bastard
|Is the scope character imprisoned by the target character?
|Is the unborn a known bastard?
|is_imprisoned_by = TARGET
|character target
|character
|
|-
|is_in_an_activity
|Checks whether the character is currently in, or has joined an activity
|
|
|yes/no
|yes/no
第3,539行: 第3,755行:
|-
|-
|is_in_army
|is_uncle_or_aunt_of
|Is the character in an army (a commander or a knight)?
|Is the character an uncle or aunt of the target character?
|
|
|yes/no
|character target
|character
|character
|-
|-
|is_in_civil_war
|is_valid_as_agent_in_scheme
|Is the character at war with their liege, or one or more of their vassals?
|Is the scope character suitable as an agent for the target scheme?
|
|
|yes/no
|character
|character
|-
|-
|is_in_ongoing_great_holy_war
|is_vassal_of
|Is the character in an ongoing (i.e. the war has started) great holy war?
|Is the character a direct vassal of the target character?
|
|
|yes/no
|character target
|character
|character
|-
|-
|is_in_pool_at
|is_vassal_or_below_of
|Is the character in the pool the target province is a part of
|Is the scoped character a vassal or below of the target character?
|
|
|province target
|character target
|character
|character
|-
|-
|is_in_prison_type
|is_visibly_fertile
|Is the character imprisoned in a prison of the specified type? Accepts any static modifier (see also imprison effect).
|Is the scoped character visibly fertile, that is: not too old if a woman, not too young and has no traits blocking having children
|is_in_prison_type = house_arrest
|
|yes/no
|character
|character
|-
|-
|is_in_target_activity
|join_faction_chance
|Is the scope character participating in the target activity?
|Check the chance of the scope character to join the faction against the scripted value
|
|join_faction_chance = {
   faction = faction_target #An ongoing faction
   value <|<=|>=|> 0
}
 
|character
|character
|-
|-
|is_in_the_same_court_as
|join_scheme_chance
|Is the character in the same court as the target character (they have the same court owner or one is a courtier of the other)?
|Check if the chance of the scope character to join the scheme is between the given range (being min and max exclusive)
|
|join_scheme_chance = {
|character target
   scheme = scheme_target #An ongoing scheme
   max = 0
   min = -10
}
|character
|character
|-
|-
|is_in_the_same_court_as_or_guest
|learning
|Is the character in the same court as the target character (they have the same court owner or one is a courtier of the other)? Includes guests in the court.
|Does the character have the required learning skill level?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_incapable
|learning_diff
|Is the character incapable?
|Does the character have the required learning skill level difference against target?
|
|learning = { target = character value <= script_value abs = yes/no(optional, default no) }
|yes/no
 
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_independent_ruler
|learning_for_portrait
|Is the character an independent ruler?
|Learning skill scaled between 0.0 and 1.0 for portraits
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_knight
|learning_lifestyle_perk_points
|Is the scoped character a knight?
|How many learning lifestyle perk points does the character have available?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_knight_of
|learning_lifestyle_perks
|Is the scoped character a knight of the target character?
|How many learning lifestyle perks does the character have?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_landed
|learning_lifestyle_xp
|Is the scoped character landed (holds a county or barony)?
|How much learning lifestyle experience does the character have?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_leader_in_war
|long_term_gold
|Is the scoped character leading one of the sides in the target war?
|Does the character have the required gold? (AI category long term)
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_leading_faction_type
|martial
|Is the character leading a faction of the specified type?
|Does the character have the required martial skill level?
|
|
|<, <=, =, !=, >, >=
|character
|-
|martial_diff
|Does the character have the required martial skill level difference against target?
|martial = { target = character value <= script_value abs = yes/no(optional, default no) }
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_liege_or_above_of
|martial_for_portrait
|Is the scope character a liege or above of the target character?
|Martial skill scaled between 0.0 and 1.0 for portraits
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_local_player
|martial_lifestyle_perk_points
|Is the character the local player?
|How many martial perk points does the character have available?
|An interface trigger, can only be used in specific places
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_lowborn
|martial_lifestyle_perks
|Is the character lowborn?
|How many martial lifestyle perks does the character have?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_male
|martial_lifestyle_xp
|Is the scope character male?
|How much martial lifestyle experience does the character have?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_married
|matrilinear_betrothal
|Is the scope character married?
|Is this character's betrothal matrilinear? False if there's no betrothal.
|
|
|yes/no
|yes/no
第3,679行: 第3,912行:
|-
|-
|is_nibling_of
|matrilinear_marriage
|Is the character a nibling (niece/nephew) of the target character?
|Is the marriage with the spouse matrilinear?
|
|
|character target
|yes/no
|character
|character
|-
|-
|is_normal_councillor
|max_military_strength
|Is the scoped character a regular councillor?
|Is the scoped character's max military strength this big?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_obedient
|max_number_maa_soldiers_of_base_type
|Is the character obedient towards the target?
|Does the scope character have value amount of max soldiers of men at arms of the base type?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_overriding_designated_winner
|max_number_maa_soldiers_of_type
|Is the scoped character overriding the winner in the GHW they're pledged to (will put their beneficiary on the throne if they're top participant)?
|Does the scope character have value amount of max soldiers of men at arms of the type?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_parent_of
|max_number_of_concubines
|Is the character a parent of the target character?
|The maximum number of concubines a character can have
|
|max_number_of_concubines > 2
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_participant_in_war
|max_number_of_knights
|Is the scope character participating in the target war as an attacker or defender?
|Check how many knights the scoped character can potentially have
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_performing_council_task
|missing_unique_ancestors
|Is the scoped character performing the given task?
|The amount of missing unique ancestors from the character's real father and mother
|
|Traverses the family tree for NDefines::NChildbirth::INBREEDING_ANCESTOR_GENERATIONS amount of generations. By default this means that we're traversing 62 ancestors and report the number of duplicates we find.
calc_missing_unique_ancestors > 10
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_player_heir_of
|monthly_character_balance
|Is the scope character the player heir of the target character?
|Is the scoped character's monthly balance this big?
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_pledged_ghw_attacker
|monthly_character_expenses
|Is the scoped character a pledged attacker in the current GHW? (it's an error to check this if there's no GHW around)
|Is the scoped character's monthly expenses this big?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_pool_character
|monthly_character_income
|Is the character in the pool? (not a ruler, courtier or guest at any court)
|Is the scoped character's monthly income this big?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_pool_guest
|num_of_bad_genetic_traits
|Is the character a guest from the pool? In contrast to is_foreign_court_guest the character has no liege
|Compare the number of bad genetic traits
|
|<charater> = { num_of_bad_genetic_traits = 0 }
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_pool_guest_of
|num_of_good_genetic_traits
|Is the character a guest from the pool, visiting the target character's court? In contrast to is_foreign_court_guest_of the character has no liege
|Compare the number of good genetic traits
|
|<charater> = { num_of_good_genetic_traits >= 2 }
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_powerful_vassal
|num_of_relation_best_friend
|Is the character a powerful vassal?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_powerful_vassal_of
|num_of_relation_bully
|Is the character a powerful vassal of the target?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_pregnant
|num_of_relation_court_physician
|Is the character pregnant?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_primary_heir_of
|num_of_relation_crush
|Is the character the heir of the target's primary title?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_ruler
|num_of_relation_friend
|Is the scope character a ruler (holds any title)?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_scheming_against
|num_of_relation_guardian
|Checks whether the scope character is an owner or an owner agent in a scheme against the target. There are 3 possible ways to use it:
|Compares the number of scripted relations a character has of the type
|
|
*is_scheming_against = { target = X type = Y } limits to schemes of type Y
|<, <=, =, !=, >, >=
*is_scheming_against = { target = X scheme_skill = Y } limits to schemes of Y skill category
*is_scheming_against = { target = X } considers all schemes
|
|character
|character
|-
|-
|is_sibling_of
|num_of_relation_intrigue_mentor
|Is the character a sibling of the target character?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_special_councillor
|num_of_relation_intrigue_student
|Is the scoped character a special councillor?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_spouse_of
|num_of_relation_lover
|Is the character a spouse of the target character, and are both alive?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_spouse_of_even_if_dead
|num_of_relation_mentor
|Is the character a spouse of the target character, even if one or both are dead?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_theocratic_lessee
|num_of_relation_nemesis
|Is the scope character a theocratic lessee (bishop)?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_twin_of
|num_of_relation_oaf
|Is the character a twin of the target character?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_unborn_child_of_concubine
|num_of_relation_potential_friend
|Is the unborn a child of a concubine?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_unborn_known_bastard
|num_of_relation_potential_lover
|Is the unborn a known bastard?
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_uncle_or_aunt_of
|num_of_relation_potential_rival
|Is the character an uncle or aunt of the target character?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_valid_as_agent_in_scheme
|num_of_relation_rival
|Is the scope character suitable as an agent for the target scheme?
|Compares the number of scripted relations a character has of the type
|
|
|<, <=, =, !=, >, >=
|character
|-
|num_of_relation_soldier_friend
|Compares the number of scripted relations a character has of the type
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_vassal_of
|num_of_relation_soulmate
|Is the character a direct vassal of the target character?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_vassal_or_below_of
|num_of_relation_student
|Is the scoped character a vassal or below of the target character?
|Compares the number of scripted relations a character has of the type
|
|
|character target
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|is_visibly_fertile
|num_of_relation_victim
|Is the scoped character visibly fertile, that is: not too old if a woman, not too young and has no traits blocking having children
|Compares the number of scripted relations a character has of the type
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|join_faction_chance
|num_of_relation_ward
|Check the chance of the scope character to join the faction against the scripted value
|Compares the number of scripted relations a character has of the type
|join_faction_chance = {
|
   faction = faction_target #An ongoing faction
|<, <=, =, !=, >, >=
   value <|<=|>=|> 0
}
 
|
|character
|character
|-
|-
|join_scheme_chance
|num_sinful_traits
|Check if the chance of the scope character to join the scheme is between the given range (being min and max exclusive)
|Does the scoped character have this many virtuous traits?
|join_scheme_chance = {
   scheme = scheme_target #An ongoing scheme
   max = 0
   min = -10
}
|
|character
|
|-
|learning
|Does the character have the required learning skill level?
|
|
*num_virtous_traits > 5
*num_virtous_traits = { value > 5 faith = scope:faith } to base it on what a specific faith considers virtuous
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|learning_diff
|num_virtuous_traits
|Does the character have the required learning skill level difference against target?
|Does the scoped character have this many virtuous traits?
|learning = { target = character value <= script_value abs = yes/no(optional, default no) }
|
 
*num_virtous_traits > 5
*num_virtous_traits = { value > 5 faith = scope:faith } to base it on what a specific faith considers virtuous
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|learning_for_portrait
|number_maa_regiments_of_base_type
|Learning skill scaled between 0.0 and 1.0 for portraits
|Does the scoped character have value amount of men at arms of the base type?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第3,943行: 第4,169行:
|-
|-
|learning_lifestyle_perk_points
|number_maa_regiments_of_type
|How many learning lifestyle perk points does the character have available?
|Does the scoped character have value amount of men at arms of the type?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第3,950行: 第4,176行:
|-
|-
|learning_lifestyle_perks
|number_maa_soldiers_of_base_type
|How many learning lifestyle perks does the character have?
|Does the scoped character have value amount of soldiers of men at arms of the base type?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第3,957行: 第4,183行:
|-
|-
|learning_lifestyle_xp
|number_maa_soldiers_of_type
|How much learning lifestyle experience does the character have?
|Does the scoped character have value amount of soldiers of men at arms of the type?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第3,964行: 第4,190行:
|-
|-
|long_term_gold
|number_of_commander_traits
|Does the character have the required gold? (AI category long term)
|Does the character have this many commander traits?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第3,971行: 第4,197行:
|-
|-
|martial
|number_of_commander_traits_in_common
|Does the character have the required martial skill level?
|Does the character and the target have a number of commander traits in common
|
|number_of_personality_traits_in_common = { target = X value >/</>=/<= Y }
|<, <=, =, !=, >, >=
 
|
|character
|character
|-
|-
|martial_diff
|number_of_concubines
|Does the character have the required martial skill level difference against target?
|The number of concubines the scoped character has
|martial = { target = character value <= script_value abs = yes/no(optional, default no) }
|number_of_concubines > 2
 
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|martial_for_portrait
|number_of_desired_concubines
|Martial skill scaled between 0.0 and 1.0 for portraits
|The number of fertile concubines the scoped character should have to not get penalties
|
|number_of_desired_concubines > 2
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|martial_lifestyle_perk_points
|number_of_election_votes
|How many martial perk points does the character have available?
|Check the number of votes the scoped character has in the target title
|
|number_of_election_votes = { title = scope:actor.primary_title value = 0 }
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|martial_lifestyle_perks
|number_of_fertile_concubines
|How many martial lifestyle perks does the character have?
|The number of visibly fertile concubines the scoped character has
|
|number_of_fertile_concubines > 2
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|martial_lifestyle_xp
|number_of_knights
|How much martial lifestyle experience does the character have?
|Check how many knights the scoped character has at the moment
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,014行: 第4,240行:
|-
|-
|matrilinear_betrothal
|number_of_lifestyle_traits
|Is this character's betrothal matrilinear? False if there's no betrothal.
|Does the character have this many lifestyle traits?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|matrilinear_marriage
|number_of_maa_regiments
|Is the marriage with the spouse matrilinear?
|The number of men at arms the scoped character has
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|max_military_strength
|number_of_opposing_personality_traits
|Is the scoped character's max military strength this big?
|Does the character and the target have a number of opposing personality traits
|
|number_of_opposing_personality_traits = { target = X value >/</>=/<= Y }
|<, <=, =, !=, >, >=
|character
|-
|max_number_maa_soldiers_of_base_type
|Does the scope character have value amount of max soldiers of men at arms of the base type?
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|max_number_maa_soldiers_of_type
|number_of_opposing_traits
|Does the scope character have value amount of max soldiers of men at arms of the type?
|Does the character and the target have a number of opposing traits
|
|number_of_opposing_traits = { target = X value >/</>=/<= Y }
|<, <=, =, !=, >, >=
|character
|-
|max_number_of_concubines
|The maximum number of concubines a character can have
|max_number_of_concubines > 2
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|max_number_of_knights
|number_of_personality_traits
|Check how many knights the scoped character can potentially have
|Does the character have this many personality traits?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,063行: 第4,275行:
|-
|-
|missing_unique_ancestors
|number_of_personality_traits_in_common
|The amount of missing unique ancestors from the character's real father and mother
|Does the character and the target have a number of personality traits in common?
|Traverses the family tree for NDefines::NChildbirth::INBREEDING_ANCESTOR_GENERATIONS amount of generations. By default this means that we're traversing 62 ancestors and report the number of duplicates we find.
|number_of_personality_traits_in_common = { target = X value >/</>=/<= Y }
calc_missing_unique_ancestors > 10
|<, <=, =, !=, >, >=
|character
|-
|monthly_character_balance
|Is the scoped character's monthly balance this big?
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|monthly_character_expenses
|number_of_powerful_vassals
|Is the scoped character's monthly expenses this big?
|Does the character have a specified number of powerful vassals?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,085行: 第4,289行:
|-
|-
|monthly_character_income
|number_of_traits
|Is the scoped character's monthly income this big?
|Does the character have this many traits?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,092行: 第4,296行:
|-
|-
|num_of_bad_genetic_traits
|number_of_traits_in_common
|Compare the number of bad genetic traits
|Does the character and the target have a number of traits in common?
|<charater> = { num_of_bad_genetic_traits = 0 }
|number_of_traits_in_common = { target = X value >/</>=/<= Y }
|<, <=, =, !=, >, >=
 
|character
|character
|-
|-
|num_of_good_genetic_traits
|opinion
|Compare the number of good genetic traits
|Is the character's opinion of the target greater or equal than the value?
|<charater> = { num_of_good_genetic_traits >= 2 }
| opinion = { target = X [*value >/</>=/<= Y* or *value = { min max }*  }
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_of_relation_best_friend
|owns_a_story
|Compares the number of scripted relations a character has of the type
| Ćhecks whether the scope character is the owner of any currently active story
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|num_of_relation_bully
|owns_an_activity
|Compares the number of scripted relations a character has of the type
|Checks whether the scope character is the owner of any currently active activity
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|num_of_relation_court_physician
|owns_story_of_type
|Compares the number of scripted relations a character has of the type
|Does the character own a story of this type?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_of_relation_crush
|patrilinear_betrothal
|Compares the number of scripted relations a character has of the type
|Is this character's betrothal patrilinear? False if there's no betrothal.
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|num_of_relation_friend
|patrilinear_marriage
|Compares the number of scripted relations a character has of the type
|Is the marriage with the spouse patrilinear?
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|num_of_relation_guardian
|perk_points
|Compares the number of scripted relations a character has of the type
|Does the character have this many perk points across all lifestyles combined?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,148行: 第4,353行:
|-
|-
|num_of_relation_intrigue_mentor
|perk_points_assigned
|Compares the number of scripted relations a character has of the type
|Does the character have this many perks across all lifestyles combined?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,155行: 第4,360行:
|-
|-
|num_of_relation_intrigue_student
|perks_in_tree
|Compares the number of scripted relations a character has of the type
|Does the character have this many perk points assigned to this tree? perks_in_tree = { tree = tree_key value > 5 }
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,162行: 第4,367行:
|-
|-
|num_of_relation_lover
|piety
|Compares the number of scripted relations a character has of the type
|Does the character have the required piety?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,169行: 第4,374行:
|-
|-
|num_of_relation_mentor
|piety_level
|Compares the number of scripted relations a character has of the type
|Does the character have the required devotion level?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,176行: 第4,381行:
|-
|-
|num_of_relation_nemesis
|player_heir_position
|Compares the number of scripted relations a character has of the type
|Check where the target character is in the scoped character's player heir list.
|
|player_heir_position = { target = scope:actor position = 0 }
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_of_relation_oaf
|pregnancy_days
|Compares the number of scripted relations a character has of the type
|How long has the character been pregnant? Counts from impregnation, not reveal
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,190行: 第4,395行:
|-
|-
|num_of_relation_potential_friend
|prestige
|Compares the number of scripted relations a character has of the type
|Does the character have the required prestige?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,197行: 第4,402行:
|-
|-
|num_of_relation_potential_lover
|prestige_level
|Compares the number of scripted relations a character has of the type
|Does the character have the required fame level?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,204行: 第4,409行:
|-
|-
|num_of_relation_potential_rival
|prowess
|Compares the number of scripted relations a character has of the type
|Does the character have the required prowess skill level?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,211行: 第4,416行:
|-
|-
|num_of_relation_rival
|prowess_diff
|Compares the number of scripted relations a character has of the type
|Does the character have the required prowess skill level difference against target?
|
|prowess = { target = character value <= script_value abs = yes/no(optional, default no) }
 
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_of_relation_soldier_friend
|prowess_for_portrait
|Compares the number of scripted relations a character has of the type
|Prowess skill scaled between 0.0 and 1.0 for portraits
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,225行: 第4,431行:
|-
|-
|num_of_relation_soulmate
|ransom_cost
|Compares the number of scripted relations a character has of the type
|What is the ransom cost of the character?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,232行: 第4,438行:
|-
|-
|num_of_relation_student
|realm_size
|Compares the number of scripted relations a character has of the type
|Is the scoped character's top liege's realm this big (# of counties)?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,239行: 第4,445行:
|-
|-
|num_of_relation_victim
|realm_to_title_distance_squared
|Compares the number of scripted relations a character has of the type
|Is the character's realm within this distance of the title? Distance is in pixels, squared for performance reasons.
|
|realm_to_title_distance_squared = { title = some_title value > 10000 }
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_of_relation_ward
|reverse_has_opinion_modifier
|Compares the number of scripted relations a character has of the type
|Does the target have the specified opinion modifier on the character? (optional *value <|<=|=|>=|> X* or *value = { MIN MAX }* inclusive)
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_sinful_traits
|reverse_opinion
|Does the scoped character have this many virtuous traits?
|What is the target character's opinion of the scope character? opinion = { target = X value >/</>=/<= Y }
|
|
*num_virtuous_traits > 5
*num_virtuous_traits = { value > 5 faith = scope:faith } to base it on what a specific faith considers virtuous
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|num_virtuous_traits
|scriptedtests_can_marry_character
|Does the scoped character have this many virtuous traits?
|Can the character marry the target character?
|
|
*num_virtuous_traits > 5
|character target
*num_virtuous_traits = { value > 5 faith = scope:faith } to base it on what a specific faith considers virtuous
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|number_maa_regiments_of_base_type
|scriptedtests_dread_base
|Does the scoped character have value amount of men at arms of the base type?
|Does the character have the specified natural dread?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,278行: 第4,480行:
|-
|-
|number_maa_regiments_of_type
|scriptedtests_gold_income
|Does the scoped character have value amount of men at arms of the type?
|Does the character have the specified tax income?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,285行: 第4,487行:
|-
|-
|number_maa_soldiers_of_base_type
|scriptedtests_piety_income
|Does the scoped character have value amount of soldiers of men at arms of the base type?
|does the character have the specified piety income?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,292行: 第4,494行:
|-
|-
|number_maa_soldiers_of_type
|sex_opposite_of
|Does the scoped character have value amount of soldiers of men at arms of the type?
|Are the scope character and the target character of opposite sex?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|number_of_commander_traits
|sex_same_as
|Does the character have this many commander traits?
|Are the scope character and the target character of the same sex?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|number_of_commander_traits_in_common
|short_term_gold
|Does the character and the target have a number of commander traits in common
|Does the character have the required gold? (AI category short term)
|number_of_personality_traits_in_common = { target = X value >/</>=/<= Y }
|
 
|<, <=, =, !=, >, >=
|
|character
|character
|-
|-
|number_of_concubines
|should_show_disturbing_portrait_modifiers
|The number of concubines the scoped character has
|Is the character the local player?
|number_of_concubines > 2
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|number_of_desired_concubines
|stewardship
|The number of fertile concubines the scoped character should have to not get penalties
|Does the character have the required stewardship skill level?
|number_of_desired_concubines > 2
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|number_of_election_votes
|stewardship_diff
|Check the number of votes the scoped character has in the target title
|Does the character have the required stewardship skill level difference against target?
|number_of_election_votes = { title = scope:actor.primary_title value = 0 }
|stewardship = { target = character value <= script_value abs = yes/no(optional, default no) }
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|number_of_fertile_concubines
|stewardship_for_portrait
|The number of visibly fertile concubines the scoped character has
|Stewardship skill scaled between 0.0 and 1.0 for portraits
|number_of_fertile_concubines > 2
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|number_of_knights
|stewardship_lifestyle_perk_points
|Check how many knights the scoped character has at the moment
|How many perk points available does the character have?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,349行: 第4,550行:
|-
|-
|number_of_lifestyle_traits
|stewardship_lifestyle_perks
|Does the character have this many lifestyle traits?
|How many perks from this lifestyle does the character have?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,356行: 第4,557行:
|-
|-
|number_of_maa_regiments
|stewardship_lifestyle_xp
|The number of men at arms the scoped character has
|How many stewardship perk points does the character have available?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,363行: 第4,564行:
|-
|-
|number_of_opposing_personality_traits
|stress
|Does the character and the target have a number of opposing personality traits
|Does the character have the required stress?
|number_of_opposing_personality_traits = { target = X value >/</>=/<= Y }
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|number_of_opposing_traits
|stress_level
|Does the character and the target have a number of opposing traits
|Does the character have the required stress level?
|number_of_opposing_traits = { target = X value >/</>=/<= Y }
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|number_of_personality_traits
|sub_realm_size
|Does the character have this many personality traits?
|Is the scoped character's sub-realm this big (# of counties)?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,384行: 第4,585行:
|-
|-
|number_of_personality_traits_in_common
|target_is_liege_or_above
|Does the character and the target have a number of personality traits in common
|Is the target character the liege or above the scoped character?
|number_of_personality_traits_in_common = { target = X value >/</>=/<= Y }
|
|character target
|character
|character
|-
|-
|number_of_powerful_vassals
|target_is_same_character_or_above
|Does the character have a specified number of powerful vassals?
|Is the target character the scoped character or above them in the vassal hierarchy?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|number_of_traits
|target_is_vassal_or_below
|Does the character have this many traits?
|Is the target character a vassal or below of the scope character?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|character
|-
|-
|number_of_traits_in_common
|target_weight
|Does the character and the target have a number of traits in common?
|Target weight of the scoped character
|number_of_traits_in_common = { target = X value >/</>=/<= Y }
|target_weight > 10
 
|<, <=, =, !=, >, >=
|
|character
|character
|-
|-
|opinion
|tier_difference
|Is the character's opinion of the target greater or equal than the value?
|What is the difference in highest held title tier between the scoped character and the target character? (-5 to 5)
| opinion = { target = X [*value >/</>=/<= Y* or *value = { min max }}
|For example, this is true:
scope:a_baron = {
   tier_difference = {
     target = scope:a_king
     value = -3
   }
}
|character
|character
|-
|-
|owns_a_story
|time_in_prison
| Ćhecks whether the scope character is the owner of any currently active story
|How long has the character been imprisoned? time_in_prison = { days/months/years =,>,< X }
|
|
|yes/no
|character
|character
|-
|-
|owns_an_activity
|time_in_prison_type
|Checks whether the scope character is the owner of any currently active activity
|How long has the character been imprisoned with the current imprisonment type? time_in_prison_type = { days/months/years =,>,< X }
|
|
|yes/no
|character
|character
|-
|-
|owns_story_of_type
|trait_compatibility
|Does the character own a story of this type?
|target = other character value >/</= sum of trait compatibility values
|
|
第4,441行: 第4,647行:
|-
|-
|patrilinear_betrothal
|tyranny
|Is this character's betrothal patrilinear? False if there's no betrothal.
|Does the character have the required tyranny?
|
|
|yes/no
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|patrilinear_marriage
|vassal_contract_has_flag
|Is the marriage with the spouse patrilinear?
|Do any of the current active obligations in the scoped character's vassal contract have the given flag?
|
|
|yes/no
|character
|character
|-
|-
|perk_points
|vassal_contract_has_modifiable_obligations
|Does the character have this many perk points across all lifestyles combined?
|Can the scoped character's contract be modified at all? That is: they have one, they use obligation levels, and are count or above
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|perk_points_assigned
|vassal_contract_is_blocked_from_modification
|Does the character have this many perks across all lifestyles combined?
|Has the scoped character's contract been blocked from modification by script via 'set_vassal_contract_modification_blocked'?
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|character
|-
|-
|perks_in_tree
|vassal_contract_obligation_level_can_be_decreased
|Does the character have this many perk points assigned to this tree? perks_in_tree = { tree = tree_key value > 5 }
|Can the obligation level of the scoped character's vassal contract be decreased?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|piety
|vassal_contract_obligation_level_can_be_increased
|Does the character have the required piety?
|Can the obligation level of the scoped character's vassal contract be increased?
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|piety_level
|vassal_count
|Does the character have the required devotion level?
|Does the scoped character have this many vassals (excluding barons)?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,490行: 第4,696行:
|-
|-
|player_heir_position
|vassal_limit
|Check where the target character is in the scoped character's player heir list.
|Is the scoped character's vassal limit this big?
|player_heir_position = { target = scope:actor position = 0 }
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|pregnancy_days
|vassal_limit_available
|How long has the character been pregnant? Counts from impregnation, not reveal
|Is there this much space left in the character's vassal limit? Negative values also work for checking characters that are above their limit
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,504行: 第4,710行:
|-
|-
|prestige
|vassal_limit_percentage
|Does the character have the required prestige?
|Is the scoped character's vassal count this big in comparison to their limit?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,511行: 第4,717行:
|-
|-
|prestige_level
|yearly_character_balance
|Does the character have the required fame level?
|Is the scoped character's yearly balance this big?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,518行: 第4,724行:
|-
|-
|prowess
|yearly_character_expenses
|Does the character have the required prowess skill level?
|Is the scoped character's yearly expenses this big?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
第4,525行: 第4,731行:
|-
|-
|prowess_diff
|yearly_character_income
|Does the character have the required prowess skill level difference against target?
|Is the scoped character's yearly income this big?
|prowess = { target = character value <= script_value abs = yes/no(optional, default no) }
|
 
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|prowess_for_portrait
|yields_alliance
|Prowess skill scaled between 0.0 and 1.0 for portraits
|Checks if the character would get an alliance with the target character through such a marriage.
|
|
|<, <=, =, !=, >, >=
|character
|character
|-
|-
|ransom_cost
|any_faction_county_member
|What is the ransom cost of the character?
|Iterate through all faction county members
|any_faction_county_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|faction
|landed title
|-
|any_faction_member
|Iterate through all faction character members
|any_faction_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|faction
|character
|-
|average_faction_opinion
|Average opinion of all the characters of the faction scope target
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|realm_size
|average_faction_opinion_not_powerful_vassal
|Is the scoped character's top liege's realm this big (# of counties)?
|Average opinion of the character that are ''not'' powerful vassals of the faction scope target
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|realm_to_title_distance_squared
|average_faction_opinion_powerful_vassal
|Is the character's realm within this distance of the title? Distance is in pixels, squared for performance reasons.
|Average opinion of the character that are powerful vassals of the faction scope target
|realm_to_title_distance_squared = { title = some_title value > 10000 }
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|reverse_has_opinion_modifier
|faction_can_press_demands
|Does the target have the specified opinion modifier on the character? (optional *value <|<=|=|>=|> X* or *value = { MIN MAX }* inclusive)
|Can the scoped faction press demands?
|
|
|yes/no
|character
|faction
|-
|-
|reverse_opinion
|faction_discontent
|What is the target character's opinion of the scope character? opinion = { target = X value >/</>=/<= Y }
|Current discontent of the faction
|
|
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|scriptedtests_can_marry_character
|faction_is_at_war
|Can the character marry the target character?
|Is the scoped faction at war?
|
|
|character target
|yes/no
|character
|faction
|-
|-
|scriptedtests_dread_base
|faction_is_type
|Does the character have the specified natural dread?
|Is the faction of this type?
|
|
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|scriptedtests_gold_income
|faction_power
|Does the character have the specified tax income?
|Current power of the faction
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|scriptedtests_piety_income
|faction_power_threshold
|does the character have the specified piety income?
|Current power threshold of the faction
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|sex_opposite_of
|has_special_character
|Are the scope character and the target character of opposite sex?
|Does the faction have a special character assigned?
|
|
|character target
|yes/no
|character
|faction
|-
|-
|sex_same_as
|has_special_title
|Are the scope character and the target character of the same sex?
|Does the faction have a special title assigned?
|
|
|character target
|yes/no
|character
|faction
|-
|-
|short_term_gold
|number_of_faction_members_in_council
|Does the character have the required gold? (AI category short term)
|Current number of faction members in faction
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faction
|-
|-
|should_show_disturbing_portrait_modifiers
|any_war_attacker
|Is the character the local player?
|Iterate through all attackers in the war
|An interface trigger, can only be used in specific places
|any_war_attacker = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
 
|war
|character
|character
|-
|any_war_defender
|Iterate through all defenders in the war
|any_war_defender = { <count=num/all> / <percent=fixed_point> <triggers> }
|war
|character
|-
|-
|stewardship
|any_war_participant
|Does the character have the required stewardship skill level?
|Iterate through all participants in the war
|
|any_war_participant = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
 
|character
|-
|war
|stewardship_diff
|Does the character have the required stewardship skill level difference against target?
|stewardship = { target = character value <= script_value abs = yes/no(optional, default no) }
|<, <=, =, !=, >, >=
|character
|character
|
|-
|-
|stewardship_for_portrait
|attacker_war_score
|Stewardship skill scaled between 0.0 and 1.0 for portraits
|Compares the attacker war score
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|war
|-
|-
|stewardship_lifestyle_perk_points
|days_since_max_war_score
|How many perk points available does the character have?
|Number of days since the war score has been at max (+100 or −100). Returns -1 if the war score is not +100 or −100
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|war
|-
|-
|stewardship_lifestyle_perks
|defender_war_score
|How many perks from this lifestyle does the character have?
|Compares the defender war score
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|war
|-
|-
|stewardship_lifestyle_xp
|has_valid_casus_belli
|How many stewardship perk points does the character have available?
|Does the war interaction still have a valid casus belli? (Those should be automatically removed on daily tick, but can exist for a tick)
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|war
|-
|-
|stress
|is_attacker
|Does the character have the required stress?
|Is the target character in the scope war as an attacker?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|war
|-
|-
|stress_level
|is_civil_war
|Does the character have the required stress level?
|Check if the scope war is a civil war or not
|
|
|<, <=, =, !=, >, >=
|yes/no
|character
|war
|-
|-
|sub_realm_size
|is_defender
|Is the scoped character's sub-realm this big (# of counties)?
|Is the target character in the scoped war as a defender?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|war
|-
|-
|target_is_liege_or_above
|is_participant
|Is the target character the liege or above the scoped character?
|Is the target character participating in the scope war as either an attacker or defender?
|
|
|character target
|character target
|character
|war
|-
|-
|target_is_same_character_or_above
|is_war_leader
|Is the target character the scoped character or above them in the vassal hierarchy?
|Is the target character leading one of the sides in the scoped war?
|
|
|character target
|character target
|character
|war
|-
|-
|target_is_vassal_or_below
|is_white_peace_possible
|Is the target character a vassal or below of the scope character?
|Check if the scoped war's CB allows white peace (is_white_peace_possible = yes)
|
|
|character target
|yes/no
|character
|war
|-
|-
|target_weight
|using_cb
|Target weight of the scoped character
|Is the scope war using the specified CB?
|target_weight > 10
|using_cb = religious_war
|<, <=, =, !=, >, >=
|character
|war
|-
|-
|tier_difference
|war_contribution
|What is the difference in highest held title tier between the scoped character and the target character? (-5 to 5)
|Checks how much a character has contributed to the scoped war
|For example, this is true:
|war_contribution = {
scope:a_baron = {
target = some character
   tier_difference = {
value > 5
     target = scope:a_king
     value = -3
   }
}
}
|character
|war
|-
|-
|time_in_prison
|war_days
|How long has the character been imprisoned? time_in_prison = { days/months/years =,>,< X }
|Compares the number of days the war has gone on for
|
|
|<, <=, =, !=, >, >=
|character
|war
|-
|-
|time_in_prison_type
|was_called
|How long has the character been imprisoned with the current imprisonment type? time_in_prison_type = { days/months/years =,>,< X }
|Has the target character been called to the scope war already?
|
|
|character target
|war
|character
|-
|any_defensive_great_holy_wars
|Iterate through all great holy wars this faith is defending against
|any_defensive_great_holy_wars = { <count=num/all> / <percent=fixed_point> <triggers> }
|faith
|great holy war
|-
|-
|trait_compatibility
|any_faith_holy_order
|target = other character value >/</= sum of trait compatibility values
|Iterate through all holy orders of the faith
|
|any_faith_holy_order = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|
|-
|tyranny
|Does the character have the required tyranny?
|
|<, <=, =, !=, >, >=
|character
|faith
|holy order
|-
|-
|vassal_contract_has_flag
|any_holy_site
|Do any of the current active obligations in the scoped character's vassal contract have the given flag?
|Iterate through all holy site baronies of a faith
|
|any_holy_site = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|character
|faith
|landed title
|-
|-
|vassal_contract_has_modifiable_obligations
|controls_holy_site
|Can the scoped character's contract be modified at all? That is: they have one, they use obligation levels, and are count or above
|Does the faith control a holy site? controls_holy_site = key_of_holy_site
|
|
|yes/no
|character
|-
|faith
|vassal_contract_is_blocked_from_modification
|Has the scoped character's contract been blocked from modification by script via 'set_vassal_contract_modification_blocked'?
|
|yes/no
|character
|-
|-
|vassal_contract_obligation_level_can_be_decreased
|controls_holy_site_with_flag
|Can the obligation level of the scoped character's vassal contract be decreased?
|Does the faith control a holy site with the given flag? controls_holy_site_with_flag = some flag
|
|
|character
|faith
|-
|-
|vassal_contract_obligation_level_can_be_increased
|estimated_faith_strength
|Can the obligation level of the scoped character's vassal contract be increased?
|How strong is the scoped faith? *Expensive*, if you're gonna use the value repeatedly, save it to a scope first! This is scaled by a factor of 1000, so '1' means 1000 men. This is due to the cap of ~2 million, which would be too low in many cases
|
|
|character
|
|-
|vassal_count
|Does the scoped character have this many vassals (excluding barons)?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faith
|-
|-
|vassal_limit
|faith_hostility_level
|Is the scoped character's vassal limit this big?
|What is the faith's hostility level towards the target faith?
|
|faith_hostility_level { target = scope:some_faith value > 1 }
 
The levels are
*0 righteous
*1 astray
*2 hostile
*3 evil
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faith
|-
|-
|vassal_limit_available
|faith_hostility_level_comparison
|Is there this much space left in the character's vassal limit? Negative values also work for checking characters that are above their limit
|Compares the scoped faith's hostility level towards two other faiths.
|
|faith_hostility_level_comparison { faith1 > faith2 }
|<, <=, =, !=, >, >=
|character
|faith
|-
|-
|vassal_limit_percentage
|fervor
|Is the scoped character's vassal count this big in comparison to their limit?
|What is the faith's fervor?
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|character
|faith
|-
|-
|yearly_character_balance
|has_allowed_gender_for_clergy
|Is the scoped character's yearly balance this big?
|Is the target character of the allowed gender to be clergy of the faith?
|
|
|<, <=, =, !=, >, >=
|character target
|character
|faith
|-
|-
|yearly_character_expenses
|has_doctrine
|Is the scoped character's yearly expenses this big?
|Does the given faith have the given doctrine?
|
|has_doctrine = doctrine_key
|<, <=, =, !=, >, >=
|character
|faith
|-
|-
|yearly_character_income
|has_doctrine_parameter
|Is the scoped character's yearly income this big?
|Does the given faith have the given doctrine parameter? Can only check for bool parameters.
|
|has_doctrine_parameter = parameter_key
|<, <=, =, !=, >, >=
|character
|faith
|-
|-
|yields_alliance
|has_dominant_ruling_gender
|Checks if the character would get an alliance with the target character through such a marriage.
|Is the target character's gender of the dominant gender of the faith? True if there's no dominant gender
|
|
|character target
|faith
|
|-
|has_graphical_faith
|Does the faith have this graphical faith?
|<faith> = { has_graphical_faith = orthodoxgfx }
|character
|faith
|-
|-
|any_faction_county_member
|has_icon
|Iterate through all faction county members
|Does the faith have the given icon?
|any_faction_county_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_icon = some_cool_custom_icon
|faction
|faith
|landed title
|-
|any_faction_member
|Iterate through all faction character members
|any_faction_member = { <count=num/all> / <percent=fixed_point> <triggers> }
|faction
|character
|-
|-
|average_faction_opinion
|has_preferred_gender_for_clergy
|Average opinion of all the characters of the faction scope target
|Is the target character of the preferred gender to be clergy of the faith?
|
|
|<, <=, =, !=, >, >=
|character target
|faction
|faith
|-
|-
|average_faction_opinion_not_powerful_vassal
|holy_sites_controlled
|Average opinion of the character that are ''not'' powerful vassals of the faction scope target
|How many holy sites does the faith control?
|
|holy_sites_controlled > 1
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|faction
|faith
|-
|-
|average_faction_opinion_powerful_vassal
|num_character_followers
|Average opinion of the character that are powerful vassals of the faction scope target
|How many characters follow the scoped faith?
|
|num_character_followers > 0
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|faction
|faith
|-
|-
|faction_can_press_demands
|num_county_followers
|Can the scoped faction press demands?
|How many counties follow the scoped faith?
|
|num_county_followers > 0
|yes/no
|<, <=, =, !=, >, >=
|faction
|faith
|-
|-
|faction_discontent
|religion_tag
|Current discontent of the faction
|Checks the tag of the religion of the current faith
|
|religion_tag = christianity_religion
|<, <=, =, !=, >, >=
|faction
|-
|faith
|faction_is_at_war
|Is the scoped faction at war?
|
|yes/no
|faction
|-
|-
|faction_is_type
|trait_is_sin
|Is the faction of this type?
|Does the scoped faith consider the given trait sinful?
|
|trait_is_sin = lustful
|faction
|faith
|-
|-
|faction_power
|trait_is_virtue
|Current power of the faction. Uses percentages as whole numbers.
|Does the scoped faith consider the given trait virtuous?
|faction_power >= 80
|trait_is_virtue = lustful
|<, <=, =, !=, >, >=
|faction
|faith
|-
|-
|faction_power_threshold
|any_secret_knower
|Current power threshold of the faction
|Iterate through all characters who know the scoped secret
|
|any_secret_knower = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|faction
|secret
|character
|-
|-
|has_special_character
|any_secret_participant
|Does the faction have a special character assigned?
|Iterate through participants in a secret
|
|any_secret_participant = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|faction
|secret
|character
|-
|-
|has_special_title
|can_be_exposed_by
|Does the faction have a special title assigned?
|Can the scope secret be exposed by the target character?
|
|can_be_exposed_by = target
|yes/no
|character target
|faction
|secret
|-
|-
|number_of_faction_members_in_council
|is_criminal_for
|Current number of faction members in faction
|Is this secret criminal for the target participant?
|is_criminal_for = <character>
|character scope
|secret
|character
|-
|is_known_by
|Is the scoped secret known by the target character?
|
|
|<, <=, =, !=, >, >=
|character target
|faction
|secret
|-
|-
|any_war_attacker
|is_shunned_for
|Iterate through all attackers in the war
|Is this secret shunned for the target participant?
|any_war_attacker = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_shunned_for = <character>
 
|character scope
|secret
|war
|character
|character
|-
|-
|any_war_defender
|is_shunned_or_criminal_for
|Iterate through all defenders in the war
|Is this secret shunned or criminal for the target participant?
|any_war_defender = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_shunned_or_illegal_for = <character>
 
|character scope
|secret
|war
|character
|character
|-
|-
|any_war_participant
|is_spent_by
|Iterate through all participants in the war
|Has the scoped secret been spent by the target character?
|any_war_participant = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_spent_by = target
 
|character target
|secret
|war
|character
|-
|-
|attacker_war_score
|local_player_knows_this_secret
|Compares the attacker war score
|Does the local player know about the secret?
|
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|yes/no
|war
|secret
|-
|-
|days_since_max_war_score
|same_secret_type_as
|Number of days since the war score has been at max (+100 or −100). Returns -1 if the war score is not +100 or −100
|Is the scoped secret of the same type as the target secret?
|
|same_secret_type_as = scope:some_secret
|<, <=, =, !=, >, >=
|war
|secret
|-
|-
|defender_war_score
|secret_type
|Compares the defender war score
|Is the scoped secret of the specified type?
|
|
|<, <=, =, !=, >, >=
|war
|secret
|-
|-
|has_valid_casus_belli
|available_loot
|Does the war interaction still have a valid casus belli? (Those should be automatically removed on daily tick, but can exist for a tick)
|How much gold is available to loot for raiding armies?
|
|available_loot >= 7
|yes/no
|<, <=, =, !=, >, >=
|war
|province
|-
|-
|is_attacker
|building_slots
|Is the target character in the scope war as an attacker?
|How many building slots exist (including occupied ones)?
|
|building_slots > 3
|character target
|<, <=, =, !=, >, >=
|war
|province
|-
|-
|is_civil_war
|combined_building_level
|Check if the scope war is a civil war or not
|How many levels of normal buildings are there? Duchy and such buildings do not count. Building under construction does not count. The capital building does count
|
|combined_building_level > 10
|yes/no
|<, <=, =, !=, >, >=
|war
|province
|-
|-
|is_defender
|fort_level
|Is the target character in the scoped war as a defender?
|Compares the fort level of a province
|
|
|character target
|<, <=, =, !=, >, >=
|war
|province
|-
|-
|is_participant
|free_building_slots
|Is the target character participating in the scope war as either an attacker or defender?
|How many free building slots exist? A building under construction is considered to be taking a slot
|
|free_building_slots > 3
|character target
|<, <=, =, !=, >, >=
|war
|province
|-
|-
|is_war_leader
|geographical_region
|Is the target character leading one of the sides in the scoped war?
|Checks if a province is in a certain geographical region
|
|
|character target
|war
|-
|province
|is_white_peace_possible
|Check if the scoped war's CB allows white peace (is_white_peace_possible = yes)
|
|yes/no
|war
|-
|-
|using_cb
|has_building
|Is the scope war using the specified CB?
|Does the scoped province have a particular building?
|using_cb = religious_war
| has_building = temple_01
|war
|province
|-
|-
|war_contribution
|has_building_or_higher
|Checks how much a character has contributed to the scoped war
|Does the scoped province have a particular building or one of its upgrades?
|war_contribution = {
| has_building_or_higher = temple_01
target = some character
value > 5
}
 
|war
|province
|-
|-
|war_days
|has_building_with_flag
|Compares the number of days the war has gone on for
|Does the scoped province have a building with a certain flag?
|
|
|<, <=, =, !=, >, >=
*has_building_with_flag = { flag = temple count >= 2 }
|war
*has_building_with_flag = temple # count >= 1
|
|province
|-
|-
|was_called
|has_construction_with_flag
|Has the target character been called to the scope war already?
|Does the scoped province have a construction of a building with the specified flag?
|
|has_construction_with_flag = temple
|character target
|war
|province
|-
|-
|any_defensive_great_holy_wars
|has_free_building_slot
|Iterate through all great holy wars this faith is defending against
|Does the scoped province have a free building slot?
|any_defensive_great_holy_wars = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_free_building_slot = yes
|yes/no
|province
|faith
|great holy war
|-
|-
|any_faith_holy_order
|has_holding_type
|Iterate through all holy orders of the faith
|Does the scope province have a holding of particular type?
|any_faith_holy_order = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_holding_type = castle_holding
|
|province
|faith
|holy order
|-
|-
|any_holy_site
|has_ongoing_construction
|Iterate through all holy site baronies of a faith
|Does the scoped province have a construction ongoing?
|any_holy_site = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_ongoing_construction = yes
|yes/no
|province
|faith
|landed title
|-
|-
|controls_holy_site
|has_province_modifier
|Does the faith control a holy site? controls_holy_site = key_of_holy_site
|Does the scoped province have a given modifier?
|
|has_province_modifier = name
|faith
|province
|-
|-
|controls_holy_site_with_flag
|has_province_modifier_duration_remaining
|Does the faith control a holy site with the given flag? controls_holy_site_with_flag = some flag
|Does the scoped province have the duration remaining on a given modifier?
|
|has_province_modifier_duration_remaining = name
|faith
|province
|-
|-
|estimated_faith_strength
|has_special_building
|How strong is the scoped faith? *Expensive*, if you're gonna use the value repeatedly, save it to a scope first! This is scaled by a factor of 1000, so '1' means 1000 men. This is due to the cap of ~2 million, which would be too low in many cases
|Does the province (holding) have a special building?
|
|
|<, <=, =, !=, >, >=
|yes/no
|faith
|province
|-
|-
|faith_hostility_level
|has_special_building_slot
|What is the faith's hostility level towards the target faith?
|Does the province (holding) have a special building slot?
|faith_hostility_level { target = scope:some_faith value > 1 }
|
 
|yes/no
The levels are
|province
*0 righteous
*1 astray
*2 hostile
*3 evil
|<, <=, =, !=, >, >=
|faith
|-
|-
|faith_hostility_level_comparison
|is_coastal
|Compares the scoped faith's hostility level towards two other faiths.
|is the province a coastal province?
|faith_hostility_level_comparison { faith1 > faith2 }
|
|yes/no
|faith
|province
|-
|-
|fervor
|is_county_capital
|What is the faith's fervor?
|Is the province the county capital?
|
|
|<, <=, =, !=, >, >=
|yes/no
|faith
|province
|-
|-
|has_allowed_gender_for_clergy
|monthly_income
|Is the target character of the allowed gender to be clergy of the faith?
|Check the income of the scoped province
|
|monthly_income > 10
|character target
|<, <=, =, !=, >, >=
|faith
|province
|-
|-
|has_doctrine
|num_buildings
|Does the given faith have the given doctrine?
|How many normal buildings are there? Duchy and such buildings do not count. A building under construction does count
|has_doctrine = doctrine_key
|num_buildings > 3
|<, <=, =, !=, >, >=
|faith
|province
|-
|-
|has_doctrine_parameter
|number_of_characters_in_pool
|Does the given faith have the given doctrine parameter? Can only check for bool parameters.
|Check the number of characters in the pool the scoped province is a part of
|has_doctrine_parameter = parameter_key
|
|<, <=, =, !=, >, >=
|faith
|province
|-
|-
|has_dominant_ruling_gender
|terrain
|Is the target character's gender of the dominant gender of the faith? True if there's no dominant gender
|Checks if a province is of a specific terrain type
|
|
|character target
|faith
|-
|province
|has_graphical_faith
|Does the faith have this graphical faith?
|<faith> = { has_graphical_faith = orthodoxgfx }
|
|faith
|-
|-
|has_icon
|any_leased_title
|Does the faith have the given icon?
|Iterate through all titles leased to the scoped holy order
|has_icon = some_cool_custom_icon
|any_leased_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|faith
|holy order
|landed title
|-
|-
|has_preferred_gender_for_clergy
|num_leased_titles
|Is the target character of the preferred gender to be clergy of the faith?
|How many holdings the holy order has under lease
|
|
|character target
|<, <=, =, !=, >, >=
|faith
|holy order
|-
|-
|holy_sites_controlled
|activity_has_been_activated
|How many holy sites does the faith control?
|Is the activity activated?
|holy_sites_controlled > 1
|
|<, <=, =, !=, >, >=
|yes/no
|faith
|activity
|-
|-
|num_character_followers
|any_activity_declined
|How many characters follow the scoped faith?
|Iterate through all characters who declined an activity invite to a specific activity
|num_character_followers > 0
|any_activity_declined = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|faith
|activity
|character
|-
|-
|num_county_followers
|any_activity_invited
|How many counties follow the scoped faith?
|Iterate through all characters who have unanswered invites to a specific activity
|num_county_followers > 0
|any_activity_invited = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|faith
|activity
|character
|-
|-
|religion_tag
|any_participant
|Checks the tag of the religion of the current faith
|Iterate through all participants in an activity
|religion_tag = christianity_religion
|any_participant = { <count=num/all> / <percent=fixed_point> <triggers> }
|faith
|activity
|character
|-
|is_target_participating
|Is the target character participating in the scoped activity?
|
|character target
|activity
|-
|-
|trait_is_sin
|number_of_participants
|Does the scoped faith consider the given trait sinful?
|The number of activity participants (including the owner)
|trait_is_sin = lustful
|
|<, <=, =, !=, >, >=
|faith
|activity
|-
|-
|trait_is_virtue
|any_target_title
|Does the scoped faith consider the given trait virtuous?
|Iterate through all casus belli's target titles
|trait_is_virtue = lustful
|any_target_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|faith
|casus belli
|landed title
|-
|army_is_moving
|Is this army moving?
|
|yes/no
|army
|-
|-
|any_secret_knower
|army_max_size
|Iterate through all characters who know the scoped secret
|What is this army's max size?
|any_secret_knower = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|army
|secret
|character
|-
|-
|any_secret_participant
|army_size
|Iterate through participants in a secret
|what size is this army?
|any_secret_participant = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|<, <=, =, !=, >, >=
|army
|secret
|character
|-
|-
|can_be_exposed_by
|is_army_in_combat
|Can the scope secret be exposed by the target character?
|Is the scoped army in combat?
|can_be_exposed_by = target
|
|character target
|yes/no
|secret
|army
|-
|-
|is_criminal_for
|is_army_in_raid
|Is this secret criminal for the target participant?
|Is the scoped army in a raid (this includes a raid interrupted by combat)?
|is_criminal_for = <character>
|
|character scope
|yes/no
|secret
|army
|character
|-
|-
|is_known_by
|is_army_in_siege
|Is the scoped secret known by the target character?
|Is the scoped army in a siege (this includes a siege interrupted by combat)?
|
|
|character target
|yes/no
|secret
|army
|-
|-
|is_shunned_for
|is_army_in_siege_relevant_for
|Is this secret shunned for the target participant?
|Is the scoped army in a siege that is relevant to the target character?
|is_shunned_for = <character>
|is_army_in_siege_relevant_for = scope:character
|character scope
|character scope
|secret
|army
|character
|character
|-
|-
|is_shunned_or_criminal_for
|is_raid_army
|Is this secret shunned or criminal for the target participant?
|Is the scoped army a raid army?
|is_shunned_or_illegal_for = <character>
|
|character scope
|yes/no
|secret
|army
|character
|-
|is_spent_by
|Has the scoped secret been spent by the target character?
|is_spent_by = target
|character target
|secret
|-
|-
|local_player_knows_this_secret
|raid_loot
|Does the local player know about the secret?
|How much raid loot is the army carrying?
|An interface trigger, can only be used in specific places
|
|yes/no
|<, <=, =, !=, >, >=
|secret
|army
|-
|-
|same_secret_type_as
|building_garrison
|Is the scoped secret of the same type as the target secret?
|The amount of garrison in a county or province from buildings
|same_secret_type_as = scope:some_secret
|levies > 100
|<, <=, =, !=, >, >=
|landed title, province
|secret
|-
|building_levies
|The amount of levies in a county or province from buildings
|levies > 100
|<, <=, =, !=, >, >=
|landed title, province
|-
|-
|secret_type
|squared_distance
|Is the scoped secret of the specified type?
|How far away is the province/barony/county from the target? Measured in map pixels. Squared for performance reasons (square root is expensive). squared_distance = { target = some province/barony/county value > 10000 }
|
|
|
|secret
|
|-
|available_loot
|How much gold is available to loot for raiding armies?
|available_loot >= 7
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|province
|landed title, province
|-
|-
|building_slots
|add_to_temporary_list
|How many building slots exist (including occupied ones)?
|Saves a temporary target for use during the trigger execution
|building_slots > 3
|This is used to build lists in triggers.
|<, <=, =, !=, >, >=
If used within an any-trigger, placement within the trigger is quite important. The game will iterate through every instance of the any-trigger until it finds a single instance that fulfills the requirements, and then it will stop.
|province
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
|combined_building_level
|How many levels of normal buildings are there? Duchy and such buildings do not count. Building under construction does not count. The capital building does count
|combined_building_level > 10
|<, <=, =, !=, >, >=
|province
|-
|-
|fort_level
|all_false
|Compares the fort level of a province
|True if all children are false (equivalent to NOR)
|
|
|<, <=, =, !=, >, >=
|province
|none
|-
|-
|free_building_slots
|always
|How many free building slots exist? A building under construction is considered to be taking a slot
|Always the same value
|free_building_slots > 3
|always = yes is true, always = no is false
|<, <=, =, !=, >, >=
|yes/no
|province
|none
|-
|-
|geographical_region
|and
|Checks if a province is in a certain geographical region
|True if all children are true (this is the default for most lists of triggers).
|
|
|province
|none
|-
|-
|has_building
|any_barony
|Does the scoped province have a particular building?
|Iterate through all baronies in the game
| has_building = temple_01
|any_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|province
|none
|landed title
|-
|any_county
|Iterate through all counties in the game
|any_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|none
|landed title
|-
|-
|has_building_or_higher
|any_county_in_region
|Does the scoped province have a particular building or one of its upgrades?
|Iterate through all counties in the region. Put 'region = region_name' inside it
| has_building_or_higher = temple_01
|any_county_in_region = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|province
|none
|landed title
|-
|-
|has_building_with_flag
|any_duchy
|Does the scoped province have a building with a certain flag?
|Iterate through all duchies in the game
|
|any_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
*has_building_with_flag = { flag = temple count >= 2 }
*has_building_with_flag = temple # count >= 1
|
|province
|none
|landed title
|-
|-
|has_construction_with_flag
|any_empire
|Does the scoped province have a construction of a building with the specified flag?
|Iterate through all empires in the game
|has_construction_with_flag = temple
|any_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|province
|none
|landed title
|-
|any_false
|True if any child is false (equivalent to NAND)
|
|-
|none
|has_free_building_slot
|Does the scoped province have a free building slot?
|has_free_building_slot = yes
|yes/no
|province
|-
|-
|has_holding_type
|any_in_global_list
|Does the scope province have a holding of particular type?
|Iterate through all items in global list. list = name or variable = name
|has_holding_type = castle_holding
|any_in_global_list = { <count=num/all> / <percent=fixed_point> <triggers> }
|province
|none
|-
|-
|has_ongoing_construction
|any_in_list
|Does the scoped province have a construction ongoing?
|Iterate through all items in list. list = name or variable = name
|has_ongoing_construction = yes
|any_in_list = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|province
|-
|none
|has_province_modifier
|Does the scoped province have a given modifier?
|has_province_modifier = name
|
|province
|-
|-
|has_province_modifier_duration_remaining
|any_in_local_list
|Does the scoped province have the duration remaining on a given modifier?
|Iterate through all items in local list. list = name or variable = name
|has_province_modifier_duration_remaining = name
|any_in_local_list = { <count=num/all> / <percent=fixed_point> <triggers> }
|province
|none
|-
|-
|has_special_building
|any_independent_ruler
|Does the province (holding) have a special building?
|Iterate through independent rulers of count tier or above
|
|any_independent_ruler = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|province
|none
|character
|-
|-
|has_special_building_slot
|any_kingdom
|Does the province (holding) have a special building slot?
|Iterate through all kingdoms in the game
|
|any_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|province
|none
|landed title
|-
|-
|is_coastal
|any_living_character
|is the province a coastal province?
|Iterate through all living characters
|
|any_living_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|province
|none
|character
|-
|-
|is_county_capital
|any_player
|Is the province the county capital?
|Iterate through all player characters
|
|any_player = { <count=num/all> / <percent=fixed_point> <triggers> }
|yes/no
|province
|none
|character
|-
|-
|monthly_income
|any_pool_character
|Check the income of the scoped province
|Iterate through all characters in the pool of the given province
|monthly_income > 10
|any_pool_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|province
|none
|character
|-
|-
|num_buildings
|any_province
|How many normal buildings are there? Duchy and such buildings do not count. A building under construction does count
|Iterate through all provinces (skips non-land and impassable provinces)
|num_buildings > 3
|any_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|
|none
|province
|province
|-
|any_religion_global
|Iterate through all religions in the game
|any_religion_global = { <count=num/all> / <percent=fixed_point> <triggers> }
|none
|religion
|-
|-
|number_of_characters_in_pool
|any_ruler
|Check the number of characters in the pool the scoped province is a part of
|Iterate through all rulers of count tier or above
|
|any_ruler = { <count=num/all> / <percent=fixed_point> <triggers> }
|<, <=, =, !=, >, >=
|province
|none
|character
|-
|-
|terrain
|assert_if
|Checks if a province is of a specific terrain type
|Conditionally cause an assert during run time
|
|assert_if = { limit = { X } text = Y }, where X is a trigger and Y is an optional string
|province
|none
|-
|-
|any_leased_title
|assert_read
|Iterate through all titles leased to the scoped holy order
|Conditionally cause an assert during read time
|any_leased_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|assert_read = X, where X is yes or the string to be printed in the assert
|none
|holy order
|landed title
|-
|-
|num_leased_titles
|calc_true_if
|How many holdings the holy order has under lease
|Returns true if the specified number of sub-triggers return true
|
|calc_true_if = { amount = 2 <trigger> <trigger> <trigger> }
|<, <=, =, !=, >, >=
|
|holy order
|none
|-
|-
|activity_has_been_activated
|can_start_tutorial_lesson
|Is the activity activated?
|Can the specified tutorial lesson be started?
|
|can_start_tutorial_lesson = reactive_advice_succession
|yes/no
 
|activity
An interface trigger, can only be used in specific places
|-
|none
|any_activity_declined
|Iterate through all characters who declined an activity invite to a specific activity
|any_activity_declined = { <count=num/all> / <percent=fixed_point> <triggers> }
|activity
|character
|-
|-
|any_activity_invited
|current_computer_date
|Iterate through all characters who have unanswered invites to a specific activity
|Compare the current computer date.
|any_activity_invited = { <count=num/all> / <percent=fixed_point> <triggers> }
|An interface trigger, can only be used in specific places
|<, =, > valid date
|none
|activity
|character
|-
|-
|any_participant
|current_computer_date_day
|Iterate through all participants in an activity
|Compare the current computer day.
|any_participant = { <count=num/all> / <percent=fixed_point> <triggers> }
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|none
|activity
|character
|-
|-
|is_target_participating
|current_computer_date_month
|Is the target character participating in the scoped activity?
|Compare the current computer month.
|
|An interface trigger, can only be used in specific places
|character target
|<, <=, =, !=, >, >=
|activity
|none
|-
|-
|number_of_participants
|current_computer_date_year
|The number of activity participants (including the owner)
|Compare the current computer year.
|
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|activity
|none
|-
|-
|any_target_title
|current_date
|Iterate through all casus belli's target titles
|Compare the current ingame date.
|any_target_title = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|casus belli
|landed title
|-
|army_is_moving
|Is this army moving?
|
|
|yes/no
|<, =, > valid date
|army
|none
|-
|-
|army_max_size
|current_month
|What is this army's max size?
|Compare the current ingame month (1..12)
|
|
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|army
|none
|-
|-
|army_size
|current_tooltip_depth
|what size is this army?
|What is number of tooltips open rigth now?
|
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|army
|none
|-
|-
|is_army_in_combat
|custom_description
|Is the scoped army in combat?
|Wraps triggers that get a custom description instead of the auto-generated one
|
|custom_description = {
|yes/no
text = <trigger_localization_key>
|army
subject = <optional subject scope> #defaults to current scope
object = <optional object scope>
value = <optional script value>
... triggers ...
}
|none
|-
|-
|is_army_in_raid
|custom_tooltip
|Is the scoped army in a raid (this includes a raid interrupted by combat)?
|Replaces the tooltips for the enclosed triggers with a custom text
|
|custom_tooltip = {
|yes/no
text = <text>
|army
<trigger>
}
|none
|-
|-
|is_army_in_siege
|debug_only
|Is the scoped army in a siege (this includes a siege interrupted by combat)?
|Checks if the game is in debug mode or not.
|
|
|yes/no
|yes/no
|army
|none
|-
|-
|is_army_in_siege_relevant_for
|exists
|Is the scoped army in a siege that is relevant to the target character?
|Checks whether the specified socope target exists (check for not being the null object)
|is_army_in_siege_relevant_for = scope:character
|exists = from.owner.var:cool_var.mother
|character scope
|army
|none
|character
|-
|-
|is_raid_army
|game_start_date
|Is the scoped army a raid army?
|Compare the date of the bookmarked game launched.
|
|
|yes/no
|<, =, > valid date
|army
|none
|-
|-
|raid_loot
|global_variable_list_size
|How much raid loot is the army carrying?
|Checks the size of a variable list
|
|variable_list_size = { name = X value >= Y }
|<, <=, =, !=, >, >=
* X is the name of the variable
|army
* Y is a script value or number
|
|none
|-
|-
|building_garrison
|has_dlc
|The amount of garrison in a county or province from buildings
|Does the host have this DLC?
|levies > 100
|
|<, <=, =, !=, >, >=
|landed title, province
|none
|-
|-
|building_levies
|has_game_rule
|The amount of levies in a county or province from buildings
|Is the given game rule setting enabled?
|levies > 100
|has_game_rule = faster_conversion
|<, <=, =, !=, >, >=
|landed title, province
|-
|none
|squared_distance
|How far away is the province/barony/county from the target? Measured in map pixels. Squared for performance reasons (square root is expensive). squared_distance = { target = some province/barony/county value > 10000 }
|
|<, <=, =, !=, >, >=
|landed title, province
|-
|-
|add_to_temporary_list
|has_global_variable
|Saves a temporary target for use during the trigger execution
|Checks whether the current scope has the specified variable set
|This is used to build lists in triggers.
|has_variable = name
If used within an any-trigger, placement within the trigger is quite important. The game will iterate through every instance of the any-trigger until it finds a single instance that fulfills the requirements, and then it will stop.
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
|none
|-
|-
|any_barony
|has_global_variable_list
|Iterate through all baronies in the game
|Checks whether the current scope has the specified variable list set
|any_barony = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_variable_list = name
|none
|none
|landed title
|-
|-
|any_county
|has_local_variable
|Iterate through all counties in the game
|Checks whether the current scope has the specified variable set
|any_county = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_variable = name
|none
|none
|landed title
|-
|-
|any_county_in_region
|has_local_variable_list
|Iterate through all counties in the region. Put 'region = region_name' inside it
|Checks whether the current scope has the specified variable list set
|any_county_in_region = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_variable_list = name
|none
|none
|landed title
|-
|-
|any_duchy
|has_map_mode
|Iterate through all duchies in the game
|Checks if the current map mode is the specified one
|any_duchy = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_map_mode = realms
 
An interface trigger, can only be used in specific places
|none
|none
|landed title
|-
|-
|any_empire
|has_multiple_players
|Iterate through all empires in the game
|Does the game have at least two players currently connected?
|any_empire = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|yes/no
|none
|none
|landed title
|-
|-
|any_in_global_list
|has_variable
|Iterate through all items in global list. list = name or variable = name
|Checks whether the current scope has the specified variable set
|any_in_global_list = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_variable = name
|none
|none
|-
|-
|any_in_list
|has_variable_list
|Iterate through all items in list. list = name or variable = name
|Checks whether the current scope has the specified variable list set
|any_in_list = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_variable_list = name
|none
|none
|-
|-
|any_in_local_list
|has_war_result_message_with_outcome
|Iterate through all items in local list. list = name or variable = name
|Is there a war result message with the specified outcome?
|any_in_local_list = { <count=num/all> / <percent=fixed_point> <triggers> }
|has_war_result_message_with_outcome = victory/defeat/white_peace/invalidated/any
 
An interface trigger, can only be used in specific places
|none
|none
|-
|-
|any_independent_ruler
|is_bad_nickname
|Iterate through independent rulers of count tier or above
|Is the nickname bad?
|any_independent_ruler = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|none
|none
|character
|-
|-
|any_kingdom
|is_frontend_character_selected
|Iterate through all kingdoms in the game
|is the specified front end character selected (also can be used with "= yes" and "= no")?
|any_kingdom = { <count=num/all> / <percent=fixed_point> <triggers> }
|An interface trigger, can only be used in specific places
|none
|none
|landed title
|-
|-
|any_living_character
|is_game_view_open
|Iterate through all living characters
|is the specified in-game view open?
|any_living_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|An interface trigger, can only be used in specific places
|none
|none
|character
|-
|-
|any_player
|is_gamestate_tutorial_active
|Iterate through all player characters
|Is the gamestate tutorial active? See save_progress_in_gamestate in tutorial_lesson_chains documentation.
|any_player = { <count=num/all> / <percent=fixed_point> <triggers> }
|An interface trigger, can only be used in specific places
|yes/no
|none
|none
|character
|-
|-
|any_pool_character
|is_in_list
|Iterate through all characters in the pool of the given province
|Checks if a target in in a list
|any_pool_character = { <count=num/all> / <percent=fixed_point> <triggers> }
|
|none
|none
|character
|-
|-
|any_province
|is_player_selected
|Iterate through all provinces (skips non-land and impassable provinces)
|is the player playing a character?
|any_province = { <count=num/all> / <percent=fixed_point> <triggers> }
|An interface trigger, can only be used in specific places
|yes/no
|none
|none
|province
|-
|any_religion_global
|Iterate through all religions in the game
|any_religion_global = { <count=num/all> / <percent=fixed_point> <triggers> }
|none
|religion
|-
|-
|any_ruler
|is_target_in_global_variable_list
|Iterate through all rulers of count tier or above
|Checks if a target is in a variable list
|any_ruler = { <count=num/all> / <percent=fixed_point> <triggers> }
|is_target_in_variable_list = { name = X target = Y }
* X is the name of the variable
* Y is an event target
|none
|none
|character
|-
|-
|assert_if
|is_target_in_local_variable_list
|Conditionally cause an assert during run time
|Checks if a target is in a variable list
|assert_if = { limit = { X } text = Y }, where X is a trigger and Y is an optional string
|is_target_in_variable_list = { name = X target = Y }
* X is the name of the variable
* Y is an event target
|none
|none
|-
|-
|assert_read
|is_target_in_variable_list
|Conditionally cause an assert during read time
|Checks if a target is in a variable list
|assert_read = X, where X is yes or the string to be printed in the assert
|is_target_in_variable_list = { name = X target = Y }
* X is the name of the variable
* Y is an event target
|none
|none
|-
|-
|calc_true_if
|is_tooltip_with_name_open
|Returns true if the specified number of sub-triggers return true
|Is the tooltip with the specified name open?
|calc_true_if = { amount = 2 <trigger> <trigger> <trigger> }
|An interface trigger, can only be used in specific places
|none
|none
|-
|-
|can_start_tutorial_lesson
|is_tutorial_active
|Can the specified tutorial lesson be started?
|Is the tutorial active?
|can_start_tutorial_lesson = reactive_advice_succession
|An interface trigger, can only be used in specific places
|yes/no
|none
|
|-
|is_tutorial_lesson_active
|Is this the current tutorial lesson?
|is_tutorial_lesson_active = reactive_advice_succession


An interface trigger, can only be used in specific places
An interface trigger, can only be used in specific places
第5,776行: 第5,970行:
|-
|-
|current_computer_date
|is_tutorial_lesson_chain_completed
|Compare the current computer date.
|Has the tutorial lesson chain with the specified key been finished?
|An interface trigger, can only be used in specific places
|An interface trigger, can only be used in specific places
|<, =, > valid date
|none
|none
|-
|-
|current_computer_date_day
|is_tutorial_lesson_completed
|Compare the current computer day.
|has the tutorial lesson with the specified name been finished?
|An interface trigger, can only be used in specific places
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|none
|none
|-
|-
|current_computer_date_month
|is_tutorial_lesson_step_completed
|Compare the current computer month.
|Has the tutorial lesson step been finished?
|An interface trigger, can only be used in specific places
|is_tutorial_lesson_step_completed = lesson_key:step_key
|<, <=, =, !=, >, >=
 
An interface trigger, can only be used in specific places
|none
|none
|-
|-
|current_computer_date_year
|is_war_overview_tab_open
|Compare the current computer year.
|is the war overview open at a specified tab (victory, defeat, white_peace)?
|An interface trigger, can only be used in specific places
|An interface trigger, can only be used in specific places
|<, <=, =, !=, >, >=
|none
|none
|-
|-
|current_date
|is_widget_open
|Compare the current ingame date.
|is the widget with the specified name open?
|
|Separting strings with dots will search for specific children of children e.g. appa.foo vs baz.foo
|<, =, > valid date
 
An interface trigger, can only be used in specific places
|none
|none
|-
|-
|current_month
|list_size
|Compare the current ingame month (1..12)
|Checks the size of a list
|
|list_size = { name = X value >= Y }
* X is the name of the list
* Y is a script value
|<, <=, =, !=, >, >=
|<, <=, =, !=, >, >=
|none
|none
|-
|-
|current_tooltip_depth
|local_variable_list_size
|What is number of tooltips open rigth now?
|Checks the size of a variable list
|An interface trigger, can only be used in specific places
|variable_list_size = { name = X value >= Y }
|<, <=, =, !=, >, >=
* X is the name of the variable
* Y is a script value or number
|
|none
|none
|-
|-
|custom_description
|monarchs_journey_unlock
|Wraps triggers that get a custom description instead of the auto-generated one
|
|custom_description = {
|An interface trigger, can only be used in specific places
text = <trigger_localization_key>
subject = <optional subject scope> #defaults to current scope
object = <optional object scope>
value = <optional script value>
... triggers ...
}
|none
|none
|-
|-
|custom_tooltip
|nand
|Replaces the tooltips for the enclosed triggers with a custom text
|a negated AND trigger
|custom_tooltip = {
|
text = <text>
<trigger>
}
|none
|none
|-
|-
|debug_only
|nor
|Checks if the game is in debug mode or not.
|a negated OR trigger
|
|
|yes/no
|none
|none
|-
|-
|exists
|not
|Checks whether the specified socope target exists (check for not being the null object)
|Negates content of trigger
|exists = from.owner.var:cool_var.mother
|
|none
|none
|-
|-
|game_start_date
|or
|Compare the date of the bookmarked game launched.
|True if any of the children is true
|
|
|<, =, > valid date
|none
|none
|-
|-
|global_variable_list_size
|release_only
|Checks the size of a variable list
|Checks if the game is in release mode or not.
|variable_list_size = { name = X value >= Y }
|
* X is the name of the variable
|yes/no
* Y is a script value or number
|none
|none
|-
|-
|has_dlc
|save_temporary_scope_as
|Does the host have this DLC?
|Saves a temporary target for use during the trigger execution
|
|
第5,885行: 第6,076行:
|-
|-
|has_game_rule
|save_temporary_scope_value_as
|Is the given game rule setting enabled?
|Saves a numerical or bool value as an arbitrarily-named temporary target to be referenced later in the same effect
|has_game_rule = faster_conversion
|save_temporary_scope_value_as = { name = <string> value = x }
|none
|none
|-
|-
|has_global_variable
|scripted_tests
|Checks whether the current scope has the specified variable set
|Checks if the game is currently running scripted tests.
|has_variable = name
|
|yes/no
|none
|none
|-
|-
|has_global_variable_list
|switch
|Checks whether the current scope has the specified variable list set
|Switch on a trigger for the evaluation of another trigger with an optional fallback trigger.
|has_variable_list = name
|switch = {
trigger = simple_assign_trigger
case_1 = { <triggers> }
case_2 = { <triggers> }
case_n = { <triggers> }
fallback = { <triggers> }
|none
|none
|-
|-
|has_local_variable
|time_of_year
|Checks whether the current scope has the specified variable set
|Check if the current date is within the bounds
|has_variable = name
|time_of_year = {
   min = 11.1 # default: beginning of year
   max = 2.29 # default: end of year
}
Dates are formatted as "<month>.<day>" or just "<month>".
The check includes the min and max dates.
min can be larger than max, in this case we wrap around to the next year (i.e., February is between October and March).
|none
|none
|-
|-
|has_local_variable_list
|trigger_else
|Checks whether the current scope has the specified variable list set
|Evaluates the triggers if the display_triggers of preceding 'trigger_if' or 'trigger_else_if' is not mettrigger_if = { limit = { <display_triggers> } <triggers> }
|has_variable_list = name
| trigger_else = { <triggers> }
|none
|none
|-
|-
|has_map_mode
|trigger_else_if
|Checks if the current map mode is the specified one
|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> }
|has_map_mode = realms
|trigger_else_if = { limit = { <display_triggers> } <triggers> }
 
An interface trigger, can only be used in specific places
|none
|none
|-
|-
|has_multiple_players
|trigger_if
|Does the game have at least two players currently connected?
|Evaluates the triggers if the display_triggers of the limit are met
|
|trigger_if = { limit = { <display_triggers> } <triggers> }
|yes/no
|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
|
|-
|has_war_result_message_with_outcome
|Is there a war result message with the specified outcome?
|has_war_result_message_with_outcome = victory/defeat/white_peace/invalidated/any
 
An interface trigger, can only be used in specific places
|
|none
|
|-
|is_bad_nickname
|Is the nickname bad?
|
|
|none
|
|-
|is_frontend_character_selected
|is the specified front end character selected (also can be used with "= yes" and "= no")?
|An interface trigger, can only be used in specific places
|
|none
|
|-
|is_game_view_open
|is the specified in-game view open?
|An interface trigger, can only be used in specific places
|
|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_player_selected
|is the player playing a character?
|An interface trigger, can only be used in specific places
|yes/no
|none
|
|-
|is_target_in_global_variable_list
|Checks if a target is in a variable list
|is_target_in_variable_list = { name = X target = Y }
* X is the name of the variable
* Y is an event target
|none
|
|-
|is_target_in_local_variable_list
|Checks if a target is in a variable list
|is_target_in_variable_list = { name = X target = Y }
* X is the name of the variable
* Y is an event target
|
|none
|
|-
|is_target_in_variable_list
|Checks if a target is in a variable list
|is_target_in_variable_list = { name = X target = Y }
* X is the name of the variable
* Y is an event target
|
|none
|
|-
|is_tooltip_with_name_open
|Is the tooltip with the specified name open?
|An interface trigger, can only be used in specific places
|
|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?
|is_tutorial_lesson_active = reactive_advice_succession
 
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?
|is_tutorial_lesson_step_completed = lesson_key:step_key
 
An interface trigger, can only be used in specific places
|
|none
|
|-
|is_war_overview_tab_open
|is the war overview open at a specified tab (victory, defeat, white_peace)?
|An interface trigger, can only be used in specific places
|
|none
|
|-
|is_widget_open
|is the widget with the specified name open?
|Separting strings with dots will search for specific children of children e.g. appa.foo vs baz.foo
 
An interface trigger, can only be used in specific places
|
|none
|
|-
|list_size
|Checks the size of a list
|list_size = { name = X value >= Y }
* X is the name of the list
* Y is a script value
|<, <=, =, !=, >, >=
|none
|
|-
|local_variable_list_size
|Checks the size of a variable list
|variable_list_size = { name = X value >= Y }
* X is the name of the variable
* Y is a script value or number
|
|none
|
|-
|monarchs_journey_unlock
|
|An interface trigger, can only be used in specific places
|
|none
|
|-
|release_only
|Checks if the game is in release mode or not.
|
|yes/no
|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
|
|-
|scripted_tests
|Checks if the game is currently running scripted tests.
|
|yes/no
|none
|
|-
|time_of_year
|Check if the current date is within the bounds
|time_of_year = {
   min = 11.1 # default: beginning of year
   max = 2.29 # default: end of year
}
Dates are formatted as "<month>.<day>" or just "<month>".
The check includes the min and max dates.
min can be larger than max, in this case we wrap around to the next year (i.e., February is between October and March).
|none
|none
第6,332行: 第6,312行:
|great holy war
|great holy war
|
|
|-
|year
|Current in-game year. Please, beware that "year = 700" would mean "It is 700 AD '''or later'''". If you want to set a specific year, you have to use a specific combination. Here the example to trigger the year 1066 only.
  AND = {
   year = 1066
   NOT = { year = 1067 }
  }
|year = <integer value>
|=
|(unknown)
|}
|}


{{Modding navbox}}
{{Modding navbox}}
[[Category:Modding]]
[[Category: 模组制作]]
[[en:Triggers]]
请注意您对十字军之王3百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在十字军之王3百科:版权的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。 未经许可,请勿提交受版权保护的作品!

为防止机器编辑,请完成下方验证

取消 编辑帮助(在新窗口中打开)