首页所有页面

条件


Conditions or Triggers are used in scripting to restrict events and commands to correct targets.

They appear:

  • In condition blocks (trigger section of events, or equivalent: mult_modifier, can_use_title, potential, allow, ...)
  • In the limit clause of command blocks
  • In scripted triggers,可用于将条件分组为可重复使用的宏。
  • At the root of events for pre-triggers used to improve performances

大多数接受数值的条件的语法被扩展为 numeric operators 自2.8版本起。 以下触发器不完全支持这些操作符:

  • among_most_powerful_vassals
  • days_since_last_hostile_action
  • demesne_size
  • demesne_efficiency
  • num_of_realm_counties
  • real_month_of_year
  • real_day_of_year
  • realm_character_percent
  • religion_authority (< and <= do not work)
  • scaled_wealth
  • tier (as well as similar triggers, such as (lower/higher_)(real_)tier(_than)
  • heavy_troops, light_troops (仅右侧简单,子句形式完全支持数值运算符)
  • <troop_type>, for example pikemen

List of conditions

Available conditions depend on the current scope type.

Condition Used in vanilla Used from scope Value type Description Example Category
adventurer title bool 检查该头衔的冒险者旗帜(当持有者获得另一个头衔或死亡时该头衔会被销毁)。 adventurer = yes Titles
age character int 角色的年龄。可以是任何整数。 age < 45 Characters
age_diff character clause The absolute value 两位角色之间的年龄差距。通常与以下设备配合使用 is_older_than.
age_diff = {

    who = PREV

    years >= 25

}

Characters
ai character bool
  • If yes, will only fire for ai characters.
  • If no, will only fire for the player(s).

Can also be used as a pre-trigger for events and decisions.

ai = no Characters
ai_ambition character int Check an AI behavior modifier (based on traits) ai_ambition >= 0 Characters
ai_greed X character int ai_greed >= 10 Characters
ai_honor character int ai_honor < 30 Characters
ai_rationality character int ai_rationality < 0 Characters
ai_zeal character int ai_zeal >= 50 Characters
always any bool 可以用来失败条件,而无需注释或删除代码 (always = no).

Also used to test if scopes do or do not exist:

NOT = {

    some_scope = {

	always = yes

    }

}

If the scope matches nothing, then conditions fails.

Control
among_most_powerful_vassals character int 检查该角色是否是王国中排名第九的附庸之一。它比较了该角色的权力基础与同一君主所有其他直接附庸的实力。另见 is_powerful_vassal and relative_power.不允许使用2.8+的比较算子! among_most_powerful_vassals = 5 Realm
any_religion_distance province int 检查指定距离内是否有宗教生成。仅用于替代起始生成/ any_religion_distance < 200 Alternate start
artifact artifact artifact (2.8) 检查被瞄准的伪影是否与目标伪造物相同。 artifact = PREV Control
artifact_age artifact int (2.8) 检查工件是否比指定值更早。如果神器没有已知的创建日期,则总是返回false。 artifact_age > 10 Control
artifact_can_be_gifted_to X artifact character (2.8) 检查瞄准镜中的神器是否可以赠送给目标角色。 artifact_can_be_gifted_to = ROOT Artifacts
artifact_type artifact artifact type 检查作用域的产物是否属于给定类型 artifact_type = golden_platypus Artifacts
artifact_type_owned_by artifact character 检查该角色是否拥有至少一个有瞄准镜的文物实例。 artifact_type_owned_by = ROOT Artifacts
attribute_diff character clause Checks that currently scoped character has at least value more points in the given attribute, than target character.
attribute_diff = {

    character = FROM

    attribute = martial

    value >= 9

}

Characters
at_location character character/province/title 检查两个角色是否在同一个位置。如果目标是头衔,则使用头衔持有人当前所在地。
at_location = spouse

at_location = k_france

any_courtier = { at_location = ROOT }

NOT = { at_location = 719 }

Provinces
base_health character double Checks for hidden attribute base health base_health >= 6 Health
bloodline X bloodline bloodline 如果当前的瞄准镜<bloodline>与右手瞄准镜的血统完全相同,则返回为真<bloodline>。注意这里比较的是血统,不是血统类型。 Bloodlines
bloodline_is_active_for bloodline character 如果当前作用域<bloodline>在右侧处于激活状态,则返回为真<character>。 Bloodlines
borders_lake province bool Province borders a lake borders_lake = yes Provinces
borders_major_river province bool Province borders a major river borders_major_river = yes Provinces
calc_true_if any clause 如果其中触发条件的数量都返回为真,则返回为真。[1] 在这个例子中,至少需要返回5个触发点中的3个为真:
calc_true_if = {

    amount >= 3

    culture = swedish

    religion = catholic

    is_female = no

    is_adult = yes

    age >= 50

}

Control
can_be_given_away title bool 该头衔未被占领,也没有被围攻或战争争议的领地。

该头衔并非资本定居。(通常,你会通过提供县名来免费提供。)
any_demesne_title = {

    can_be_given_away = yes

}

Titles
can_change_religion character bool can_change_religion = yes Religion
can_call_crusade character bool 检查角色是否是使用crusades的宗教领袖 can_call_crusade = yes Religion
can_copy_personality_trait_from character character
ROOT = {

    can_copy_personality_trait_from = PREV

}

Traits
can_grant_title character minor_title 检查有范围的统治者是否能授予至少一个目标小头衔 can_grant_title = title_commander Rulers
can_land_path_to province province/clause 检查是否可以陆路在两个省份之间旅行。也可以展开为取 distance parameter.
can_land_path_to = {

    target = event_target:home_capital

    distance < 1000

}

Provinces
can_naval_path_to province province/clause 检查是否可以通过海路在两个省份之间旅行。这两个省份都必须是海边或沿海。也可以展开为取 distance parameter.
can_naval_path_to = c_london
can_naval_path_to = { target = c_london distance < 100 }
Provinces
can_have_more_leadership_traits character bool 根据武术教育特质检验领导力特质的极限(leadership_traits = N) Traits
can_hold_title character jobTitle/minorTitle 核查指定议员职位或次要头衔的条件。 can_hold_title = job_marshal

can_hold_title = title_commander

Characters
can_join_society character society Checks if scope character can join the specified society. can_join_society = monastic_order_orthodox Societies
can_marry character bool/character False if the character has any traits with cannot_marry = yes统治一个禁止神父婚姻的神权政体,或是圣职成员。

对于已婚(即使他们的宗教允许一夫多妻!)或订婚的角色来说,这也是错误的。

AND = {

    can_marry = yes

    is_marriage_adult = yes

}

Marriage
can_see_secret_religion X character character 检查你当前角色范围是否能看到目标角色的秘密宗教。 Religion
can_swap_job_title character character 检查角色能否继承另一个角色的职位
job_chancellor = {

    NOT = { character = ROOT }

    can_swap_job_title = ROOT

}

can_use_cb character clause (2.8) 检查指定的casus belli是否会在界面中显示并可用。它检查CB本身的所有内容,以及对常规宣战的额外硬编码限制。
Parameter Type Description
target character/title Required. What character or title to target.
casus_belli CB Required. What CB to use.
thirdparty_title title Optional. What title to target, if relevant.
thirdparty character 可选。如果相关的话,代表哪个角色宣战。
only_check_triggers boolean Required.
can_use_cb = {

    target = d_mecklemburg

    casus_belli = religious

    thirdparty_title = d_mecklemburg

    only_check_triggers = yes

}
Wars
character character character/title/int Checks if 2 characters are the same.
any_dynasty_member = { 

    limit = { NOT = { character = ROOT } }

}

character = c_1234

Characters
check_variable character/province clause Used in conjunction with change_variable command.
check_variable = {

    which = bob_saget

    value = 4.5

}

Control
claimed_by title character
any_demesne_title = {

    claimed_by = ROOT

}

Claims
clan character,title bool 无论角色是游牧氏族的族长,还是头衔是游牧氏族。
any_vassal = {

    clan = yes

}
Clans
clan_opinion character clause
clan_opinion = {

    who = FROM

    value >= 0

}

Opinion
clan_opinion_diff character clause
clan_opinion_diff = {

    first = FROM

    second = PREV

    value >= 0

}

Opinion
combat_rating character int Checks combat rating modifier combat_rating >= 0 Character
climate X province winter_type 检查/map/climate.txt中是否定义了某个省份的冬季气候——不检查该省是否是 currently experiencing a winter, use is_winter for that.

注意你只能检查冬季类型 (mild_winter, normal_winter, severe_winter), and not for temperate 气候;但显然,任何没有冬季气候的省份都是温带气候。

climate = severe_winter Provinces
combat_rating_diff character clause Tests combat rating modifier difference with another character
combat_rating_diff = {

    character = FROM

    value >= 3

}

Character
completely_controls X character title 角色控制(个人或通过附庸)指定称号下的所有男爵领地。

Notes:

  • the title itself doesn't need to exist.
  • completely_controls is true if title name is invalid.
Rulers
completely_controls_region character region Similar to completely_controls completely_controls_region = world_steppe Rulers
conquest_culture title bool/character 如果是,只有conquest_culture设置时才会触发(?)。某些CBs套装Conquest_Culture(用于文化转化活动) Culture
continent X province continent Supplanted by more flexible region trigger, but still works Provinces
controlled_by title/province character/title Checks if province/holding is occupied (war) by another character/realm
any_demesne_province = {

    controlled_by = ROOT

}

Wars
controls X character province 检查有瞄准范围的角色是否拥有自己的领地内的省份且未被围攻,或者已经攻陷了该省份。只用省份ID,所以用处非常有限。 controls = 333 # Rome Wars
controls_religion character/title bool 如果是,只选择他们宗教的领袖(持有带有旗帜的头衔) controls_religion = <religion>) controls_religion = yes Religion
could_be_child_of X character character (2.8) 检查被瞄准角色是否足够年轻,可以成为目标角色的父母。这意味着他们至少比女性小MAX_CHILD_BIRTH_AGE AGE_OF_MARRIAGE_MALE岁,如果目标是女性,最多比小433岁(对于不朽角色,只要她们在这个年龄之前就不死,就能绕过检定)。它还会检查他们没有在被瞄准角色的出生日期之前死亡。 could_be_child_of = ROOT Characters
could_be_parent_of character character (2.8) 检查被引导的角色是否足够老,可以成为目标角色的父角色。这意味着他们至少比女性大AGE_OF_MARRIAGE_MALE岁,最多比女性大MAX_CHILD_BIRTH_AGE岁(对于不朽角色来说,只要他们在这个年龄之前就不朽,就能绕过这个检定)。它还会检查他们没有在目标出生日期之前死亡。 could_be_parent_of = event_target:displaced_prince Characters
count int 检查与作用波匹配的元素数量,以及一些 limit. Since patch 2.3 works with all any_ scopes. Does not work in traits with cached = yes associated scopes.
any_spouse_even_if_dead = {

    count >= 3

}

Control
crusade_artifact_pot X any float Checks the artifact pot for the on-going new-style Crusade crusade_artifact_pot > 10 Wars
crusade_gold_pot X any float Checks the gold pot for the on-going new-style Crusade crusade_gold_pot > 2000 Wars
crusade_piety_pot X any float Checks the piety pot for the on-going new-style Crusade crusade_piety_pot > 1000 Wars
crusade_prestige_pot X any float Checks the gold pot for the on-going new-style Crusade crusade_prestige_pot > 5000 Wars
crusade_defense_strength X any float 在新式Crusade中,将防守方的军事力量与准备进攻方的军事力量进行制衡。没用。 crusade_defense_strength < 0.75 War
crusade_preparation_strength any float 以新型方式将准备进攻方的军事力量与防守方的军事力量进行对比Crusade crusade_preparation_strength < 0.75 War
crusade_preparation_time_elapsed X any int 检查自准备当前新式Crusade以来已经过去了多少天 crusade_preparation_time_elapsed < 100 War
crusade_preparation_time_remaining any int 检查距离当前新式Crusade正式开始还有多少天 crusade_preparation_time_remaining > 500 War
culture character/province/title culture/character/province/title Checks if the character has this specific culture Culture
culture_group character/province/title cultureGroup/character/province/title 检查角色是否属于该文化群体 Culture
day_of_birth character int 检查角色出生日期是否至少是这个数字。 day_of_birth >= 18 Characters
date General date Checks the current date date < 1234.5.6 General
days_at_current_society_rank character int 检查该角色在社会中是否处于当前等级,持续了给定天数。 days_at_current_society_rank >= 1095 Societies
days_in_society character int 检查范围角色是否在某社会中停留了指定天数 days_in_society > 365 Societies
days_since_last_hostile_action war clause 检查角色参与战争的时间,无论是战斗还是围城。不支持数值运算符。
FROM = {

    ROOT = {

	any_war = {

	    days_since_last_hostile_action = {

		who = PREVPREV

		days = 365

	    }

	}

    }

}

