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

Scripted effect

assign_appropriate_court_position_effect

assign_appropriate_court_position_effect = { CANDIDATE = … }

game/common/scripted_effects/00_court_position_effects.txt, line 2717 (262 lines). Parameters: $CANDIDATE$.

assign_appropriate_court_position_effect is a scripted effect in Crusader Kings III, written at line 2717 of its file. A call passes 1 parameter: CANDIDATE. The game's script calls it in 1 place, among them Have My Best (event prelude_events.0080). Patch 1.20.1.2, from game/common/scripted_effects/00_court_position_effects.txt.

The comment above it in the file

This effect does NOT care if you are already employing someone in that position

What it does

  • If

    • $CANDIDATE$ = { … }

    Then

    • 1 of 5 things will happen:
      • 20%: Nothing else happens
      • 20%: Nothing else happens
      • 20%: Nothing else happens
      • 20%: Nothing else happens
      • 20%: Nothing else happens

    Else if

    • $CANDIDATE$ = { … }

    Then

    • 1 of 3 things will happen:
      • 33%: Nothing else happens
      • 33%: Nothing else happens
      • 33%: Nothing else happens

    Else if

    • $CANDIDATE$ = { … }

    Then

    • 1 of 9 things will happen:
      • 10%: Nothing else happens
      • 10%: Nothing else happens
      • 10%: Nothing else happens
      • 20%: Nothing else happens
      • 10%: Nothing else happens
      • 10%: Nothing else happens
      • 10%: Nothing else happens
      • 10%: Nothing else happens
      • 10%: Nothing else happens

    Else if

    • $CANDIDATE$ = { … }

    Then

    • 1 of 7 things will happen:
      • 14%: Nothing else happens
      • 14%: Nothing else happens
      • 14%: Nothing else happens
      • 14%: Nothing else happens
      • 14%: Nothing else happens
      • 14%: Nothing else happens
      • 14%: Nothing else happens

    Else if

    • $CANDIDATE$ = { … }

    Then

    • 1 of 9 things will happen:
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens
      • 11%: Nothing else happens

• 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 (120 lines of game script)
assign_appropriate_court_position_effect = {
	if = {
		limit = {
			$CANDIDATE$ = {
				OR = {
					has_trait = education_learning
					learning >= high_skill_rating
				}
			}
		}
		random_list = {
			10 = {
				trigger = {
					can_employ_court_position_type = court_physician_court_position
				}
				$CANDIDATE$ = { add_character_flag = physician_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = high_almoner_court_position
				}
				$CANDIDATE$ = { add_character_flag = almoner_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = antiquarian_court_position
				}
				$CANDIDATE$ = { add_character_flag = antiquarian_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = chief_qadi_court_position
				}
				$CANDIDATE$ = { add_character_flag = qadi_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = siege_engineer_court_position
				}
				$CANDIDATE$ = { add_character_flag = siege_engineer_flag }
			}
		}
	}
	else_if = {
		limit = {
			$CANDIDATE$ = {
				OR = {
					has_trait = education_intrigue
					intrigue >= high_skill_rating
				}
			}
		}
		random_list = {
			10 = {
				trigger = {
					can_employ_court_position_type = food_taster_court_position
				}
				$CANDIDATE$ = { add_character_flag = taster_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = executioner_court_position
				}
				$CANDIDATE$ = { add_character_flag = executioner_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = court_astrologer_court_position
				}
				$CANDIDATE$ = { add_character_flag = court_astrologer_flag }
			}
		}
	}
	else_if = {
		limit = {
			$CANDIDATE$ = {
				OR = {
					has_trait = education_diplomacy
					diplomacy >= high_skill_rating
				}
			}
		}
		random_list = {
			10 = {
				trigger = {
					can_employ_court_position_type = cupbearer_court_position
				}
				$CANDIDATE$ = { add_character_flag = cupbearer_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = lady_in_waiting_court_position
					$CANDIDATE$ = { is_female = yes }
				}
				$CANDIDATE$ = { add_character_flag = lady_in_waiting_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = court_tutor_court_position
				}
				$CANDIDATE$ = { add_character_flag = tutor_flag }
			}
			20 = {
				trigger = {
					can_employ_court_position_type = court_jester_court_position
				}
				$CANDIDATE$ = { add_character_flag = jester_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = court_poet_court_position
				}
				$CANDIDATE$ = { add_character_flag = poet_flag }
			}
			10 = {
				trigger = {
					can_employ_court_position_type = court_musician_court_position
				}
				$CANDIDATE$ = { add_character_flag = musician_flag }
			}

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

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

Where it is used

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

Events (1)

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?