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

Scripted effect

give_pilgrimage_reward_effect

give_pilgrimage_reward_effect = yes

game/common/scripted_effects/00_pilgrimage_effects.txt, line 1136 (54 lines). No parameters.

give_pilgrimage_reward_effect is a scripted effect in Crusader Kings III, written at line 1136 of its file. It takes no parameters: give_pilgrimage_reward_effect = yes. The game's script calls it in 2 places, among them give_hajj_trait_or_xp_effect (scripted effect) and pilgrimage_completed_log_entry_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_pilgrimage_effects.txt.

The comment above it in the file

Picks the correct Pilgrimage reward to grant

What it does

• 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 (54 lines of game script)
give_pilgrimage_reward_effect = {
	#Short Pilgrimage reward
	if = {
		limit = { short_pilgrimage_trigger = yes }
		give_piety_reward_effect = { LENGTH = short }
		give_pious_type_reward_effect = yes
		give_worldly_type_reward_effect = yes
	}
	#Medium Pilgrimage reward
	else_if = {
		limit = { medium_pilgrimage_trigger = yes }
		give_piety_reward_effect = { LENGTH = medium }
		give_pious_type_reward_effect = yes
		give_worldly_type_reward_effect = yes
	}
	#Long Pilgrimage reward
	else_if = {
		limit = { long_pilgrimage_trigger = yes }
		give_piety_reward_effect = { LENGTH = long }
		give_pious_type_reward_effect = yes
		give_worldly_type_reward_effect = yes
	}
	#Very Long Pilgrimage reward
	else_if = {
		limit = { very_long_pilgrimage_trigger = yes }
		give_piety_reward_effect = { LENGTH = very_long }
		give_pious_type_reward_effect = yes
		give_worldly_type_reward_effect = yes
	}
	christian_saint_bone_tooltip_effect = yes
	pilgrimage_additional_reward_effect = yes
	# PAM - Spiritual fulfillment from completing a pilgrimage
	pilgrimage_sp_reward_effect = yes
	remove_character_flag = should_get_trait_piety
	# LEGITIMACY GAIN FOR ACTIVITY PARTICIPATION - PILGRIMAGE
	pilgrimage_activity_participation_legitimacy_effect = yes
	# Sacred Mountains tenet
	if = {
		limit = {
			rite = { rite_has_parameter = piety_from_hills_and_mountains_pilgrimages }
			location = {
				OR = {
					terrain = hills
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		custom_tooltip = {
			text = piety_from_hills_and_mountains_pilgrimages_tt
			add_piety = medium_piety_gain
		}
	}
}

As written in game/common/scripted_effects/00_pilgrimage_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/00_pilgrimage_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?