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

Scripted trigger · By God Alone files

pam_rite_sway_clergy_reach_trigger

pam_rite_sway_clergy_reach_trigger = { ACTOR = … RECIPIENT = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 1974 (47 lines). Parameters: $ACTOR$, $RECIPIENT$.

pam_rite_sway_clergy_reach_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 1974 of its file. A call passes 2 parameters: ACTOR and RECIPIENT. The game's script calls it in 1 place, among them Sway to Rite (interaction). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

We put quick checks first and leave the bordering realm scan last, behind a capital distance check

What it checks

• 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 (47 lines of game script)
pam_rite_sway_clergy_reach_trigger = {
	OR = {
		custom_tooltip = {
			text = sway_ruler_to_my_rite_interaction_flock_reach_tt
			OR = {
				$RECIPIENT$ = {
					superior ?= $ACTOR$
				}
				trigger_if = {
					limit = { $RECIPIENT$ = { is_ruler = yes } }
					$RECIPIENT$.capital_county.clerical_region_title.holder ?= $ACTOR$
				}
				trigger_else = {
					$RECIPIENT$.location.county.clerical_region_title.holder ?= $ACTOR$
				}
			}
		}
		custom_tooltip = {
			text = sway_ruler_to_my_rite_interaction_prelate_reach_tt
			pam_rite_sway_peer_prelate_lane_trigger = {
				ACTOR = $ACTOR$
				RECIPIENT = $RECIPIENT$
			}
		}
		custom_tooltip = {
			text = sway_ruler_to_my_rite_interaction_liege_reach_tt
			pam_rite_sway_liege_lane_trigger = {
				ACTOR = $ACTOR$
				RECIPIENT = $RECIPIENT$
			}
		}
		custom_tooltip = {
			text = sway_ruler_to_my_rite_interaction_border_reach_tt
			# A landless recipient has no capital county for the distance pre-gate to measure
			exists = $RECIPIENT$.capital_county
			$ACTOR$.capital_county ?= {
				squared_distance = {
					target = $RECIPIENT$.capital_county
					value <= squared_distance_large
				}
			}
			$ACTOR$ = {
				any_neighboring_realm_owner = { this = $RECIPIENT$ }
			}
		}
	}
}

As written in game/common/scripted_triggers/pam_scripted_triggers.txt.

Where it is used

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

Character interactions (1)

Source: game/common/scripted_triggers/pam_scripted_triggers.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?