Offmap
days_since_policy_change offmap int 如果自覆盖范围外功率的最后一次政策变更以来已经过指定天数,则该为真。 days_since_policy_change < 10950 #30 years Offmap
days_since_status_change X offmap int 如果指定天数已经过,自上次范围范围外能力状态变化以来,则该数据成立。 days_since_status_change > 1 Offmap
defending_against_claimant character clause
defending_against_claimant = {

    character = PREVPREV

    title = ROOT

}

Wars
demesne_efficiency X character double Rulers
demesne_garrison_size character int demesne_garrison_size >= 500 Warfare
demesne_size character int 检查角色是否拥有该庄园规模的最小值 Rulers
demesne_size_compared_to_limit character double (2.8) 检查角色领地大小是否与指定的浮点百分比成正比。 demesne_size_compared_to_limit < 1 Rulers
de_facto_liege character/title/province character/title
ROOT = {

    de_facto_liege = FROM

}

Vassalage
de_facto_liege_title X character/title character/title 检查角色或头衔的事实上的封建爵位是否位于右侧。
ROOT = {

    de_facto_liege_title = e_hre

}

Vassalage
de_jure_liege character/title/province character/title 检查当前范围是否是右侧范围的直接de jure附庸。 de_jure_liege = e_rajastan Vassalage
de_jure_liege_or_above character/title/province character/title 检查当前范围是否是右侧范围的de jure附庸。 de_jure_liege_or_above = FROM Vassalage
de_jure_vassal_or_below character/title character/title 检查当前瞄准镜是否de jure右侧望远镜。
crusade_target = {

    de_jure_vassal_or_below = FROM

}

Vassalage
death_reason character deathReason death_reason = death_murder Health
decadence character double decadence >= 90 Characters
disease province disease Checks if the province has the specified disease. disease = bubonic_plague Provinces
disease_defence X province float 检查该省是否至少拥有指定的疾病防御修正值。 disease_defence > 0.1 Provinces
disliked_by_offmap character clause 检查该作用范围角色是否符合指定角色当前对地图外能力的“不喜欢”状态 type. If the "dislike" trigger has a context, the context 参数必须匹配才能返回真。 如果“不喜欢”触发器没有上下文,则必须省略上下文参数才能返回true。
disliked_by_offmap = {

    type = offmap_china

    context = eunuch

}

Offmap
difficulty X any int/string The game difficulty Control
diplomacy character int The character's Diplomacy attribute. For state value, see realm_diplomacy Characters
diplomatic_immunity character bool 检查角色是否拥有diplomatic_immunity旗,保护他免受敌对行为。 Characters
dislike_tribal_organization character/title bool Checks for dislike_tribal_organization religion flag dislike_tribal_organization = no Religion
distance character/province clause Determines the minimum distance 从瞄准镜上。如果与非使用,则为最大距离。距离是主地图图像中的像素,positions.txt
distance = {

    who = ROOT

    value >= 100

}

distance = {

    where = PREV

    distance < 1000

}

Provinces
distance_from_realm character clause
distance_from_realm = {

    who = FROM

    value = 20

}

Provinces
dynastic_prestige X character int 检查角色的王朝是否有至少这个王朝声望。 dynastic_prestige >= 100 Family
dynasty character character/int/no/none 角色的王朝,由整数指标表示。低阶(无王朝)配对 none or no value.
dynasty = none

dynasty = ROOT

Family
dynasty_realm_power character double
top_liege = {

    dynasty_realm_power >= 0.25

}

Family
excommunicated_for character character
top_liege = {

    excommunicated_for = ROOT

}

Religion
faction_exists X character clause
faction_exists = {

    faction = faction_succ_seniority

    title = PREV

    thirdparty = FROM

}

Factions
faction_power character clause
faction_power = {

    faction = faction_succ_seniority

    power >= 1.0

}

Factions
family character character/title/bool Alias for dynasty
any_vassal = {

    family = ROOT

}

Family
father_of_unborn_known character bool 检查孕妇未出生的孩子是否有已知父亲。 Family
fertility character double 角色的生育价值。游戏内只能通过“charinfo”控制台命令查看。 Characters
flank_has_leader battle bool Used in combat tactics Wars
flank_has_tactic X Combat combat tactic Wars
fort_has_building X province building Checks if a fort has the specified building. fort_has_building = <fo_some_building> Buildings
fort_has_any_building X province building Checks if a fort has at least 1 building. Buildings
free_court_slots character int Checks how many free court slots a ruler has free_court_slots < -10 Rulers
from_ruler_dynasty character bool from_ruler_dynasty = yes Family
government character government, title, character, province 查看某个政府类型的角色。有关查看政府团体,请参见 is_feudal, is_republic,等等。省份必须按相对范围或保存事件目标来确定,因为数字被解释为字符ID。
government = nomadic_government

government = k_norway

government = ROOT

Government
graphical_culture character culturegfx 角色的图形文化。这与效应set_graphical_culture不同,后者需要培养物,而非培养物。游戏内只能通过“charinfo”控制台命令查看。 Fixed in 2.8. (在2.7及更早版本中,检查无效的culturegfx会导致CTD。) graphical_culture = norsegfx Characters
had_artifact_flag X character clause (2.8) Before 3.0 months and years do not work as parameters, only days does. Control
had_bloodline_flag X bloodline clause 如果当前范围<bloodline>在定义的时间段内有脚本标志,则返回为真
Parameter Type Description
flag flag Obligatory, flag to be checked
years/months/days int Obligatory, time since the flag should have been set
Control
had_character_flag character clause 如果角色在指定天数内一直持有该标志,则会被评估为真。3.0之前 months and years do not work as parameters, only days does.
had_character_flag = {

    flag = money_from_the_pope

    years >= 2

}

Control
had_dynasty_flag X character clause Note: months and years do not work as parameters, only days does. Control
had_flag any with flags clause 检查当前范围是否在某段时间内(天、月或年)拥有该标志。适用于任何能存储旗标的示波器,不像更具体的 had_scope_flag triggers.
had_flag = {

    flag = used_legendary_gathering

    years >= 100

}

Control
had_global_flag any clause Before 3.0 months and years do not work as parameters, only days does.
had_global_flag = {

    flag = crusade_called

    months >= 6

}

Control
had_province_flag province clause Before 3.0 months and years do not work as parameters, only days does.
had_province_flag = {

    flag = aztec_explorers

    years >= 2

}

Control
had_offmap_flag X offmap clause Checks whether the offmap power previously had the specified flag 在规定的时间内。至少在3.3.0版本时似乎无法正常工作。用途 had_flag instead.
had_offmap_flag = {

    flag = busy

    months >= 1

}

Offmap
had_offmap_tmp_flag offmap clause 检查脚本添加到作用范围外能力中的指定临时标志(不包括离地图状态或策略文件中定义的标志)是否已在指定时间内存在。
had_offmap_tmp_flag = {

    flag = busy

    years < 2

}

Offmap
had_title_flag title clause Before 3.0 months and years do not work as parameters, only days does.
had_title_flag = {

    flag = xxx

    years >= 2

}

Control
has_alternate_start_setting

has_alternate_start_parameter

any clause Checks specified settings/parameters used in alternate world generation.
has_alternate_start_setting = {

    setting = shattered_cbs

    option = on_limited

}



has_alternate_start_setting = {

    setting = age_span

    max == 0

    min == 0

}



has_alternate_start_parameter = {

    key = religion_names

    value = random

}

Control
has_ambition character bool/objective has_ambition = obj_improve_martial Objectives
has_any_building title bool Checks if the holding has any building has_any_building = yes Holdings
has_any_opinion_modifier character modifier Similar to has_opinion_modifier. has_any_opinion_modifier = opinion_seducing_concubine Characters
has_any_quest character bool 检查被瞄准的角色是否有任何任务 has_any_quest = yes Characters
has_any_symptom X character bool Checks if scoped character has any traits with is_symptom = yes.
has_any_symptom = no does not work, use NOT = { has_any_symptom = yes } instead.
has_any_symptom Health
has_artifact character artifact 检查被瞄准的角色是否拥有同名的神器。 has_artifact = necronomicon Artifacts
has_artifact_flag artifact flag 检查被望远镜的工件是否定义了给定的标志。 has_artifact_flag = crown_jewel Artifacts
has_assigned_minor_title character minorTitle/clause 检查角色是否被赋予了某个次要头衔,或者至少分配了多少次要头衔
has_assigned_minor_title = title_master_of_the_horse



has_assigned_minor_title = {

    title = title_commander

    count >= 2

}
Characters
has_autocephaly character bool Checks for religion autocephaly = yes has_autocephaly = yes Religion
has_bloodline_flag bloodline string Checks if a bloodline has a specified flag.
Note: CKII 脚本中的“标志”不是预设或存储在任何地方,而是在脚本中动态生成的。错误类型标记不会被验证者发现,因为没有“无效”标志。
has_bloodline_flag = created_bloodline Control
has_blood_oath_with character character has_blood_oath_with = ROOT Clans
has_building title (barony only),province building 检查控股是否有指定的建筑物(在建建筑不计入)。
family_palace = {

    has_building = fp_mansion_4

}

Holdings
has_called_crusade character bool Religion
has_capital X province bool Province
has_castle province bool Checks if a province has a castle holding has_castle = yes Province
has_cb X character character 检查有瞄准镜的角色是否能对目标角色使用任何CB has_cb = FROM Rulers
has_character_flag character string Checks if a character has a specified flag.
Note: CKII 脚本中的“标志”不是预设或存储在任何地方,而是在脚本中动态生成的。错误类型标记不会被验证者发现,因为没有“无效”标志。
Control
has_character_modifier character modifier Checks if the character has a modifier has_character_modifier = illumination Modifiers
has_children character bool Checks if the character has children. Functionally identical to num_of_children >= 1. has_children = yes
has_city province bool Checks if a province has a city holding has_city = yes Province
has_claim character title has_claim = k_papal_state Claims
has_council character bool
liege = {

    has_council = yes

}

Council
has_councilor_faction_join_restriction character bool Used in conjunction with set_councilor_faction_join_restriction
liege = {

    has_councilor_faction_join_restriction = yes

}

Council
has_concubinage character bool Checks if religion flag max_consorts > 0 has_concubinage = yes Religion
has_crown_law_title title bool 用于核查指定头衔的王室法律。不过这本身并不是一个条件,它必须作为按类别(例如继承)来审查王室法律的范围。 Government
has_crusade_war_started X character/title/province/society/religion bool 检查该范围的宗教是否有持续的新Crusade。另见 is_preparing_crusade. has_crusade_war_started = yes Wars
has_custom_description X wonder bool 如果奇迹有历史描述,那是真的 has_custom_description = yes Wonders
has_custom_name wonder bool 如果奇迹的名字是由玩家或历史设定的,那也是真的 has_custom_name = yes Wonders
has_de_jure_pretension title character
any_demesne_title = {

    has_de_jure_pretension = ROOT

}

