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

Scripted effect

distribute_determined_court_position_effect

distribute_determined_court_position_effect = { CANDIDATE = … EMPLOYER = … }

game/common/scripted_effects/00_court_position_effects.txt, line 2980 (283 lines). Parameters: $CANDIDATE$, $EMPLOYER$.

distribute_determined_court_position_effect is a scripted effect in Crusader Kings III, written at line 2980 of its file. A call passes 2 parameters: CANDIDATE and EMPLOYER. The game's script calls it in 4 places, among them Have My Best (event prelude_events.0080), Local Justice (event tour_travel.9020) and Scraping the Barrel (event minor_decisions.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_court_position_effects.txt.

What it does

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

The script as written (120 lines of game script)
distribute_determined_court_position_effect = {
	$EMPLOYER$ = {
		if = {
			limit = { $CANDIDATE$ = { has_character_flag = physician_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_physician_court_position
			}
		}
		else_if = {
			limit = { 
				$CANDIDATE$ = { has_character_flag = tutor_flag } 
				NOT = { government_has_flag = government_is_mandala }
			}
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_tutor_court_position
			}
		}
		else_if = {
			limit = { 
				$CANDIDATE$ = { has_character_flag = tutor_flag } 
				government_has_flag = government_is_mandala
			}
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_guru_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = almoner_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = high_almoner_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = antiquarian_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = antiquarian_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = qadi_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = chief_qadi_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = taster_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = food_taster_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = executioner_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = executioner_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = cupbearer_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = cupbearer_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = lady_in_waiting_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = lady_in_waiting_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = jester_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_jester_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = poet_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_poet_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = musician_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_musician_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = gardener_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = court_gardener_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = architect_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = royal_architect_court_position
			}
		}
		else_if = {
			limit = { $CANDIDATE$ = { has_character_flag = swan_flag } }
			appoint_court_position = {
				recipient = $CANDIDATE$
				court_position = keeper_of_swans_court_position
			}
		}

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

The first 120 of its 283 lines; the rest is in game/common/scripted_effects/00_court_position_effects.txt from line 2980.

Where it is used

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

Events (3)

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