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
If
$RELIGION$ = religion:akom_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = akom GOD = $GOD$ }
Else if
$RELIGION$ = religion:baltic_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = baltic GOD = $GOD$ }
Else if
$RELIGION$ = religion:basque_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = basque GOD = $GOD$ }
Else if
$RELIGION$ = religion:bon_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = bon GOD = $GOD$ }
Else if
$RELIGION$ = religion:buddhism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = buddhism GOD = $GOD$ }
Else if
$RELIGION$ = religion:tani_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = tani GOD = $GOD$ }
Else if
$RELIGION$ = religion:dualism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = dualism GOD = $GOD$ }
Else if
$RELIGION$ = religion:finno_ugric_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = finno_ugric GOD = $GOD$ }
Else if
$RELIGION$ = religion:germanic_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = germanic GOD = $GOD$ }
Else if
$RELIGION$ = religion:hellenism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = hellenism GOD = $GOD$ }
Else if
$RELIGION$ = religion:hinduism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = hinduism GOD = $GOD$ }
Else if
$RELIGION$ = religion:jainism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = jainism GOD = $GOD$ }
Else if
$RELIGION$ = religion:kushitism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = kushitism GOD = $GOD$ }
Else if
$RELIGION$ = religion:magyar_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = magyar GOD = $GOD$ }
Else if
$RELIGION$ = religion:mundhum_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = mundhumism GOD = $GOD$ }
Else if
$RELIGION$ = religion:north_african_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = acham GOD = $GOD$ }
Else if
$RELIGION$ = religion:qiangic_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = qiangic GOD = $GOD$ }
Else if
$RELIGION$ = religion:siberian_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = siberian GOD = $GOD$ }
Else if
$RELIGION$ = religion:slavic_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = slavic GOD = $GOD$ }
Else if
$RELIGION$ = religion:taoism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = taoism GOD = $GOD$ }
Else if
$RELIGION$ = religion:tengrism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = tengrism GOD = $GOD$ }
Else if
$RELIGION$ = religion:waaqism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = waaqism GOD = $GOD$ }
Else if
$RELIGION$ = religion:west_african_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = west_african GOD = $GOD$ }
Else if
$RELIGION$ = religion:west_african_bori_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = west_african_bori GOD = $GOD$ }
Else if
$RELIGION$ = religion:west_african_orisha_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = west_african_orisha GOD = $GOD$ }
Else if
$RELIGION$ = religion:west_african_roog_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = west_african_roog GOD = $GOD$ }
Else if
$RELIGION$ = religion:yazidi_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = yazidi GOD = $GOD$ }
Else if
$RELIGION$ = religion:zoroastrianism_religion
Then
generate_godly_descent_seed_support_effect = { FAITH = zoroastrianism GOD = $GOD$ }
- … (more in the script below)
• 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)
- Chronicler: A Legend Found
legend_events.0001
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.