Rulers
has_disease character/province bool
any_courtier = {

    has_disease = yes

}

Health
has_dlc any string 检查用户是否拥有指定的DLC。价值观:“伊斯兰之剑”、“罗马遗产”、“夕阳入侵”、“共和国”、“旧神”、“亚伯拉罕之子”、“印度拉贾”、“查理曼”、“Way of Life”、“Horse Lords”、“宙斯”或“Conclave”(两者等同)、“收割者”、“神秘主义者”、“Jade Dragon”或“Holy Fury”。 has_dlc = "Charlemagne" Control
has_dynasty_flag character flag has_dynasty_flag = strange_chest Control
has_dynasty_modifier character modifier Checks if a character's dynasty has the specified modifier has_dynasty_modifier = ruling_in_crusader_kingdom Control
has_earmarked_regiments character flag Set via spawn_unit command and earmark parameter. has_earmarked_regiments = conscripted_merchant_ships Control
has_earmarked_regiments_not_raiding character flag Check for earmark & raiding has_earmarked_regiments_not_raiding = tribal_organize_raid Control
has_elector_stance character clause Checks elector stance for a title's Eldership election
has_elector_stance = {

    title = FROMFROM

    stance = ecstatic

}

Elections
has_embargo character character NOT = { has_embargo = FROM } Wars
has_empty_holding province bool
any_demesne_province = {

    has_empty_holding = yes

}

Provinces
has_epidemic character/province bool Checks for a trait with is_epidemic = yes, and checks if a province has an epidemic.
any_child = {

    has_epidemic = yes

}



capital_scope = {

    has_epidemic = yes

}

Health
has_feud_with character character has_feud_with = ROOT Clans
has_flag any with flags flag 检查当前范围是否有特定的标志。适用于任何能存储旗标的示波器,不像更具体的 has_scope_flag triggers. Control
has_focus character focus Checks for focuses has_focus = focus_war Objectives
has_fort X province bool Checks whether a province has a fort has_fort = yes Provinces
has_full_court character bool 检查有瞄准范围的角色是否没有空闲场地名额 has_full_court = yes Rulers
has_game_rule any clause Checks if a game rule is active. See game rules modding.
has_game_rule = {

    name = gender

    value = all

}

Control
has_game_started any bool 检查游戏是否处于游戏前的角色选择界面。 has_game_started = yes Control
has_global_flag any flag See flags. has_global_flag = found_the_holy_grail Control
has_guardian character bool
any_child = {

    has_guardian = no

}

Guardianship
has_had_offmap_name X offmap loc has_had_offmap_name = liao_china Offmap
has_heresies character/province bool Religion
has_higher_tech_than province province/character
location = {

    has_higher_tech_than = ROOT

}

Provinces
has_holder title bool 检查某个角色目前是否持有该头衔。
any_claim = {

    has_holder = yes

}

Titles
has_hospital province bool Checks whether a province has a hospital has_hospital = yes Provinces
has_holding_modifier title modifier Checks if the holding has the given holding modifier
any_province_holding = {

    has_holding_modifier = recently_burnt_the_land

}

Modifiers
has_horde_culture character bool Check for hord flag from culture definition Culture
has_inheritance_blocker X character bool 检查当前范围内的角色是否有阻止继承的特质(cannot_inherit = 有)
has_instances_of_character_modifier character modifier 检查角色是否拥有给定的次数 character modifier
has_instances_of_character_modifier = {

    name = x

    amount == y

}

Modifiers
has_instances_of_holding_modifier X title modifier 检查持仓的数量是否是给定的数倍 holding modifier
has_instances_of_holding_modifier = {

    modifier = x

    amount < y

}

Modifiers
has_instances_of_province_modifier X province modifier 检查省份是否有给定的乘数 province modifier
has_instances_of_province_modifier = {

    name = x

    amount >= y

}

Modifiers
has_job_action character bool/jobAction has_job_action = action_improve_relations Jobs
has_job_title character jobTitle/bool Checks that character is a councillor. has_job_title = job_chancellor Jobs
has_known_creation_date X artifact bool (2.8) 检查文物是否有记录中的创建日期。 Artifacts
has_landed_title character bool/title has_landed_title = k_jerusalem Titles
has_law character/title law
has_law = succ_feudal_elective

has_law = agnatic_succession

Government
has_liege_enforced_peace character bool Prevents wars, also see will_liege_enforce_peace. has_liege_enforced_peace = no Realm
has_living_children X character bool Checks if the character has living children.
any_dynasty_member = {

    has_living_children = yes

}

has_lover character bool Yes if the character has a lover Marriage
has_mercenary_band title bool Checks if character has already created a mercenary band. has_mercenary_band = yes
has_mercenary_maintenance_modifier title modifier Checks for a static modifier added via set_mercenary_maintenance_modifier on scoped mercenary tile. has_mercenary_maintenance_modifier = maintaining_mercenary_band Modifiers
has_minor_title character minorTitle/bool 如果角色有次要头衔,是的。还包括宗教头衔。 has_minor_title = title_court_jester Characters
has_newly_acquired_titles character bool Character holds titles he just recently acquired Titles
has_nickname character bool/nickname 可以用来检查某个具体的昵称,或者(没有)任何昵称。
has_nickname = nick_the_bastard

has_nickname = no

Characters
has_non_aggression_pact_with character character 检查角色是否与另一个角色签订了互不侵犯条约。 has_non_aggression_pact_with = ROOT
has_objective X character objective Deprecated, replaced by has_ambition/has_plot Objectives
has_offmap_currency character clause Whether the character has at least value currency in the specified offmap ID.
has_offmap_currency = {

    offmap = offmap_china

    value >= 10

}

Offmap
has_offmap_flag offmap string 检查指定的临时标志是否被添加到了映射外功率中,或者该映射权限当前状态或策略中是否默认包含该标志 = { } 数组。 has_offmap_flag = disallow_interactions Offmap
has_offmap_name offmap loc 检查当前显示的映射外电源是否带有指定的定位键作为当前名称。 has_offmap_name = liao_china Offmap
has_offmap_news_enabled character offmap 检查玩家统治者是否选择通过界面接收指定地图外力量的新闻事件。 has_offmap_news_enabled = offmap_china Offmap
has_offmap_tmp_flag offmap string 检查脚本是否将指定的临时标志添加到范围外能力中,不包括地图外状态或策略文件中定义的标志。 has_offmap_tmp_flag = china_invaded_player_dynasty Offmap
has_opinion_modifier character clause Checks if the scoped character has the given opinion modifier towards 'who' character
has_opinion_modifier = {

    who = ROOT

    name = i_attempted_murder

}

Opinion
has_overseas_holdings character bool Rulers
has_owner province bool
any_neighbor_province = {

  has_owner = yes

}

Rulers
has_pentarchy X religion/character/province bool 检查相关宗教是否存在五元制。适用于任何有宗教信仰的生物 has_pentarchy = yes Religion
has_pledged_crusade_defense X character bool 检查角色是否承诺为新风格Crusade效忠防御 has_pledged_crusade_participation Wars
has_pledged_crusade_participation character bool 检查角色是否承诺参与正在规划的新风格Crusade has_pledged_crusade_participation Wars
has_plot character plot/bool
has_plot = yes



any_courtier = {

    has_plot = plot_kill_character

}

Objectives
has_policy offmap policy 检查当前范围范围的地图外能力是否符合指定的地图外策略(定义在 /common/offmap_powers/policies)。 has_policy = china_isolationist Offmap
has_policy_flag X offmap flag 检查该范围的地图外电源当前策略是否具有指定的标志(定义在 /common/offmap_powers/policies)。 has_policy_flag = disallow_interactions Offmap
has_polygamy character bool Checks if religion flag max_wives > 0 has_polygamy = yes Religion
has_portrait_property character clause Checks if a character has a given portrait property/overlay/etc.
has_portrait_property = {

    layer = 6

    index = 1

}

Characters
has_position character attitude/character 检查议员的投票态度,或者如果与其他角色相同,则会检查。另见 is_voter. Not to be confused with has_minor_title or has_job_title. has_position = loyalist Council
has_pressed_claim X character title 如果角色在目标头衔上有压制的权利(即通过捏造权利要求产生的非遗传性、弱或强权利要求),则成立。 has_pressed_claim = k_papal_state Claims
has_province_flag province flag has_province_flag = heresy_in_province Control
has_province_modifier province modifier Checks if the province has the given province modifier
any_realm_province = {

    has_province_modifier = heretic_stronghold

}

Modifiers
has_quest character quest_name 检查被瞄准的角色是否有与该quest_name相关的任务。

has_quest = quest_indian_monastic_order_pilgrimage

Societies
has_raised_levies character character 角色是否有个人征兵(附庸征兵不计入)
liege = {

    has_raised_levies = ROOT

}

Wars
has_raised_standing_troops title bool
primary_title = {

    has_raised_standing_troops = no

}

Wars
has_regent character bool
liege = {

    has_regent = no

}

Titles
has_regiments character bool has_regiments = no Wars
has_religion_feature character feature Checks if character religion has a specific feature has_religion_feature = religion_equal Religion
has_religion_features any bool 检测当前游戏中是否启用了宗教特性(通常取决于Holy Fury是否激活) has_religion_features = no Religion
has_secret_religion character bool Checks if character secretly follows another religion has_secret_religion = yes Religion
has_selected_religion_feature character religion feature 检查宗教特性是否在宗教改革界面被选中 has_selected_religion_feature = religion_syncretic Religion
has_settlement_construction province bool 检查省内是否有持有资产正在建设
NOR = {

    num_of_settlements >= 5

    AND = {

	num_of_settlements >= 4

	has_settlement_construction = yes

    }

}

