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

Scripted trigger · All Under Heaven files

tgp_can_be_a_minister_trigger

tgp_can_be_a_minister_trigger = { COURT_OWNER = … }

game/common/scripted_triggers/10_tgp_triggers.txt, line 189 (45 lines). Parameters: $COURT_OWNER$.

tgp_can_be_a_minister_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 189 of its file. A call passes 1 parameter: COURT_OWNER. The game's script calls it in 9 places, among them fill_the_ministry_effect (scripted effect), Chancellor (council positions) and Court Chaplain (council positions). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_triggers.txt.

What it checks

  • can_be_councillor_basics_trigger = yes
  • One of these

    • Is not a ruler
    • or

      Government is Celestial
  • One of these

    • Has “can be councillor override” (a variable the game's script sets)
    • or

      All of these

      • is_female = yes
      • $COURT_OWNER$ = { … }
    • or

      All of these

      • is_male = yes
      • $COURT_OWNER$ = { … }
  • If

    • Is played by a person
    • $COURT_OWNER$ = { is_ai = yes }
    • NOT = { is_councillor_of = $COURT_OWNER$ }

    Then

    • One of these

      • Merit Rank at least 7
      • or

        has_relation_friend = $COURT_OWNER$
      • or

        has_relation_disciple = $COURT_OWNER$
      • or

        has_relation_elder = $COURT_OWNER$

• 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 (45 lines of game script)
tgp_can_be_a_minister_trigger = {
	can_be_councillor_basics_trigger = yes
	# Has to be celestial or a non-ruler
	OR = {
		is_ruler = no
		government_has_flag = government_is_celestial
	}
	# Gender is based on laws of the liege
	OR = {
		has_variable = can_be_councillor_override
		AND = {
			is_female = yes
			$COURT_OWNER$ = {
				NOR = {
					has_realm_law = male_only_law
					has_realm_law = male_preference_law
				}
			}
		}
		AND = {
			is_male = yes
			$COURT_OWNER$ = {
				NOR = {
					has_realm_law = female_only_law
					has_realm_law = female_preference_law
				}
			}
		}
	}
	# Players are only allowed if they have enough merit or is a councillor already, unless they are friends or disciples/elders
	# We do this to prevent the AI from "randomly" requesting the player to be on their council
	trigger_if = {
		limit = {
			is_ai = no
			$COURT_OWNER$ = { is_ai = yes }
			NOT = { is_councillor_of = $COURT_OWNER$ }
		}
		OR = {
			merit_level >= merit_level_expected_empire_value
			has_relation_friend = $COURT_OWNER$
			has_relation_disciple = $COURT_OWNER$
			has_relation_elder = $COURT_OWNER$
		}
	}
}

As written in game/common/scripted_triggers/10_tgp_triggers.txt.

Where it is used

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

Scripted effects (1)

Council positions (8)

  • Chancellor
  • Court Chaplain
  • Marshal
  • Minister of Justice
  • Minister of Personnel
  • Minister of Works
2 more
  • Spymaster
  • Steward

Source: game/common/scripted_triggers/10_tgp_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?