Scripted effect · Legends of the Dead files
grab_mythical_founder_effect
grab_mythical_founder_effect = yesgame/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 301 (460 lines). No parameters.
grab_mythical_founder_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 301 of its file. It takes no parameters: grab_mythical_founder_effect = yes. The game's script calls it in 2 places, among them In Ancient Times... (event hold_court.4900) and The Forgotten Vow (event coronation_events.1029). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
grab_mythical_founder_effect = {
hidden_effect = {
if = {
limit = {
NOT = { exists = var:mythical_ancestor_var }
}
random_list = {
10 = { # Charles Martell
trigger = {
AND = {
OR = {
root.primary_title = title:k_france
root.primary_title = title:e_france
}
current_date > 1000.1.1
}
}
set_variable = { name = mythical_ancestor_var value = flag:charles_martell }
}
10 = { # Alexander the Great
trigger = {
OR = {
root.primary_title = title:k_thessalonika
root.primary_title = title:k_hellas
root.primary_title = title:k_egypt
AND = {
OR = {
root.primary_title = title:k_persia
root.primary_title = title:e_persia
}
NOR = {
root.faith.religion = religion:islam_religion
root.faith.religion = religion:zoroastrianism_religion
}
}
root.primary_title = title:k_anatolia
}
}
set_variable = { name = mythical_ancestor_var value = flag:alexander }
}
10 = { # Lech
trigger = {
root.primary_title = title:k_poland
}
set_variable = { name = mythical_ancestor_var value = flag:lech }
}
10 = { # Czech
trigger = {
OR = {
root.primary_title = title:k_bohemia
root.primary_title = title:d_bohemia
}
}
set_variable = { name = mythical_ancestor_var value = flag:czech }
}
10 = { # Rus
trigger = {
OR = {
root.primary_title = title:k_white_rus
root.primary_title = title:k_ruthenia
root.primary_title = title:e_russia
}
}
set_variable = { name = mythical_ancestor_var value = flag:rus }
}
10 = { # King Arthur
trigger = {
OR = {
root.primary_title = title:k_wales
root.primary_title = title:k_cornwall
root.primary_title = title:k_england
root.primary_title = title:e_britannia
}
}
set_variable = { name = mythical_ancestor_var value = flag:arthur }
}
10 = { # Corineus
trigger = {
root.primary_title = title:k_cornwall
}
modifier = {
current_date < 1000.1.1
factor = 3
}
set_variable = { name = mythical_ancestor_var value = flag:corineus }
}
10 = { # Magnus Maximus
trigger = {
root.primary_title = title:k_wales
}
modifier = {
current_date < 1000.1.1
factor = 3
}
set_variable = { name = mythical_ancestor_var value = flag:magnus_maximus }
}
30 = { # Brutus of Troy, we want this to be the default for the Brits
trigger = {
OR = {
root.primary_title = title:k_england
root.primary_title = title:e_britannia
}
}
set_variable = { name = mythical_ancestor_var value = flag:brutus }
}
10 = { # Aeneas of Troy
trigger = {
OR = {
#Used in the Roman de Brut
root.primary_title = title:k_england
root.primary_title = title:e_britannia
#Also used by the house of Tosny
root.primary_title = title:d_normandy
capital_province = { geographical_region = world_europe_west_britannia }
#And of course used in Rome
root.primary_title = title:k_italy
root.primary_title = title:k_romagna
root.primary_title = title:k_sardinia
root.primary_title = title:e_italy
root = {As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
The first 120 of its 460 lines; the rest is in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt from line 301.
Where it is used
Every place in common/, events/ and history/ that calls grab_mythical_founder_effect.
Events (2)
- In Ancient Times...
hold_court.4900 - The Forgotten Vow
coronation_events.1029
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.