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

Scripted trigger

can_be_court_chaplain_trigger

can_be_court_chaplain_trigger = { COURT_OWNER = … }

game/common/scripted_triggers/00_councillor_triggers.txt, line 131 (46 lines). Parameters: $COURT_OWNER$.

can_be_court_chaplain_trigger is a scripted trigger in Crusader Kings III, written at line 131 of its file. A call passes 1 parameter: COURT_OWNER. The game's script calls it in 16 places, among them Ask for Council Position (interaction), Create Clerical Title (interaction) and Demand Council Position (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_councillor_triggers.txt.

What it checks

  • can_be_councillor_basics_trigger = yes
  • $COURT_OWNER$ ?= { … }
  • None of these

    • has_council_position = councillor_spouse
    • All of these

      • this = liege.diarch
      • Their liege:
        • has_diarchy_active_parameter = diarchy_is_vizierate
  • $COURT_OWNER$.rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
  • faith = $COURT_OWNER$.faith
  • Their rite:
    • rite_has_allowed_gender_for_clergy = scope:court_chaplain_check
  • If

    Then

    • One of these

      • Is not a ruler
      • or

        Government is a Theocratic-type Government
  • If

    a check the game hides

    Then

    • Escaped imprisonment from is not $COURT OWNER$
  • If

    • $COURT_OWNER$ ?= { … }

    Then

  • If

    • Their rite: The rite does not have Members of the Clergy are allowed to Marry

    Then

    • Is not married

• 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 (46 lines of game script)
can_be_court_chaplain_trigger = {
	save_temporary_scope_as = court_chaplain_check
	can_be_councillor_basics_trigger = yes
	$COURT_OWNER$ ?= {
		NOT = { government_has_flag = government_is_nomadic }
	}
	NOR = {
		has_council_position = councillor_spouse
		AND = {
			this = liege.diarch
			liege = { has_diarchy_active_parameter = diarchy_is_vizierate }
		}
	}
	$COURT_OWNER$.rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
	faith = $COURT_OWNER$.faith
	rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
	trigger_if = {
		limit = {
			rite = { rite_has_doctrine = doctrine_theocracy_temporal }
		}
		OR = {
			is_ruler = no
			government_has_flag = government_is_theocracy
		}
	}
	trigger_if = {
		limit = {
			exists = var:escaped_imprisonment_from
		}
		NOT = { var:escaped_imprisonment_from = $COURT_OWNER$ }
	}
	trigger_if = { # An excommunicated ruler tolerate excommunicated bishops
		limit = {
			$COURT_OWNER$ ?= { NOT = { has_trait = excommunicated } }
		}
		NOT = { has_trait = excommunicated }
	}
	trigger_if = { # Married characters are excluded if the doctrine is not there
		limit = {
			rite = {
				NOT = { rite_has_parameter = clergy_can_marry }
			}
		}
		is_married = no
	}
}

As written in game/common/scripted_triggers/00_councillor_triggers.txt.

Where it is used

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

Events (3)

Scripted triggers inside an event file (2)

  • lover_1006_lover_council_position_trigger
  • pam_sf_bought_priest_candidate_valid_trigger

Council positions (1)

  • Court Chaplain

Source: game/common/scripted_triggers/00_councillor_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?