Holdings
has_siege title(holding) bool Holding is under siege. has_siege = no Wars
has_space_for_retinue X character retinue_type 检查角色是否有足够的未使用的随从上限以匹配目标随从类型 has_space_for_retinue = RETTYPE_CUL_HUNG Retinues
has_started_building_wonder province/character/wonder bool/wonder type 检查某个省份或角色是否开始建造奇观的某个层级/阶段。也可以查看特定的奇观。暂停不会影响 has_started_building_wonder = yes/no/<wonder type name> Wonders
has_started_building_wonder_upgrade X province/character/wonder/upgrade bool/upgrade type 检查奇观是否开始建造升级。也可以检查特定的奇观升级。暂停不会影响 has_started_building_wonder_upgrade = yes/no/<upgrade name> Wonders
has_status offmap status 检查当前范围的地图外能力是否具有指定的地图外状态修正值(定义在 /common/offmap_powers/statuses)。 has_status = china_unrest Offmap
has_status_flag X offmap string 检查当前地图外状态修正符中是否显示了指定标志 flags list. has_status_flag = disallow_interactions Offmap
has_strong_claim character title Claims
has_strong_pressed_claim X character title 如果角色在目标头衔上有强烈的压迫性继承权(即非遗传的强烈继承权),则为真。 has_strong_pressed_claim = k_papal_state Claims
has_temple X province bool Checks if a province has a temple holding has_temple = yes Province
has_terrain_specialization X character terrain/any/bool Checks for traits with terrain command modifiers Traits
has_title_flag title flag Control
has_trade_post province/title? bool Provinces
has_tribal province bool Checks if a province has a tribal holding has_tribal = yes Province
has_truce X character character Wars
has_weak_claim character title Claims
has_weak_pressed_claim X character title 如果角色在目标头衔上有一个弱的压迫性宣称(即不可继承的宣称),则为真。 has_weak_pressed_claim = k_papal_state Claims
has_wonder province/character/wonder bool/wonder type 检查被瞄准的角色是否是当前拥有奇迹的,或者被瞄准的省份是否包含任何奇观。也可以查看特定的奇观。只适用于完成第一阶段的奇观。 has_wonder = yes/no/<wonder type> Wonders
has_wonder_flag wonder string Checks if a wonder has a given flag. has_wonder_flag = <flag name> Wonders
has_wonder_upgrade province/character/wonder/upgrade bool/upgrade type 检查奇迹升级是否有特定的升级,或者是否有任何升级。 has_wonder_upgrade = yes/no/<upgrade name> Wonders
has_wonder_upgrade_flag wonder/upgrade string Checks if a wonder upgrade has a given flag. has_wonder_upgrade_flag = <flag name> Wonders
health character int 角色的生命值。游戏内只能通过“charinfo”控制台命令查看。 Health
health_traits character int Number of traits with is_health = yes health_traits >= 1 Traits
held_favor_activated_on X character character/title/province 如果有瞄准范围的角色对目标角色持有恩惠,则进行检定。反向条件为 owed_favor_activated_on.省份范围必须是相对或保存的事件目标,因为数字被解释为字符ID。
liege = {

    held_favor_activated_on = FROM

Characters
held_title_rating character character, int held_title_rating >= FROM Titles
higher_real_tier_than character character/tier Same as higher_tier_than but ignores temporary titles Tier
higher_tier_than character/title character/tier/title 检查角色/称号的等级是否严格高于给定等级。
primary_title = {

    higher_tier_than = BARON

}

Tier
historical character bool 检查角色是历史人物(无论是通过角色历史脚本,还是由脚本创建的历史角色),还是处于持续事件链中 historical = yes Characters
holder title character Checks if title is held by target character holder = ROOT Titles
holding_diff character clause
holding_diff = {

    first_type = city

    first_count_vassals = yes

    second_type = none

    value >= 1.5

}

Holdings
holding_type Title (county/barony)/province string 城市/神庙/城堡/部落/游牧/地family_palace Holdings
hospital_has_any_building X province bool 检查省内医院是否有建筑物。 Buildings
hospital_has_building province building Checks if a hospital has the specified building. hospital_has_building = library_1 Buildings
hospital_level province int Checks the hospital level of a province. hospital_level >= 2 Provinces
holding_garrison_percent X holding float 查看领地的驻军人数有多满。1是100%,0是0%。 holding_garrison_percent < 1 Holdings
holding_raisable_levy_percent X holding float 检查控股的可征收税额到底有多满。1是100%,0是0%。 holding_raisable_levy_percent < 1 Holdings
holding_total_levy_percent holding float 检查领地的总征兵人数(驻军+可征召人数)有多满。1是100%,0是0%。 holding_total_levy_percent < 1 Holdings
holds_favor_on character character 检查角色是否对另一个角色有恩惠。反向条件为 owes_favor_to.
liege = {

    holds_favor_on = ROOT

}

Characters
holy_order character/title bool
primary_title = {

    holy_order = no

}

Titles
holy_site_distance province/title character/religion/title/province/society 检查目标瞄准镜中最近的圣地距离
holy_site_distance = {

    target = FROM

    value > 500

}

Titles
immortal character bool Checks if the character has a trait with immortal = yes immortal = no Health
immortal_age character int 检查角色在哪个年龄成为不朽。凡人角色总是假的 immortal_age > 40 Health
imprisoned_days character int
any_courtier = {

    imprisoned_days >= 100

}

Characters
independent character bool Checks if ruler is independent and not in revolt Rulers
infamy X character double Threat infamy >= 12.5 Wars
intrigue character int A character's Intrigue stat. Characters
in_battle character bool Wars
in_coalition_against X character character/title/province 检查有范围的角色是否与目标角色或目标头衔/省份的统治者结盟。省份范围必须是相对的(ROOT/FROM)或保存的事件目标,因为数字被解释为字符ID。
in_coalition_against = FROM

in_coalition_against = e_hre

Characters
in_command character bool Character is leading troops. Characters
in_faction character bool/faction in_faction = faction_independence Factions
in_revolt character bool
liege = {

    in_revolt = no

}

Titles
in_seclusion character bool Checks if scoped character has in_seclusion character modifier (?) in_seclusion = yes Titles
in_siege character bool in_siege = no Wars
interested_in_society character bool 检查角色是否喜欢带有该标签的社会。 interested_in_society = the_cult_of_kali Societies
interested_in_society_of_character character character (2.8) 检查角色是否对目标角色所属社会感兴趣。 interested_in_society_of = ROOT Societies
is_abroad character bool Valid if character is 'abroad' (not at liege's court) Characters
is_active wonder/upgrade bool is_active = yes Wonders
is_adult character bool Checks if the character is an adult. Characters
is_alive character bool If yes, will only affect alive characters Health
is_allied_with character character Checks for alliances and tributary 关系。不会检查是否是临时战争盟友。计算昂贵,使用要谨慎[2] Wars
is_allowed_holding_type title(holding) character 检查指定字符政府是否允许保持类型。使用首都de jure表示伯爵等级以上的头衔,使用县都持有权用于男爵等级以上的头衔。 is_allowed_holding_type = FROM Government
is_allowed_to_loot character bool Character can raid. is_allowed_to_loot = yes Rulers
is_alternate_start any bool 检查世界是随机还是破碎。另见 is_random_world and is_shattered_world is_alternate_start = no Control
is_ancestor_of character character (2.8) 检查被瞄准角色是否为目标角色血脉的祖先,时间跨越最多十六代(出于性能考虑)。价格昂贵,使用时请谨慎。 is_ancestor_of = ROOT Characters
is_artifact_active artifact bool 检查作用域化的工件是否根据其激活触发器定义为当前激活状态。没有激活触发器的人工物始终被视为活跃,即使未被拥有;具有激活触发且没有所有者的人工物品永远不会被视为活跃。 Artifacts
is_artifact_equipped artifact bool 检查被瞄准镜的神器是否由其所有者装备。 Artifacts
is_artifact_same_type_as artifact artifact 检查作用域的工件是否与给定工件相同 is_artifact_same_type_as = ROOT Artifacts
is_at_lootable_stage wonder bool 如果奇迹处于高于或等于lua的阶段,定义“MIN_LOOTABLE_STAGE”。 is_at_lootable_stage = yes Wonders
is_at_max_stage wonder bool 如果奇迹已经完全建成了它的最终阶段,那倒是没错。 is_at_max_stage = yes Wonders
is_at_sea character bool Characters
is_attacker siege/combat bool
siege = {

    is_attacker = yes

}

combat = {

    is_attacker = no

}

Wars
is_aunt_uncle_of character character (2.8) 检查当前作用域字符是否是目标字符父母的兄弟姐妹(即目标角色父母的兄弟姐妹之一,俗称 "piblings"). is_aunt_uncle_of = ROOT Characters
is_being_looted wonder bool True if the wonder is currently being looted is_being_looted = yes Wonders
is_being_restored X wonder bool True if the wonder is currently being restored is_being_restored = yes Wonders
is_betrothed character bool If yes, will only affect betrothed characters Marriage
is_bloodline_founder_of character bloodline 如果当前范围<character>是右侧(RHS)范围的创始人,则返回为真<bloodline>。 Bloodlines
is_bloodline_member_of X character bloodline 如果当前作用域<character>是右侧(RHS)范围的成员,则返回为真<bloodline>。 Bloodlines
is_building holding building Checks if a holding is constructing a new building is_building = tb_hillfort_4 Holdings
is_building_wonder province/character/wonder bool/wonder type 检查某个省份/角色是否正在建造奇观的某个层级/阶段。也可以查看特定的奇观。只有在施工没有暂停的情况下才成立。 is_building_wonder = yes/no/<wonder type name> Wonders
is_building_wonder_upgrade province/character/wonder/upgrade bool/upgrade type 检查奇观是否正在建造升级。也可以检查特定的奇观升级。只有在施工没有暂停的情况下才成立。 is_building_wonder_upgrade = yes/no/<upgrade name> Wonders
is_capital province/title bool If yes, will only affect the capital HOLDING Titles
is_child_of character character 检查作用域是否是其他字符的子节点 Family
is_close_relative character character 检查瞄准镜是否与另一个角色有近亲关系。这包括配偶、父母、子女、兄弟姐妹、侄子侄女、祖父母和孙辈 is_close_relative = ROOT Family
is_conquered title bool
primary_title = {

    is_conquered = yes

}

Titles
is_consort character bool/character 检查被瞄准的角色是否是某人的妾室/妃子;或妾室/妃子或指定的性格
father_of_unborn = {

    is_consort = ROOT

}

Marriage
is_contested title bool 如果头衔已经在某种形式的宣称或继承战争中被争夺 Titles
is_council_content character bool Checks whether the council is content or not.
liege = {

    is_council_content = no

}

Council
is_councillor character bool Checks if character has a councillor job (chancellor, ...)
any_courtier = {

    is_councillor = yes

}

Jobs
is_cousin_of character bool (2.8) 如果当前作用域字符通过父级兄弟姐妹与目标字符有关联,则为真。 is_cousin_of = ROOT Characters
is_crown_law_title X title bool Checks for titles that can have crown laws. is_crown_law_title = yes Titles
is_damaged wonder bool True of the wonder is in a damaged state is_damaged = yes Wonders
is_decision_potential

is_decision_allowed
is_fort_decision_potential
is_fort_decision_allowed
is_government_potential
is_government_allowed
is_hospital_decision_potential
is_hospital_decision_allowed
is_law_potential
is_law_allowed
is_settlement_decision_potential
is_settlement_decision_allowed
is_targeted_decision_potential
is_targeted_decision_allowed
is_title_decision_potential
is_title_decision_allowed
is_trade_post_decision_potential
is_trade_post_decision_allowed






X
X
X
X
X
X
X
X
X
X
X
X
X
character decision/government/law/clause Checks if current scope matches the potential/allow block of the given decision/law/government.

is_decision_potential takes a normal, plot or society decision.
is_targeted_decision_potential takes any scope to a character, province or title.
is_title_decision_potential 它会对头衔或省份进行任何范围,但不包括保存事件目标省份。
is_settlement_decision_potential takes any scope to a barony title.
is_fort/hospital/trade_post_decision_potential 对头衔或省份的范围是任意的。使用省份作为男爵或县级头衔,de jure首都作为更高等级的头衔。

is_law_potential = succ_primogeniture



is_government_potential = muslim_government



is_decision_potential = request_to_rank_up_within_society



is_targeted_decision_potential = {

    key = prisoner_torture

    character = FROM

}



is_title_decision_potential = {

    key = set_crown_focus

    title = capital_holding

}



is_settlement_decision_potential = {

    key = convert_tribal_to_castle

    title = event_target:saved_barony_title

}



is_trade_post_decision_potential = {

	key = abandon_trade_post

	title = 78 # province ID

}

Control
is_connected_to province/title(county) clause 检查两个省份是否通过某个领域的领土相连。这可能比较耗费性能,所以要节制使用。
Parameter Type Description
target capital/
realm_capital/
scope
必须。该与哪个省份建立联系。或者,范围可以解析为一个省份。
sea_gap bool 是否允许通过单一海省的空隙进行路径。默认是“否”。无法穿越湖泊。
land_gap bool 是否允许通过单一省份的空隙进行路径。默认是“否”。无法穿越荒原。
sub_realm bool/scope 允许路径穿越哪个领域。省主子领域用“是”。对于最高领主的领域来说,“不”。或者,也可以选择一个可以解析为角色的范围。默认是“是”。
naval_distance bool/int 是否允许海上路径(任意数量的省份)。也可以用数字来使用距离已找到端口的最大距离。
is_connected_to = {

    sub_realm = no

    target = realm_capital

    land_gap = yes

    naval_distance = yes

}

Provinces
is_descendant_of character character (2.8) 检查被导束特征是否在最多十六代内从目标特征物传承下来(出于性能考虑)。价格昂贵,使用时要小心。 is_descendant_of = ROOT Characters
is_dying character bool 检查角色是否快死了。用于角色死亡时才调用的 on_actions,例如 on_chronicle_owner_change. Characters
is_father character character
FROM = {

    is_father = PREV

}

Family
is_father_real_father character bool Case of illegitimate bastards. Family
is_female character bool 如果是,只会影响女性角色。也可以作为事件使用 pre-trigger. Characters
is_feudal character/title bool Checks if government is part of feudal_governments group. is_feudal = yes Government
is_flanking flank bool Checks if scoped flank is flanking an enemy flank is_flanking = yes Wars
is_foe character character 检查目标角色是否is_rival或有带有犯罪率=是的观点修正,针对该角色 is_foe = ROOT Relations
is_former_lover character bool is_former_lover = ROOT Marriage
is_friend character character 检查该角色是否是该角色的朋友 is_friend = ROOT Relations
is_grandchild_of character character (2.8) 检查被瞄准角色是目标角色的儿子或女儿。 is_grandchild_of = ROOT Characters
is_grandparent_of character character (2.8) 检查被瞄准角色是目标角色的父亲还是母亲。 is_grandparent_of = ROOT Characters
is_guardian character bool/character
father = {

    is_guardian = no

}

Guardianship
is_hard_to_convert character/province bool 检查角色或省份的宗教是否有该字段 hard_to_convert = 有 is_hard_to_convert = yes Religion
is_heir character bool/character/title 检查角色是否在称号继承序列中排第一。
is_heir = event_target:scoped_ruler



any_child = {

    is_heir = no

}



is_heir = event_target:scoped_title

Character
is_heresy_of character/province character/province/title/religion Checks if target is heresy of the given scope.
any_rival = {

    is_heresy_of = ROOT

}

Religion
is_heretic character/province bool Religion
is_holy_site title character/religion 检查男爵领是否为特定宗教的圣地
is_holy_site = nestorian



any_realm_title = {

    is_holy_site = ROOT

}

Religion
is_ill character bool Checks for traits with is_illness = yes.注意所有症状特征也带有这个标志。 Health
is_immune_to_pruning character bool 如果是,角色已被set_immune_to_pruning命令或游戏内部逻辑标记,不会从AI法庭或存档中剔除以减少文件大小或内存占用。 is_immune_to_pruning = yes Characters
is_important_character_to character character 检查目标角色是否标记为特殊兴趣。 is_important_character_to = ROOT Characters
is_in_same_unit_as character character 检查两个角色是否在同一个单位。不像任何/random_unit_leader那样检查战斗中任何一方的单位。 is_in_same_unit_as = ROOT Wars
is_in_society character bool Checks if a character is in a society is_in_society = yes Societies
is_incapable character bool 检查角色是否无能。加入 sick_incapable 在Reaper's Due中,重要的是使用这个条件句,而不是检查 trait = incapable. Health
is_indestructible artifact bool Checks if the artifact is indestructible (has indestructible = yes) is_indestructible = yes Artifacts
is_interested_in_any_society character bool 检查角色是否对某个社会表现出兴趣。 is_interested_in_any_society = yes Societies
is_ironman character bool Used in achievements.txt Control
is_island province bool Checks if the province exists in island_region.txt. is_island = yes Provinces
is_land province bool Checks that province is not a sea province Provinces
is_landed character bool 检查该角色拥有有土地头衔。注:有地主的角色也是统治者(is_ruler = true). Characters
is_landed_title_being_created X title bool Purpose unknown is_landed_title_being_created = yes Titles
is_landed_title_allowed X character title 检查角色是否满足某一称号的允许条件。 is_landed_title_allowed = e_hre Characters
is_landless_type_title title bool Titles
is_liege_of character character/title/province 检查瞄准镜上的角色是否是右侧角色的领主。
host = {

    is_liege_of = ROOT

}

Vassalage
is_liege_or_above character/province character/title/province
owner = {

    is_liege_or_above = FROM

}

Vassalage
is_liege_or_above_of X character character 检定那个有瞄准范围的角色在最高领主领域中优于右侧角色。 is_vassal_or_below_of = ROOT Vassalage
is_local_human_observer any bool Checks if the local game is in observer mode is_local_human_observer = yes Control
is_located_in title character/title
crusade_target = {

    is_located_in = ROOT

}

Provinces
is_looting X character bool Wars
is_looting_in character province Wars
is_lover character bool/character 检查该角色是否是该角色的爱人 is_lover = ROOT Marriage
is_lowborn character bool Checks if the character is lowborn. Fixed in 2.8. (在2.8之前的版本中,规则反过来:设置为“否”会挑出实际上出身低微的角色。)等价于 dynasty = none is_lowborn = no Characters
is_main_spouse character bool 如果是,那就是主要妻子。(虽然书面上性别中立,但《十字军之王2》中没有多夫多配偶制。) Marriage
is_marriage_adult character bool 检查角色是否足够结婚,基于以下条件 NDefines.NCharacter.AGE_OF_MARRIAGE_MALE and NDefines.NCharacter.AGE_OF_MARRIAGE_FEMALE. Marriage
is_married character bool/character Yes, will only affect married characters Marriage
is_married_matrilineally character bool Marriage
is_merchant_republic character/title bool 检查角色是否至少是公爵等级的贵族,或者头衔是否是商人共和国。 Government
is_mother character character is_mother = ROOT Family
is_multiplayer_host_character character bool 多人游戏中是否有视角角色是主机。 is_multiplayer_host_character = yes Control
is_name_randomized religion/culture bool Checks if the scoped religion/culture has a randomized name
true_religion_scope = {

     is_name_randomized = yes

}

Control
is_navy X unit bool Checks if a unit is a fleet. Units
is_neutral X character bool 检定角色是否没有恶习特质和美德特质 Traits
is_nibling_of character character (2.8) 检查当前被聚焦角色是否是目标角色的侄子侄女(俗称性别中性角色) "nibling"). is_nibling_of = ROOT Characters
is_nomadic character bool Checks if character government is part of nomadic_governments group. is_nomadic = yes Government
is_occupied title/province bool 检查男爵领地或县是否被敌军占领。在公爵领地及以上阶段无效。
any_demesne_title = {

    lower_tier_than = DUKE

    is_occupied = no

}

Wars
is_offmap_governor character bool/id 检查该角色是否是地图外能力(bool)的州长,还是指定地图外能力(id)的管理者。
is_offmap_governor = yes

is_offmap_governor = offmap_china

Offmap
is_offmap_ruler character bool Is this character the ruler of an offmap power? is_offmap_ruler = no Offmap
is_offmap_tag offmap id 检查当前范围的地图外功率是否与指定ID的地图外功率相同。 is_offmap_tag = offmap_china Offmap
is_offmap_tag_including_dead character id 无论该角色是现役还是前任Offmap势力成员,且符合指定ID。用于中国服装肖像。 NOT = { is_offmap_tag_including_dead = offmap_china } Portraits
is_older_than character character 检查被瞄准角色是否比目标年长。甚至对双胞胎和其他同龄角色也适用。
any_sibling = {

    is_older_than = ROOT

}

Characters
is_opposite_sex character character is_opposite_sex = ROOT Characters
is_or_was_offmap_power_ruler character bool 检查被瞄准的角色是否目前是指定地图外能力的统治者(持有者),还是在持有该头衔期间去世。 is_or_was_offmap_power_ruler = yes Offmap
is_parent_religion character character/province/title
top_liege = {

    is_parent_religion = ROOT

}

Religion
is_powerful_vassal character bool Checks if a character is considered a powerful vassal.如果启用Conclave,这些附庸会有一个举起的拳头图标,并期望获得议会席位。即使没有Conclave,触发器也能正常工作。另见 among_most_powerful_vassals. Realm
is_parent_of character character (2.8) 检查当前作用范围字符是目标字符的母亲还是父亲。 is_parent_of = ROOT Characters
is_patrician character bool 检查角色是否是商人共和国贵族家族的家主(拥有家族宫殿)。也可以作为事件使用 pre-trigger Government
is_pilgrim character bool Checks if a character has a pilgrim trait Characters
is_playable character bool Only affects playable characters (depending on the loaded DLCs) Characters
is_plot_active character bool In conjunction with leads_faction Objectives
is_plot_target_of character character
any_realm_lord = {

    is_plot_target_of = ROOT

}

Objectives
is_preferred_holding_type title character 检查是基于政府的优先持有类型。使用首都de jure表示伯爵等级以上的头衔,使用县都持有权用于男爵等级以上的头衔。
defacto_liege_title = {

    is_preferred_holding_type = FROM

}

Rulers
is_pregnant character bool 评估在女性怀孕的那一刻就为真(不像on_pregnancy行动需要两个月的延迟)。 Characters
is_preparing_crusade character/title/province/society/religion bool 检查望远镜的宗教是否正在准备新的Crusade。另见 has_crusade_war_started. is_preparing_crusade = yes Wars
is_pretender character/title bool In title scope, checks vs ROOT character.
FROM = {

    is_pretender = yes

}

Titles
is_priest character bool 检查角色是否是宫廷牧师或拥有 Theocracy government type Characters
is_primary_heir character bool/character 主要头衔的继承人(无论是否同一王朝)
FROM = {

    is_primary_heir = ROOT

}

Titles
is_primary_holder_title title bool Rulers
is_primary_holder_title_tier title bool Tier
is_primary_type_title title bool Checks the flag primary 对于不能作为次要头衔持有的头衔。这涵盖了雇佣兵、教皇、圣职人员等。 Titles
is_primary_war_attacker character bool Wars
is_primary_war_defender character bool
any_friend = {

    is_primary_war_defender = yes

}

Wars
is_quest_target character/title/province bool 检查当前范围是否被任务锁定。 is_quest_target = yes Societies
is_quest_target_of character/title/province bool 检查当前范围是否被该角色的任务锁定。 is_quest_target_of = ROOT Societies
is_random_world any bool Checks if the world is randomised. Also see is_shattered_world and is_alternate_start is_random_world = yes Control
is_recent_grant title bool is_recent_grant = no Titles
is_reformed_religion character/province bool/character 检查该宗教的特征或省份是否为改革宗异教。 Religion
is_reincarnated character bool
any_sibling = {

    is_reincarnated = yes

}

Family
is_religion_crusade_target Any with a religion bool 检查当前范围内的宗教是否被新式crusade is_religion_crusade_target = yes Religions
is_republic character/title bool Checks if government is part of republic_governments group. is_republic = yes Government
is_retreating X flank bool Checks if scoped flank is retreating from combat is_retreating = yes Wars
is_rival character character Relations
is_ruler character bool 是的,只会影响拥有头衔(即统治者)的角色。注意,角色不一定会被降落(is_landed = false) in case of mercenaries, holy orders, or adventurers. Rulers
is_save_game character bool 检查是否是存档游戏(用于启动事件)。 is_save_game = yes Characters
is_seafarer character bool 检查文化或宗教是否设置了海员旗帜。 is_seafarer = yes Characters
is_senior_consort_party character bool 检查被瞄准的角色是否有妾室/妾室,而不是某人的妾室/妾室。 is_senior_consort_party = yes Marriage
is_shattered_world any bool Checks if the world is shattered. Also see is_random_world and is_alternate_start is_shattered_world = yes Control
is_society society society 检查当前被覆盖的社会是否与该社会相同。 is_society = the_satanists Societies
is_society_discovered character bool 检查被瞄准的角色是否被“揭露”为秘密社团成员,无论他们是否真的是该社团成员。 is_society_discovered = yes Societies
is_society_discovered_real X character bool 检查被锁定的角色是否被揭露为秘密社团成员,是否真的是其中一员。 is_society_discovered_real = yes Societies
is_society_grandmaster character bool 检查范围人物是否是他们社会的宗师。 is_society_grandmaster = yes Societies
is_society_rank_full any clause Checks if named society's rank is full.
is_society_rank_full = {

    society = the_plaguebringers

    rank >= 1

}

Societies
is_sub_unit_leader X character bool 检查角色是否是某个子单位的领导者。 is_sub_unit_leader = yes Wars
is_theocracy character/title bool Checks if government is part of theocracy_governments group. is_theocracy = yes Government
is_title_active any title 表示土地所有权是否有效。非活跃的头衔不能被 created. Titles are activated or inactivated using the activate_title command.

To check whether a title currently exists, use has_holder = yes instead.

is_title_active = d_knights_templar

is_title_active = THIS

Titles
is_titular title bool
any_demesne_title = {

    is_titular = no

}

Titles
is_tribal character/title(holding) bool Checks if government is part of tribal_governments group. is_tribal = yes Government
is_tribal_type_title title bool Titles
is_tributary character bool/clause 品格是宗主国的贡品。类型可以指定他们支付的贡品类型——如果省略,这对任何类型的贡品都适用。宗主可以指定他们向谁进贡——如果省略,这个点在角色是否为任何宗主的贡品时会被评为真。
is_tributary = yes



is_tributary = {

    type = imperial

    suzerain = FROM

}

Vassalage
is_twin_of X character character 如果是,那个有瞄准镜的角色就是目标角色的孪生兄弟。 is_twin_of = ROOT Characters
is_valid_attraction character character 检查两位角色是否都是成年人且未结婚
any_courtier = {

    is_valid_attraction = ROOT

}

Marriage
is_valid_romance_target character character 检查两位角色是否都是成年人,不是无行为能力者,是同性恋还是异性,且是否属于神圣血统宗教或非近亲。
any_courtier = {

    is_valid_romance_target = ROOT

}

Marriage
is_valid_viking_invasion_target title character 检查FROM在王国中持有的领土数量 Wars
is_variable_equal character/province clause 检查变量是否具有精确值,而非标准的>=检查。参见 variables. As of 2.8, check_variable has the same functionality, making this trigger obsolete.
is_variable_equal = {

    which = xxx

    value = xxx

}

Control
is_vassal_or_below character character 检查那个有瞄准范围的角色是右侧角色的领主。 Warning:命名不直观,从右到左读! is_vassal_or_below = ROOT #is ROOT my vassal? Vassalage
is_vassal_or_below_of character character 检查那个有瞄准范围的角色是右侧角色的附庸。实际上是直觉的(字面意思是与之相反) is_vassal_or_below), reads from left to right. is_vassal_or_below_of = ROOT #am I the vassal of ROOT? Vassalage
is_vice_royalty title bool Checks for viceroyalty flag on title is_vice_royalty = no Titles
is_virtous character bool 检查角色是否至少有一项美德且没有恶习。注意这个拼写错误! is_virtous = yes Traits
is_voter character bool 检查角色是否在议会投票(即持有带有旗帜的职位或小头衔) is_voter = yes). Also see has_position.
any_vassal = {

    is_voter = yes

}

