CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

get_characters_of_major_interest_effect

get_characters_of_major_interest_effect = { LISTNAME = … }

game/common/scripted_effects/00_relation_effects.txt, line 586 (69 lines). Parameters: $LISTNAME$.

get_characters_of_major_interest_effect is a scripted effect in Crusader Kings III, written at line 586 of its file. A call passes 1 parameter: LISTNAME. The game's script calls it in 9 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_effects/00_relation_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (69 lines of game script)
get_characters_of_major_interest_effect = {
	save_temporary_scope_as = major_root
	# 1 - Player heir
	if = {
		limit = {
			major_interest_player_heir_trigger = { LISTNAME = $LISTNAME$ }
		}
		player_heir = { add_to_temporary_list = $LISTNAME$ }
	}
	# 2 - Liege
	if = {
		limit = {
			major_interest_liege_trigger = { LISTNAME = $LISTNAME$ }
		}
		liege = { add_to_temporary_list = $LISTNAME$ }
	}
	# 3 - Realm Priest
	if = {
		limit = {
			major_interest_realm_priest_trigger = { LISTNAME = $LISTNAME$ }
		}
		cp:councillor_court_chaplain = { add_to_temporary_list = $LISTNAME$ }
	}
	# 4 - Primary Spouse
	if = {
		limit = {
			major_interest_primary_spouse_trigger = { LISTNAME = $LISTNAME$ }
		}
		primary_spouse = { add_to_temporary_list = $LISTNAME$ }
	}
	# 5 - Spymaster & # 11 - Other councillors
	every_normal_councillor = {
		limit = {
			NOT = { is_in_list = $LISTNAME$ }
		}
		add_to_temporary_list = $LISTNAME$
	}
	# 6 - Powerful vassals
	every_powerful_vassal = {
		limit = {
			NOT = { is_in_list = $LISTNAME$ }
		}
		add_to_temporary_list = $LISTNAME$
	}
	# 7 - Religious head (Excluded because they're highly context-specific)
	# 8 - Potential heirs (Player only)
	if = {
		limit = { is_ai = no }
		if = {
			limit = { exists = dynasty }
			dynasty = {
				every_dynasty_member = {
					limit = {
						major_interest_potential_heirs_trigger = { LISTNAME = $LISTNAME$ CHARACTER = scope:major_root }
					}
					add_to_temporary_list = $LISTNAME$
				}
			}
		}
	# 9 - Allies (Player only, Enemies are only relevant for content about wars)
		every_ally = {
			limit = {
				NOT = { is_in_list = $LISTNAME$ }
			}
			add_to_temporary_list = $LISTNAME$
		}
	}
	# 10 - Neighboring rulers (not included in this list, hard to gauge relevance)
}

As written in game/common/scripted_effects/00_relation_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls get_characters_of_major_interest_effect.

Events (7)

1 more

Source: game/common/scripted_effects/00_relation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?