Scripted effect · Legends of the Dead files
legend_ending_rewards_legitimizing_effect
legend_ending_rewards_legitimizing_effect = yesgame/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 1167 (111 lines). No parameters.
legend_ending_rewards_legitimizing_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 1167 of its file. It takes no parameters: legend_ending_rewards_legitimizing_effect = yes. The game's script calls it in 1 place, among them legitimizing (legend). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
The comment above it in the file
Rewards for all Legitimizing Legends
What it does
disburse_legend_protagonist_legitimacy_effect = yesIf
scope:title_claim = title:h_roman_empire
Then
Else if
scope:title_claim.holder != root
Then
add_pressed_claim = scope:title_claim
- Gain access to the Commission Legend Artifact Decision, allowing you to commission a chronicle to commemorate your legend.
• 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 (111 lines of game script)
legend_ending_rewards_legitimizing_effect = {
# Legitimacy gain based on Legend Protagonist
disburse_legend_protagonist_legitimacy_effect = yes
# We let you diverge if it's an Ancient People legend
if = {
limit = {
exists = scope:legendary_culture
has_dlc_feature = diverge_culture # Don't mislead players who don't have access to divergence
}
custom_tooltip = {
text = can_select_legendary_culture_pillars_tt
set_variable = {
name = legendary_culture
value = scope:legendary_culture
}
}
}
if = { #Roman Heritage legend without a Roman Empire
limit = {
scope:title_claim = title:h_roman_empire
NOT = {
exists = global_var:flag_restored_roman_empire
}
}
title:d_latium.empire = { #Italy
add_to_list = roman_heritage_claims
}
title:d_tunis.kingdom = { #North Africa
add_to_list = roman_heritage_claims
}
title:d_thrace.empire = { #Byz
add_to_list = roman_heritage_claims
}
title:d_alexandria.kingdom = { #Egypt
add_to_list = roman_heritage_claims
}
title:d_antioch.kingdom = { #Syria
add_to_list = roman_heritage_claims
}
title:d_palestine.kingdom = { #Palestine
add_to_list = roman_heritage_claims
}
custom_tooltip = {
text = legend_title_does_not_exist_sub_realm_claims_given_tt
}
hidden_effect = {
every_in_list = {
list = roman_heritage_claims
if = {
limit = {
exists = this.holder
this.holder != root
}
root = {
add_pressed_claim = prev
add_to_variable_list = {
name = legendary_claims
target = prev
}
}
}
else_if = {
limit = {
this.tier > tier_county
}
hidden_effect = {
legend_distribute_claims_in_de_jure = yes
}
}
}
}
}
else_if = {
limit = {
exists = scope:title_claim.holder
scope:title_claim.holder != root
}
add_pressed_claim = scope:title_claim
add_to_variable_list = {
name = legendary_claims
target = scope:title_claim
}
}
else_if = {
limit = {
scope:title_claim.tier > tier_county
}
custom_tooltip = {
text = legend_title_does_not_exist_sub_realm_claims_given_tt
}
hidden_effect = {
scope:title_claim = {
legend_distribute_claims_in_de_jure = yes
}
}
}
# Available decision
custom_tooltip = legend_ending_decision_tt
promoted_legend ?= { set_variable = finished_legend_var }
hidden_effect = {
create_character_memory = {
type = ce1_completed_my_legitimizing_legend
participants = {
owner = root
protagonist = scope:legend_protagonist
}
}
}
}As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls legend_ending_rewards_legitimizing_effect.
Legends (1)
- 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.