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_offer_pilgrimage_effect

pam_offer_pilgrimage_effect = { ACTOR = … CLERIC = … }

game/common/scripted_effects/pam_effects.txt, line 2258 (24 lines). Parameters: $ACTOR$, $CLERIC$.

pam_offer_pilgrimage_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 2258 of its file. A call passes 2 parameters: ACTOR and CLERIC. The game's script calls it in 20 places, among them Ask for Gold (interaction), Ask to Sanctify Artifact (interaction) and Make Declaration of Repentance (interaction). Its body carries 1 text 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

Shared handler for the offer_pilgrimage send option: ACTOR promises the pilgrimage, CLERIC is rewarded

What it does

  • If

    • scope:offer_pilgrimage ?= yes

    Then

    • $ACTOR$ = { … }
    • $CLERIC$ = { … }

• 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 (24 lines of game script)
pam_offer_pilgrimage_effect = {
	if = {
		limit = {
			scope:offer_pilgrimage ?= yes
		}
		$ACTOR$ = {
			add_character_modifier = {
				modifier = promised_pilgrimage_to_clergy_modifier
				years = 10
			}
			custom_tooltip = actor_promised_pilgrimage_tt
		}
		$CLERIC$ = {
			add_piety_experience = {
				value = minor_piety_gain
				add = {
					value = $ACTOR$.highest_held_title_tier
					subtract = 1.5
					multiply = 20
				}
			}
		}
	}
}

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

Where it is used

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

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?