Council
is_wicked character bool 检定角色是否至少有一个恶习且没有美德 is_wicked = yes Traits
is_winter province bool Checks whether a province is currently 经历着冬天。要检查它是否可能经历冬季,无论当前状况如何,请使用 climate.
location = {

    is_winter = yes

}

Provinces
is_within_diplo_range character character is_within_diplo_range = FROM Relations
leader_traits character int Number of traits with leader = yes. leader_traits >= 1 Traits
leads_faction character bool/faction leads_faction = faction_succ_seniority Factions
learning character int A character's learning attribute. For state value, see realm_learning Characters
lifestyle_traits character int Number of traits with lifestyle = yes, normally 0 or 1 in vanilla. lifestyle_traits < 1 Traits
liked_by_offmap character clause 检查被瞄准的角色是否符合当前指定角色的“好感”状态 type. If the "like" has a context, the context 参数必须匹配才能返回真。 如果“like”没有上下文,则必须省略上下文参数以返回true。
liked_by_offmap = {

    type = offmap_china

    context = eunuch

}

Offmap
likes_better_than character clause Equivalent to opinion_diff with value >= 0.
ROOT = {

    likes_better_than = {

	who = PREV

	than = PREVPREV

    }

}

Opinion
loot unit? int Used in unit_event achievement. loot >= 1000 Wars
lower_real_tier_than character character/tier Same as lower_tier_than but ignores temporary titles Tier
lower_tier_than character/title character/tier 是的,只会影响低阶角色 Tier
manpower_growth X character int Checks manpower growth of nomad ruler manpower_growth >= 100 Character
martial character int/character A character's Martial attribute. For state value, see realm_martial Characters
max_manpower character int max_manpower >= 500 Clans
max_population X character int max_population >= 30000 Clans
max_population_and_manpower X character int max_population_and_manpower >= 40000 Clans
max_realm_levy_diff X character clause 检查该范围的最大领域征收值是否至少高于谁的最大领地征收
max_realm_levy_diff = {

    who = ROOT

    value >= 3000

}

