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

Scripted effect

get_random_faith_effect

get_random_faith_effect = { FORBIDROOTFAITH = … }

game/common/scripted_effects/00_religion_effects.txt, line 588 (17 lines). Parameters: $FORBIDROOTFAITH$.

get_random_faith_effect is a scripted effect in Crusader Kings III, written at line 588 of its file. A call passes 1 parameter: FORBIDROOTFAITH. The game's script calls it in 1 place, among them A Castle Worthy of Iberia (event fp2_struggle.2007). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.

The comment above it in the file

Get random faith

What it does

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

The script as written (17 lines of game script)
get_random_faith_effect = {
	if = {
		limit = { $FORBIDROOTFAITH$ = yes }
		random_religion_global = {
			limit = { any_faith = { this != root.faith } }
			random_faith = {
				limit = { this != root.faith }
				save_scope_as = random_faith
			}
		}
	}
	else = {
		random_religion_global = {
			random_faith = { save_scope_as = random_faith }
		}
	}
}

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

Where it is used

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

Events (1)

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?