Scripted trigger
get_characters_of_major_interest_trigger
get_characters_of_major_interest_trigger = { LISTNAME = … }game/common/scripted_triggers/00_relation_triggers.txt, line 797 (65 lines). Parameters: $LISTNAME$.
get_characters_of_major_interest_trigger is a scripted trigger in Crusader Kings III, written at line 797 of its file. A call passes 1 parameter: LISTNAME. The game's script calls it in 8 places, among them …: Rumor and Speculation (event councillor_spouse_intrigue.1002), A Battle of Ideas (event diplomacy_majesty.4030) and A Heavy Crown (event learning_medicine.2030). Patch 1.20.1.2, from game/common/scripted_triggers/00_relation_triggers.txt.
The comment above it in the file
Makes a list of every character of major interest Parameters: CHARACTER - the character who the list will be for LISTNAME - the name of the list
What it checks
If
major_interest_player_heir_trigger = { LISTNAME = $LISTNAME$ }
Then
- Their heir:
add_to_temporary_list = $LISTNAME$
If
major_interest_liege_trigger = { LISTNAME = $LISTNAME$ }
Then
- Their liege:
add_to_temporary_list = $LISTNAME$
If
major_interest_realm_priest_trigger = { LISTNAME = $LISTNAME$ }
Then
cp:councillor_court_chaplain:add_to_temporary_list = $LISTNAME$
If
major_interest_primary_spouse_trigger = { LISTNAME = $LISTNAME$ }
Then
- Their spouse:
add_to_temporary_list = $LISTNAME$
- Every normal councillor:
add_to_temporary_list = $LISTNAME$
- Every powerful vassal:
add_to_temporary_list = $LISTNAME$
- If played by a person:
If
a check the game hides
Then
- Their dynasty › Every dynasty member:
major_interest_potential_heirs_trigger = { LISTNAME = $LISTNAME$ CHARACTER = scope:major_root }add_to_temporary_list = $LISTNAME$
- Their dynasty › Every dynasty member:
- Every ally:
add_to_temporary_list = $LISTNAME$
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (65 lines of game script)
get_characters_of_major_interest_trigger = {
save_temporary_scope_as = major_root
# 1 - Player heir
trigger_if = {
limit = {
major_interest_player_heir_trigger = { LISTNAME = $LISTNAME$ }
}
player_heir = { add_to_temporary_list = $LISTNAME$ }
}
# 2 - Liege
trigger_if = {
limit = {
major_interest_liege_trigger = { LISTNAME = $LISTNAME$ }
}
liege = { add_to_temporary_list = $LISTNAME$ }
}
# 3 - Realm Priest
trigger_if = {
limit = {
major_interest_realm_priest_trigger = { LISTNAME = $LISTNAME$ }
}
cp:councillor_court_chaplain = { add_to_temporary_list = $LISTNAME$ }
}
# 4 - Primary Spouse
trigger_if = {
limit = {
major_interest_primary_spouse_trigger = { LISTNAME = $LISTNAME$ }
}
primary_spouse = { add_to_temporary_list = $LISTNAME$ }
}
# 5 - Spymaster & # 11 - Other councillors
any_normal_councillor = {
NOT = { is_in_list = $LISTNAME$ }
count = all
add_to_temporary_list = $LISTNAME$
}
# 6 - Powerful vassals
any_powerful_vassal = {
NOT = { is_in_list = $LISTNAME$ }
count = all
add_to_temporary_list = $LISTNAME$
}
# 7 - Religious head (Excluded because they're highly context-specific)
# 8 - Potential heirs (Player only)
trigger_if = {
limit = { is_ai = no }
trigger_if = {
limit = { exists = dynasty }
dynasty = {
any_dynasty_member = {
major_interest_potential_heirs_trigger = { LISTNAME = $LISTNAME$ CHARACTER = scope:major_root }
count = all
add_to_temporary_list = $LISTNAME$
}
}
}
# 9 - Allies (Player only, Enemies are only relevant for content about wars)
any_ally = {
NOT = { is_in_list = $LISTNAME$ }
count = all
add_to_temporary_list = $LISTNAME$
}
}
# 10 - Neighboring rulers (not included in this list, hard to gauge relevance)
}As written in game/common/scripted_triggers/00_relation_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls get_characters_of_major_interest_trigger.
Events (7)
- …: Rumor and Speculation
councillor_spouse_intrigue.1002 - A Battle of Ideas
diplomacy_majesty.4030 - A Heavy Crown
learning_medicine.2030 - A Tedious Disagreement
diplomacy_majesty_special.1010 - Feast of Intentions
stress_trait_ongoing.5001 - Kindred Spirits
diplomacy_majesty.0016
1 more
- The Power of Words
diplomacy_majesty.0004
Scripted triggers (1)
Source: game/common/scripted_triggers/00_relation_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.