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

pam_create_new_ecclesiastical_title_interaction_effect

pam_create_new_ecclesiastical_title_interaction_effect = yes

game/common/scripted_effects/pam_effects.txt, line 7006 (113 lines). No parameters.

pam_create_new_ecclesiastical_title_interaction_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 7006 of its file. It takes no parameters: pam_create_new_ecclesiastical_title_interaction_effect = yes. The game's script calls it in 1 place, among them Create Clerical Title (interaction). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Create a New Ecclesiastical Title as HoF - on_accept

What it does

  • scope:recipient:
    • If

      • scope:new_ecclesiastical_holder:
        • NOT = { is_courtier_of = scope:kingdom_holder }
        • Is not a ruler

      Then

      • add_courtier = scope:new_ecclesiastical_holder
    • If

      • scope:new_ecclesiastical_holder:
        • NOT = { is_councillor_of = scope:kingdom_holder }

      Then

      • assign_councillor_type = { type = councillor_court_chaplain remove_existing_councillor = yes target = scope:new_ecclesiastical_holder }
  • scope:actor:
  • scope:new_ecclesiastical_holder:

• 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 (113 lines of game script)
pam_create_new_ecclesiastical_title_interaction_effect = {
	scope:secondary_recipient = {
		save_scope_as = new_ecclesiastical_holder
	}
	scope:recipient = {
		save_scope_as = kingdom_holder
		if = {
			limit = {
				scope:new_ecclesiastical_holder = {
					NOT = {
						is_courtier_of = scope:kingdom_holder
					}
					is_ruler = no
				}
			}
			add_courtier = scope:new_ecclesiastical_holder
		}
		if = {
			limit = {
				scope:new_ecclesiastical_holder = {
					NOT = { is_councillor_of = scope:kingdom_holder }
				}
			}
			assign_councillor_type = {
				type = councillor_court_chaplain
				remove_existing_councillor = yes
				target = scope:new_ecclesiastical_holder
			}
		}
	}
	scope:target = {
		save_scope_as = target_kingdom
	}
	scope:actor = {
		if = {
			limit = {
				any_character_situation = {
					situation_type = the_christian_church
					situation_top_has_catalyst = catalyst_the_christian_church_clerical_region_created
				}
			}
			situation:the_christian_church = {
				trigger_situation_catalyst = catalyst_the_christian_church_clerical_region_created
			}
		}
		send_interface_toast = {
			type = event_toast_effect_good
			title = create_new_ecclesiastical_title_toast
			left_icon = scope:actor
			right_icon = scope:new_ecclesiastical_holder
			custom_tooltip = {
				text = create_new_ecclesiastical_title_effect_tt
				create_title_and_vassal_change = {
					type = created
					save_scope_as = change
					add_claim_on_loss = no
				}
				scope:target_kingdom = {
					title_capital_county = {
						save_scope_as = clerical_region_anchor_county
						random_county_province = {
							limit = {
								is_county_capital = yes
							}
							save_scope_as = region_capital
							create_clerical_region = {
								domicile_type = ecclesiastical_domicile
								name = NEW_ECCLESIASTICAL_TITLE
								save_scope_as = new_title
							}
							scope:new_title ?= {
								set_coa = scope:target_kingdom
								set_color_from_title = scope:target_kingdom
								set_capital_county = scope:clerical_region_anchor_county
								set_landless_title = yes
								set_no_automatic_claims = yes
								set_always_follows_primary_heir = yes
								set_definitive_form = yes
								change_title_holder = {
									holder = scope:new_ecclesiastical_holder
									change = scope:change
								}
								resolve_title_and_vassal_change = scope:change
							}
						}
					}
				}
			}
		}
		reverse_add_opinion = {
			target = scope:new_ecclesiastical_holder
			modifier = grateful_opinion
			opinion = 50
		}
	}
	scope:new_ecclesiastical_holder = {
		if = {
			limit = {
				NOT = { government_has_flag = government_is_ecclesiastical }
			}
			change_government = ecclesiastical_government
		}
		faith = {
			change_fervor = {
				value = notable_fervor_gain
				desc = fervor_gain_clerical_title_created
			}
		}
		situation:the_christian_church ?= {
			add_manual_participant = prev
		}
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls pam_create_new_ecclesiastical_title_interaction_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?