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

Interaction · Religious actions

Consecrate Kingdom

from 500Goldfrom 500Treasuryfrom 750PietyvariesPrestigeBy God AloneThe AI weighs it

Create a new Kingdom for the recipient, gaining a Hook in return

What you need

You

To send it

  • Piety level at least 3
  • If

    • NOT = { religious_head_or_challenger ?= scope:puppet_or_actor }
    • The character you target: Is not an Independent Ruler

    Then

  • Does not have the Trait: Excommunicated
  • In some cases (on a condition the game doesn't show) › You:
    • gold >= pam_ecclesiastic_consecrate_kingdom_gold_cost_value
  • In some cases (on a condition the game doesn't show) › You:
    • treasury >= pam_ecclesiastic_consecrate_kingdom_treasury_cost_value
  • In some cases (on a condition the game doesn't show) › You:
    • piety >= pam_ecclesiastic_consecrate_kingdom_piety_cost_value
  • In some cases (on a condition the game doesn't show) › You:
    • prestige >= pam_ecclesiastic_consecrate_kingdom_prestige_cost_value

To see it in the menu

  • Your Government is a Theocratic-type Government
  • Is available (an adult, not imprisoned, not incapable)
  • One of these

    • scope:recipient.religious_head_or_challenger ?= this
    • or

      All of these

      • Highest held Title is at least Duchy Rank
      • Your Government is a Theocratic-type Government
      • NOT = { exists = scope:recipient.religious_head_or_challenger }
      • scope:recipient.rite.head_of_rite ?= this
  • If

    • You: Is played by the AI

    Then

    • The character you target: Piety level at least 2
    • You:
      • None of these

        • One of these

          • One of these

            • Has the target as potential rival
            • or

              Has the target as victim
            • or

              Has the target as bully
          • or

            Has the target as rival

The character you target

To send it

  • Is at not War
  • Their faith is the same as that of puppet or actor
  • Does not have the Trait: Excommunicated
  • … has no landed Duchy Titles
  • … must be independent or under a Liege of at least Emperor-Tier
  • If

    • NOT = { root.religious_head_or_challenger ?= scope:puppet_or_actor }

    Then

    • Is of the same rite as you
  • Also needed: available (not incapable, not imprisoned)

To see it in the menu

  • Their faith is the same as that of puppet or actor
  • Is landed
  • Highest held Title is exactly Duchy Rank
  • Game rule not set to “Off”
  • Is not a member of a Confederation
  • One of these

  • None of these

    • Any held title:
      • Title tier exactly Duchy
      • Their de jure liege:
        • Title tier exactly Kingdom
        • NOT = { exists = holder }
        • is_landless_type_title = no
  • If

    • NOT = { root.religious_head_or_challenger ?= scope:puppet_or_actor }

    Then

    • Is of the same rite as you

Consecrate Kingdom is a religious character interaction in Crusader Kings III. You need: Piety level at least 3 and Does not have the Trait: Excommunicated. The character you target needs: Is available (not incapable, not imprisoned), Is at not War, Their faith is the same as that of puppet or actor and 1 more. The AI weighs it. Reasons the AI weighs include The Peace of God charges the Church with settling such matters (+40), Legation Office Ecclesiastical Estate Building (+5), Legation Office Ecclesiastical Estate Building (+10) and 16 more. It costs Gold (from 500), Treasury (from 500), Piety (from 750), Prestige (varies). It needs By God Alone. Patch 1.20.1.2, from game/common/character_interactions/pam_interactions.txt.

for a guide, post or blog
Quick answers (3)
What are the requirements for Consecrate Kingdom in CK3?
You: Piety level at least 3 and Does not have the Trait: Excommunicated. The character you target: Is available (not incapable, not imprisoned), Is at not War, Their faith is the same as that of puppet or actor and Does not have the Trait: Excommunicated. (patch 1.20.1.2)
How do I get the AI to accept Consecrate Kingdom?
The AI weighs it. Its reasons: The Peace of God charges the Church with settling such matters +40, The recipient's energy, The recipient's greed, Legation Office Ecclesiastical Estate Building +5, Legation Office Ecclesiastical Estate Building +10, Legation Office Ecclesiastical Estate Building +15, Royal Nave Ecclesiastical Estate Building +10, Royal Nave Ecclesiastical Estate Building +20, Royal Nave Ecclesiastical Estate Building +30, The recipient does not want to circumvent … authority, The recipient's zealousness, The recipient is Paranoid -100, The recipient has bad relations with you -100, The recipient already has powerful Claims -25, The recipient is already Primary Heir to a prestigious Title -50, You already have a Strong Hook on the recipient +200, You already have a Hook on the recipient +25, Is fellow Clergy +75, The recipient has good relations with you +100, The recipient recognizes this as manipulation, Is your Puppet +300, Is your Vassal or below +30, Is a member of your House, Is a member of your Dynasty +20, The recipient neighbors hostile heathens +60 and … Opinion of ….
How much does Consecrate Kingdom cost?
Gold (from 500), Treasury (from 500), Piety (from 750), Prestige (varies) (patch 1.20.1.2).

Will they accept?

The AI adds these up and accepts above zero. Reasons in italics are the script's, with no label in the game.

ReasonAmount
Base0
The Peace of God charges the Church with settling such matters
when
  • The target’s rite: The rite has The Clergy settle disputes over land and titles far more readily, charging 25% less Piety, Gold and Prestige
+40
The recipient's energy
when
  • The character you target:
    • One of these

      • Ai energy more than 0
      • or

        Ai energy less than 0
their ai energy × 0.5
The recipient's greed
when
  • The character you target:
    • One of these

      • Ai greed more than 0
      • or

        Ai greed less than 0
their ai greed × 0.5
Legation Office Ecclesiastical Estate Building
when
  • Your domicile:
    • has_domicile_parameter = estate_easier_papal_vote_1
+5
Legation Office Ecclesiastical Estate Building
when
  • Your domicile:
    • has_domicile_parameter = estate_easier_papal_vote_2
+10
Legation Office Ecclesiastical Estate Building
when
  • Your domicile:
    • has_domicile_parameter = estate_easier_papal_vote_3
+15
Royal Nave Ecclesiastical Estate Building
when
  • Your domicile:
    • has_domicile_parameter = estate_consecrate_nave_1
+10
Royal Nave Ecclesiastical Estate Building
when
  • Your domicile:
    • has_domicile_parameter = estate_consecrate_nave_2
+20
Royal Nave Ecclesiastical Estate Building
when
  • Your domicile:
    • has_domicile_parameter = estate_consecrate_nave_3
+30
The recipient does not want to circumvent … authority
when
  • The character you target:
    • Is not an Independent Ruler
    • One of these

      • Opinion of recipient.liege at least 25
      • or

        has_dread_level_towards = { target = scope:recipient.liege level >= 1 }
varies
The recipient's zealousness
when
  • The character you target:
    • ai_zeal != 0
scope:recipient.ai_zeal
The recipient is Paranoid
when
-100
The recipient has bad relations with you
when
  • The character you target:
    • One of these

      • One of these

        • Has you as potential rival
        • or

          Has you as victim
        • or

          Has you as bully
      • or

        Has you as rival
-100
The recipient already has powerful Claims
when
  • The character you target › Any claim: Title tier at least Kingdom
-25
The recipient is already Primary Heir to a prestigious Title
when
  • The character you target › Any heir title:
    • Title tier at least Kingdom
    • place_in_line_of_succession = { target = scope:recipient value = 1 }
-50
You already have a Strong Hook on the recipient
when
+200
You already have a Hook on the recipient
when
+25
Is fellow Clergy
when
  • The character you target: Government is a Theocratic-type Government
+75
The recipient has good relations with you
when
  • The character you target:
    • One of these

      • One of these

        • Has you as potential lover
        • or

          Has you as crush
        • or

          Has you as potential friend
        • or

          Has you as guardian
        • or

          Has you as ward
        • or

          Has you as elder
        • or

          Has you as disciple
      • or

        One of these

        • Has you as lover
        • or

          Has you as friend
+100
The recipient recognizes this as manipulation
when
  • scope:recipient.intrigue > 12
varies
Is your Puppet
when
  • Is a puppet of you
+300
Is your Vassal or below
when
  • The character you target: Is a vassal (or below) of you
+30
Is a member of your House
when
  • The character you target: Is of the same house as you
varies
Is a member of your Dynasty
when
  • The character you target: Is of the same dynasty as you
+20
The recipient neighbors hostile heathens
when
  • The character you target › Any sub realm county › Any neighboring county › Their holder’s top liege:
    • Their faith is not the same as that of puppet or actor
    • Your rite:
      • rite_hostility_level = { target = prev.rite value >= faith_hostile_level }
+60
… Opinion of …varies
Acceptance (ai_accept) (275 lines of game script)
base = 0
modifier = {
	scope:recipient.rite ?= {
		rite_has_parameter = tenet_peace_of_god_clergy_peacemaking
	}
	add = 40
	desc = pam_peace_of_god_clergy_peacemaking_accept_reason
}
modifier = {
	scope:recipient = {
		OR = {
			ai_energy > 0
			ai_energy < 0
		}
	}
	add = {
		value = scope:recipient.ai_energy
		multiply = 0.5
	}
	desc = RECIPIENT_ENERGY_REASON
}
modifier = {
	scope:recipient = {
		OR = {
			ai_greed > 0
			ai_greed < 0
		}
	}
	add = {
		value = scope:recipient.ai_greed
		multiply = 0.5
	}
	desc = RECIPIENT_GREED_REASON
}
modifier = {
	add = ecclesiastical_domicile_acceptance_minor_value_1
	desc = ESTATE_PAPAL_VOTE_REASON
	scope:puppet_or_actor ?= {
		domicile ?= {
			has_domicile_parameter = estate_easier_papal_vote_1
		}
	}
}
modifier = {
	add = ecclesiastical_domicile_acceptance_minor_value_2
	desc = ESTATE_PAPAL_VOTE_REASON
	scope:puppet_or_actor ?= {
		domicile ?= {
			has_domicile_parameter = estate_easier_papal_vote_2
		}
	}
}
modifier = {
	add = ecclesiastical_domicile_acceptance_minor_value_3
	desc = ESTATE_PAPAL_VOTE_REASON
	scope:puppet_or_actor ?= {
		domicile ?= {
			has_domicile_parameter = estate_easier_papal_vote_3
		}
	}
}
modifier = {
	add = ecclesiastical_domicile_acceptance_value_1
	desc = ESTATE_ROYAL_NAVE_REASON
	scope:puppet_or_actor ?= {
		domicile ?= {
			has_domicile_parameter = estate_consecrate_nave_1
		}
	}
}
modifier = {
	add = ecclesiastical_domicile_acceptance_value_2
	desc = ESTATE_ROYAL_NAVE_REASON
	scope:puppet_or_actor ?= {
		domicile ?= {
			has_domicile_parameter = estate_consecrate_nave_2
		}
	}
}
modifier = {
	add = ecclesiastical_domicile_acceptance_value_3
	desc = ESTATE_ROYAL_NAVE_REASON
	scope:puppet_or_actor ?= {
		domicile ?= {
			has_domicile_parameter = estate_consecrate_nave_3
		}
	}
}
modifier = {
	scope:recipient = {
		is_independent_ruler = no
		OR = {
			opinion = {
				target = scope:recipient.liege
				value >= 25
			}
			has_dread_level_towards = {
				target = scope:recipient.liege
				level >= 1
			}
		}
	}
	add = {
		value = -30
		if = {
			limit = {
				scope:recipient = {
					opinion = {
						target = scope:recipient.liege
						value >= 80
					}
				}
			}
			add = -50
		}
		if = {
			limit = {
				scope:recipient = {
					has_dread_level_towards = {
						target = scope:recipient.liege
						level >= 1
					}
				}
			}
			add = -20
		}
		if = {
			limit = {
				scope:recipient = {
					has_dread_level_towards = {
						target = scope:recipient.liege
						level >= 2
					}
				}
			}
			add = -50
		}
	}
	desc = CONCERN_ABOUT_LIEGE_REASON
}
modifier = {
	scope:recipient ?= {
		ai_zeal != 0
	}
	add = scope:recipient.ai_zeal
	desc = RECIPIENT_ZEALOUSNESS_REASON
}
modifier = {
	add = -100
	scope:recipient = {
		has_trait = paranoid
	}
	desc = DEMAND_SUBMISSION_RECIPIENT_IS_PARANOID
}
modifier = {
	add = -100
	scope:recipient = {
		has_any_bad_relationship_with_character_trigger = {
			CHARACTER = scope:puppet_or_actor
		}
	}
	desc = RECIPIENT_BAD_RELATIONS
}
modifier = {
	add = -25
	scope:recipient = {
		any_claim = {
			tier >= tier_kingdom
		}
	}
	desc = RECIPIENT_POWERFUL_CLAIMS
}
modifier = {
	add = -50
	scope:recipient = {
		any_heir_title = {
			tier >= tier_kingdom
			place_in_line_of_succession = {
				target = scope:recipient
				value = 1
			}
		}
	}
	desc = RECIPIENT_POWERFUL_HEIR
}
modifier = {
	add = 200
	scope:puppet_or_actor = {
		has_strong_hook = scope:recipient
	}
	desc = HAS_STRONG_HOOK_RECIPIENT_REASON
}
modifier = {
	add = 25
	scope:puppet_or_actor = {
		NOT = {
			has_strong_hook = scope:recipient
		}
		has_hook = scope:recipient
	}
	desc = HAS_HOOK_RECIPIENT_REASON
}
modifier = {
	add = 75
	scope:recipient = {
		government_has_flag = government_is_theocracy
	}
	desc = IS_THEOCRATIC_REASON
}
modifier = {
	add = 100
	scope:recipient = {
		has_any_good_relationship_with_character_trigger = {
			CHARACTER = scope:puppet_or_actor
		}
	}
	desc = RECIPIENT_GOOD_RELATIONS
}
modifier = {
	add = {
		value = scope:recipient.intrigue
		subtract = 12
		multiply = -10
	}
	scope:recipient.intrigue > 12
	desc = RECIPIENT_RESISTS_HOOK_REASON
}
modifier = {
	add = 300
	puppeteer ?= scope:puppet_or_actor
	desc = IS_YOUR_PUPPET_REASON
}
modifier = {
	add = 30
	scope:recipient = {
		is_vassal_or_below_of = scope:puppet_or_actor
	}
	desc = IS_YOUR_VASSAL_REASON
}
modifier = {
	add = {
		value = 50
		if = {
			limit = {
				scope:recipient.house.house_head = scope:puppet_or_actor
			}
			add = 50
		}
	}
	exists = scope:puppet_or_actor.house
	scope:recipient = {
		house ?= scope:puppet_or_actor.house
	}
	desc = OF_YOUR_HOUSE_REASON
}
modifier = {
	add = 20
	exists = scope:puppet_or_actor.dynasty
	scope:recipient = {
		dynasty ?= scope:puppet_or_actor.dynasty
	}
	desc = OF_YOUR_DYNASTY_REASON
}
modifier = {
	add = 60
	scope:recipient = {
		any_sub_realm_county = {
			any_neighboring_county = {
				holder.top_liege ?= {
					NOT = {
						faith = scope:puppet_or_actor.faith
					}
					scope:puppet_or_actor.rite = {
						rite_host
# … (cut here; the rest is in the file)

As written in game/common/character_interactions/pam_interactions.txt.

What happens

If they accept

  • In some cases (on a condition the game doesn't show) › You:
    • If ecclesiastic consecrate kingdom treasury cost more than 0:
      • remove_treasury = pam_ecclesiastic_consecrate_kingdom_treasury_cost_value
    • If ecclesiastic consecrate kingdom gold cost more than 0:
      • remove_short_term_gold = { value = pam_ecclesiastic_consecrate_kingdom_gold_cost_value }
    • If ecclesiastic consecrate kingdom piety cost more than 0:
      • add_piety = { … }
    • If ecclesiastic consecrate kingdom prestige cost more than 0:
      • add_prestige = { … }
  • The character you target:
    • If played by the AI:
    • Otherwise:
    • If clerical hesitation claim interaction at least 9 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment -20
      • You lose Spiritual Fulfillment because you consider … to be an immoral Ruler
    • Else, if clerical hesitation claim interaction at least 6 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment -10
      • You lose Spiritual Fulfillment because you consider … to be an immoral Ruler
    • Else, if clerical hesitation claim interaction at least 3 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment -5
      • You lose Spiritual Fulfillment because you consider … to be an immoral Ruler
    • Else, if clerical hesitation claim interaction at least 1 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment -3
      • You lose Spiritual Fulfillment because you consider … to be an immoral Ruler
    • Else, if clerical hesitation claim interaction at least -3 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment +1
      • You gain Spiritual Fulfillment because you consider … a righteous Ruler
    • Else, if clerical hesitation claim interaction at least -5 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment +3
      • You gain Spiritual Fulfillment because you consider … a righteous Ruler
    • Else, if clerical hesitation claim interaction at least -8 › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment +5
      • You gain Spiritual Fulfillment because you consider … a righteous Ruler
    • Otherwise › The cleric:
      • If

        a check the game hides

        Then

        • change_spiritual_fulfillment = { … }

        Otherwise

        • Spiritual fulfillment +10
      • You gain Spiritual Fulfillment because you consider … a righteous Ruler
    • If

      a check the game hides

      Then

      • If

        • Does not have a Hook on the religious authority
        • NOT = { scope:king_aspirant.puppet:theological_agent_puppet ?= scope:religious_authority }
        • NOT = { scope:king_aspirant.puppet:external_theological_agent_puppet ?= scope:religious_authority }

        Then

        • The religious authority: Gain a Obligation on the king aspirant

        Otherwise

        • The religious authority: Gain a Obligation on the king aspirant
    • If

      a check the game hides

      Then

    • … … a new Kingdom
    • If

      a check the game hides

      Then

      Otherwise

    • If

      • NOT = { scope:only_sub_realm_duchies ?= yes }

      Then

      • Every in list: … may be added to the De Jure of … new Kingdom (or it will be an exclave within its current Kingdom)
    • If all of these hold:
      • Conditions:
        • top_participant_group:the_christian_church:
          • One of these

            • participant_group_type = christian_clerical_main_power_rulers
            • or

              participant_group_type = christian_regular_main_power_rulers
        • The Christian Church: The current phase counts “A new Kingdom is created by, and is beholden to, a high prelate”
        • None of these

          • The king aspirant: Government is a Theocratic-type Government
      • Then › The Christian Church: Counts toward the situation's next phase: “A new Kingdom is created by, and is beholden to, a high prelate”
    • Else, if all of these hold: … (more in the script below)
    • … (more in the script below)
  • … (more in the script below)

If they refuse

  • If

    • The character you target: Is played by a person

    Then

    • If

      • You: Is played by the AI

      Then

      • You: Opinion: Refusal (-40)
    • Every in list: Opinion: Respected My De Jure Lands (+20)
    • If

      Then

      • The target’s liege: Opinion: Loyalty (+20)

Options when sending

  • Realm & Exclaved Duchies
  • Only Realm Duchies

Events it fires: pam_decision_events.0031, major_decisions.1101, major_decisions.1102, major_decisions.1105, pam_interactions_events.0090

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

Who can use it and sees it (is_available, is_shown) (75 lines of game script)
is_available = has_pam_dlc_trigger = yes
is_shown = scope:puppet_or_actor ?= {
	government_has_flag = government_is_theocracy
	is_available_quick = {
		adult = yes
		alive = yes
		imprisoned = no
		incapable = no
	}
}
exists = scope:puppet_or_actor
scope:puppet_or_actor != scope:recipient
scope:puppet_or_actor ?= {
	OR = {
		scope:recipient.religious_head_or_challenger ?= this
		AND = {
			highest_held_title_tier >= tier_duchy
			government_has_flag = government_is_theocracy
			NOT = {
				exists = scope:recipient.religious_head_or_challenger
			}
			scope:recipient.rite.head_of_rite ?= this
		}
	}
}
scope:recipient = {
	faith ?= scope:puppet_or_actor.faith
	is_landed = yes
	highest_held_title_tier = tier_duchy
	NOT = {
		has_game_rule = off_custom_kingdoms
	}
	is_confederation_member = no
	OR = {
		government_has_flag = government_is_theocracy
		has_legitimacy = yes
	}
	NOT = {
		any_held_title = {
			tier = tier_duchy
			de_jure_liege ?= {
				tier = tier_kingdom
				NOT = {
					exists = holder
				}
				is_landless_type_title = no
			}
		}
	}
	trigger_if = {
		limit = {
			NOT = {
				scope:puppet_or_actor.religious_head_or_challenger ?= scope:puppet_or_actor
			}
		}
		rite = scope:puppet_or_actor.rite
	}
}
trigger_if = {
	limit = {
		scope:actor = {
			is_ai = yes
		}
	}
	scope:recipient = {
		piety_level >= 2
	}
	scope:puppet_or_actor ?= {
		NOT = {
			has_any_bad_relationship_with_character_trigger = {
				CHARACTER = scope:recipient
			}
		}
	}
}

As written in game/common/character_interactions/pam_interactions.txt.

Can be sent when (is_valid…) (87 lines of game script)
scope:puppet_or_actor = {
	piety_level >= 3
	trigger_if = {
		limit = {
			NOT = {
				religious_head_or_challenger ?= scope:puppet_or_actor
			}
			scope:recipient = {
				is_independent_ruler = no
			}
		}
		custom_tooltip = {
			text = recipient_head_of_rite_is_not_lieges_head_of_rite_tt
			exists = scope:recipient.liege.rite.head_of_rite
			rite.head_of_rite ?= scope:recipient.liege.rite.head_of_rite
		}
	}
	NOT = {
		has_trait = excommunicated
	}
}
scope:recipient = {
	is_available_quick = {
		alive = yes
		incapable = no
		imprisoned = no
	}
	is_at_war = no
	faith = scope:puppet_or_actor.faith
	NOT = {
		has_trait = excommunicated
	}
	custom_tooltip = {
		text = must_hold_landed_duchy_tt
		any_held_title = {
			tier = tier_duchy
			is_landless_type_title = no
		}
	}
	custom_tooltip = {
		text = recipient_liege_is_emperor_or_none_tt
		OR = {
			is_independent_ruler = yes
			liege.highest_held_title_tier >= tier_empire
		}
	}
	trigger_if = {
		limit = {
			NOT = {
				scope:puppet_or_actor.religious_head_or_challenger ?= scope:puppet_or_actor
			}
		}
		rite = scope:puppet_or_actor.rite
	}
}
trigger_if = {
	limit = {
		scope:is_puppet_action ?= yes
	}
	scope:puppet_or_actor = {
		gold >= pam_ecclesiastic_consecrate_kingdom_gold_cost_value
	}
}
trigger_if = {
	limit = {
		scope:is_puppet_action ?= yes
	}
	scope:puppet_or_actor = {
		treasury >= pam_ecclesiastic_consecrate_kingdom_treasury_cost_value
	}
}
trigger_if = {
	limit = {
		scope:is_puppet_action ?= yes
	}
	scope:puppet_or_actor = {
		piety >= pam_ecclesiastic_consecrate_kingdom_piety_cost_value
	}
}
trigger_if = {
	limit = {
		scope:is_puppet_action ?= yes
	}
	scope:puppet_or_actor = {
		prestige >= pam_ecclesiastic_consecrate_kingdom_prestige_cost_value
	}
}

As written in game/common/character_interactions/pam_interactions.txt.

Effects (on_send, on_accept, on_decline) (255 lines of game script)
on_accept = if = {
	limit = {
		scope:is_puppet_action ?= yes
	}
	scope:puppet_or_actor = {
		if = {
			limit = {
				pam_ecclesiastic_consecrate_kingdom_treasury_cost_value > 0
			}
			remove_treasury = pam_ecclesiastic_consecrate_kingdom_treasury_cost_value
		}
		if = {
			limit = {
				pam_ecclesiastic_consecrate_kingdom_gold_cost_value > 0
			}
			remove_short_term_gold = {
				value = pam_ecclesiastic_consecrate_kingdom_gold_cost_value
			}
		}
		if = {
			limit = {
				pam_ecclesiastic_consecrate_kingdom_piety_cost_value > 0
			}
			add_piety = {
				value = {
					add = pam_ecclesiastic_consecrate_kingdom_piety_cost_value
					max = piety
					multiply = -1
				}
			}
		}
		if = {
			limit = {
				pam_ecclesiastic_consecrate_kingdom_prestige_cost_value > 0
			}
			add_prestige = {
				value = {
					add = pam_ecclesiastic_consecrate_kingdom_prestige_cost_value
					max = prestige
					multiply = -1
				}
			}
		}
	}
}
scope:puppet_or_actor = {
	save_scope_as = religious_authority
	save_scope_as = interaction
}
scope:recipient = {
	save_scope_as = king_aspirant
	show_as_tooltip = {
		consecrate_kingdom_player_cleric_effect = yes
		consecrate_kingdom_effect = yes
	}
}
grant_title_populate_concerned_de_jure_list_effect = {
	TITLE_GAINER = scope:king_aspirant
}
if = {
	limit = {
		scope:actor = {
			is_ai = no
		}
	}
	every_in_list = {
		list = grateful_refusal_chars
		add_opinion = {
			target = scope:puppet_or_actor
			modifier = gave_away_de_jure_lands_opinion
			opinion = -50
		}
	}
	if = {
		limit = {
			scope:king_aspirant = {
				is_independent_ruler = no
				liege = {
					NOR = {
						is_in_list = grateful_refusal_chars
						this = scope:puppet_or_actor
					}
				}
			}
		}
		scope:king_aspirant.liege = {
			add_opinion = {
				target = scope:puppet_or_actor
				modifier = circumvented_my_authority_opinion
				opinion = -50
			}
		}
	}
}
else = {
	hidden_effect = {
		every_in_list = {
			list = grateful_refusal_chars
			add_opinion = {
				target = scope:puppet_or_actor
				modifier = gave_away_de_jure_lands_opinion
				opinion = -50
			}
		}
		if = {
			limit = {
				scope:king_aspirant = {
					is_independent_ruler = no
					liege = {
						NOR = {
							is_in_list = grateful_refusal_chars
							this = scope:puppet_or_actor
						}
					}
				}
			}
			scope:king_aspirant.liege = {
				add_opinion = {
					target = scope:puppet_or_actor
					modifier = circumvented_my_authority_opinion
					opinion = -50
				}
			}
		}
	}
}
if = {
	limit = {
		scope:king_aspirant = {
			is_ai = no
		}
	}
	every_in_list = {
		list = grateful_refusal_chars
		add_opinion = {
			target = scope:king_aspirant
			modifier = absorbed_de_jure_opinion
			opinion = -30
		}
	}
	if = {
		limit = {
			scope:king_aspirant = {
				is_independent_ruler = no
				liege = {
					NOR = {
						is_in_list = grateful_refusal_chars
						this = scope:puppet_or_actor
					}
				}
			}
		}
		scope:king_aspirant.liege = {
			add_opinion = {
				target = scope:king_aspirant
				modifier = circumvented_my_authority_opinion
				opinion = -30
			}
		}
	}
}
else = {
	hidden_effect = {
		every_in_list = {
			list = grateful_refusal_chars
			add_opinion = {
				target = scope:king_aspirant
				modifier = absorbed_de_jure_opinion
				opinion = -20
			}
		}
		if = {
			limit = {
				scope:king_aspirant = {
					is_independent_ruler = no
					liege = {
						NOR = {
							is_in_list = grateful_refusal_chars
							this = scope:puppet_or_actor
						}
					}
				}
			}
			scope:king_aspirant.liege = {
				add_opinion = {
					target = scope:king_aspirant
					modifier = circumvented_my_authority_opinion
					opinion = -20
				}
			}
		}
	}
}
scope:puppet_or_actor = {
	trigger_event = pam_interactions_events.0090
}
on_decline = scope:actor = {
	send_interface_toast = {
		type = event_toast_effect_bad
		title = ecclesiastic_title_refusal_toast_tt
		left_icon = scope:recipient
	}
}
grant_title_populate_concerned_de_jure_list_effect = {
	TITLE_GAINER = scope:recipient
}
if = {
	limit = {
		scope:recipient = {
			is_ai = no
		}
	}
	if = {
		limit = {
			scope:actor = {
				is_ai = yes
			}
		}
		scope:puppet_or_actor = {
			add_opinion = {
				modifier = refusal_opinion
				target = scope:recipient
				opinion = -40
			}
		}
	}
	every_in_list = {
		list = grateful_refusal_chars
		add_opinion = {
			target = scope:recipient
			modifier = respected_de_jure_opinion
			opinion = 20
		}
	}
	if = {
		limit = {
			scope:recipient = {
				is_independent_ruler = no
				liege = {
					NOR = {
						is_in_list = grateful_refusal_chars
						this = scope:puppet_or_actor
					}
				}
			}
		}
		scope:recipient.liege = {
			add_opinion = {
				target = scope:recipient
				modifier = loyalty_opinion
				opinion = 20
			}
		}
	}
}

As written in game/common/character_interactions/pam_interactions.txt.

Category
Religious actions
Cost: Gold
from 500
Cost: Treasury
from 500
Cost: Piety
from 750
Cost: Prestige
varies
DLC
By God Alone
In the menu
main list
ID
ecclesiastic_consecrate_kingdom_interaction

Source: game/common/character_interactions/pam_interactions.txt and the English localisation, Crusader Kings III 1.20.1.2. “You” is the character who sends it (scope:actor, or a puppet acting for you); “the character you target” is the recipient.

Spotted a mistake on this page?