Warfare
mercenary character/title bool Titles
mercenary_siphon_factor title double Percentage of payment factor [?] mercenary_siphon_factor >= 0.05 Titles
month any int 游戏内的月份编号。范围从0(1月)到11月(12月)。如果是较晚的月份,也会判定为真,比如游戏内的11月和12月都为真。 Control
month_of_birth character int 检查角色出生月份是否至少是这个数字(1月是第一个月) month_of_birth >= 1 Characters
monthly_income character/title (holding) double Money
monthly_piety X character double 检查角色的每月虔诚度是否至少达到这个数值。 Characters
monthly_prestige X character double 检查角色的月度声望是否至少达到这个数值。 Characters
multiplayer any bool Checks whether the game is multiplayer or single-player. Control
non_interference character character 检查被瞄准角色是否会对目标角色采取敌对行动。参见 Society_modding for details. non_interference = FROM Characters
num_culture_provinces any that have associated culture int 世界上拥有当前文化范围的省份数量。
norse = {

    num_culture_provinces < 10

}

Culture
num_culture_realm_provs character clause 检查角色领域内有目标文化的省份数量。
num_culture_realm_provs = {

    culture = swedish/ROOT

    value >= 8

}

Culture
num_religion_provinces any that have associated religion int 目前范围内,拥有该宗教的省份数量。
norse_pagan = {

    num_religion_provinces > 20

}

Religion
num_fitting_characters_for_title title int 检查自己宫廷中有多少角色适合某个头衔 Title
num_of_artifacts character int 检查有范围的角色是否至少拥有指定数量的神器。 num_of_artifacts >= 3 Artifacts
num_of_baron_titles X character int Checks how many baron-tier titles a character personally holds num_of_baron_titles >= 3 Titles
num_of_baron_titles_in_realm X character int 检查角色子领域中持有多少男爵等级头衔 num_of_baron_titles_in_realm < 5 Titles
num_of_buildings title int
any_demesne_title = {

    tier = BARON

    num_of_buildings >= 1

}

Holdings
num_of_children character int Note: Both living and deceased children are counted. Family
num_of_claims character int Claims
num_of_consorts character int Checks the number of consorts/concubines a character has. Marriage
num_of_count_titles character int Titles
num_of_count_titles_in_realm character int 检查被瞄准角色领域内的计数头衔数量。相当于统计该辖区内省份数量,假设没有名义上的计数头衔(无论如何都没有充分支持,通常应避免使用)。 num_of_count_titles_in_realm >= 35 Titles
num_of_courtiers X character int Checks how many courtiers a ruler has num_of_courtiers < 30 Rulers
num_of_demesne_castles X character int Checks how many castle holdings a character personally holds num_of_demesne_castles >= 3 Rulers
num_of_demesne_cities X character int Checks how many city holdings a character personally holds num_of_demesne_cities >= 3 Rulers
num_of_demesne_empty_provinces X character int Checks how many empty provinces a character personally holds num_of_demesne_empty_provinces >= 3 Rulers
num_of_demesne_tribes X character int Checks how many tribal holdings a character personally holds num_of_demesne_castles >= 3 Rulers
num_of_demesne_temples X character int Checks how many temple holdings a character personally holds num_of_demesne_temples >= 3 Rulers
num_of_duke_titles character int Checks how many duke-tier titles a character personally holds num_of_duke_titles >= 3 Titles
num_of_duke_titles_in_realm X character int 检查角色子领域中持有多少公爵等级头衔 num_of_duke_titles_in_realm < 5 Titles
num_of_dynasty_members character int num_of_dynasty_members >= 3 Family
num_of_emperor_titles character int Titles
num_of_empty_holdings province int Note: settlements under construction, do not count as empty. Provinces
num_of_extra_landed_titles character int
liege = {

    num_of_extra_landed_titles >= 1

}

Titles
num_of_faction_backers character clause Checks the number of supporters for a given faction
num_of_faction_backers = {

    faction = faction_increase_council_power

    value >= 0

}

Factions
num_of_feuds character int num_of_feuds >= 3 Clans
num_of_forts X character int Checks number of forts the character controls Rulers
num_of_forts_diff X character clause 检查两个角色之间控制的医院数量差异 Rulers
num_of_friends character int Relations
num_of_government_vassals character clause
num_of_government_vassals = {

    government = merchant_republic_government

    value >= 1

}
Governments
num_of_holy_sites character int 范围宗教控制的圣地数量 Religion
num_of_hospitals X character int Number of hospitals the character controls Rulers
num_of_hospitals_diff X character clause Difference in number of hospitals controlled between 2 characters Rulers
num_of_king_titles character int Checks how many king-tier titles a character personally holds num_of_king_titles >= 3 Titles
num_of_king_titles_in_realm X character int 检查角色子领域中持有多少王级头衔 num_of_king_titles_in_realm < 5 Titles
num_of_lovers character int num_of_lovers < 5 Marriage
num_of_max_settlements province int 检查省份当前已建成或可建造的持有槽数量 num_of_max_settlements < 7 Provinces
num_of_plot_backers character int
liege = {

     num_of_plot_backers >= 8

}

Objectives
num_of_prisoners character int
liege = {

    num_of_prisoners >= 1

}

Characters
num_of_quests X character int Checks how many quests a character has num_of_quests >= 1 Characters
num_of_realm_counties character clause 有范围的角色至少控制指定标题中的N个县
num_of_realm_counties = {

    value = 6

    title = PREV

}

Rulers
num_of_rivals character int Relations
num_of_settlements province int Number of baronies the province has (maximum 7) Provinces
num_of_society_members character/society int (2.8) 处于该社会或角色社会中的成员人数。 num_of_society_members < 5 Societies
num_of_subrealm_castles

num_of_subrealm_cities
num_of_subrealm_empty_provinces
num_of_subrealm_tribes
num_of_subrealm_temples



X
X
X
character int
num_of_subrealm_cities < 20

num_of_subrealm_castles >= 10

Rulers
num_of_spouses character int Marriage
num_of_symptoms character int Number of traits with is_symptom = yes num_of_symptoms >= 1 Health
num_of_titles character int 角色直接拥有的头衔数量。注意,在这种情况下,每个郡爵头衔价值2(包括首都男爵领),而男爵、公国、王国和帝国级别的头衔各值1。 num_of_titles < 2 Titles
num_of_titles_in_realm X character int 检查角色子领域中持有的头衔数量。注意,在这种情况下,每个郡爵头衔价值2(包括首都男爵领),而男爵、公国、王国和帝国级别的头衔各值1。 num_of_titles_in_realm > 120 Titles
num_of_trade_posts character int Number of trade posts Rulers
num_of_trade_post_diff character clause Difference of trade posts between 2 characters
num_of_trade_post_diff = {

    character = ROOT

    value >= 10

}

Rulers
num_of_traits character int Number of traits Traits
num_of_unique_dynasty_vassals X character int 不同王朝的附庸数量(不包括有范围的王朝)。 Vassalage
num_of_vassals character int Number of direct vassals Vassalage
num_of_wonder_upgrades wonder int 检查有瞄准范围的角色是否至少拥有给定数量的升级。比如说,根据奇迹状态的有条件猜测,触发任何味道都很有用。 num_of_wonder_upgrades >= 2 Wonders
num_of_wonders province/character int 检查被瞄准的角色是否被列为至少达到指定数量奇观的拥有者(且这些奇迹至少完成了第一阶段)。 这可以作为“奇迹是否存在?”的检定,也可以用来计数。 num_of_wonders >= 1 Wonders
num_religion_realm_provs X title clause 检查角色领域内目标宗教省份数量
num_religion_realm_provs = {

    religion = ROOT

    value >= 6

}

