CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Legends of the Dead files

disburse_legend_protagonist_legitimacy_effect

disburse_legend_protagonist_legitimacy_effect = yes

game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt, line 434 (50 lines). No parameters.

disburse_legend_protagonist_legitimacy_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 434 of its file. It takes no parameters: disburse_legend_protagonist_legitimacy_effect = yes. The game's script calls it in 3 places, among them legend_ending_rewards_heroic_effect (scripted effect), legend_ending_rewards_holy_effect (scripted effect) and legend_ending_rewards_legitimizing_effect (scripted effect). 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_legitimacy_effects.txt.

The comment above it in the file

Legitimacy Protagonist gain from Legends

What it does

• 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 (50 lines of game script)
disburse_legend_protagonist_legitimacy_effect = {
	# Legitimacy gain based on Protagonist
	if = {
		limit = {
			scope:protagonist = {
				this != root # The legend owner
				num_virtuous_traits >= 3
			}
		}
		custom_tooltip = {
			text = legend_protagonist_legitimacy_major_tt
			add_legitimacy = major_legitimacy_gain
		}
	}
	else_if = {
		limit = {
			scope:protagonist = {
				this != root # The legend owner
				num_virtuous_traits >= 2
			}
		}
		custom_tooltip = {
			text = legend_protagonist_legitimacy_medium_tt
			add_legitimacy = medium_legitimacy_gain
		}
	}
	else_if = {
		limit = {
			scope:protagonist = {
				this != root # The legend owner
				num_virtuous_traits >= 1
			}
		}
		custom_tooltip = {
			text = legend_protagonist_legitimacy_minor_tt
			add_legitimacy = minor_legitimacy_gain
		}
	}
	else_if = { # No Virtuous traits but at least you didn't choose yourself
		limit = {
			scope:protagonist = {
				this != root
			}
		}
		custom_tooltip = {
			text = legend_protagonist_legitimacy_miniscule_tt
			add_legitimacy = miniscule_legitimacy_gain
		}
	}
}

As written in game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls disburse_legend_protagonist_legitimacy_effect.

Source: game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?