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_adjacent_diocese_trigger

pam_rite_sway_adjacent_diocese_trigger = { ACTOR = … RECIPIENT = … }

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

pam_rite_sway_adjacent_diocese_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 1951 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). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

$ACTOR$ and $RECIPIENT$ dioceses border or are nearby, and the scan is bounded by the actor's diocese

What it checks

  • One of these

    • $ACTOR$.capital_county.clerical_region_title ?= { … }
    • or

      All of these

      • exists = $RECIPIENT$.capital_county.clerical_region_title.title_capital_county
      • $ACTOR$.capital_county.clerical_region_title.title_capital_county ?= { … }

• 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 (21 lines of game script)
pam_rite_sway_adjacent_diocese_trigger = {
	OR = {
		$ACTOR$.capital_county.clerical_region_title ?= {
			any_county_in_clerical_region = {
				any_neighboring_county = {
					clerical_region_title ?= $RECIPIENT$.capital_county.clerical_region_title
				}
			}
		}
		AND = {
			# No diocese seat on the far end means there is no adjacent diocese to measure
			exists = $RECIPIENT$.capital_county.clerical_region_title.title_capital_county
			$ACTOR$.capital_county.clerical_region_title.title_capital_county ?= {
				squared_distance = {
					target = $RECIPIENT$.capital_county.clerical_region_title.title_capital_county
					value <= squared_distance_small
				}
			}
		}
	}
}

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_adjacent_diocese_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?