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

Scripted effect

setup_unique_pilgrim_badge_vars_effect

setup_unique_pilgrim_badge_vars_effect = { HOLY_SITE = … }

game/common/scripted_effects/00_artifact_badge_scripted_effects.txt, line 4 (14 lines). Parameters: $HOLY_SITE$.

setup_unique_pilgrim_badge_vars_effect is a scripted effect in Crusader Kings III, written at line 4 of its file. A call passes 1 parameter: HOLY_SITE. The game's script calls it in 3 places, among them create_artifact_badge_jerusalem_effect (scripted effect), create_artifact_badge_rome_effect (scripted effect) and create_artifact_badge_santiago_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_artifact_badge_scripted_effects.txt.

The comment above it in the file

UNIQUE BADGES ##

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (14 lines of game script)
setup_unique_pilgrim_badge_vars_effect = {
	scope:newly_created_artifact ?= {
		set_variable = is_$HOLY_SITE$_pilgrim_badge
		set_variable = is_unique_pilgrim_badge
		set_variable = {
			name = is_pilgrim_badge
			value = flag:yes
		}
		set_variable = {
			name = pilgrim_badge_location
			value = scope:badge_location
		}		
	}
}

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

Where it is used

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

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