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

Scripted trigger · Khans of the Steppe files

mpo_valid_heir_friend_trigger

mpo_valid_heir_friend_trigger = { CHARACTER = … }

game/common/scripted_triggers/mpo_scripted_triggers.txt, line 185 (35 lines). Parameters: $CHARACTER$.

mpo_valid_heir_friend_trigger is a scripted trigger in Crusader Kings III, in the Khans of the Steppe files, written at line 185 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them Introduce Heir (decision) and Introduce Heir (event mpo_decisions_events.0020). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/mpo_scripted_triggers.txt.

What it checks

• 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 (35 lines of game script)
mpo_valid_heir_friend_trigger = {
	age >= 12
	opinion = {
		target = $CHARACTER$
		value >= 50
	}
	NOR = {
		is_at_war_with = $CHARACTER$
		this = $CHARACTER$
		this = $CHARACTER$.player_heir
	}
	NOT = {
		has_relation_blood_brother = $CHARACTER$.player_heir
	}
	custom_tooltip = {
		text = not_friends_with_player_heir_tt
		NOR = {
			has_relation_friend = $CHARACTER$.player_heir
			has_relation_best_friend = $CHARACTER$.player_heir
		}
	}
	custom_tooltip = {
		text = not_bad_relation_with_player_heir_tt
		NOT = {
			has_any_bad_relationship_with_character_trigger = { CHARACTER = $CHARACTER$.player_heir }
		}
	}
	is_imprisoned = no
	is_incapable = no
	OR = {
		government_has_flag = government_is_nomadic
		has_trait = nomadic_philosophy
	}
	highest_held_title_tier >= tier_county
}

As written in game/common/scripted_triggers/mpo_scripted_triggers.txt.

Where it is used

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

Decisions (1)

Events (1)

Source: game/common/scripted_triggers/mpo_scripted_triggers.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?