Scripted effect · Legends of the Dead files
mark_historical_legend_as_done
mark_historical_legend_as_done = yesgame/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 2522 (351 lines). No parameters.
mark_historical_legend_as_done is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 2522 of its file. It takes no parameters: mark_historical_legend_as_done = yes. The game's script calls it in 3 places, among them Heroic (legend), holy (legend) and legitimizing (legend). 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)
mark_historical_legend_as_done = {
if = { # Dynastic legacy
limit = {
legend_property:founder ?= legend_owner.house.house_founder
legend_property:dynasty ?= legend_owner.dynasty
legend_property:title ?= legend_owner.primary_title
}
legend_owner.dynasty = {
set_variable = {
name = dynasty_legend_used
value = yes
}
}
}
if = { # Arthur
limit = {
legend_property:ancestor ?= character:159835
legend_property:title ?= title:k_england
}
set_global_variable = {
name = king_arthur_legend
value = yes
}
}
else_if = { # Carolingian
limit = {
legend_property:ancestor ?= character:6392
legend_property:title ?= title:e_france
}
set_global_variable = {
name = carolingian_legend
value = yes
}
}
else_if = { # the_wheelwright
limit = {
legend_property:ancestor ?= character:82233
}
set_global_variable = {
name = the_wheelwright_legend
value = yes
}
}
else_if = { # cadell
limit = {
legend_property:ancestor ?= character:159058
}
set_global_variable = {
name = cadell_legend
value = yes
}
}
else_if = { # sons_of_rurik
limit = {
legend_property:ancestor ?= character:40605
}
set_global_variable = {
name = sons_of_rurik_legend
value = yes
}
}
else_if = { # el_cid
limit = {
legend_property:ancestor ?= character:107590
}
set_global_variable = {
name = el_cid_legend
value = yes
}
}
else_if = { # peasant_emperor
limit = {
legend_property:ancestor ?= character:1700
}
set_global_variable = {
name = peasant_emperor_legend
value = yes
}
}
else_if = { # premysl
limit = {
legend_property:ancestor ?= character:168345
}
set_global_variable = {
name = premysl_legend
value = yes
}
}
else_if = { # borjigin
limit = {
legend_property:ancestor ?= character:303250
}
set_global_variable = {
name = borjigin_legend
value = yes
}
}
else_if = { # the_red_hand
limit = {
legend_property:ancestor ?= character:7255
}
set_global_variable = {
name = the_red_hand_legend
value = yes
}
}
else_if = { # yazdagird_iii
limit = {
legend_property:ancestor ?= character:180637
}
set_global_variable = {
name = yazdagird_iii_legend
value = yes
}
}
else_if = { # bahram_gur
limit = {
legend_property:ancestor ?= character:180645
}
set_global_variable = {As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
The first 120 of its 351 lines; the rest is in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt from line 2522.
Where it is used
Every place in common/, events/ and history/ that calls mark_historical_legend_as_done.
Legends (3)
- Heroic
- holy
- legitimizing
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.