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

Scripted effect

decide_court_position_to_give_effect

decide_court_position_to_give_effect = { CANDIDATE = … EMPLOYER = … }

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

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

The comment above it in the file

Giving out generic court positions

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)
decide_court_position_to_give_effect = {
	$EMPLOYER$ = {
		if = {
			limit = { exists = $CANDIDATE$ }
			if = {
				limit = {
					$CANDIDATE$ = {
						OR = {
							has_trait = education_learning
							learning >= high_skill_rating
						}
					}
				}
				random_list = {
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = court_physician_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = physician_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = court_tutor_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = tutor_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = court_guru_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = tutor_flag } # reusing same flag as tutor for simplicity later on
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = high_almoner_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = almoner_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = antiquarian_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = antiquarian_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = chief_qadi_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = qadi_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = fire_dragon_engineer_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = fire_dragon_engineer_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = court_brahmin_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = court_brahmin_flag }
					}
				}
			}
			else_if = {
				limit = {
					$CANDIDATE$ = {
						OR = {
							has_trait = education_intrigue
							intrigue >= high_skill_rating
						}
					}
				}
				random_list = {
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = food_taster_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = taster_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$
								COURT_POS = executioner_court_position
							}
						}
						$CANDIDATE$ = { add_character_flag = executioner_flag }
					}
					10 = {
						trigger = {
							can_appoint_char_to_court_position = {
								CHAR = $CANDIDATE$ 

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

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

Where it is used

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

Events (2)

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?