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_expand_ecclesiastical_title_interaction_effect

pam_expand_ecclesiastical_title_interaction_effect = yes

game/common/scripted_effects/pam_effects.txt, line 7841 (83 lines). No parameters.

pam_expand_ecclesiastical_title_interaction_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 7841 of its file. It takes no parameters: pam_expand_ecclesiastical_title_interaction_effect = yes. The game's script calls it in 1 place, among them Expand Clerical Title (interaction). Its body carries 2 texts 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

Expand an Ecclesiastical Title as HoF - on_accept

What it does

  • If

    • scope:clerical_region_title:
      • is_adjacent_to_clerical_region = scope:target_duchy

    Then

• 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 (83 lines of game script)
pam_expand_ecclesiastical_title_interaction_effect = {
	scope:recipient = {
		save_scope_as = clerical_region_holder
		# We use the picker's region and skip alternative_limit, so we do not land on a non-bordering see
		if = {
			limit = {
				capital_province.county.clerical_region_title ?= {
					has_clerical_region = yes
					holder ?= scope:clerical_region_holder
				}
			}
			capital_province.county.clerical_region_title = {
				save_scope_as = clerical_region_title
			}
		}
	}
	scope:target = {
		save_scope_as = target_duchy
	}
	# is_adjacent_to_clerical_region matches the counties expand_clerical_region would take
	if = {
		limit = {
			exists = scope:clerical_region_title
			scope:clerical_region_title = { is_adjacent_to_clerical_region = scope:target_duchy }
		}
		scope:actor = {
			if = {
				limit = {
					any_character_situation = {
						situation_type = the_christian_church
						situation_top_has_catalyst = catalyst_the_christian_church_clerical_region_expanded
					}
				}
				situation:the_christian_church = {
					trigger_situation_catalyst = catalyst_the_christian_church_clerical_region_expanded
				}
			}
			hidden_effect = {
				send_interface_toast = {
					type = event_toast_effect_good
					title = expand_ecclesiastical_title_toast
					left_icon = scope:clerical_region_holder
					right_icon = scope:clerical_region_title
					custom_tooltip = {
						text = expand_ecclesiastical_title_effect_tt
						scope:clerical_region_title = {
							expand_clerical_region = scope:target_duchy
						}
					}
				}
			}
			faith = {
				change_fervor = {
					value = notable_fervor_gain
					desc = fervor_gain_clerical_title_expanded
				}
			}
		}
		scope:clerical_region_holder = {
			if = {
				limit = {
					NOT = { this = scope:actor }
				}
				add_opinion = {
					target = scope:actor
					modifier = grateful_opinion
					opinion = 50
				}
			}
			send_interface_toast = {
				type = event_toast_effect_good
				title = expand_ecclesiastical_title_toast
				left_icon = scope:actor
				right_icon = scope:clerical_region_title
				custom_tooltip = expand_ecclesiastical_title_effect_tt
			}
			pam_mark_recent_same_faith_clerical_expansion_effect = {
				TITLE = scope:target_duchy
				ARCHBISHOP = this
			}
		}
	}
}

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

Where it is used

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