Scripted effect · Khans of the Steppe files
mpo_add_golden_lineage_effect
mpo_add_golden_lineage_effect = yesgame/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt, line 8365 (115 lines). No parameters.
mpo_add_golden_lineage_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 8365 of its file. It takes no parameters: mpo_add_golden_lineage_effect = yes. The game's script calls it in 3 places, among them My Kurultai Speaks — For All the World! (event mpo_greatest_of_khans.0001), Rise of the … (event mpo_greatest_of_khans.0002) and Rise of the … (event mpo_greatest_of_khans.1001). Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.
What it does
- Gains the Trait Golden Lineage
If
One of these
- Has the Female Only Law
or
Has the Female Preference Law
Then
- All female descendants of … and their children:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_female = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_female = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_female = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_female = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
Otherwise
- All male descendants of … and their children:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_male = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_male = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_male = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
If
is_male = yes
Then
- Every child:
- Where: Does not have the Trait: Golden Lineage
- Gains the Trait Golden Lineage
• 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 (115 lines of game script)
mpo_add_golden_lineage_effect = {
add_trait = golden_lineage
if = {
limit = {
OR = {
has_realm_law = female_only_law
has_realm_law = female_preference_law
}
}
every_child = {
custom = descendants_gain_golden_lineage_female
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_female = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_female = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_female = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_female = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
}
}
}
}
}
}
}
}
}
}
else = {
every_child = {
custom = descendants_gain_golden_lineage_male
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_male = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_male = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_male = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
if = {
limit = {
is_male = yes
}
every_child = {
limit = {
NOT = { has_trait = golden_lineage }
}
add_trait = golden_lineage
}
}
}
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls mpo_add_golden_lineage_effect.
Events (3)
- My Kurultai Speaks — For All the World!
mpo_greatest_of_khans.0001 - Rise of the …
mpo_greatest_of_khans.0002 - Rise of the …
mpo_greatest_of_khans.1001
Source: game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.