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

Scripted trigger

any_court_position_available_trigger

any_court_position_available_trigger = { CANDIDATE = … }

game/common/scripted_triggers/00_court_position_triggers.txt, line 2 (85 lines). Parameters: $CANDIDATE$.

any_court_position_available_trigger is a scripted trigger in Crusader Kings III, written at line 2 of its file. A call passes 1 parameter: CANDIDATE. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_court_position_triggers.txt.

The comment above it in the file

Grants a random unfilled court position based on skills and traits using CANDIDATE - ROOT is ruler

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 (85 lines of game script)
any_court_position_available_trigger = {
	OR = {
		NOT = { employs_court_position = royal_architect_court_position }
		NOT = { employs_court_position = seneschal_court_position }
		NOT = { employs_court_position = court_tutor_court_position }
		NOT = { employs_court_position = court_guru_court_position }
		NOT = { employs_court_position = high_almoner_court_position }
		NOT = { employs_court_position = court_physician_court_position }
		NOT = { employs_court_position = antiquarian_court_position }
		NOT = { employs_court_position = master_of_horse_court_position }
		AND = {
			$CANDIDATE$ = {
				can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = ROOT }
			}
			NOT = { employs_court_position = bodyguard_court_position }
		}
		AND = {
			$CANDIDATE$ = {
				can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = ROOT }
			}
			NOT = { employs_court_position = champion_court_position }
		}
		NOT = { employs_court_position = master_of_hunt_court_position }
		NOT = { employs_court_position = court_poet_court_position }
		NOT = { employs_court_position = court_musician_court_position }
		NOT = { employs_court_position = cupbearer_court_position }
		AND = {
			is_female = yes
			$CANDIDATE$ = { is_female = yes }
			NOT = { employs_court_position = lady_in_waiting_court_position }
		}
		AND = {
			culture = { has_cultural_parameter = can_appoint_chief_eunuch }
			$CANDIDATE$ = { is_eunuch_trigger = yes }
			NOT = { employs_court_position = chief_eunuch_court_position }
		}
		AND = {
			culture = { has_cultural_parameter = can_appoint_court_gardener }
			NOT = { employs_court_position = court_gardener_court_position }
		}
		AND = {
			$CANDIDATE$ = {
				can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = ROOT }
			}
			NOT = { employs_court_position = akolouthos_court_position }
		}
		AND = {
			government_has_flag = government_is_nomadic
			OR = {
				has_religion = religion:tengrism_religion
				culture = { has_cultural_pillar = heritage_mongolic }
				culture = { has_cultural_pillar = heritage_turkic }
			}
			NOT = { employs_court_position = court_astrologer_court_position }
		}
		AND = {
			government_has_flag = government_is_nomadic
			NOT = { employs_court_position = boyan_court_position }
		}
		AND = {
			has_trait = military_engineer
			NOT = { employs_court_position = siege_engineer_court_position }
		}
		AND = {
			government_has_flag = government_is_nomadic
			NOT = { employs_court_position = yurtchi_court_position }
		}
		AND = {
			government_has_flag = government_is_nomadic
			NOT = { employs_court_position = cherbi_court_position }
		}
		AND = {
			government_has_flag = government_is_nomadic
			NOT = { employs_court_position = yeke_jarquchi_court_position }
		}
		AND = {
			NOT = { root.culture = $CANDIDATE$.culture }
			NOT = { employs_court_position = foreign_emissary_court_position }
		}
		AND = {
			government_has_flag = government_is_nomadic
			NOT = { employs_court_position = keeper_of_the_horses_court_position }
		}
	}
}

As written in game/common/scripted_triggers/00_court_position_triggers.txt.

Where it is used

No file of common/, events/ or history/ calls it.

Source: game/common/scripted_triggers/00_court_position_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?