Rulers
num_title_realm_provs title clause Number of counties in ROOT's realm.
num_title_realm_provs = {

    who = ROOT

    value >= 6

}

Rulers
num_traits character int Alias of num_of_traits Traits
obedient character character 检查被瞄准角色是否服从目标角色,例如带有对目标角色的意见修正词,服从=是。
ROOT = {

    obedient = FROM

}

Relations
offmap_has_dislike offmap string 检查有瞄准范围的地图外能力是否被指定为脚本触发器所分配的当前“不喜欢”。注意,尽管“dislike”是负面的,但原版触发点在喜欢和不喜欢之间是共享的,因此以正向命名(例如当前的”dislike" may be "likes'_wealth" -- do not use "dislikes_wealth"). offmap_has_dislike = likes_wealth Offmap
offmap_has_like offmap string 检查有瞄准范围的地图外能力是否被指定了脚本触发器当前的“喜欢”。 offmap_has_like = likes_concubines Offmap
opinion character clause Checks if the scope's opinion of who is at least this value
opinion = {

    who = ROOT

    value >= 25

}

Opinion
opinion_diff character clause True if first 目标角色对当前瞄准角色的评价高于当前角色 second target character by at least value points.

as_if_liege = yes also applies the liege-vassal opinion modifiers (vassal_opinion,等等)并且用于派系,用来决定角色是否更喜欢某人作为封君(因此会加入寻求取代他的派系)。

opinion_diff = {

    first = liege

    second = FROM

    value >= 25

    as_if_liege = yes

}

Opinion
opinion_levy_raised_days character clause Should be called inside a vassal's scope, and who 应该是附庸的领主。如果政府/宗教允许在没有意见惩罚的情况下征召附庸军队,这个条件就毫无意义。
opinion_levy_raised_days = {

    who = ROOT

    days >= 30

}

Opinion
overlord_of character character Rarely used alias for is_liege_of. Generates no tooltip!
holder_scope = {

    overlord_of = FROM

}

Rulers
over_max_demesne_size character int over_max_demesne_size >= 4 Rulers
over_vassal_limit character int over_vassal_limit >= 6 Rulers
owed_favor_activated_by X character character/title/province 检查目标角色激活的好感是否被瞄准角色。反向条件为 held_favor_activated_on.省份范围必须是相对或保存的事件目标,因为数字被解释为字符ID。
liege = {

    owed_favor_activated_by = ROOT

}

owes_favor_to character character 检查角色是否欠另一个角色人情。反向条件为 holds_favor_on.
liege = {

    owes_favor_to = ROOT

}

owned_by province character 检查当前范围范围的省份是否归目标角色所有 owned_by = ROOT Rulers
owns character title/province
owns = 333 # Rome

owns = PREVPREV

Rulers
owns_mercenary_units character bool Checks if character owns mercenary units owns_mercenary_units = yes
pacifist character bool pacifist = yes Characters
pays_tribute_to character character pays_tribute_to = ROOT Characters
personal_opinion character clause 类似于观点,但不考虑国家外交、法律或其他类似国家事务
personal_opinion = {

    who = FROM

    value >= 0

}

Opinion
personal_opinion_diff character clause 类似于opinion_diff,但不考虑国家外交、法律或其他国家事务
personal_opinion_diff = {

    first = ROOT

    second = liege

    value >= 5

}

Opinion
personality_traits character int Number of traits with personality = yes personality_traits <5 Traits
phase Combat skirmish/melee/pursuit Checks the current phase of the scoped combat flank
combat = {

    phase = melee

}

Characters
piety character int The amount of piety a character has. Characters
plot_is_known_by character character Tests if a plot is known by another character plot_is_known_by = ROOT Objectives
plot_months X character character 检查角色策划了多少个月 plot_months >= 12 Objectives
plot_power character double Typically ranges from 0.5 to 4.0 in vanilla Objectives
plot_power_contribution character clause
plot_power_contribution = {

    plotter = ROOT

    power >= 0.025

}

Objectives
population character int population >= 10000 Clans
population_and_manpower character int population_and_manpower >= 10000 Clans
population_and_manpower_growth X character int population_and_manpower_growth >= 500 Clans
population_factor character double Percentage of maximum population. population_factor >= 0.9 # 90% of max Clans
population_growth X character int Checks population growth of nomad ruler population_growth >= 200 Character
port province bool Checks if province is coastal Provinces
prev_policy offmap policy 检查被覆盖的地图外能力之前是否有指定的地图外策略。 has_policy = china_isolationist Offmap
prev_policy_flag X offmap string 检查该范围的地图外能力之前是否在其之前的地图外状态修正中带有指定标志 flags list. prev_policy_flag = disallow_troops Offmap
prev_status offmap status 检查瞄准的地图外能力之前是否带有指定的地图外状态修正。 prev_status = china_plague Offmap
prev_status_flag X offmap string 检查该范围的地图外能力之前是否在其之前的地图外状态修正中带有指定标志 flags list. prev_status_flag = disallow_troops Offmap
preparing_invasion character bool Wars
practical_age X character int 检查角色的表观年龄,考虑不朽性——例如,如果角色在40岁时不朽,这会显示40岁而非真实年龄。 practical_age > 40 Health
prestige character int The amount of prestige a character has. Characters
prisoner character bool 如果不行,就不能适用于被囚禁的角色。也可以作为事件使用 pre-trigger. Characters
province province province/title 检查当前范围的省份是否与另一个省份相同。对于伯爵等级以上的头衔,使用其de jure省。
ROOT = {

    capital_scope = {

	province = PREVPREV

    }

}

Provinces
province_id province int Alias for province Provinces
quality artifact int 检查带望远镜的工件质量是否与给定值正确比较。 quality == 4 Artifacts
race character culture/character Same as culture 条件。检查角色的文化是否与特定文化或角色相符。这与不同 graphical_culure,即比较具有相同文化gfx的两个文化时, race still evaluates to false. race = horse Character
raised_manpower X character int Checks raised manpower of nomad ruler raised_manpower >= 2000 Character
random any int Chance of success is (100-N)%! random >= 85 Control
real_day_of_year X any int 检查现实中的实际日期。范围从0到30。检查日期是否至少符合指定数字,所以用两次检查缩小范围。 real_day_of_year = 11 Control
real_month_of_year any int Checks for actual IRL month (contrary to month 游戏内会检查)。范围从0(1月)到11月(12月)。检查月份是否至少符合指定数字,所以用两次检查来缩小范围。 real_month_of_year = 11 Control
real_tier character/title character/title/tier Same as tier but ignores temporary titles Tier
realm_character_percent X character clause 如果作用范围角色领域内满足条件的角色比例等于或大于目标,则返回为真。
realm_character_percent = {

    target = 0.05

    trait = genius

}

Rulers
realm_diplomacy character int State diplomacy. For personal attribute, see diplomacy. Rulers
realm_intrigue character int State intrigue. For personal attribute, see intrigue. Rulers
realm_learning X character int State learning. For personal attribute, see learning. Rulers
realm_levies character int realm_levies < 6000 Warfare
realm_levy_diff character clause 检查该范围当前征收的领地至少高于当前征收的值
realm_levy_diff = {

    who = ROOT

    value >= 3000

}

Warfare
realm_martial character int State martial. For personal attribute, see martial. Rulers
realm_size character int Total number of landed titles in the realm realm_size >= 180 Rulers
realm_stewardship character int State stewardship. For personal attribute, see stewardship. Rulers
rebel character/title bool Characters
region title,province region Checks if scope belongs to a geographical region. region = world_africa_east Province
regional_percentage any clause 检查某一地区省份是否满足一组条件
regional_percentage = {

    region = world_india

    percentage >= 0.50

    OR = {

	religion = hindu

	religion = jain

    }

}

Province
relative_income X character clause 比较两个角色的收入(?)。语法未知,至少在3.3.2版本之前无法正常工作。 Wealth
relative_income_to_liege character float 比较品格收入与其领主的收入。至少在3.3.2版本之前就不工作了。 relative_income_to_liege >= 0.5 Wealth
relative_power character clause Check that currently scoped character has at least power percentage of who's power.
relative_power = {

    who = FROM

    power >= 4.0

}

Rulers
relative_power_including_allies_attacker character clause 检查当前被瞄准的角色(以及其在进攻战争中的潜在盟友)至少有 power percentage of who's power.
relative_power_including_allies_attacker = { 

    who = FROMFROM # Defender

    power >= 0.8

}

Rulers
relative_power_including_allies_defender character clause 检查当前被瞄准的角色(以及其防御战争中的潜在盟友)至少有 power percentage of who's power.
relative_power_including_allies_defender = {

    who = FROM # Attacker

    power >= 2

}

Rulers
relative_power_to_liege character double
any_realm_lord = {

    relative_power_to_liege >= 0.1

}

Vassalage
relative_realm_size character clause (2.8) 比较作用域字符的域大小与指定字符 who.
relative_realm_size = {

    who = ROOT

    size < 1

}

Rulers
religion character/province/title/society/religion religion Checks if character/province has the given religion Religion
religion_allows_female_temple_holders character bool Checks religion flag allows_female_temple_holders religion_allows_female_temple_holders = yes Religion
religion_allows_male_temple_holders character bool Checks religion flag allows_male_temple_holders religion_allows_male_temple_holders = yes Religion
religion_authority character/province double Ranges from 0 to 1 Religion
religion_distance X province/title character/province/title/society/religion Checks distance to closest province of target religion.
religion_distance = {

    target = ROOT

    value > 300

}

Religion
religion_group character/province/title/society/religion religion 检查角色/省份的宗教是否属于该宗教群体 Religion
republic_total_num_of_trade_posts character int republic_total_num_of_trade_posts >= 80
reverse_clan_opinion character clause
reverse_clan_opinion = {

    who = FROM

    value >= 25

}

Opinion
reverse_clan_opinion_diff X character clause
reverse_clan_opinion_diff = {

    first = FROM

    second = PREV

    value >= 25

}

Opinion
reverse_combat_rating_diff X character clause
reverse_combat_rating_diff = {

    who = FROM

    value >= 25

}

Attribute
reverse_has_cb X character character 检查目标角色是否能对有瞄准镜的角色使用任何CB reverse_has_cb = FROM Rulers
reverse_has_embargo X character character 检查右侧角色是否对被瞄准的角色有禁令 reverse_has_embargo = FROM Character
reverse_has_opinion_modifier character clause Checks if 'who' character has the given opinion modifier towards scoped character
reverse_has_opinion_modifier = {

    who = ROOT

    modifier = opinion_supported_pope

}

Opinion
reverse_has_truce character character
liege = {

    reverse_has_truce = ROOT

}

Wars
reverse_opinion_levy_raised_days X character clause 应在统治者有附庸的范围内召唤,且 who 是任何直接附庸。如果政府/宗教允许在没有意见惩罚的情况下征召附庸军队,这个条件就毫无意义。
reverse_opinion_levy_raised_days = {

    who = ROOT

    days >= 30

}

Opinion
reverse_max_realm_levy_diff X character clause 检查谁的最大领地征召量与被瞄准角色的最大领地征召
reverse_max_realm_levy_diff = {

    who = ROOT

    value >= 3000

}

Warfare
reverse_opinion character/new clause Checks who's opinion of the scoped character. new can be used to reference the new_character scope.
reverse_opinion = {

    who = ROOT

    value >= 0

}

Opinion
reverse_opinion_diff X character/new clause 检查“第一”对范围特征的意见是否高于“第一”对“第二”的看法
reverse_opinion_diff = {

    first = ROOT

    second = FROM

    value >= 0

}

Opinion
reverse_personal_opinion character clause 类似于reverse_opinion,但不考虑国家外交、法律或其他国家事务
reverse_personal_opinion = {

    who = FROM

    value >= 50

}

Opinion
reverse_personal_opinion_diff X character clause 检查“第一”个人对范围特征的“价值”是否高于“第一”对“第二”的个人意见。不考虑国家外交、法律或其他类似国家事务。
reverse_personal_opinion_diff = {

    first = ROOT

    second = FROM

    value >= 0

}

Opinion
reverse_realm_levy_diff X character clause 检查当前领地征收的价值是否高于该领域当前征收的征费
reverse_realm_levy_diff = { 

    who = ROOT

    value >= 3000

}

Warfare
revolt_distance X character int revolt_distance >= 100 Provinces (?)
revolt_risk province double revolt_risk >= 0.02 Provinces
rightful_religious_head character character
any_independent_ruler = {

    rightful_religious_head = ROOT

}

Religion
risks_minor_clan_rising character bool risks_minor_clan_rising = yes Clans
ruled_years character/title int Rulers
same_guardian character character
any_courtier = {

    same_guardian = ROOT

}

Guardianship
same_liege character character
any_realm_lord = {

    same_liege = ROOT

}

Vassalage
same_realm character/title character
any_neighbor_province = {

    owner = {

	same_realm = ROOT

    }

}

Rulers
same_sex character character Checks if two characters have same sex. same_sex = FROM Characters
same_regnal_name X character character 检查两个人物是否拥有相同的君主姓名以便编号。目前,君主姓名被定义为拥有相同的名字(例如,“古斯塔夫”和“古斯塔夫·阿道夫”是同一个君主名),或者具有相同文化上的名(例如,“Alfr_Alf”和“Alf_Alf”是同一个君主名)。 Characters
same_society_as character character 检查范围角色是否与目标角色处于同一社会。 same_society_as = ROOT Societies
same_wonder_as X Wonder Wonder Checks if two wonders are of the same type
same_wonder_as = FROM 

same_wonder_as = event_target:saved_wonder

Societies
scaled_wealth character double/clause 根据年收入的百分比检查角色是否拥有相应的财富。在2.8之前,该从句语法不可用。
scaled_wealth = 0.2



scaled_wealth = {

    value = 0.5

    min = 10

    max = 20

}

Money
score character int Current score of the player score >= 100000
secret_religion character Anything with a religion Checks if character secretly follows the given religion
secret_religion = catholic

secret_religion = FROM

Religion
secret_religion_group character religion (group) 检查角色是否秘密信奉该宗教群体中的某个宗教
secret_religion_group = christian

secret_religion_group = ROOT

Religion
settlement_age X holding int 核查持仓的年龄。如果在省历史中预建,领地在1.1.1中被视为已建成) settlement_age < 20 Religion
shares_any_bloodline_with character character 回报成立是指两个角色至少有一个血脉共同点 Bloodlines
shares_realm_border_with character character (2.8) 检查你领域内的任何省份(所有你称号下的省份)是否与其领地内的任何省份接壤。 Realm
sibling character character Family
society_can_rank_down X character bool 检查角色是否能在社会中降级 society_can_rank_down = yes Societies
society_can_rank_up character bool 检查角色是否能在本社会中晋升 society_can_rank_up = yes Societies
society_currency character society 检查角色是否拥有规定的社会点数。可以根据社会影响力为尺度添加scaled_by_influence参数,从社会影响力100%时的70%减少,线性地减少到0%影响力的减少 society_currency >= 1000 Societies
society_has_active_progress society bool 检查协会当前是否有持续的进度计数器。 society_has_active_progress = yes Societies
society_has_members society bool Checks if the society has any members. society_has_members = yes Societies
society_influence society/character/any int/clause 检查某一社会的影响力是否与该数字相比较。如果没有给出社团名称,游戏会使用当前范围内的社团,或者角色当前范围内的社团。如果没有给出社团名称,且当前范围既不是社团也不是角色,那么它总是会被错误地返回。
society_influence >= 70



