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

add_legitimacy_effect

add_legitimacy_effect = { LEGITIMACY = … }

game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt, line 18 (6 lines). Parameters: $LEGITIMACY$.

add_legitimacy_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 18 of its file. A call passes 1 parameter: LEGITIMACY. The game's script calls it in 97 places, among them Adopt Centralized Administration (decision), Adopt Meritocratic Government (decision) and Become a Meritocratic Khanate (decision). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt.

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 (6 lines of game script)
add_legitimacy_effect = {
	if = {
		limit = { is_valid_for_legitimacy_change = yes }
		add_legitimacy = $LEGITIMACY$
	}
}

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 add_legitimacy_effect.

Council tasks (1)

  • Convert Faith in County

Travel (1)

  • poi_mandala_capital

Great projects (5)

  • mandala_capital_01
  • mandala_capital_02
  • mandala_capital_03
  • mandala_capital_04
  • mandala_capital_05

Events (55)

49 more

Scripted effects inside an event file (6)

  • court_8170_torture_etc_setup_effect
  • funeral_ending_rewards
  • tgp_ascension_rewards_effect
  • tribute_mission_1000_common_arrival_effect
  • tribute_mission_1000_generic_reward_effect
  • tribute_mission_1000_give_legitimacy_effect

On actions (the game's own hooks) (1)

  • on_scheme_discovered

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?