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
One of these
- Is not employing a Royal Architect
or
Is not employing a Seneschalor
Is not employing a Tutoror
Is not employing a Guruor
Is not employing a High Almoneror
Is not employing a Personal Physicianor
Is not employing a Antiquarianor
Is not employing a Master of the Horseor
All of these
$CANDIDATE$ = { … }- Is not employing a Bodyguard
or
All of these
$CANDIDATE$ = { … }- Is not employing a Personal Champion
or
Is not employing a Master of the Huntor
Is not employing a Court Poetor
Is not employing a Court Musicianor
Is not employing a Cup-Beareror
All of these
is_female = yes$CANDIDATE$ = { is_female = yes }- Is not employing a Lady-in-waiting
or
All of these
- Their culture: The Culture has the Can appoint the Chief Eunuch Court Position Tradition
$CANDIDATE$ = { is_eunuch_trigger = yes }- Is not employing a Chief Eunuch
or
All of these
- Their culture: The Culture has the Can appoint the Court Gardener Court Position Tradition
- Is not employing a Court Gardener
or
All of these
$CANDIDATE$ = { … }- Is not employing a Akolouthos
or
All of these
- Government is Nomadic
One of these
- Their religion is Steppe
or
Their culture: The Culture has the Mongolic Cultural Pillaror
Their culture: The Culture has the Turkic Cultural Pillar
- Is not employing a Stargazer
or
or
All of these
- Has the Trait: Military Engineer
- Is not employing a Siege Engineer
or
or
or
All of these
- Government is Nomadic
- Is not employing a Yeke Jarquchi
or
All of these
NOT = { root.culture = $CANDIDATE$.culture }- Is not employing a Foreign Emissary
or
All of these
- Government is Nomadic
- Is not employing a Keeper of the Horses
• 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.