society_influence = {

    society = the_assassins

    value >= 50

}

Societies
society_is_active X society bool Checks if the society's active trigger is true. society_is_active = yes Societies
society_is_criminal character bool Checks if character's society is criminal or not. society_is_criminal = no Societies
society_is_devil_worshiper character bool 检查角色所在的社会是否是一个崇拜魔鬼的社会。 society_is_devil_worshiper = no Societies
society_member_of character society Checks if character belongs to the given society society_member_of = monastic_order_buddhist Societies
society_progress society float Checks the society's current progress. society_progress < 25 Societies
society_rank character/int/clause society 检查角色的等级是否与给定的数值或角色进行正确对比。还可以使用条款来检查角色是否属于指定社会。
society_rank == 2



society_rank = {

    society = the_assassins

    rank == 3

}

Societies
start_date any date Check the initial start date of current game. start_date == 1066.9.15 Control
stewardship character int A character's Stewardship attribute. For state value, see realm_stewardship Characters
stored_token_trigger character Casus Belli 选出的CB,在对宣战投票的背景下。可获得 ROOT and FROM scopes. Council voting
supply_limit X province clause 比较该省份对特定角色及其领导者的供应值。除非特别说明,领袖默认使用指定字符。
supply_limit = {

    for = ROOT

    leader = FROM

    value > 10

}

Wars
supported_checksum X any bool 检查当前校验和是否与任何活跃模组的.mod文件中至少一个支持的校验和匹配(定义如下) supported_checksums = { ABCD EFGH } field). Control
symptom X character trait (?) Health
TECH_INFANTRY

TECH_CAVALRY

TECH_SKIRMISH

TECH_MELEE

TECH_SIEGE_EQUIPMENT

TECH_RECRUITMENT

TECH_CASTLE_CONSTRUCTION

TECH_CITY_CONSTRUCTION

TECH_FORTIFICATIONS_CONSTRUCTION

TECH_TRADE_PRACTICES

TECH_CONSTRUCTION

TECH_NAVAL

TECH_NOBLE_CUSTOMS

TECH_POPULAR_CUSTOMS

TECH_RELIGIOUS_CUSTOMS

TECH_MAJESTY

TECH_CULTURE_FLEX

TECH_LEGALISM

character/province/title/holding(baron title) int 检查当前控股公司或省份在特定科技类别中是否至少拥有这种技术水平。 TECH_POPULAR_CUSTOMS >= 3 Provinces
technology_can_spread province bool Check whether technology can spread in the province. technology_can_spread = yes Province
temporary title bool 检查头衔是否是临时的(叛乱、声称冒险者等) Titles
terrain province terrain 数值:森林、丘陵、山地、平原、农田、草原、沙漠、丛林、北极 Provinces
their_clan_opinion X character/clan title clause Alias for reverse_clan_opinion
their_opinion = {

    who = ROOT

    value >= 25

}

Opinion
their_opinion character clause Alias for reverse_opinion
their_opinion = {

    who = ROOT

    value >= 25

}

Opinion
tier character/title/offmap string 检查角色的等级是否与指定的等级完全等同。 不允许使用2.8+的比较算子!

- Values: BARON, COUNT, DUKE, KING, EMPEROR

Tier
title character/title title/province title = d_mesopotamia Titles
total_claims character clause
total_claims = {

    who = FROM

    strong = yes

    value >= 2

}

Claims
total_manpower X character int Checks total manpower of nomad ruler total_manpower >= 2000 Character
total_years_played Any int Number of years since beginning of current game total_years_played >= 200 Control
trade_post_has_building province building Checks if a trade post has the specified building. trade_post_has_building = tr_silk_road_3 Buildings
trade_post_has_any_building X province building 检查贸易站是否有至少一栋建筑。 Buildings
trade_route province trade route/province 检查省份是否位于指定贸易路线上,或两个省份是否共享贸易路线
trade_route = silk_road

trade_route = event_target:saved_province

Provinces
trade_route_control character clause (2.8) 检查被瞄准角色(其他角色?)对指定贸易路线财富、省份、贸易站或贸易站位置的控制程度。
Parameter Type Description
trade_route identifier Required. Trade route to check against.
value float Required. Percentage of control required.
type string 可选。比较类型:“财富”、“省份”、“trade_posts”或“trade_post_locations”。后两者受贸易路线定义中的贸易站触发限制。默认是财富。
indirectly_owned bool 可选。是否将属于附庸的省份纳入子领域。默认是可以。
trade_route_control = {

    trade_route = silk_road

    value > 0.1

    type = trade_post_locations

    indirectly_owned = no

}

Provinces
trait character string Checks if the character has this trait trait = shy Traits
treasury character double Alias for wealth treasury >= 50 Money
true_religion character character/province/title/society 如果角色有秘密宗教,检查角色是否秘密信奉该宗教,否则检查角色是否公开信奉该宗教
true_religion = catholic

true_religion = PREV

Religion
true_religion_group character Anything with a religion, religion group 如果角色有秘密宗教信仰,则检查角色是否秘密信奉该宗教团体的宗教,否则检查角色是否公开信奉该宗教团体的宗教
true_religion_group = christian

true_religion_group = ROOT

Religion
troops siege clause
troops = {

    who = troops

    value >= 0.1

    enemy = yes

}

Wars
units_in_province X Province int Checks the number of armies/units in a province units_in_province > 3 Units
unit_is_in_combat X unit bool Checks if the unit is in combat. Units
unused_manpower character int unused_manpower >= 250 Clans
uses_decadence character bool Character has decadence mechanic via religion/government. uses_decadence = yes Characters
uses_new_crusade character bool 检查角色的宗教是否使用宗教定义中设定的新式Crusades uses_new_crusade = yes Characters
using_cb war casusBelli
any_war = {

    using_cb = crusade

}

Wars
vassal_of character character 检查被瞄准的角色是否是右侧角色的直接附庸。
any_rival = {

    vassal_of = ROOT

}

Vassalage
war character bool Checks if the character is in war Wars
war_participation war double
any_war = {

    war_participation = {

	who = ROOT

	score >= 50

    }

}

Wars
war_score war double
any_war = {

    war_score >= 50

}

Wars
war_title war title/province war_title = ROOT Wars
war_with character character/title 如果因袭击而敌对,或其军队因个人、封主或第三方战争而敌对,则返回为真。[3]
liege = {

    NOT = { war_with = ROOT }

}

Wars
was_conceived_a_bastard character bool was_conceived_a_bastard = yes Family
wealth character int The minimum amount of gold this character should have Money
will_liege_enforce_peace character bool See also has_liege_enforced_peace will_liege_enforce_peace = no Realm
wonder X wonder scope Alias of same_wonder_as
wonder = FROM 

wonder = event_target:saved_wonder

Wonders
wonder_age wonder int 检查奇迹至少达到指定年份。 wonder_age >= 150 Wonders
wonder_stage wonder int 检查奇观进度处于哪个等级(不包括当前建设,比如建造第一层会让你的奇观处于0级(零)) wonder_stage >= 1 Wonders
wonder_stage_age X wonder int 检查奇观至少在当前等级/阶段存在了给定的年数。 wonder_stage_age >= 15 Wonders
wonder_upgrade wonder_upgrade scope Checks exact ID of wonder upgrade wonder_upgrade = event_target:my_saved_upgrade Wonders
wonder_upgrade_age upgrade int 检查升级至少是给定的年限。 wonder_upgrade_age >= 200 Wonders
would_be_heir_under_law title clause
would_be_heir_under_law = {

    who = FROM

    law = seniority

}

Government
year any int Returns the current year. Control
year_of_birth X character int 检查角色是否出生于这一年或之后 year_of_birth >= 1000 Characters
yearly_income character/title (holding) double yearly_income >= 25 Money

See also

References

相关页面 (79)

AlliancesCommandsCouncilCrown lawsDistanceEU4转档器模组制作Event moddingFlagFocusesGame ruleGame rules moddingGovernmentHealthModifierModifiersPatch 2.3Pre-triggerScopeScopesScripted triggerScriptingSociety moddingSteam创意工坊ThreatTitle actionsTraitsTributaryVariables事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化模组制作死亡模组制作法律模组制作游戏规则模组制作