Scripted trigger · Legends of the Dead files
is_valid_for_legitimacy_change
is_valid_for_legitimacy_change = yesgame/common/scripted_triggers/06_ce1_legitimacy_triggers.txt, line 9 (12 lines). No parameters.
is_valid_for_legitimacy_change is a scripted trigger in Crusader Kings III, in the Legends of the Dead files, written at line 9 of its file. It takes no parameters: is_valid_for_legitimacy_change = yes (or no). The game's script calls it in 38 places, among them Withdraw Funds from Treasury (decision), Beseech Claim (interaction) and Swing the Scales of Power (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/06_ce1_legitimacy_triggers.txt.
What it checks
- Has Legitimacy
- Is landed
- Is a ruler
- Highest held Title is at least County Rank
- Their government is not a Theocratic-type Government
- Their government is not unplayable
• 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 (12 lines of game script)
is_valid_for_legitimacy_change = {
has_legitimacy = yes
is_alive = yes
is_landed = yes
is_ruler = yes
exists = dynasty
highest_held_title_tier >= tier_county
NOR = {
government_has_flag = government_is_theocracy
government_has_flag = government_is_republic
}
}As written in game/common/scripted_triggers/06_ce1_legitimacy_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_valid_for_legitimacy_change.
Decisions (1)
Character interactions (2)
Casus belli (2)
Great projects (1)
- strengthen_capital
Events (3)
- pam_tenet_events.0001
- Scheme Discovered!
hostile_scheme_discovery.4001 - Scheme Discovered!
hostile_scheme_discovery.4002
On actions (the game's own hooks) (3)
- dynastic_cycle_yearly_pulse
- on_combat_end_loser
- on_death
Scripted effects (22)
- add_legitimacy_effect
- conversion_tenet_acts_of_the_apostles_effect
- epidemic_endemic_capital_legitimacy_effect
- epidemic_outbreak_legitimacy_effect
- excommunication_legitimacy_effect
- faction_accept_demand_legitimacy_effect
16 more
- faction_war_end_defeat_legitimacy_effect
- faction_war_end_victory_legitimacy_effect
- grand_activity_participation_legitimacy_effect
- great_project_reward_contribution_completion_actual_reward_effect
- hostile_scheme_exposure_legitimacy_effect
- legendary_hunt_participation_legitimacy_effect
- marriage_interaction_on_accept_effect
- natural_disaster_great_project_mandatory_investment_reward_effect
- natural_disaster_great_project_optional_investment_reward_effect
- on_ceremonial_claimant_faction_war_win_common
- on_claimant_faction_war_win_common
- pam_tenet_apostolic_succession_episcopate_effect
- pilgrimage_activity_participation_legitimacy_effect
- remove_piety_level_for_shunned_or_criminal_trait_effect
- standard_activity_participation_legitimacy_effect
- war_end_legitimacy_effect
Scripted triggers (1)
Source: game/common/scripted_triggers/06_ce1_legitimacy_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.