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.
Decisions (6)
Character interactions (5)
Casus belli (4)
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)
- … Choking Streets
epidemic_events.5010 - … Re-Asserts Dominance
fp3_struggle.0071 - …: Failure
scheme_critical_moments.1203 - …China's Grand Campaign: Sunset
tgp_china_ministry.0005 - …China's Grand Campaign: Sunset
tgp_china_ministry.0008 - A Final Anointing
pam_holy_myron.0200
49 more
- A Wandering Scribe
pam_secular_faith_events.0023 - Accusations of Witchery
epidemic_events.5007 - Bad Air Over …
epidemic_events.1020 - Bodies in the Street
epidemic_events.1110 - char_interaction.0370
- Conclusion
bp3_survey.0010 - Devout Dividends
tgp_east_asia_decision_events.0100 - Doomsday
epidemic_events.1050 - Doomsday Preachers
epidemic_events.5904 - From Dust
epidemic_events.0110 - Grand Cathedral: Painted Light Over …
pam_great_projects_events.0003 - Grim Tidings from …
epidemic_events.5001 - Healing Hands
epidemic_events.5003 - Ill-Advised: Where There Is Smoke
nomad_events.0003 - In Memory of Your Good Taste
bookmark.0211 - Incorruptible
funeral.1040 - Isolation
epidemic_events.0100 - Isolation
natural_disaster.0110 - Justice
char_interaction.0231 - Mourning Star
funeral.1060 - My Secret Exposed!
secrets.0121 - One of the Greats
funeral.1100 - Plague Trials: Catchers
epidemic_events.1062 - Plague Trials: Expulsion
epidemic_events.1066 - Plague Trials: Loanly
epidemic_events.1068 - Plague Trials: Pet Pyre
epidemic_events.1061 - Plague Trials: Pyres of Purity
epidemic_events.1064 - Plague Trials: Repent!
epidemic_events.1063 - Plague Trials: Shame
epidemic_events.1065 - Prandial Excess
court.8150 - Questions of Rite and Right
ach_coronation.0012 - Quiet
feast_default.5020 - Roaming, Raving
epidemic_events.5906 - Safe and Sound
epidemic_events.5008 - Second-Hand Glamor
court.2401 - Spreading Nerves
epidemic_events.5905 - The … Court
court_maintenance.0011 - The …'s Touch
pam_secular_faith_events.0022 - The Anointment
coronation_events.6130 - The Basin and the Cloth
pam_secular_faith_events.0054 - The Conversation Partner
feast_default.6111 - The False …
funeral.1020 - The Giver of the Games
chariot_race.0200 - The Last Chance
funeral.1090 - The Offering of Libations
funeral.1120 - The Plague of War
epidemic_events.2001 - The Slavic Marches
bookmark.1068 - The Way of Emperors
ep3_frankokratia_events.0120 - Tributary, Interrupted
scheme_critical_moments.1225
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
Scripted effects (13)
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.