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

Scripted effect

imprison_court_chaplain_consequences_effect

imprison_court_chaplain_consequences_effect = yes

game/common/scripted_effects/00_prison_effects.txt, line 2583 (36 lines). No parameters.

imprison_court_chaplain_consequences_effect is a scripted effect in Crusader Kings III, written at line 2583 of its file. It takes no parameters: imprison_court_chaplain_consequences_effect = yes. The game's script calls it in 3 places, among them Imprison (interaction), Coveted Claim (event bp1_yearly.8000) and The Allure of Al-Khul (event fp3_h_yearly.0001). Patch 1.20.1.2, from game/common/scripted_effects/00_prison_effects.txt.

The comment above it in the file

Are you unjustly trying to imprison your bishop? tut-tut

What it does

  • If

    • scope:imprisonment_performer:
      • NOT = { has_imprisonment_reason = scope:recipient }
    • scope:recipient:
      • has_council_position = councillor_court_chaplain

    Then

    • If

      Then

      • scope:imprisonment_performer:
        • fire_councillor = scope:recipient
    • scope:imprisonment_performer: Level of Devotion -1
    • If

      a check the game hides

      Then

      • scope:imprisonment_performer.faith.religious_head: Opinion: Respect (-30)

• 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 (36 lines of game script)
imprison_court_chaplain_consequences_effect = {
	if = {
		limit = { exists = scope:puppet_or_actor }
		scope:puppet_or_actor = { save_temporary_scope_as = imprisonment_performer }
	}
	else = {
		scope:actor = { save_temporary_scope_as = imprisonment_performer }
	}
	if = {
		limit = {
			scope:imprisonment_performer = { NOT = { has_imprisonment_reason = scope:recipient } }
			scope:recipient = { has_council_position = councillor_court_chaplain }
		}
		if = { #Can I fire them?
			limit = {
				scope:recipient = { can_be_fired_from_council_trigger = { COURT_OWNER = scope:imprisonment_performer } }
			}
			scope:imprisonment_performer = { fire_councillor = scope:recipient }
		}
		scope:imprisonment_performer = {
			add_piety_level = -1
		}
		if = {
			limit = {
				exists = scope:imprisonment_performer.faith.religious_head
			}
			scope:imprisonment_performer.faith.religious_head = {
				add_opinion = {
					target = scope:imprisonment_performer
					modifier = respect_opinion
					opinion = -30
				}
			}
		}
	}
}

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

Where it is used

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

Character interactions (1)

Events (2)

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