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_house_lane_trigger

pam_rite_sway_house_lane_trigger = { ACTOR = … RECIPIENT = … }

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

pam_rite_sway_house_lane_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 2023 of its file. A call passes 2 parameters: ACTOR and RECIPIENT. The game's script calls it in 5 places, among them Sway to Rite (interaction), Sway to Rite (interaction) and pam_open_sway_to_rite_variant_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

Sway to Rite: landed house or bloc kin, as with Demand Conversion. Lives on the vassal variant.

What it checks

  • $RECIPIENT$ = { is_ruler = yes }
  • $ACTOR$ = { is_house_head = yes }
  • One of these

    • $RECIPIENT$.house ?= $ACTOR$.house
    • or

      $RECIPIENT$.house.house_confederation ?= { $ACTOR$.house.house_confederation ?= this has_cohesion_level_parameter = bloc_members_join_leaders_faith }

• 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 (11 lines of game script)
pam_rite_sway_house_lane_trigger = {
	$RECIPIENT$ = { is_ruler = yes }
	$ACTOR$ = { is_house_head = yes }
	OR = {
		$RECIPIENT$.house ?= $ACTOR$.house
		$RECIPIENT$.house.house_confederation ?= { # House Bloc
			$ACTOR$.house.house_confederation ?= this
			has_cohesion_level_parameter = bloc_members_join_leaders_faith
		}
	}
}

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_house_lane_trigger.

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?