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

Scripted effect

create_artifact_badge_effect

create_artifact_badge_effect = { RECEIVER = … }

game/common/scripted_effects/00_artifact_badge_scripted_effects.txt, line 283 (35 lines). Parameters: $RECEIVER$.

create_artifact_badge_effect is a scripted effect in Crusader Kings III, written at line 283 of its file. A call passes 1 parameter: RECEIVER. The game's script calls it in 2 places, among them A Badge From … (event travel_events.2310) and The Badge (event pilgrimage.4100). Patch 1.20.1.2, from game/common/scripted_effects/00_artifact_badge_scripted_effects.txt.

The comment above it in the file

For use when you visit a holy site

What it does

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

The script as written (35 lines of game script)
create_artifact_badge_effect = {
	$RECEIVER$ = { save_scope_as = receiving_char }
	hidden_effect_new_object = {
		scope:receiving_char.location = { save_scope_as = badge_location }
		# Santiago de Compostela
		if = {
			limit = { scope:badge_location.barony = title:b_santiago }
			create_artifact_badge_santiago_effect = { ACQUIRER = scope:receiving_char }
		}
		#Jerusalem
		else_if = {
			limit = { scope:badge_location.barony = title:b_jerusalem }
			create_artifact_badge_jerusalem_effect = { ACQUIRER = scope:receiving_char }
		}
		#Rome
		else_if = {
			limit = { scope:badge_location.barony = title:b_vaticano }
			create_artifact_badge_rome_effect = { ACQUIRER = scope:receiving_char }
		}
		#Generic
		else = {
			create_artifact_badge_generic_effect = { ACQUIRER = scope:receiving_char }
		}
		#Make the history look neat
		scope:newly_created_artifact ?= {
			add_artifact_history = {
				type = created
				location = scope:badge_location
				actor = scope:receiving_char
				recipient = scope:receiving_char
			}
			save_scope_as = created_pilgrim_badge
		}
	}
}

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

Events (2)

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?