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

Scripted effect · By God Alone files

ecclesiastic_transfer_land_interaction_immediate_effect

ecclesiastic_transfer_land_interaction_immediate_effect = yes

game/common/scripted_effects/pam_effects.txt, line 5126 (554 lines). No parameters.

ecclesiastic_transfer_land_interaction_immediate_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 5126 of its file. It takes no parameters: ecclesiastic_transfer_land_interaction_immediate_effect = yes. The game's script calls it in 2 places, among them Negotiate For Land (interaction) and pam_interactions_events.0033 (event). Its body carries 16 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • If clerical hesitation claim interaction at least 9 › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment -20
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • Else, if clerical hesitation claim interaction at least 6 › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment -10
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • Else, if clerical hesitation claim interaction at least 3 › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment -5
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • Else, if all of these hold:
    • Conditions:
      • Clerical hesitation claim interaction less than 3
      • Clerical hesitation claim interaction at least -2
    • Then › scope:secondary_recipient:
      • If

        • Is played by the AI
        • Piety at most 0

        Then

        • add_piety = { … }

        Otherwise

        • add_piety = { … }
  • Else, if clerical hesitation claim interaction less than -2 › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment +1
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • Else, if clerical hesitation claim interaction at least -5 › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment +3
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • Else, if clerical hesitation claim interaction at least -8 › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment +5
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • Otherwise › scope:secondary_recipient:
    • If

      • Is played by the AI
      • Piety at most 0

      Then

      • add_piety = { … }

      Otherwise

      • add_piety = { … }
    • Spiritual fulfillment +10
    • If

      • root ?= scope:cleric

      Then

      Otherwise

  • … (more in the script below)

• 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)
ecclesiastic_transfer_land_interaction_immediate_effect = {
	scope:secondary_recipient = { save_scope_as = cleric }
	scope:recipient = { save_scope_as = owner }
	#Either your shittiness or target's coolness has given the clergyman pause
	if = {
		limit = {
			clerical_hesitation_claim_interaction_value >= 9
		}
		scope:secondary_recipient = {
			if = {
				limit = {
					is_ai = yes
					piety <= 0
				}
				show_as_tooltip = {
					add_piety = {
						value = major_piety_loss
						multiply = {
							value = scope:actor.highest_held_title_tier
							subtract = 1
						}
					}
				}
			}
			else = {
				add_piety = {
					value = major_piety_loss
					multiply = {
						value = scope:actor.highest_held_title_tier
						subtract = 1
					}
				}
			}
			change_spiritual_fulfillment = massive_spiritual_fulfillment_loss
			if = {
				limit = {
					root ?= scope:cleric
				}
				custom_tooltip = clerical_hesitation_high_player_tt
			}
			else = {
				custom_tooltip = clerical_hesitation_high_tt
			}
		}
	}
	else_if = {
		limit = {
			clerical_hesitation_claim_interaction_value >= 6
		}
		scope:secondary_recipient = {
			if = {
				limit = {
					is_ai = yes
					piety <= 0
				}
				show_as_tooltip = {
					add_piety = {
						value = medium_piety_loss
						multiply = {
							value = scope:actor.highest_held_title_tier
							subtract = 1
						}
					}
				}
			}
			else = {
				add_piety = {
					value = medium_piety_loss
					multiply = {
						value = scope:actor.highest_held_title_tier
						subtract = 1
					}
				}
			}
			change_spiritual_fulfillment = major_spiritual_fulfillment_loss
			if = {
				limit = {
					root ?= scope:cleric
				}
				custom_tooltip = clerical_hesitation_high_player_tt
			}
			else = {
				custom_tooltip = clerical_hesitation_high_tt
			}
		}
	}
	else_if = {
		limit = {
			clerical_hesitation_claim_interaction_value >= 3
		}
		scope:secondary_recipient = {
			if = {
				limit = {
					is_ai = yes
					piety <= 0
				}
				show_as_tooltip = {
					add_piety = {
						value = minor_piety_loss
						multiply = {
							value = scope:actor.highest_held_title_tier
							subtract = 1
						}
					}
				}
			}
			else = {
				add_piety = {
					value = minor_piety_loss
					multiply = {
						value = scope:actor.highest_held_title_tier
						subtract = 1
					}
				}
			}
			change_spiritual_fulfillment = medium_spiritual_fulfillment_loss
			if = {
				limit = {
					root ?= scope:cleric
				}

As written in game/common/scripted_effects/pam_effects.txt.

The first 120 of its 554 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 5126.

Where it is used

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

Character interactions (1)

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