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

Scripted effect · Legends of the Dead files

generate_religion_descent_effect

generate_religion_descent_effect = { GOD = … RELIGION = … }

game/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 1791 (269 lines). Parameters: $GOD$, $RELIGION$.

generate_religion_descent_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 1791 of its file. A call passes 2 parameters: GOD and RELIGION. The game's script calls it in 1 place, among them Chronicler: A Legend Found (event legend_events.0001). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.

The comment above it in the file

Runs the above effect based on an actual RELIGION that you feed into it, for example feeding Root.Religion into RELIGION will cause it to generate your religion's god loc keys

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 (120 lines of game script)
generate_religion_descent_effect = {
	if = {
		limit = {
			$RELIGION$ = religion:akom_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = akom
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:baltic_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = baltic
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:basque_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = basque
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:bon_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = bon
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:buddhism_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = buddhism
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:tani_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = tani
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:dualism_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = dualism
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:finno_ugric_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = finno_ugric
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:germanic_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = germanic
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:hellenism_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = hellenism
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:hinduism_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = hinduism
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:jainism_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = jainism
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {
			$RELIGION$ = religion:kushitism_religion
		}
		generate_godly_descent_seed_support_effect = {
			FAITH = kushitism
			GOD = $GOD$
		}
	}
	else_if = {
		limit = {

As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.

The first 120 of its 269 lines; the rest is in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt from line 1791.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/06_dlc_ce1_legend_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?