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

Scripted effect

release_dynamic_holy_site_kingdom_effect

release_dynamic_holy_site_kingdom_effect = { BARONY = … }

game/common/scripted_effects/00_religion_effects.txt, line 1314 (28 lines). Parameters: $BARONY$.

release_dynamic_holy_site_kingdom_effect is a scripted effect in Crusader Kings III, written at line 1314 of its file. A call passes 1 parameter: BARONY. The game's script calls it in 1 place, among them on_faith_holy_site_removed (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.

The comment above it in the file

Faith scope. BARONY = the barony of the holy site that was just removed.
Frees the kingdom again once the faith has no holy site left anywhere in it.

What it does

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

The script as written (28 lines of game script)
release_dynamic_holy_site_kingdom_effect = {
	if = {
		limit = {
			has_variable_list = dynamic_holy_site_kingdoms
			exists = $BARONY$.kingdom
		}
		$BARONY$.kingdom = {
			save_temporary_scope_as = released_holy_site_kingdom
		}
		if = {
			limit = {
				is_target_in_variable_list = {
					name = dynamic_holy_site_kingdoms
					target = scope:released_holy_site_kingdom
				}
				NOT = {
					any_holy_site = {
						holy_site_barony.kingdom ?= scope:released_holy_site_kingdom
					}
				}
			}
			remove_list_variable = {
				name = dynamic_holy_site_kingdoms
				target = scope:released_holy_site_kingdom
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • on_faith_holy_site_removed

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