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_sway_to_rite_variant_can_send_trigger

pam_sway_to_rite_variant_can_send_trigger = { ARCHBISHOP = … TARGET = … }

game/common/scripted_triggers/pam_scripted_triggers.txt, line 2051 (39 lines). Parameters: $ARCHBISHOP$, $TARGET$.

pam_sway_to_rite_variant_can_send_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 2051 of its file. A call passes 2 parameters: ARCHBISHOP and TARGET. The game's script calls it in 5 places, among them Archbishops you cannot ask yet (important action), Rulers you cannot ask yet (important action) and You can Sway Archbishops to your Rite (important action). Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.

The comment above it in the file

We keep this in sync with how the three Sway to Rite variants split is_shown

What it checks

  • If

    • $TARGET$ = { is_courtier_of = $ARCHBISHOP$ }

    Then

    • $ARCHBISHOP$ = { … }

    Else if

    • $TARGET$ = { … }

    Then

    • $ARCHBISHOP$ = { … }

    Otherwise

    • $ARCHBISHOP$ = { … }

• 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 (39 lines of game script)
pam_sway_to_rite_variant_can_send_trigger = {
	trigger_if = {
		limit = { $TARGET$ = { is_courtier_of = $ARCHBISHOP$ } }
		$ARCHBISHOP$ = {
			is_character_interaction_potentially_accepted = {
				recipient = $TARGET$
				interaction = sway_courtier_to_my_rite_interaction
			}
		}
	}
	trigger_else_if = {
		limit = {
			$TARGET$ = {
				OR = {
					target_is_liege_or_above = $ARCHBISHOP$
					is_tributary_of = $ARCHBISHOP$
					pam_rite_sway_house_lane_trigger = {
						ACTOR = $ARCHBISHOP$
						RECIPIENT = this
					}
				}
			}
		}
		$ARCHBISHOP$ = {
			is_character_interaction_potentially_accepted = {
				recipient = $TARGET$
				interaction = sway_vassal_to_my_rite_interaction
			}
		}
	}
	trigger_else = {
		$ARCHBISHOP$ = {
			is_character_interaction_potentially_accepted = {
				recipient = $TARGET$
				interaction = sway_ruler_to_my_rite_interaction
			}
		}
	}
}

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

Important actions (4)

  • Archbishops you cannot ask yet
  • Rulers you cannot ask yet
  • You can Sway Archbishops to your Rite
  • You can Sway Rulers to your Rite

Customizable localization (1)

  • PamSwayToRiteAcceptance

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?