条件
Conditions or Triggers are used in scripting to restrict events and commands to correct targets.
They appear:
- In condition blocks (
triggersection of events, or equivalent:mult_modifier,can_use_title,potential,allow, ...) - In the
limitclause of command blocks - In scripted triggers, which can be used to group conditions into re-usable macro.
- At the root of events for pre-triggers used to improve performances
Syntax for most conditions accepting numeric values was extended with numeric operators since version 2.8. The following triggers do not (fully) support these operators:
among_most_powerful_vassalsdays_since_last_hostile_actiondemesne_sizedemesne_efficiencynum_of_realm_countiesreal_month_of_yearreal_day_of_yearrealm_character_percentreligion_authority(< and <= do not work)scaled_wealthtier(as well as similar triggers, such as(lower/higher_)(real_)tier(_than)heavy_troops,light_troops(simple right-hand side only, clause form fully support numeric operators), 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 |
Checks adventurer flag of the title (title that gets destroyed whenever the holder gains another title or when the holder dies). |
|
Titles |
||||||||||||||||||
age |
✓ |
character |
int |
The age of a character. Can be any whole number. |
|
Characters |
||||||||||||||||||
age_diff |
✓ |
character |
clause |
The absolute value of the age difference between two
characters. Typically used in conjunction with
|
|
Characters |
||||||||||||||||||
ai |
✓ |
character |
bool |
Can also be used as a pre-trigger for events and decisions. |
|
Characters |
||||||||||||||||||
ai_ambition |
✓ |
character |
int |
Check an AI behavior modifier (based on traits) |
|
Characters |
||||||||||||||||||
ai_greed |
X |
character |
int |
|
Characters |
|||||||||||||||||||
ai_honor |
✓ |
character |
int |
|
Characters |
|||||||||||||||||||
ai_rationality |
✓ |
character |
int |
|
Characters |
|||||||||||||||||||
ai_zeal |
✓ |
character |
int |
|
Characters |
|||||||||||||||||||
always |
✓ |
any |
bool |
Can be used to fail the conditions, without needing to
comment/delete the code (
If the scope matches nothing, then conditions fails. |
Control |
|||||||||||||||||||
among_most_powerful_vassals |
✓ |
character |
int |
Checks if the character is among the nth most powerful vassals of
the realm. It compares the character's powerbase with that of all other
direct vassals of the same liege. Also see
|
|
Realm |
||||||||||||||||||
any_religion_distance |
✓ |
province |
int |
Checks if any religion has been generated within the specified distance. Only used in alternate start generation/ |
|
Alternate start |
||||||||||||||||||
artifact |
✓ |
artifact |
artifact |
(2.8) Checks to see if the scoped artifact is the same as the target artifact. |
|
Control |
||||||||||||||||||
artifact_age |
✓ |
artifact |
int |
(2.8) Checks to see if the artifact is older than the specified value. Always returns false if the artifact has no known creation date. |
|
Control |
||||||||||||||||||
artifact_can_be_gifted_to |
X |
artifact |
character |
(2.8) Checks if the scoped artifact can be gifted to the target character. |
|
Artifacts |
||||||||||||||||||
artifact_type |
✓ |
artifact |
artifact type |
Checks if the scoped artifact is of the given type |
|
Artifacts |
||||||||||||||||||
artifact_type_owned_by |
✓ |
artifact |
character |
Checks if the given character owns at least one instance of the scoped artifact. |
|
Artifacts |
||||||||||||||||||
attribute_diff |
✓ |
character |
clause |
Checks that currently scoped character has at least value more points in the given attribute, than target character. |
|
Characters |
||||||||||||||||||
at_location |
✓ |
character |
character/province/title |
Checks if two characters are in the same location. If target is a title, uses the current location of the titleholder. |
|
Provinces |
||||||||||||||||||
base_health |
✓ |
character |
double |
Checks for hidden attribute base health |
|
Health |
||||||||||||||||||
bloodline |
X |
bloodline |
bloodline |
Returns true if the current scope |
Bloodlines |
|||||||||||||||||||
bloodline_is_active_for |
✓ |
bloodline |
character |
Returns true if current scope |
Bloodlines |
|||||||||||||||||||
borders_lake |
✓ |
province |
bool |
Province borders a lake |
|
Provinces |
||||||||||||||||||
borders_major_river |
✓ |
province |
bool |
Province borders a major river |
|
Provinces |
||||||||||||||||||
calc_true_if |
✓ |
any |
clause |
Returns true if amount of the triggers in it return true.[1] |
In this example at least 3 of the 5 triggers need to return true: |
Control |
||||||||||||||||||
can_be_given_away |
✓ |
title |
bool |
The title is not occupied, has no holdings being sieged, or
contested in war. |
|
Titles |
||||||||||||||||||
can_change_religion |
✓ |
character |
bool |
|
Religion |
|||||||||||||||||||
can_call_crusade |
✓ |
character |
bool |
Checks if character is the head of a religion that uses crusades |
|
Religion |
||||||||||||||||||
can_copy_personality_trait_from |
✓ |
character |
character |
|
Traits |
|||||||||||||||||||
can_grant_title |
✓ |
character |
minor_title |
Checks if scoped ruler can grant at least one target minor title |
can_grant_title = title_commander |
Rulers |
||||||||||||||||||
can_land_path_to |
✓ |
province |
province/clause |
Checks if it is possible to travel by land between two provinces.
Can be expanded to also take a |
|
Provinces |
||||||||||||||||||
can_naval_path_to |
✓ |
province |
province/clause |
Checks if it is possible to travel by sea between two provinces.
Both provinces have to be sea or coastal. Can be expanded to also take a
|
|
Provinces |
||||||||||||||||||
can_have_more_leadership_traits |
✓ |
character |
bool |
Checks the limit of leadership trait based on martial education
trait ( |
Traits |
|||||||||||||||||||
can_hold_title |
✓ |
character |
jobTitle/minorTitle |
Checks the conditions for the specified councillor position or minor title. |
|
Characters |
||||||||||||||||||
can_join_society |
✓ |
character |
society |
Checks if scope character can join the specified society. |
|
Societies |
||||||||||||||||||
can_marry |
✓ |
character |
bool/character |
False if the character has any traits with
Also false for characters who are married (even if their religion allows polygamy!) or betrothed. |
|
Marriage |
||||||||||||||||||
can_see_secret_religion |
X |
character |
character |
Checks if the character scope you're currently in can see the target character's secret religion. |
Religion |
|||||||||||||||||||
can_swap_job_title |
✓ |
character |
character |
Checks if a character can get the job position of another character |
|
|||||||||||||||||||
can_use_cb |
✓ |
character |
clause |
(2.8) Checks if the specified casus belli would show up and be usable in the UI. Checks everything in the CB itself, plus the extra hardcoded restrictions on regular war declarations.
|
|
Wars |
||||||||||||||||||
character |
✓ |
character |
character/title/int |
Checks if 2 characters are the same. |
|
Characters |
||||||||||||||||||
check_variable |
✓ |
character/province |
clause |
Used in conjunction with change_variable command. |
|
Control |
||||||||||||||||||
claimed_by |
✓ |
title |
character |
|
Claims |
|||||||||||||||||||
clan |
✓ |
character,title |
bool |
Whether character is the head of a nomadic clan, or title is a nomadic clan. |
|
Clans |
||||||||||||||||||
clan_opinion |
✓ |
character |
clause |
|
Opinion |
|||||||||||||||||||
clan_opinion_diff |
✓ |
character |
clause |
|
Opinion |
|||||||||||||||||||
combat_rating |
✓ |
character |
int |
Checks combat rating modifier |
|
Character |
||||||||||||||||||
climate |
X |
province |
winter_type |
Check whether a province has a winter climate defined in
/map/climate.txt - does NOT check whether province is currently
experiencing a winter, use |
|
Provinces |
||||||||||||||||||
combat_rating_diff |
✓ |
character |
clause |
Tests combat rating modifier difference with another character |
|
Character |
||||||||||||||||||
completely_controls |
X |
character |
title |
Character controls (personally or via a vassal) all the baronies under specified title. Notes:
|
Rulers |
|||||||||||||||||||
completely_controls_region |
✓ |
character |
region |
Similar to |
|
Rulers |
||||||||||||||||||
conquest_culture |
✓ |
title |
bool/character |
If yes, only fires if conquest_culture is set (?). Certain CBs set Conquest_Culture (used for cultural conversion events) |
Culture |
|||||||||||||||||||
continent |
X |
province |
continent |
Supplanted by more flexible |
Provinces |
|||||||||||||||||||
controlled_by |
✓ |
title/province |
character/title |
Checks if province/holding is occupied (war) by another character/realm |
|
Wars |
||||||||||||||||||
controls |
X |
character |
province |
Checks if scoped character has province in own demesne and is unsieged, or has sieged down this province. Only takes province ID, so of very limited use. |
|
Wars |
||||||||||||||||||
controls_religion |
✓ |
character/title |
bool |
If yes, only picks characters who are the head of their religion
(holder of a title with a flag
|
|
Religion |
||||||||||||||||||
could_be_child_of |
X |
character |
character |
(2.8) Checks if the scoped character is young enough to be the target character's parent. This means that they're at least AGE_OF_MARRIAGE_MALE years younger, and at most MAX_CHILD_BIRTH_AGE years younger if the target is female (for immortal characters, as long as they became immortal before this age they bypass the check). It also checks that they didn't die before the birth date of the scoped character. |
|
Characters |
||||||||||||||||||
could_be_parent_of |
✓ |
character |
character |
(2.8) Checks if the scoped character is old enough to be the target character's parent. This means that they're at least AGE_OF_MARRIAGE_MALE years older, and at most MAX_CHILD_BIRTH_AGE years older if female (for immortal characters, as long as they became immortal before this age they bypass the check). It also checks that they didn't die before the birth date of the target. |
|
Characters |
||||||||||||||||||
count |
✓ |
int |
Checks number of elements matched by a scope and some
|
|
Control |
|||||||||||||||||||
crusade_artifact_pot |
X |
any |
float |
Checks the artifact pot for the on-going new-style Crusade |
|
Wars |
||||||||||||||||||
crusade_gold_pot |
X |
any |
float |
Checks the gold pot for the on-going new-style Crusade |
|
Wars |
||||||||||||||||||
crusade_piety_pot |
X |
any |
float |
Checks the piety pot for the on-going new-style Crusade |
|
Wars |
||||||||||||||||||
crusade_prestige_pot |
X |
any |
float |
Checks the gold pot for the on-going new-style Crusade |
|
Wars |
||||||||||||||||||
crusade_defense_strength |
X |
any |
float |
Checks the military strength of the defenders to the military strength of the preparing attackers in a new-style Crusade. Doesn't work. |
|
War |
||||||||||||||||||
crusade_preparation_strength |
✓ |
any |
float |
Checks the military strength of the preparing attackers to the military strength of the defenders in a new-style Crusade |
|
War |
||||||||||||||||||
crusade_preparation_time_elapsed |
X |
any |
int |
Checks how many days have passed since the preparation of the current new-style Crusade started |
|
War |
||||||||||||||||||
crusade_preparation_time_remaining |
✓ |
any |
int |
Checks how many days remain before the current new-style Crusade will start in earnest |
|
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 |
Checks if the character is part of this culture group |
Culture |
|||||||||||||||||||
day_of_birth |
✓ |
character |
int |
Checks if the day of the character's date of birth is at least this number. |
|
Characters |
||||||||||||||||||
date |
✓ |
General |
date |
Checks the current date |
|
General |
||||||||||||||||||
days_at_current_society_rank |
✓ |
character |
int |
Checks if scope character has been at current rank in society for the given number of days. |
|
Societies |
||||||||||||||||||
days_in_society |
✓ |
character |
int |
Checks if scope character has been in a society for the given number of days |
|
Societies |
||||||||||||||||||
days_since_last_hostile_action |
✓ |
war |
clause |
Checks how long ago a character participated in a war, either through combat or siege. Does not support numeric operators. |
|
Offmap |
||||||||||||||||||
days_since_policy_change |
✓ |
offmap |
int |
True if the specified number of days has passed since the last policy change of the scoped offmap power. |
|
Offmap |
||||||||||||||||||
days_since_status_change |
X |
offmap |
int |
True if the specified number of days has passed since the last status change of the scoped offmap power. |
|
Offmap |
||||||||||||||||||
defending_against_claimant |
✓ |
character |
clause |
|
Wars |
|||||||||||||||||||
demesne_efficiency |
X |
character |
double |
Rulers |
||||||||||||||||||||
demesne_garrison_size |
✓ |
character |
int |
|
Warfare |
|||||||||||||||||||
demesne_size |
✓ |
character |
int |
Checks if the character has a minimum of this demesne size |
Rulers |
|||||||||||||||||||
demesne_size_compared_to_limit |
✓ |
character |
double |
(2.8) Checks if the character's demesne size is proportional to the floating point percentage specified. |
|
Rulers |
||||||||||||||||||
de_facto_liege |
✓ |
character/title/province |
character/title |
|
Vassalage |
|||||||||||||||||||
de_facto_liege_title |
X |
character/title |
character/title |
Checks that the defacto liege title of a character or title is the right-hand side. |
|
Vassalage |
||||||||||||||||||
de_jure_liege |
✓ |
character/title/province |
character/title |
Checks whether current scope is a direct de jure vassal of right hand side scope. |
|
Vassalage |
||||||||||||||||||
de_jure_liege_or_above |
✓ |
character/title/province |
character/title |
Checks whether current scope is a de jure vassal of right hand side scope. |
|
Vassalage |
||||||||||||||||||
de_jure_vassal_or_below |
✓ |
character/title |
character/title |
Checks whether current scope is a de jure liege of right hand side scope. |
|
Vassalage |
||||||||||||||||||
death_reason |
✓ |
character |
deathReason |
|
Health |
|||||||||||||||||||
decadence |
✓ |
character |
double |
|
Characters |
|||||||||||||||||||
disease |
✓ |
province |
disease |
Checks if the province has the specified disease. |
|
Provinces |
||||||||||||||||||
disease_defence |
X |
province |
float |
Checks if the province has at least the specified disease defence modifier. |
|
Provinces |
||||||||||||||||||
disliked_by_offmap |
✓ |
character |
clause |
Checks whether the scoped character matches the current "dislike" of the offmap power of the specified type. If the "dislike" trigger has a context, the context parameter must match to return true. If the "dislike" trigger has no context, the context parameter must be omitted to return true. |
|
Offmap |
||||||||||||||||||
difficulty |
X |
any |
int/string |
The game difficulty |
Control |
|||||||||||||||||||
diplomacy |
✓ |
character |
int |
The character's Diplomacy attribute. For state value, see
|
Characters |
|||||||||||||||||||
diplomatic_immunity |
✓ |
character |
bool |
Checks if character has the diplomatic_immunity flag, protecting him from hostile actions. |
Characters |
|||||||||||||||||||
dislike_tribal_organization |
✓ |
character/title |
bool |
Checks for dislike_tribal_organization religion flag |
|
Religion |
||||||||||||||||||
distance |
✓ |
character/province |
clause |
Determines the minimum distance from the scope. If used with NOT, it becomes maximum distance. Distances are pixels within the main map images & positions.txt |
|
Provinces |
||||||||||||||||||
distance_from_realm |
✓ |
character |
clause |
|
Provinces |
|||||||||||||||||||
dynastic_prestige |
X |
character |
int |
Checks if the character's dynasty has a dynastic prestige of at least this amount. |
|
Family |
||||||||||||||||||
dynasty |
✓ |
character |
character/int/no/none |
The character's dynasty, indexed by an integer value. Lowborn (no dynasty) match none or no value. |
|
Family |
||||||||||||||||||
dynasty_realm_power |
✓ |
character |
double |
|
Family |
|||||||||||||||||||
excommunicated_for |
✓ |
character |
character |
|
Religion |
|||||||||||||||||||
faction_exists |
X |
character |
clause |
|
Factions |
|||||||||||||||||||
faction_power |
✓ |
character |
clause |
|
Factions |
|||||||||||||||||||
family |
✓ |
character |
character/title/bool |
Alias for |
|
Family |
||||||||||||||||||
father_of_unborn_known |
✓ |
character |
bool |
Checks if a pregnant woman's unborn child has a known father. |
Family |
|||||||||||||||||||
fertility |
✓ |
character |
double |
The character's fertility value. In-game, can only be seen through the "charinfo" console command. |
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. |
|
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 |
|
Rulers |
||||||||||||||||||
from_ruler_dynasty |
✓ |
character |
bool |
|
Family |
|||||||||||||||||||
government |
✓ |
character |
government, title, character, province |
Check government type of a character. For checking government
groups, see |
|
Government |
||||||||||||||||||
graphical_culture |
✓ |
character |
culturegfx |
A character's graphical culture. This is different from the effect set_graphical_culture which takes a culture, not a culturegfx. In-game, can only be seen through the "charinfo" console command. Fixed in 2.8. (In 2.7 and earlier, checking against an invalid culturegfx will cause a CTD.) |
|
Characters |
||||||||||||||||||
had_artifact_flag |
X |
character |
clause |
(2.8) Before 3.0 |
Control |
|||||||||||||||||||
had_bloodline_flag |
X |
bloodline |
clause |
Returns true if the current scope
|
Control |
|||||||||||||||||||
had_character_flag |
✓ |
character |
clause |
Evaluates to true if the character has had that flag for the
specified number of days. Before 3.0 |
|
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 |
Checks if the current scope has had a given flag for a given time
in days, months or years. Works for any scope that can store flags,
unlike the more specific
|
|
Control |
||||||||||||||||||
had_global_flag |
✓ |
any |
clause |
Before 3.0 |
|
Control |
||||||||||||||||||
had_province_flag |
✓ |
province |
clause |
Before 3.0 |
|
Control |
||||||||||||||||||
had_offmap_flag |
X |
offmap |
clause |
Checks whether the offmap power previously had the specified
flag for the specified amount of time. Does not appear to be
functioning as of at least version 3.3.0. Use |
|
Offmap |
||||||||||||||||||
had_offmap_tmp_flag |
✓ |
offmap |
clause |
Checks if the specified temporary flag added by script to the scoped offmap power, NOT including those defined in the offmap status or policy files, has been present for the specified amount of time. |
|
Offmap |
||||||||||||||||||
had_title_flag |
✓ |
title |
clause |
Before 3.0 |
|
Control |
||||||||||||||||||
has_alternate_start_setting has_alternate_start_parameter |
✓ |
any |
clause |
Checks specified settings/parameters used in alternate world generation. |
|
Control |
||||||||||||||||||
has_ambition |
✓ |
character |
bool/objective |
|
Objectives |
|||||||||||||||||||
has_any_building |
✓ |
title |
bool |
Checks if the holding has any building |
|
Holdings |
||||||||||||||||||
has_any_opinion_modifier |
✓ |
character |
modifier |
Similar to |
|
Characters |
||||||||||||||||||
has_any_quest |
✓ |
character |
bool |
Checks whether or not the scoped character has any quests |
|
Characters |
||||||||||||||||||
has_any_symptom |
X |
character |
bool |
Checks if scoped character has any traits with
|
|
Health |
||||||||||||||||||
has_artifact |
✓ |
character |
artifact |
Checks if the scoped character owns an artifact by that name. |
|
Artifacts |
||||||||||||||||||
has_artifact_flag |
✓ |
artifact |
flag |
Checks if the scoped artifact has the given flag defined. |
|
Artifacts |
||||||||||||||||||
has_assigned_minor_title |
✓ |
character |
minorTitle/clause |
Checks to see if the character has assigned a particular minor title, or at least how many of them |
|
Characters |
||||||||||||||||||
has_autocephaly |
✓ |
character |
bool |
Checks for religion autocephaly = yes |
|
Religion |
||||||||||||||||||
has_bloodline_flag |
✓ |
bloodline |
string |
Checks if a bloodline has a specified flag. |
|
Control |
||||||||||||||||||
has_blood_oath_with |
✓ |
character |
character |
|
Clans |
|||||||||||||||||||
has_building |
✓ |
title (barony only),province |
building |
Checks if a holding has the specified building (under construction buildings do not count). |
|
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 |
|
Province |
||||||||||||||||||
has_cb |
X |
character |
character |
Checks if scoped character can use any CB against target character |
|
Rulers |
||||||||||||||||||
has_character_flag |
✓ |
character |
string |
Checks if a character has a specified flag. |
Control |
|||||||||||||||||||
has_character_modifier |
✓ |
character |
modifier |
Checks if the character has a modifier |
|
Modifiers |
||||||||||||||||||
has_children |
✓ |
character |
bool |
Checks if the character has children. Functionally identical to
|
|
|||||||||||||||||||
has_city |
✓ |
province |
bool |
Checks if a province has a city holding |
|
Province |
||||||||||||||||||
has_claim |
✓ |
character |
title |
|
Claims |
|||||||||||||||||||
has_council |
✓ |
character |
bool |
|
Council |
|||||||||||||||||||
has_councilor_faction_join_restriction |
✓ |
character |
bool |
Used in conjunction with
|
|
Council |
||||||||||||||||||
has_concubinage |
✓ |
character |
bool |
Checks if religion flag max_consorts > 0 |
|
Religion |
||||||||||||||||||
has_crown_law_title |
✓ |
title |
bool |
Used to check crown laws for a specified title. Is not a condition itself though, it must be used as a scope to check crown laws by category (succession, for instance). |
Government |
|||||||||||||||||||
has_crusade_war_started |
X |
character/title/province/society/religion |
bool |
Checks if the scope's religion has an ongoing new-style Crusade.
Also see |
|
Wars |
||||||||||||||||||
has_custom_description |
X |
wonder |
bool |
True if the wonder has a description set by history |
|
Wonders |
||||||||||||||||||
has_custom_name |
✓ |
wonder |
bool |
True if the wonder has a name set by the player or by history |
|
Wonders |
||||||||||||||||||
has_de_jure_pretension |
✓ |
title |
character |
|
Rulers |
|||||||||||||||||||
has_disease |
✓ |
character/province |
bool |
|
Health |
|||||||||||||||||||
has_dlc |
✓ |
any |
string |
Checks if the user has a specified DLC. Values: "The Sword of Islam", "Legacy of Rome", "Sunset Invasion", "The Republic", "The Old Gods", "Sons of Abraham", "Rajas of India", "Charlemagne", "Way of Life", "Horse Lords", "Zeus" or "Conclave" (both are equivalent), "Reapers", "Mystics", "Jade Dragon", or "Holy Fury". |
|
Control |
||||||||||||||||||
has_dynasty_flag |
✓ |
character |
flag |
|
Control |
|||||||||||||||||||
has_dynasty_modifier |
✓ |
character |
modifier |
Checks if a character's dynasty has the specified modifier |
|
Control |
||||||||||||||||||
has_earmarked_regiments |
✓ |
character |
flag |
Set via spawn_unit command and earmark parameter. |
|
Control |
||||||||||||||||||
has_earmarked_regiments_not_raiding |
✓ |
character |
flag |
Check for earmark & raiding |
|
Control |
||||||||||||||||||
has_elector_stance |
✓ |
character |
clause |
Checks elector stance for a title's Eldership election |
|
Elections |
||||||||||||||||||
has_embargo |
✓ |
character |
character |
|
Wars |
|||||||||||||||||||
has_empty_holding |
✓ |
province |
bool |
|
Provinces |
|||||||||||||||||||
has_epidemic |
✓ |
character/province |
bool |
Checks for a trait with |
|
Health |
||||||||||||||||||
has_feud_with |
✓ |
character |
character |
|
Clans |
|||||||||||||||||||
has_flag |
✓ |
any with flags |
flag |
Checks if the current scope has a given flag. Works for any scope
that can store flags, unlike the more specific
|
Control |
|||||||||||||||||||
has_focus |
✓ |
character |
focus |
Checks for focuses |
|
Objectives |
||||||||||||||||||
has_fort |
X |
province |
bool |
Checks whether a province has a fort |
|
Provinces |
||||||||||||||||||
has_full_court |
✓ |
character |
bool |
Checks if scoped character has no free court slots left |
|
Rulers |
||||||||||||||||||
has_game_rule |
✓ |
any |
clause |
Checks if a game rule is active. See game rules modding. |
|
Control |
||||||||||||||||||
has_game_started |
✓ |
any |
bool |
Checks if the game is in the pre-game character selection screen. |
|
Control |
||||||||||||||||||
has_global_flag |
✓ |
any |
flag |
See flags. |
|
Control |
||||||||||||||||||
has_guardian |
✓ |
character |
bool |
|
Guardianship |
|||||||||||||||||||
has_had_offmap_name |
X |
offmap |
loc |
|
Offmap |
|||||||||||||||||||
has_heresies |
✓ |
character/province |
bool |
Religion |
||||||||||||||||||||
has_higher_tech_than |
✓ |
province |
province/character |
|
Provinces |
|||||||||||||||||||
has_holder |
✓ |
title |
bool |
Checks whether a title is currently hold by a character. |
|
Titles |
||||||||||||||||||
has_hospital |
✓ |
province |
bool |
Checks whether a province has a hospital |
|
Provinces |
||||||||||||||||||
has_holding_modifier |
✓ |
title |
modifier |
Checks if the holding has the given holding modifier |
|
Modifiers |
||||||||||||||||||
has_horde_culture |
✓ |
character |
bool |
Check for hord flag from culture definition |
Culture |
|||||||||||||||||||
has_inheritance_blocker |
X |
character |
bool |
Checks if the character in the current scope has a trait that blocks inheritance (cannot_inherit = yes) |
||||||||||||||||||||
has_instances_of_character_modifier |
✓ |
character |
modifier |
Checks if the character has amount of times the given character modifier |
|
Modifiers |
||||||||||||||||||
has_instances_of_holding_modifier |
X |
title |
modifier |
Checks if the holding has a amount of times the given holding modifier |
|
Modifiers |
||||||||||||||||||
has_instances_of_province_modifier |
X |
province |
modifier |
Checks if the province has a amount of times the given province modifier |
|
Modifiers |
||||||||||||||||||
has_job_action |
✓ |
character |
bool/jobAction |
|
Jobs |
|||||||||||||||||||
has_job_title |
✓ |
character |
jobTitle/bool |
Checks that character is a councillor. |
|
Jobs |
||||||||||||||||||
has_known_creation_date |
X |
artifact |
bool |
(2.8) Checks if the artifact has a creation date on record. |
Artifacts |
|||||||||||||||||||
has_landed_title |
✓ |
character |
bool/title |
|
Titles |
|||||||||||||||||||
has_law |
✓ |
character/title |
law |
|
Government |
|||||||||||||||||||
has_liege_enforced_peace |
✓ |
character |
bool |
Prevents wars, also see
|
|
Realm |
||||||||||||||||||
has_living_children |
X |
character |
bool |
Checks if the character has living children. |
|
|||||||||||||||||||
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_maintenance_modifier |
✓ |
title |
modifier |
Checks for a static modifier added via
|
|
Modifiers |
||||||||||||||||||
has_minor_title |
✓ |
character |
minorTitle/bool |
Yes if the character has a minor title. Also includes religion titles. |
|
Characters |
||||||||||||||||||
has_newly_acquired_titles |
✓ |
character |
bool |
Character holds titles he just recently acquired |
Titles |
|||||||||||||||||||
has_nickname |
✓ |
character |
bool/nickname |
Can be used to check for a specific nickname, or (not) having any nickname. |
|
Characters |
||||||||||||||||||
has_non_aggression_pact_with |
✓ |
character |
character |
Checks if a character a non-aggression pact with another character. |
|
|||||||||||||||||||
has_objective |
X |
character |
objective |
Deprecated, replaced by
|
Objectives |
|||||||||||||||||||
has_offmap_currency |
✓ |
character |
clause |
Whether the character has at least value currency in the specified offmap ID. |
|
Offmap |
||||||||||||||||||
has_offmap_flag |
✓ |
offmap |
string |
Checks if the specified temporary flag was added to the scoped offmap power, or if the scoped power's current status or policy has the flag included by default in its flags = { } array. |
|
Offmap |
||||||||||||||||||
has_offmap_name |
✓ |
offmap |
loc |
Checks if the scoped offmap power has the specified localisation key as its current name. |
|
Offmap |
||||||||||||||||||
has_offmap_news_enabled |
✓ |
character |
offmap |
Checks if the player ruler has chosen to receive news events from the specified offmap power through the interface. |
|
Offmap |
||||||||||||||||||
has_offmap_tmp_flag |
✓ |
offmap |
string |
Checks if the specified temporary flag was added by script to the scoped offmap power, NOT including those defined in the offmap status or policy files. |
|
Offmap |
||||||||||||||||||
has_opinion_modifier |
✓ |
character |
clause |
Checks if the scoped character has the given opinion modifier towards 'who' character |
|
Opinion |
||||||||||||||||||
has_overseas_holdings |
✓ |
character |
bool |
Rulers |
||||||||||||||||||||
has_owner |
✓ |
province |
bool |
|
Rulers |
|||||||||||||||||||
has_pentarchy |
X |
religion/character/province |
bool |
Checks for whether the associated religion has a pentarchy. Works with anything that has a religion |
|
Religion |
||||||||||||||||||
has_pledged_crusade_defense |
X |
character |
bool |
Checks if a character has pledged defense for the new-style Crusade being planned |
|
Wars |
||||||||||||||||||
has_pledged_crusade_participation |
✓ |
character |
bool |
Checks if a character has pledged participation for the new-style Crusade being planned |
|
Wars |
||||||||||||||||||
has_plot |
✓ |
character |
plot/bool |
|
Objectives |
|||||||||||||||||||
has_policy |
✓ |
offmap |
policy |
Checks if the scoped offmap power currently has the specified offmap policy (defined in /common/offmap_powers/policies). |
|
Offmap |
||||||||||||||||||
has_policy_flag |
X |
offmap |
flag |
Checks if the scoped offmap power's current policy has the specified flag (defined in /common/offmap_powers/policies). |
|
Offmap |
||||||||||||||||||
has_polygamy |
✓ |
character |
bool |
Checks if religion flag max_wives > 0 |
|
Religion |
||||||||||||||||||
has_portrait_property |
✓ |
character |
clause |
Checks if a character has a given portrait property/overlay/etc. |
|
Characters |
||||||||||||||||||
has_position |
✓ |
character |
attitude/character |
Checks the voting attitude of a councillor, or if same as another
character. Also see |
|
Council |
||||||||||||||||||
has_pressed_claim |
X |
character |
title |
True if the character has a pressed claim (i.e., a non-heritable weak or strong claim created through Fabricate Claims) on the target title. |
|
Claims |
||||||||||||||||||
has_province_flag |
✓ |
province |
flag |
|
Control |
|||||||||||||||||||
has_province_modifier |
✓ |
province |
modifier |
Checks if the province has the given province modifier |
|
Modifiers |
||||||||||||||||||
has_quest |
✓ |
character |
quest_name |
Checks if the scoped character has a quest with the given quest_name. |
|
Societies |
||||||||||||||||||
has_raised_levies |
✓ |
character |
character |
Whether character has some personal levies (vassal levies do not count) |
|
Wars |
||||||||||||||||||
has_raised_standing_troops |
✓ |
title |
bool |
|
Wars |
|||||||||||||||||||
has_regent |
✓ |
character |
bool |
|
Titles |
|||||||||||||||||||
has_regiments |
✓ |
character |
bool |
|
Wars |
|||||||||||||||||||
has_religion_feature |
✓ |
character |
feature |
Checks if character religion has a specific feature |
|
Religion |
||||||||||||||||||
has_religion_features |
✓ |
any |
bool |
Detects if religion features are enabled in the current game (usually dependent on whether or not Holy Fury is active) |
|
Religion |
||||||||||||||||||
has_secret_religion |
✓ |
character |
bool |
Checks if character secretly follows another religion |
|
Religion |
||||||||||||||||||
has_selected_religion_feature |
✓ |
character |
religion feature |
Checks if a religion feature has been selected in the reformation screen |
|
Religion |
||||||||||||||||||
has_settlement_construction |
✓ |
province |
bool |
Checks if a holding is under construction in the province |
|
Holdings |
||||||||||||||||||
has_siege |
✓ |
title(holding) |
bool |
Holding is under siege. |
|
Wars |
||||||||||||||||||
has_space_for_retinue |
X |
character |
retinue_type |
Checks if character has enough unused retinue cap for target retinue type |
|
Retinues |
||||||||||||||||||
has_started_building_wonder |
✓ |
province/character/wonder |
bool/wonder type |
Checks if a province/character has started building a tier/stage of a wonder. Can check particular wonders as well. Is not affected by pausing |
|
Wonders |
||||||||||||||||||
has_started_building_wonder_upgrade |
X |
province/character/wonder/upgrade |
bool/upgrade type |
Checks if a wonder has started constructing an upgrade. Can check particular wonder upgrades as well. Is not affected by pausing |
|
Wonders |
||||||||||||||||||
has_status |
✓ |
offmap |
status |
Checks if the scoped offmap power currently has the specified offmap status modifier (defined in /common/offmap_powers/statuses). |
|
Offmap |
||||||||||||||||||
has_status_flag |
X |
offmap |
string |
Checks if the scoped offmap power has the specified flag in its
current offmap status modifier's |
|
Offmap |
||||||||||||||||||
has_strong_claim |
✓ |
character |
title |
Claims |
||||||||||||||||||||
has_strong_pressed_claim |
X |
character |
title |
True if the character has a strong pressed claim (i.e., a non-heritable strong claim) on the target title. |
|
Claims |
||||||||||||||||||
has_temple |
X |
province |
bool |
Checks if a province has a temple holding |
|
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 |
|
Province |
||||||||||||||||||
has_truce |
X |
character |
character |
Wars |
||||||||||||||||||||
has_weak_claim |
✓ |
character |
title |
Claims |
||||||||||||||||||||
has_weak_pressed_claim |
X |
character |
title |
True if the character has a weak pressed claim (i.e., a non-inheritable claim) on the target title. |
|
Claims |
||||||||||||||||||
has_wonder |
✓ |
province/character/wonder |
bool/wonder type |
Checks if the scoped character is the current owner of any wonders, or if the scoped province contains any wonders. Can check particular wonders as well. Only applies for wonders that have completed first stage. |
|
Wonders |
||||||||||||||||||
has_wonder_flag |
✓ |
wonder |
string |
Checks if a wonder has a given flag. |
|
Wonders |
||||||||||||||||||
has_wonder_upgrade |
✓ |
province/character/wonder/upgrade |
bool/upgrade type |
Checks if a wonder upgrade has a particular upgrade, or if it has any whatsoever. |
|
Wonders |
||||||||||||||||||
has_wonder_upgrade_flag |
✓ |
wonder/upgrade |
string |
Checks if a wonder upgrade has a given flag. |
|
Wonders |
||||||||||||||||||
health |
✓ |
character |
int |
A character's health value. In-game, can only be seen through the "charinfo" console command. |
Health |
|||||||||||||||||||
health_traits |
✓ |
character |
int |
Number of traits with |
|
Traits |
||||||||||||||||||
held_favor_activated_on |
X |
character |
character/title/province |
Checks if scoped character held a favor activated on target
character. The reverse condition is
|
|
Characters |
||||||||||||||||||
held_title_rating |
✓ |
character |
character, int |
|
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 |
Check that the tier of scoped character/title is strictly higher than the given tier. |
|
Tier |
||||||||||||||||||
historical |
✓ |
character |
bool |
Checks if character is historical (either by being scripted in character history, or created as historical by script), or part of an ongoing event chain |
|
Characters |
||||||||||||||||||
holder |
✓ |
title |
character |
Checks if title is held by target character |
|
Titles |
||||||||||||||||||
holding_diff |
✓ |
character |
clause |
|
Holdings |
|||||||||||||||||||
holding_type |
✓ |
Title (county/barony)/province |
string |
city / temple / castle / tribal / nomad / family_palace |
Holdings |
|||||||||||||||||||
hospital_has_any_building |
X |
province |
bool |
Checks if the hospital of the province has any buildings. |
Buildings |
|||||||||||||||||||
hospital_has_building |
✓ |
province |
building |
Checks if a hospital has the specified building. |
|
Buildings |
||||||||||||||||||
hospital_level |
✓ |
province |
int |
Checks the hospital level of a province. |
|
Provinces |
||||||||||||||||||
holding_garrison_percent |
X |
holding |
float |
Checks how full the holding's garrison is. 1 is 100%, 0 is 0%. |
|
Holdings |
||||||||||||||||||
holding_raisable_levy_percent |
X |
holding |
float |
Checks how full the holding's raisable levy is. 1 is 100%, 0 is 0%. |
|
Holdings |
||||||||||||||||||
holding_total_levy_percent |
✓ |
holding |
float |
Checks how full the holding's total levy (garrison + raisable) is. 1 is 100%, 0 is 0%. |
|
Holdings |
||||||||||||||||||
holds_favor_on |
✓ |
character |
character |
Checks if a character holds a favor toward another character. The
reverse condition is |
|
Characters |
||||||||||||||||||
holy_order |
✓ |
character/title |
bool |
|
Titles |
|||||||||||||||||||
holy_site_distance |
✓ |
province/title |
character/religion/title/province/society |
Checks distance to the nearest holy site of the target scope |
|
Titles |
||||||||||||||||||
immortal |
✓ |
character |
bool |
Checks if the character has a trait with
|
|
Health |
||||||||||||||||||
immortal_age |
✓ |
character |
int |
Checks which age at which a character became immortal. Always false for mortal characters |
|
Health |
||||||||||||||||||
imprisoned_days |
✓ |
character |
int |
|
Characters |
|||||||||||||||||||
independent |
✓ |
character |
bool |
Checks if ruler is independent and not in revolt |
Rulers |
|||||||||||||||||||
infamy |
X |
character |
double |
|
Wars |
|||||||||||||||||||
intrigue |
✓ |
character |
int |
A character's Intrigue stat. |
Characters |
|||||||||||||||||||
in_battle |
✓ |
character |
bool |
Wars |
||||||||||||||||||||
in_coalition_against |
X |
character |
character/title/province |
Checks if scoped character is in a coalition against of the target character or ruler of target title/province. Province scopes must be relative (ROOT/FROM) or saved event targets, since numbers are interpreted as character IDs. |
|
Characters |
||||||||||||||||||
in_command |
✓ |
character |
bool |
Character is leading troops. |
Characters |
|||||||||||||||||||
in_faction |
✓ |
character |
bool/faction |
|
Factions |
|||||||||||||||||||
in_revolt |
✓ |
character |
bool |
|
Titles |
|||||||||||||||||||
in_seclusion |
✓ |
character |
bool |
Checks if scoped character has in_seclusion character modifier (?) |
|
Titles |
||||||||||||||||||
in_siege |
✓ |
character |
bool |
|
Wars |
|||||||||||||||||||
interested_in_society |
✓ |
character |
bool |
Check if the character is interested in the society with the given tag. |
|
Societies |
||||||||||||||||||
interested_in_society_of_character |
✓ |
character |
character |
(2.8) Check if the character is interested in the society that the target character is a member of. |
|
Societies |
||||||||||||||||||
is_abroad |
✓ |
character |
bool |
Valid if character is 'abroad' (not at liege's court) |
Characters |
|||||||||||||||||||
is_active |
✓ |
wonder/upgrade |
bool |
|
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 relationships. Does not check for being temporary war allies. Expensive calculation, use with care[2] |
Wars |
|||||||||||||||||||
is_allowed_holding_type |
✓ |
title(holding) |
character |
Checks if holding type is allowed by the government of specified character. Uses de jure capital for titles above count-tier, uses county capital holding for titles above baron-tier. |
|
Government |
||||||||||||||||||
is_allowed_to_loot |
✓ |
character |
bool |
Character can raid. |
|
Rulers |
||||||||||||||||||
is_alternate_start |
✓ |
any |
bool |
Checks if the world is randomised or shattered. Also see
|
|
Control |
||||||||||||||||||
is_ancestor_of |
✓ |
character |
character |
(2.8) Checks if the scoped character is a progenitor of the target character's bloodline, within up to sixteen generations (for performance reasons). Expensive, so use with caution. |
|
Characters |
||||||||||||||||||
is_artifact_active |
✓ |
artifact |
bool |
Checks if the scoped artifact is currently active, as defined by its active trigger. Artifacts without an active trigger will always be considered active, even if not owned, and artifacts with an active trigger and without an owner will never be considered active. |
Artifacts |
|||||||||||||||||||
is_artifact_equipped |
✓ |
artifact |
bool |
Checks if the scoped artifact is currently equipped by its owner. |
Artifacts |
|||||||||||||||||||
is_artifact_same_type_as |
✓ |
artifact |
artifact |
Checks if the scoped artifact is the same as the given artifact |
|
Artifacts |
||||||||||||||||||
is_at_lootable_stage |
✓ |
wonder |
bool |
True if the wonder is at a stage that is higher or equal to the lua define ""MIN_LOOTABLE_STAGE"". |
|
Wonders |
||||||||||||||||||
is_at_max_stage |
✓ |
wonder |
bool |
True if the wonder has fully constructed its final stage. |
|
Wonders |
||||||||||||||||||
is_at_sea |
✓ |
character |
bool |
Characters |
||||||||||||||||||||
is_attacker |
✓ |
siege/combat |
bool |
|
Wars |
|||||||||||||||||||
is_aunt_uncle_of |
✓ |
character |
character |
(2.8) Checks if the current scoped character is the sibling of either of the target character's parents (i.e., one of the target character's parents' siblings, colloquially known as "piblings" ). |
|
Characters |
||||||||||||||||||
is_being_looted |
✓ |
wonder |
bool |
True if the wonder is currently being looted |
|
Wonders |
||||||||||||||||||
is_being_restored |
X |
wonder |
bool |
True if the wonder is currently being restored |
|
Wonders |
||||||||||||||||||
is_betrothed |
✓ |
character |
bool |
If yes, will only affect betrothed characters |
Marriage |
|||||||||||||||||||
is_bloodline_founder_of |
✓ |
character |
bloodline |
Returns true if current scope |
Bloodlines |
|||||||||||||||||||
is_bloodline_member_of |
X |
character |
bloodline |
Returns true if current scope |
Bloodlines |
|||||||||||||||||||
is_building |
✓ |
holding |
building |
Checks if a holding is constructing a new building |
|
Holdings |
||||||||||||||||||
is_building_wonder |
✓ |
province/character/wonder |
bool/wonder type |
Checks if a province/character is currently building a tier/stage of a wonder. Can check particular wonders as well. Only true if construction is not paused. |
|
Wonders |
||||||||||||||||||
is_building_wonder_upgrade |
✓ |
province/character/wonder/upgrade |
bool/upgrade type |
Checks if a wonder is currently constructing an upgrade. Can check particular wonder upgrades as well. Only true if construction is not paused. |
|
Wonders |
||||||||||||||||||
is_capital |
✓ |
province/title |
bool |
If yes, will only affect the capital HOLDING |
Titles |
|||||||||||||||||||
is_child_of |
✓ |
character |
character |
Checks if the scope is a child of another character |
Family |
|||||||||||||||||||
is_close_relative |
✓ |
character |
character |
Checks if the scope is a close relative of another character. This includes spouses, parents, children, siblings, niblings, grandparents, and grandchildren |
|
Family |
||||||||||||||||||
is_conquered |
✓ |
title |
bool |
|
Titles |
|||||||||||||||||||
is_consort |
✓ |
character |
bool/character |
Checks if the scoped character is a concubine/consort of somebody; or a concubine/consort or the specified character |
|
Marriage |
||||||||||||||||||
is_contested |
✓ |
title |
bool |
If title is already being contested in some form of Claim or Succession War |
Titles |
|||||||||||||||||||
is_council_content |
✓ |
character |
bool |
Checks whether the council is content or not. |
|
Council |
||||||||||||||||||
is_councillor |
✓ |
character |
bool |
Checks if character has a councillor job (chancellor, ...) |
|
Jobs |
||||||||||||||||||
is_cousin_of |
✓ |
character |
bool |
(2.8) True if the current scoped character is related to the target character by way of parental siblings. |
|
Characters |
||||||||||||||||||
is_crown_law_title |
X |
title |
bool |
Checks for titles that can have crown laws. |
|
Titles |
||||||||||||||||||
is_damaged |
✓ |
wonder |
bool |
True of the wonder is in a damaged state |
|
Wonders |
||||||||||||||||||
is_decision_potential is_decision_allowed
is_fort_decision_potential is_fort_decision_allowed
is_government_potential |
✓✓✓✓✓XXXXXXXXXXXXX |
character |
decision/government/law/clause |
Checks if current scope matches the |
|
Control |
||||||||||||||||||
is_connected_to |
✓ |
province/title(county) |
clause |
Checks if two provinces are connected via some realm's territory. Can be somewhat performance intensive, so use sparingly.
|
|
Provinces |
||||||||||||||||||
is_descendant_of |
✓ |
character |
character |
(2.8) Checks if the scoped character descends from the target character, within up to sixteen generations (for performance reasons). Expensive, so use with care. |
|
Characters |
||||||||||||||||||
is_dying |
✓ |
character |
bool |
Checks if character is about to die. Used for on_actions called
just when character dies, such as
|
Characters |
|||||||||||||||||||
is_father |
✓ |
character |
character |
|
Family |
|||||||||||||||||||
is_father_real_father |
✓ |
character |
bool |
Case of illegitimate bastards. |
Family |
|||||||||||||||||||
is_female |
✓ |
character |
bool |
If yes, will only affect female characters. Can also be used as an event pre-trigger. |
Characters |
|||||||||||||||||||
is_feudal |
✓ |
character/title |
bool |
Checks if government is part of feudal_governments group. |
|
Government |
||||||||||||||||||
is_flanking |
✓ |
flank |
bool |
Checks if scoped flank is flanking an enemy flank |
|
Wars |
||||||||||||||||||
is_foe |
✓ |
character |
character |
Checks if the target character is_rival or has an opinion modifier with crime = yes toward the scoped character |
|
Relations |
||||||||||||||||||
is_former_lover |
✓ |
character |
bool |
|
Marriage |
|||||||||||||||||||
is_friend |
✓ |
character |
character |
Checks if this character is a friend of the given character |
|
Relations |
||||||||||||||||||
is_grandchild_of |
✓ |
character |
character |
(2.8) Checks if the scoped character is the son or daughter of the target character's son or daughter. |
|
Characters |
||||||||||||||||||
is_grandparent_of |
✓ |
character |
character |
(2.8) Checks if the scoped character is the father or mother of the target character's father or mother. |
|
Characters |
||||||||||||||||||
is_guardian |
✓ |
character |
bool/character |
|
Guardianship |
|||||||||||||||||||
is_hard_to_convert |
✓ |
character/province |
bool |
Checks if the character or province's religion has the field hard_to_convert = yes |
|
Religion |
||||||||||||||||||
is_heir |
✓ |
character |
bool/character/title |
Checks if a character is first in the succession line of a title. |
|
Character |
||||||||||||||||||
is_heresy_of |
✓ |
character/province |
character/province/title/religion |
Checks if target is heresy of the given scope. |
|
Religion |
||||||||||||||||||
is_heretic |
✓ |
character/province |
bool |
Religion |
||||||||||||||||||||
is_holy_site |
✓ |
title |
character/religion |
Checks if a barony is a holy site of the religion of specified character |
|
Religion |
||||||||||||||||||
is_ill |
✓ |
character |
bool |
Checks for traits with |
Health |
|||||||||||||||||||
is_immune_to_pruning |
✓ |
character |
bool |
If yes, the character has been flagged with the set_immune_to_pruning command, or by the internal game logic, and will not be culled from AI courts or savegames to reduce file size/memory use. |
|
Characters |
||||||||||||||||||
is_important_character_to |
✓ |
character |
character |
Checks if scoped character is marked as a special interest by the target character. |
|
Characters |
||||||||||||||||||
is_in_same_unit_as |
✓ |
character |
character |
Checks if the two characters are in the same unit. Does NOT check every unit on a side of a combat, unlike any/random_unit_leader. |
|
Wars |
||||||||||||||||||
is_in_society |
✓ |
character |
bool |
Checks if a character is in a society |
|
Societies |
||||||||||||||||||
is_incapable |
✓ |
character |
bool |
Checks if the character is incapable. With the addition of
|
Health |
|||||||||||||||||||
is_indestructible |
✓ |
artifact |
bool |
Checks if the artifact is indestructible (has
|
|
Artifacts |
||||||||||||||||||
is_interested_in_any_society |
✓ |
character |
bool |
Checks if character is currently showing interest in a society or not. |
|
Societies |
||||||||||||||||||
is_ironman |
✓ |
character |
bool |
Used in achievements.txt |
Control |
|||||||||||||||||||
is_island |
✓ |
province |
bool |
Checks if the province exists in island_region.txt. |
|
Provinces |
||||||||||||||||||
is_land |
✓ |
province |
bool |
Checks that province is not a sea province |
Provinces |
|||||||||||||||||||
is_landed |
✓ |
character |
bool |
Checks that character owns a landed title. Note: landed
characters are also rulers ( |
Characters |
|||||||||||||||||||
is_landed_title_being_created |
X |
title |
bool |
Purpose unknown |
|
Titles |
||||||||||||||||||
is_landed_title_allowed |
X |
character |
title |
Checks if the character fulfills the allow conditions of a particular title. |
|
Characters |
||||||||||||||||||
is_landless_type_title |
✓ |
title |
bool |
Titles |
||||||||||||||||||||
is_liege_of |
✓ |
character |
character/title/province |
Check if the scoped character is a liege of the right hand side character. |
|
Vassalage |
||||||||||||||||||
is_liege_or_above |
✓ |
character/province |
character/title/province |
|
Vassalage |
|||||||||||||||||||
is_liege_or_above_of |
X |
character |
character |
Checks that scoped character is a superior to the right hand side character in the top liege's realm. |
|
Vassalage |
||||||||||||||||||
is_local_human_observer |
✓ |
any |
bool |
Checks if the local game is in observer mode |
|
Control |
||||||||||||||||||
is_located_in |
✓ |
title |
character/title |
|
Provinces |
|||||||||||||||||||
is_looting |
X |
character |
bool |
Wars |
||||||||||||||||||||
is_looting_in |
✓ |
character |
province |
Wars |
||||||||||||||||||||
is_lover |
✓ |
character |
bool/character |
Checks if this character is a lover of the given character |
|
Marriage |
||||||||||||||||||
is_lowborn |
✓ |
character |
bool |
Checks if the character is lowborn. Fixed in
2.8. (In versions prior to 2.8, it worked backwards: setting it
to no will pick out characters that are actually lowborn.) Equivalent to
|
|
Characters |
||||||||||||||||||
is_main_spouse |
✓ |
character |
bool |
If yes, is primary wife. (Although written gender neutral, there are no multiple-husband polygamies in CK2.) |
Marriage |
|||||||||||||||||||
is_marriage_adult |
✓ |
character |
bool |
Checks if the character is old enough to marry, based on
|
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 |
Checks if character is a patrician of at least duke tier or if title is a merchant republic. |
Government |
|||||||||||||||||||
is_mother |
✓ |
character |
character |
|
Family |
|||||||||||||||||||
is_multiplayer_host_character |
✓ |
character |
bool |
Whether scoped character is the host in a multiplayer game. |
|
Control |
||||||||||||||||||
is_name_randomized |
✓ |
religion/culture |
bool |
Checks if the scoped religion/culture has a randomized name |
|
Control |
||||||||||||||||||
is_navy |
X |
unit |
bool |
Checks if a unit is a fleet. |
Units |
|||||||||||||||||||
is_neutral |
X |
character |
bool |
Checks if a character has no vice traits and no virtue traits |
Traits |
|||||||||||||||||||
is_nibling_of |
✓ |
character |
character |
(2.8) Checks if the current scoped character is a niece/nephew of the target character (colloquially known by the gender-neutral "nibling" ). |
|
Characters |
||||||||||||||||||
is_nomadic |
✓ |
character |
bool |
Checks if character government is part of nomadic_governments group. |
|
Government |
||||||||||||||||||
is_occupied |
✓ |
title/province |
bool |
Checks if a barony or county is occupied by enemy troops. Does not work on duchy or above. |
|
Wars |
||||||||||||||||||
is_offmap_governor |
✓ |
character |
bool/id |
Checks if this character is/is not a governor of an offmap power (bool), or of the specified offmap power (id). |
|
Offmap |
||||||||||||||||||
is_offmap_ruler |
✓ |
character |
bool |
Is this character the ruler of an offmap power? |
|
Offmap |
||||||||||||||||||
is_offmap_tag |
✓ |
offmap |
id |
Checks if the current scoped offmap power is the offmap power with the specified ID. |
|
Offmap |
||||||||||||||||||
is_offmap_tag_including_dead |
✓ |
character |
id |
Whether this character is a current or former member of the offmap power with the specified ID. Used for Chinese clothing for portraits. |
|
Portraits |
||||||||||||||||||
is_older_than |
✓ |
character |
character |
Checks if the scoped character is older than the target. Even works for twins and other characters with the same age. |
|
Characters |
||||||||||||||||||
is_opposite_sex |
✓ |
character |
character |
|
Characters |
|||||||||||||||||||
is_or_was_offmap_power_ruler |
✓ |
character |
bool |
Checks whether the scoped character is currently the ruler (holder) of the specified offmap power, or died while holding that title. |
|
Offmap |
||||||||||||||||||
is_parent_religion |
✓ |
character |
character/province/title |
|
Religion |
|||||||||||||||||||
is_powerful_vassal |
✓ |
character |
bool |
Checks if a character is considered a powerful vassal. If
Conclave is enabled, these vassals have a raised fist icon and expect a
seat on the council. The trigger works even without Conclave. Also see
|
Realm |
|||||||||||||||||||
is_parent_of |
✓ |
character |
character |
(2.8) Checks if the current scoped character is the mother or father of the target character. |
|
Characters |
||||||||||||||||||
is_patrician |
✓ |
character |
bool |
Checks if a character is the head of a Merchant Republic patrician family (has a family palace holding). Can also be used as an event 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 |
|
Objectives |
|||||||||||||||||||
is_preferred_holding_type |
✓ |
title |
character |
Checks preferred holding type of character, based on government. Uses de jure capital for titles above count-tier, uses county capital holding for titles above baron-tier. |
|
Rulers |
||||||||||||||||||
is_pregnant |
✓ |
character |
bool |
Evaluates true the moment a woman is pregnant (unlike the 2 month delay for the on_pregnancy action). |
Characters |
|||||||||||||||||||
is_preparing_crusade |
✓ |
character/title/province/society/religion |
bool |
Checks if the scope's religion is preparing a new-style Crusade.
Also see |
|
Wars |
||||||||||||||||||
is_pretender |
✓ |
character/title |
bool |
In title scope, checks vs ROOT character. |
|
Titles |
||||||||||||||||||
is_priest |
✓ |
character |
bool |
Checks if character is either a Court Chaplain or landed with the Theocracy government type |
Characters |
|||||||||||||||||||
is_primary_heir |
✓ |
character |
bool/character |
Heir to primary title (regardless if same dynasty or not) |
|
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 of the title, for titles that cannot be held as secondary title. This covers mercenaries, the Pope, Holy Orders, etc. |
Titles |
|||||||||||||||||||
is_primary_war_attacker |
✓ |
character |
bool |
Wars |
||||||||||||||||||||
is_primary_war_defender |
✓ |
character |
bool |
|
Wars |
|||||||||||||||||||
is_quest_target |
✓ |
character/title/province |
bool |
Checks if the current scope is being targeted by a quest. |
|
Societies |
||||||||||||||||||
is_quest_target_of |
✓ |
character/title/province |
bool |
Checks if the current scope is being targeted by any quest the given character has. |
|
Societies |
||||||||||||||||||
is_random_world |
✓ |
any |
bool |
Checks if the world is randomised. Also see
|
|
Control |
||||||||||||||||||
is_recent_grant |
✓ |
title |
bool |
|
Titles |
|||||||||||||||||||
is_reformed_religion |
✓ |
character/province |
bool/character |
Checks if the religion of character or province is a reformed pagan religion. |
Religion |
|||||||||||||||||||
is_reincarnated |
✓ |
character |
bool |
|
Family |
|||||||||||||||||||
is_religion_crusade_target |
✓ |
Any with a religion |
bool |
Checks if religion of the current scope is being targeted by a new-style crusade |
|
Religions |
||||||||||||||||||
is_republic |
✓ |
character/title |
bool |
Checks if government is part of republic_governments group. |
|
Government |
||||||||||||||||||
is_retreating |
X |
flank |
bool |
Checks if scoped flank is retreating from combat |
|
Wars |
||||||||||||||||||
is_rival |
✓ |
character |
character |
Relations |
||||||||||||||||||||
is_ruler |
✓ |
character |
bool |
Yes, will only affect characters who have a title (who are a
ruler). Note that the character may not necessarily be landed
( |
Rulers |
|||||||||||||||||||
is_save_game |
✓ |
character |
bool |
Checks if is a saved game (used for startup events). |
|
Characters |
||||||||||||||||||
is_seafarer |
✓ |
character |
bool |
Checks if either the culture or religion have the seafarer flag set. |
|
Characters |
||||||||||||||||||
is_senior_consort_party |
✓ |
character |
bool |
Checks if the scoped character has concubines/consorts rather than being someone's concubine/consort. |
|
Marriage |
||||||||||||||||||
is_shattered_world |
✓ |
any |
bool |
Checks if the world is shattered. Also see
|
|
Control |
||||||||||||||||||
is_society |
✓ |
society |
society |
Checks if the currently scoped society is the same as the given one. |
|
Societies |
||||||||||||||||||
is_society_discovered |
✓ |
character |
bool |
Checks if the scoped character has been "revealed" as part of a secret society, whether they're actually a member of it or not. |
|
Societies |
||||||||||||||||||
is_society_discovered_real |
X |
character |
bool |
Checks if the scoped character has been revealed as part of a secret society, and they are actually part of it. |
|
Societies |
||||||||||||||||||
is_society_grandmaster |
✓ |
character |
bool |
Checks if scope character is the grandmaster of their society. |
|
Societies |
||||||||||||||||||
is_society_rank_full |
✓ |
any |
clause |
Checks if named society's rank is full. |
|
Societies |
||||||||||||||||||
is_sub_unit_leader |
X |
character |
bool |
Checks if the character is the leader of a subunit. |
|
Wars |
||||||||||||||||||
is_theocracy |
✓ |
character/title |
bool |
Checks if government is part of theocracy_governments group. |
|
Government |
||||||||||||||||||
is_title_active |
✓ |
any |
title |
Indicates whether the landed title is active. An inactive title
cannot be created.
Titles are activated or inactivated using the
To check whether a title currently exists, use
|
|
Titles |
||||||||||||||||||
is_titular |
✓ |
title |
bool |
|
Titles |
|||||||||||||||||||
is_tribal |
✓ |
character/title(holding) |
bool |
Checks if government is part of tribal_governments group. |
|
Government |
||||||||||||||||||
is_tribal_type_title |
✓ |
title |
bool |
Titles |
||||||||||||||||||||
is_tributary |
✓ |
character |
bool/clause |
Character is tributary to a suzerain. Type can specify what type of tribute they pay - if omitted, this will evaluate true for any type of tribute. suzerain can specify who they pay tribute to - if omitted, this will evaluate true if the character is a tributary of any suzerain. |
|
Vassalage |
||||||||||||||||||
is_twin_of |
X |
character |
character |
If yes, the scoped character is the target character's twin. |
|
Characters |
||||||||||||||||||
is_valid_attraction |
✓ |
character |
character |
Checks if both characters are adults and not already married |
|
Marriage |
||||||||||||||||||
is_valid_romance_target |
✓ |
character |
character |
Checks if both characters are adults, not incapable, either homosexual or of different sex and that they are of divine blood religions or not close kin. |
|
Marriage |
||||||||||||||||||
is_valid_viking_invasion_target |
✓ |
title |
character |
Checks that FROM holds the right amount of territory in the kingdom |
Wars |
|||||||||||||||||||
is_variable_equal |
✓ |
character/province |
clause |
Checks if a variable has the exact value, instead of standard
>= check. See variables. As
of 2.8, |
|
Control |
||||||||||||||||||
is_vassal_or_below |
✓ |
character |
character |
Checks that scoped character is the liege of right hand side character. Warning: the naming is not intuitive, reads from right to left! |
|
Vassalage |
||||||||||||||||||
is_vassal_or_below_of |
✓ |
character |
character |
Checks that scoped character is the vassal of the right hand side
character. Actually intuitive (literal opposite of
|
|
Vassalage |
||||||||||||||||||
is_vice_royalty |
✓ |
title |
bool |
Checks for viceroyalty flag on title |
|
Titles |
||||||||||||||||||
is_virtous |
✓ |
character |
bool |
Checks if character has at least 1 virtue and no vices. Note the spelling error! |
|
Traits |
||||||||||||||||||
is_voter |
✓ |
character |
bool |
Checks if character votes on the council (i.e. holds a position
or minor title with the flag |
|
Council |
||||||||||||||||||
is_wicked |
✓ |
character |
bool |
Checks if character has at least 1 vice and no virtues |
|
Traits |
||||||||||||||||||
is_winter |
✓ |
province |
bool |
Checks whether a province is currently experiencing a
winter. To check whether it could experience a winter at all, regardless
of current condition, use |
|
Provinces |
||||||||||||||||||
is_within_diplo_range |
✓ |
character |
character |
|
Relations |
|||||||||||||||||||
leader_traits |
✓ |
character |
int |
Number of traits with |
|
Traits |
||||||||||||||||||
leads_faction |
✓ |
character |
bool/faction |
|
Factions |
|||||||||||||||||||
learning |
✓ |
character |
int |
A character's learning attribute. For state value, see
|
Characters |
|||||||||||||||||||
lifestyle_traits |
✓ |
character |
int |
Number of traits with |
|
Traits |
||||||||||||||||||
liked_by_offmap |
✓ |
character |
clause |
Checks whether the scoped character matches the current "like" of the offmap power of the specified type. If the "like" has a context, the context parameter must match to return true. If the "like" has no context, the context parameter must be omitted to return true. |
|
Offmap |
||||||||||||||||||
likes_better_than |
✓ |
character |
clause |
Equivalent to |
|
Opinion |
||||||||||||||||||
loot |
✓ |
unit? |
int |
Used in unit_event achievement. |
|
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 |
Yes, will only affect characters who are of a lower tier |
Tier |
|||||||||||||||||||
manpower_growth |
X |
character |
int |
Checks manpower growth of nomad ruler |
|
Character |
||||||||||||||||||
martial |
✓ |
character |
int/character |
A character's Martial attribute. For state value, see
|
Characters |
|||||||||||||||||||
max_manpower |
✓ |
character |
int |
|
Clans |
|||||||||||||||||||
max_population |
X |
character |
int |
|
Clans |
|||||||||||||||||||
max_population_and_manpower |
X |
character |
int |
|
Clans |
|||||||||||||||||||
max_realm_levy_diff |
X |
character |
clause |
Checks that the scope's maximum realm levies is at least value higher than who's maximum realm levies |
|
Warfare |
||||||||||||||||||
mercenary |
✓ |
character/title |
bool |
Titles |
||||||||||||||||||||
mercenary_siphon_factor |
✓ |
title |
double |
Percentage of payment factor [?] |
|
Titles |
||||||||||||||||||
month |
✓ |
any |
int |
In-game month number. Ranges from 0 (January) to 11 (December). Will also evaluate to true if it is a later month, e.g. "10" will be true for both November and December in-game. |
Control |
|||||||||||||||||||
month_of_birth |
✓ |
character |
int |
Checks if the month of the character's date of birth is at least this number (January is month 1) |
|
Characters |
||||||||||||||||||
monthly_income |
✓ |
character/title (holding) |
double |
Money |
||||||||||||||||||||
monthly_piety |
X |
character |
double |
Checks if the character's monthly piety is at least this amount. |
Characters |
|||||||||||||||||||
monthly_prestige |
X |
character |
double |
Checks if the character's monthly prestige is at least this amount. |
Characters |
|||||||||||||||||||
multiplayer |
✓ |
any |
bool |
Checks whether the game is multiplayer or single-player. |
Control |
|||||||||||||||||||
non_interference |
✓ |
character |
character |
Checks whether the scoped character will not take hostile action against the target character. See Society_modding for details. |
|
Characters |
||||||||||||||||||
num_culture_provinces |
✓ |
any that have associated culture |
int |
Number of provinces in the world with the culture associated with the current scope. |
|
Culture |
||||||||||||||||||
num_culture_realm_provs |
✓ |
character |
clause |
Checks the number of provinces with target culture in scoped character's realm. |
|
Culture |
||||||||||||||||||
num_religion_provinces |
✓ |
any that have associated religion |
int |
Number of provinces in the world with the religion associated with the current scope. |
|
Religion |
||||||||||||||||||
num_fitting_characters_for_title |
✓ |
title |
int |
Checks how many characters in ones court that would fit for a specific title |
Title |
|||||||||||||||||||
num_of_artifacts |
✓ |
character |
int |
Checks if if scoped character has at least the given number of artifacts. |
|
Artifacts |
||||||||||||||||||
num_of_baron_titles |
X |
character |
int |
Checks how many baron-tier titles a character personally holds |
|
Titles |
||||||||||||||||||
num_of_baron_titles_in_realm |
X |
character |
int |
Checks how many baron-tier titles are held in a character's subrealm |
|
Titles |
||||||||||||||||||
num_of_buildings |
✓ |
title |
int |
|
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 |
Checks the number of count titles in the scoped character's realm. Equivalent to counting the number of provinces in the scope's realm, assuming that there are no titular count titles (which are not properly supported in any case and should generally be avoided). |
|
Titles |
||||||||||||||||||
num_of_courtiers |
X |
character |
int |
Checks how many courtiers a ruler has |
|
Rulers |
||||||||||||||||||
num_of_demesne_castles |
X |
character |
int |
Checks how many castle holdings a character personally holds |
|
Rulers |
||||||||||||||||||
num_of_demesne_cities |
X |
character |
int |
Checks how many city holdings a character personally holds |
|
Rulers |
||||||||||||||||||
num_of_demesne_empty_provinces |
X |
character |
int |
Checks how many empty provinces a character personally holds |
|
Rulers |
||||||||||||||||||
num_of_demesne_tribes |
X |
character |
int |
Checks how many tribal holdings a character personally holds |
|
Rulers |
||||||||||||||||||
num_of_demesne_temples |
X |
character |
int |
Checks how many temple holdings a character personally holds |
|
Rulers |
||||||||||||||||||
num_of_duke_titles |
✓ |
character |
int |
Checks how many duke-tier titles a character personally holds |
|
Titles |
||||||||||||||||||
num_of_duke_titles_in_realm |
X |
character |
int |
Checks how many duke-tier titles are held in a character's subrealm |
|
Titles |
||||||||||||||||||
num_of_dynasty_members |
✓ |
character |
int |
|
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 |
|
Titles |
|||||||||||||||||||
num_of_faction_backers |
✓ |
character |
clause |
Checks the number of supporters for a given faction |
|
Factions |
||||||||||||||||||
num_of_feuds |
✓ |
character |
int |
|
Clans |
|||||||||||||||||||
num_of_forts |
X |
character |
int |
Checks number of forts the character controls |
Rulers |
|||||||||||||||||||
num_of_forts_diff |
X |
character |
clause |
Checks the difference in number of hospitals controlled between 2 characters |
Rulers |
|||||||||||||||||||
num_of_friends |
✓ |
character |
int |
Relations |
||||||||||||||||||||
num_of_government_vassals |
✓ |
character |
clause |
|
Governments |
|||||||||||||||||||
num_of_holy_sites |
✓ |
character |
int |
Number of holy sites of scope's religion controlled by scope |
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 |
|
Titles |
||||||||||||||||||
num_of_king_titles_in_realm |
X |
character |
int |
Checks how many king-tier titles are held in a character's subrealm |
|
Titles |
||||||||||||||||||
num_of_lovers |
✓ |
character |
int |
|
Marriage |
|||||||||||||||||||
num_of_max_settlements |
✓ |
province |
int |
Checks the current number of constructed or constructible holding slots in a province |
|
Provinces |
||||||||||||||||||
num_of_plot_backers |
✓ |
character |
int |
|
Objectives |
|||||||||||||||||||
num_of_prisoners |
✓ |
character |
int |
|
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 |
Scoped character controls at least N counties from specified title |
|
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) Number of members who are in the scoped society or scoped character's society. |
|
Societies |
||||||||||||||||||
num_of_subrealm_castles |
✓ |
character |
int |
|
Rulers |
|||||||||||||||||||
num_of_spouses |
✓ |
character |
int |
Marriage |
||||||||||||||||||||
num_of_symptoms |
✓ |
character |
int |
Number of traits with |
|
Health |
||||||||||||||||||
num_of_titles |
✓ |
character |
int |
Number of titles directly held by the character. Note that for this condition each County title is worth 2 (it includes the capital barony) while Barony, Duchy, Kingdom and Empire-tier titles are worth 1 each. |
|
Titles |
||||||||||||||||||
num_of_titles_in_realm |
X |
character |
int |
Checks the number of titles held in the character's subrealm. Note that for this condition each County title is worth 2 (it includes the capital barony) while Barony, Duchy, Kingdom and Empire-tier titles are worth 1 each. |
|
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 |
|
Rulers |
||||||||||||||||||
num_of_traits |
✓ |
character |
int |
Number of traits |
Traits |
|||||||||||||||||||
num_of_unique_dynasty_vassals |
X |
character |
int |
Number of vassals of different dynasties (excluding the dynasty of scoped character). |
Vassalage |
|||||||||||||||||||
num_of_vassals |
✓ |
character |
int |
Number of direct vassals |
Vassalage |
|||||||||||||||||||
num_of_wonder_upgrades |
✓ |
wonder |
int |
Checks if if scoped character has at least the given number of upgrades. Useful for say triggering any flavor based on qualified guesses in regards to the state of the wonder. |
|
Wonders |
||||||||||||||||||
num_of_wonders |
✓ |
province/character |
int |
Checks if the scoped character is listed as the owner of at least the given number of wonders (that have completed at least stage 1). This could be used as a ""does wonder exist at all?"" check, as well as for counting. |
|
Wonders |
||||||||||||||||||
num_religion_realm_provs |
X |
title |
clause |
Checks number of provinces of target religion in scoped character's realm |
|
Rulers |
||||||||||||||||||
num_title_realm_provs |
✓ |
title |
clause |
Number of counties in ROOT's realm. |
|
Rulers |
||||||||||||||||||
num_traits |
✓ |
character |
int |
Alias of |
Traits |
|||||||||||||||||||
obedient |
✓ |
character |
character |
Checks if the scoped character is obedient to the target character, e.g. has an opinion modifier with obedient = yes toward the target character. |
|
Relations |
||||||||||||||||||
offmap_has_dislike |
✓ |
offmap |
string |
Checks whether the scoped offmap power has their current "dislike" assigned to the named scripted trigger. Note that in spite of "dislike" being negative, the vanilla triggers are shared between likes and dislikes, and therefore named in the positive (e.g., the current "dislike" may be "likes'_wealth" -- do not use "dislikes_wealth"). |
|
Offmap |
||||||||||||||||||
offmap_has_like |
✓ |
offmap |
string |
Checks whether the scoped offmap power has their current "like" assigned to the named scripted trigger. |
|
Offmap |
||||||||||||||||||
opinion |
✓ |
character |
clause |
Checks if the scope's opinion of who is at least this value |
|
Opinion |
||||||||||||||||||
opinion_diff |
✓ |
character |
clause |
True if first target character has a higher opinion of
the currently scoped character than second target character by
at least value points. |
|
Opinion |
||||||||||||||||||
opinion_levy_raised_days |
✓ |
character |
clause |
Should be called inside a vassal's scope, and |
|
Opinion |
||||||||||||||||||
overlord_of |
✓ |
character |
character |
Rarely used alias for |
|
Rulers |
||||||||||||||||||
over_max_demesne_size |
✓ |
character |
int |
|
Rulers |
|||||||||||||||||||
over_vassal_limit |
✓ |
character |
int |
|
Rulers |
|||||||||||||||||||
owed_favor_activated_by |
X |
character |
character/title/province |
Checks if the scoped character owed favor activated by target
character. The reverse condition is
|
|
|||||||||||||||||||
owes_favor_to |
✓ |
character |
character |
Checks if a character owes a favor to another character. The
reverse condition is |
|
|||||||||||||||||||
owned_by |
✓ |
province |
character |
Checks if currently scoped province is owned by target character |
|
Rulers |
||||||||||||||||||
owns |
✓ |
character |
title/province |
|
Rulers |
|||||||||||||||||||
owns_mercenary_units |
✓ |
character |
bool |
Checks if character owns mercenary units |
|
|||||||||||||||||||
pacifist |
✓ |
character |
bool |
|
Characters |
|||||||||||||||||||
pays_tribute_to |
✓ |
character |
character |
|
Characters |
|||||||||||||||||||
personal_opinion |
✓ |
character |
clause |
Similar to opinion, but does not take state diplomacy, laws or any other such state concerns into account |
|
Opinion |
||||||||||||||||||
personal_opinion_diff |
✓ |
character |
clause |
Similar to opinion_diff, but does not take state diplomacy, laws or any other such state concerns into account |
|
Opinion |
||||||||||||||||||
personality_traits |
✓ |
character |
int |
Number of traits with |
|
Traits |
||||||||||||||||||
phase |
✓ |
Combat |
skirmish/melee/pursuit |
Checks the current phase of the scoped combat flank |
|
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 |
|
Objectives |
||||||||||||||||||
plot_months |
X |
character |
character |
Checks for how many months a character has been plotting |
|
Objectives |
||||||||||||||||||
plot_power |
✓ |
character |
double |
Typically ranges from 0.5 to 4.0 in vanilla |
Objectives |
|||||||||||||||||||
plot_power_contribution |
✓ |
character |
clause |
|
Objectives |
|||||||||||||||||||
population |
✓ |
character |
int |
|
Clans |
|||||||||||||||||||
population_and_manpower |
✓ |
character |
int |
|
Clans |
|||||||||||||||||||
population_and_manpower_growth |
X |
character |
int |
|
Clans |
|||||||||||||||||||
population_factor |
✓ |
character |
double |
Percentage of maximum population. |
|
Clans |
||||||||||||||||||
population_growth |
X |
character |
int |
Checks population growth of nomad ruler |
|
Character |
||||||||||||||||||
port |
✓ |
province |
bool |
Checks if province is coastal |
Provinces |
|||||||||||||||||||
prev_policy |
✓ |
offmap |
policy |
Checks if the scoped offmap power previously had the specified offmap policy. |
|
Offmap |
||||||||||||||||||
prev_policy_flag |
X |
offmap |
string |
Checks if the scoped offmap power previously had the specified
flag in its previous offmap status modifier's |
|
Offmap |
||||||||||||||||||
prev_status |
✓ |
offmap |
status |
Checks if the scoped offmap power previously had the specified offmap status modifier. |
|
Offmap |
||||||||||||||||||
prev_status_flag |
X |
offmap |
string |
Checks if the scoped offmap power previously had the specified
flag in its previous offmap status modifier's |
|
Offmap |
||||||||||||||||||
preparing_invasion |
✓ |
character |
bool |
Wars |
||||||||||||||||||||
practical_age |
X |
character |
int |
Checks the apparent age of the character, taking immortality into account -- e.g., if the character became immortal at age 40, this will yield 40 rather than their true age. |
|
Health |
||||||||||||||||||
prestige |
✓ |
character |
int |
The amount of prestige a character has. |
Characters |
|||||||||||||||||||
prisoner |
✓ |
character |
bool |
If no, can't be applied to imprisoned characters. Can also be used as an event pre-trigger. |
Characters |
|||||||||||||||||||
province |
✓ |
province |
province/title |
Checks currently scoped province to be the same as another. For titles above count tier, uses its de jure capital province. |
|
Provinces |
||||||||||||||||||
province_id |
✓ |
province |
int |
Alias for |
Provinces |
|||||||||||||||||||
quality |
✓ |
artifact |
int |
Checks if the quality of the scoped artifact compares correctly to the given value. |
|
Artifacts |
||||||||||||||||||
race |
✓ |
character |
culture/character |
Same as |
|
Character |
||||||||||||||||||
raised_manpower |
X |
character |
int |
Checks raised manpower of nomad ruler |
|
Character |
||||||||||||||||||
random |
✓ |
any |
int |
Chance of success is (100-N)%! |
|
Control |
||||||||||||||||||
real_day_of_year |
X |
any |
int |
Checks for actual IRL day of the month. Ranges from 0 to 30. Checks if the day is at least the specified number, so use two checks to narrow down a range. |
|
Control |
||||||||||||||||||
real_month_of_year |
✓ |
any |
int |
Checks for actual IRL month (contrary to |
|
Control |
||||||||||||||||||
real_tier |
✓ |
character/title |
character/title/tier |
Same as tier but ignores temporary titles |
Tier |
|||||||||||||||||||
realm_character_percent |
X |
character |
clause |
Returns true if the percentage of characters in the scoped character's realm fulfilling the condition is equal to or greater than the target. |
|
Rulers |
||||||||||||||||||
realm_diplomacy |
✓ |
character |
int |
State diplomacy. For personal attribute, see
|
Rulers |
|||||||||||||||||||
realm_intrigue |
✓ |
character |
int |
State intrigue. For personal attribute, see
|
Rulers |
|||||||||||||||||||
realm_learning |
X |
character |
int |
State learning. For personal attribute, see
|
Rulers |
|||||||||||||||||||
realm_levies |
✓ |
character |
int |
|
Warfare |
|||||||||||||||||||
realm_levy_diff |
✓ |
character |
clause |
Checks that the scope's current realm levies is at least value higher than who's current realm levies |
|
Warfare |
||||||||||||||||||
realm_martial |
✓ |
character |
int |
State martial. For personal attribute, see
|
Rulers |
|||||||||||||||||||
realm_size |
✓ |
character |
int |
Total number of landed titles in the realm |
|
Rulers |
||||||||||||||||||
realm_stewardship |
✓ |
character |
int |
State stewardship. For personal attribute, see
|
Rulers |
|||||||||||||||||||
rebel |
✓ |
character/title |
bool |
Characters |
||||||||||||||||||||
region |
✓ |
title,province |
region |
Checks if scope belongs to a geographical region. |
|
Province |
||||||||||||||||||
regional_percentage |
✓ |
any |
clause |
Checks if the percentage of provinces in a particular region meets a set of conditions |
|
Province |
||||||||||||||||||
relative_income |
X |
character |
clause |
Compares the income of two characters (?). Syntax unknown, does not work as of at least version 3.3.2. |
Wealth |
|||||||||||||||||||
relative_income_to_liege |
✓ |
character |
float |
Compares the income of character and of his liege. Does not work as of at least version 3.3.2. |
|
Wealth |
||||||||||||||||||
relative_power |
✓ |
character |
clause |
Check that currently scoped character has at least power percentage of who's power. |
|
Rulers |
||||||||||||||||||
relative_power_including_allies_attacker |
✓ |
character |
clause |
Check that currently scoped character (plus its potential allies in an offensive war) have at least power percentage of who's power. |
|
Rulers |
||||||||||||||||||
relative_power_including_allies_defender |
✓ |
character |
clause |
Check that currently scoped character (plus its potential allies in a defensive war) have at least power percentage of who's power. |
|
Rulers |
||||||||||||||||||
relative_power_to_liege |
✓ |
character |
double |
|
Vassalage |
|||||||||||||||||||
relative_realm_size |
✓ |
character |
clause |
(2.8) Compares the realm size of the scoped character with the character specified by who. |
|
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 |
||||||||||||||||||
religion_allows_male_temple_holders |
✓ |
character |
bool |
Checks religion flag allows_male_temple_holders |
|
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 |
||||||||||||||||||
religion_group |
✓ |
character/province/title/society/religion |
religion |
Checks if character's/province's religion belongs to the given religion group |
Religion |
|||||||||||||||||||
republic_total_num_of_trade_posts |
✓ |
character |
int |
|
||||||||||||||||||||
reverse_clan_opinion |
✓ |
character |
clause |
|
Opinion |
|||||||||||||||||||
reverse_clan_opinion_diff |
X |
character |
clause |
|
Opinion |
|||||||||||||||||||
reverse_combat_rating_diff |
X |
character |
clause |
|
Attribute |
|||||||||||||||||||
reverse_has_cb |
X |
character |
character |
Checks if target character can use any CB against scoped character |
|
Rulers |
||||||||||||||||||
reverse_has_embargo |
X |
character |
character |
Checks if the right-hand side character has an embargo on the scoped character |
|
Character |
||||||||||||||||||
reverse_has_opinion_modifier |
✓ |
character |
clause |
Checks if 'who' character has the given opinion modifier towards scoped character |
|
Opinion |
||||||||||||||||||
reverse_has_truce |
✓ |
character |
character |
|
Wars |
|||||||||||||||||||
reverse_opinion_levy_raised_days |
X |
character |
clause |
Should be called inside inside the scope of a ruler with vassals,
and |
|
Opinion |
||||||||||||||||||
reverse_max_realm_levy_diff |
X |
character |
clause |
Checks who's maximum realm levies compared to the scoped character's maximum realm levies |
|
Warfare |
||||||||||||||||||
reverse_opinion |
✓ |
character/new |
clause |
Checks who's opinion of the scoped character. |
|
Opinion |
||||||||||||||||||
reverse_opinion_diff |
X |
character/new |
clause |
Checks if 'first's opinion of scoped character is 'value' higher than 'first's opinion of 'second' |
|
Opinion |
||||||||||||||||||
reverse_personal_opinion |
✓ |
character |
clause |
Similar to reverse_opinion, but does not take state diplomacy, laws or any other such state concerns into account |
|
Opinion |
||||||||||||||||||
reverse_personal_opinion_diff |
X |
character |
clause |
Checks if 'first's personal opinion of scoped character is 'value' higher than 'first's personal opinion of 'second'. Does not take state diplomacy, laws or any other such state concerns into account. |
|
Opinion |
||||||||||||||||||
reverse_realm_levy_diff |
X |
character |
clause |
Checks that who's current realm levies is value higher than the scope's current realm levies |
|
Warfare |
||||||||||||||||||
revolt_distance |
X |
character |
int |
|
Provinces (?) |
|||||||||||||||||||
revolt_risk |
✓ |
province |
double |
|
Provinces |
|||||||||||||||||||
rightful_religious_head |
✓ |
character |
character |
|
Religion |
|||||||||||||||||||
risks_minor_clan_rising |
✓ |
character |
bool |
|
Clans |
|||||||||||||||||||
ruled_years |
✓ |
character/title |
int |
Rulers |
||||||||||||||||||||
same_guardian |
✓ |
character |
character |
|
Guardianship |
|||||||||||||||||||
same_liege |
✓ |
character |
character |
|
Vassalage |
|||||||||||||||||||
same_realm |
✓ |
character/title |
character |
|
Rulers |
|||||||||||||||||||
same_sex |
✓ |
character |
character |
Checks if two characters have same sex. |
|
Characters |
||||||||||||||||||
same_regnal_name |
X |
character |
character |
Checks if two characters have the same regnal name for numbering purposes. Regnal names are currently defined as having the same first first name (E.G., "Gustav" and "Gustav Adolf" are the same regnal name), or the same cultural first first name (E.G., "Alfr_Alf" and "Alf_Alf" are the same regnal name). |
Characters |
|||||||||||||||||||
same_society_as |
✓ |
character |
character |
Checks if scope character is in the same society as target character. |
|
Societies |
||||||||||||||||||
same_wonder_as |
X |
Wonder |
Wonder |
Checks if two wonders are of the same type |
|
Societies |
||||||||||||||||||
scaled_wealth |
✓ |
character |
double/clause |
Check if character has the given wealth based on percentage of yearly income. Before 2.8, the clause syntax is not available. |
|
Money |
||||||||||||||||||
score |
✓ |
character |
int |
Current score of the player |
|
|||||||||||||||||||
secret_religion |
✓ |
character |
Anything with a religion |
Checks if character secretly follows the given religion |
|
Religion |
||||||||||||||||||
secret_religion_group |
✓ |
character |
religion (group) |
Checks if character secretly follows a religion in the given religion group |
|
Religion |
||||||||||||||||||
settlement_age |
X |
holding |
int |
Checks age of a holding. If pre-built in province history, a holding is considered built in 1.1.1) |
|
Religion |
||||||||||||||||||
shares_any_bloodline_with |
✓ |
character |
character |
Returns true is both characters have at least one bloodline in common |
Bloodlines |
|||||||||||||||||||
shares_realm_border_with |
✓ |
character |
character |
(2.8) Checks if any province in your realm (everything under your titles) borders any province in their realm. |
Realm |
|||||||||||||||||||
sibling |
✓ |
character |
character |
Family |
||||||||||||||||||||
society_can_rank_down |
X |
character |
bool |
Checks if the character can rank down within their society |
|
Societies |
||||||||||||||||||
society_can_rank_up |
✓ |
character |
bool |
Checks if the character can rank up within their society |
|
Societies |
||||||||||||||||||
society_currency |
✓ |
character |
society |
Checks if character has the given number of society points. Can add a scaled_by_influence parameter to scale by society influence, going from a 70% reduction when the society is at 100% influence and going linearly to a 0% reduction at 0% influence |
|
Societies |
||||||||||||||||||
society_has_active_progress |
✓ |
society |
bool |
Checks if the society currently has an ongoing progress counter. |
|
Societies |
||||||||||||||||||
society_has_members |
✓ |
society |
bool |
Checks if the society has any members. |
|
Societies |
||||||||||||||||||
society_influence |
✓ |
society/character/any |
int/clause |
Checks if a given society's influence compares to the given number. If no society name is given, it will use either the society in the current scope, or the society of the character in the current scope. If no society name is given, and the current scope is neither a society nor a character, it will always return false. |
|
Societies |
||||||||||||||||||
society_is_active |
X |
society |
bool |
Checks if the society's active trigger is true. |
|
Societies |
||||||||||||||||||
society_is_criminal |
✓ |
character |
bool |
Checks if character's society is criminal or not. |
|
Societies |
||||||||||||||||||
society_is_devil_worshiper |
✓ |
character |
bool |
Checks if character's society is a devil worshiping society or not. |
|
Societies |
||||||||||||||||||
society_member_of |
✓ |
character |
society |
Checks if character belongs to the given society |
|
Societies |
||||||||||||||||||
society_progress |
✓ |
society |
float |
Checks the society's current progress. |
|
Societies |
||||||||||||||||||
society_rank |
✓ |
character/int/clause |
society |
Checks if character's rank compares correctly to the value or character given. Can use clause to additionally check if character belongs to named society. |
|
Societies |
||||||||||||||||||
start_date |
✓ |
any |
date |
Check the initial start date of current game. |
|
Control |
||||||||||||||||||
stewardship |
✓ |
character |
int |
A character's Stewardship attribute. For state value, see
|
Characters |
|||||||||||||||||||
stored_token_trigger |
✓ |
character |
Casus Belli |
The selected CB, in context of voting on war declaration.
Available in |
Council voting |
|||||||||||||||||||
supply_limit |
X |
province |
clause |
Compares the supply in the province for a given character and their leader against a value. The leader defaults to the given character unless specified. |
|
Wars |
||||||||||||||||||
supported_checksum |
X |
any |
bool |
Checks to see if current checksum matches at least one supported
checksum in the .mod files of any active mods (defined by
|
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 |
Check whether the current holding or province has at least this level of technology in a particular tech category. |
|
Provinces |
||||||||||||||||||
technology_can_spread |
✓ |
province |
bool |
Check whether technology can spread in the province. |
|
Province |
||||||||||||||||||
temporary |
✓ |
title |
bool |
Check if title is temporary one (revolt, claimant adventurer, ...) |
Titles |
|||||||||||||||||||
terrain |
✓ |
province |
terrain |
Values: forest, hills, mountain, plains, farmlands, steppe, desert, jungle, arctic |
Provinces |
|||||||||||||||||||
their_clan_opinion |
X |
character/clan title |
clause |
Alias for |
|
Opinion |
||||||||||||||||||
their_opinion |
✓ |
character |
clause |
Alias for |
|
Opinion |
||||||||||||||||||
tier |
✓ |
character/title/offmap |
string |
Checks if the character's tier is exactly equivalent to the specified tier. Does not permit the use of 2.8+ comparison operators! - Values: BARON, COUNT, DUKE, KING, EMPEROR |
Tier |
|||||||||||||||||||
title |
✓ |
character/title |
title/province |
|
Titles |
|||||||||||||||||||
total_claims |
✓ |
character |
clause |
|
Claims |
|||||||||||||||||||
total_manpower |
X |
character |
int |
Checks total manpower of nomad ruler |
|
Character |
||||||||||||||||||
total_years_played |
✓ |
Any |
int |
Number of years since beginning of current game |
|
Control |
||||||||||||||||||
trade_post_has_building |
✓ |
province |
building |
Checks if a trade post has the specified building. |
|
Buildings |
||||||||||||||||||
trade_post_has_any_building |
X |
province |
building |
Checks if a trade post has at least 1 building. |
Buildings |
|||||||||||||||||||
trade_route |
✓ |
province |
trade route/province |
Checks if a province is on the specified trade route, or if two provinces share a trade route |
|
Provinces |
||||||||||||||||||
trade_route_control |
✓ |
character |
clause |
(2.8) Checks the amount of control of the scoped character (others?) over the specified trade route's wealth, provinces, trade posts, or trade post locations.
|
|
Provinces |
||||||||||||||||||
trait |
✓ |
character |
string |
Checks if the character has this trait |
|
Traits |
||||||||||||||||||
treasury |
✓ |
character |
double |
Alias for |
|
Money |
||||||||||||||||||
true_religion |
✓ |
character |
character/province/title/society |
If the character has a secret religion, checks if character secretly follows the given religion, otherwise checks if the character publicly follows the given religion |
|
Religion |
||||||||||||||||||
true_religion_group |
✓ |
character |
Anything with a religion, religion group |
If the character has a secret religion, checks if character secretly follows a religion in the given religion group, otherwise checks if the character publicly follows a religion in the given religion group |
|
Religion |
||||||||||||||||||
troops |
✓ |
siege |
clause |
|
Wars |
|||||||||||||||||||
units_in_province |
X |
Province |
int |
Checks the number of armies/units in a province |
|
Units |
||||||||||||||||||
unit_is_in_combat |
X |
unit |
bool |
Checks if the unit is in combat. |
Units |
|||||||||||||||||||
unused_manpower |
✓ |
character |
int |
|
Clans |
|||||||||||||||||||
uses_decadence |
✓ |
character |
bool |
Character has decadence mechanic via religion/government. |
|
Characters |
||||||||||||||||||
uses_new_crusade |
✓ |
character |
bool |
Checks if character's religion uses new-style Crusades as set in religion definition |
|
Characters |
||||||||||||||||||
using_cb |
✓ |
war |
casusBelli |
|
Wars |
|||||||||||||||||||
vassal_of |
✓ |
character |
character |
Check if the scoped character is a direct vassal of the right hand side character. |
|
Vassalage |
||||||||||||||||||
war |
✓ |
character |
bool |
Checks if the character is in war |
Wars |
|||||||||||||||||||
war_participation |
✓ |
war |
double |
|
Wars |
|||||||||||||||||||
war_score |
✓ |
war |
double |
|
Wars |
|||||||||||||||||||
war_title |
✓ |
war |
title/province |
|
Wars |
|||||||||||||||||||
war_with |
✓ |
character |
character/title |
Returns true if people are hostile due to raiding or if their armies are hostile because of a personal, liege or third party war.[3] |
|
Wars |
||||||||||||||||||
was_conceived_a_bastard |
✓ |
character |
bool |
|
Family |
|||||||||||||||||||
wealth |
✓ |
character |
int |
The minimum amount of gold this character should have |
Money |
|||||||||||||||||||
will_liege_enforce_peace |
✓ |
character |
bool |
See also |
|
Realm |
||||||||||||||||||
wonder |
X |
wonder |
scope |
Alias of |
|
Wonders |
||||||||||||||||||
wonder_age |
✓ |
wonder |
int |
Checks that the wonder is at least the given number years old. |
|
Wonders |
||||||||||||||||||
wonder_stage |
✓ |
wonder |
int |
Checks which tier the wonder progress is at (not counting current construction, ie building the first tier puts your wonder at tier 0 (zero)) |
|
Wonders |
||||||||||||||||||
wonder_stage_age |
X |
wonder |
int |
Checks that the wonder has been at the current tier/stage at least the given number of years. |
|
Wonders |
||||||||||||||||||
wonder_upgrade |
✓ |
wonder_upgrade |
scope |
Checks exact ID of wonder upgrade |
|
Wonders |
||||||||||||||||||
wonder_upgrade_age |
✓ |
upgrade |
int |
Checks that the upgrade is at least the given number years old. |
|
Wonders |
||||||||||||||||||
would_be_heir_under_law |
✓ |
title |
clause |
|
Government |
|||||||||||||||||||
year |
✓ |
any |
int |
Returns the current year. |
Control |
|||||||||||||||||||
year_of_birth |
X |
character |
int |
Checks if the character was born in this year or later |
|
Characters |
||||||||||||||||||
yearly_income |
✓ |
character/title (holding) |
double |
|
Money |
