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

Scripted effect · Coronations files

coronation_ceremony_legitimacy_effect

coronation_ceremony_legitimacy_effect = yes

game/common/scripted_effects/10_ach_effects.txt, line 1598 (160 lines). No parameters.

coronation_ceremony_legitimacy_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 1598 of its file. It takes no parameters: coronation_ceremony_legitimacy_effect = yes. The game's script calls it in 2 places, among them Appeal to the Masses (event coronation_events.6122) and The Three Assents (event coronation_events.6123). Its body carries 9 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.

The comment above it in the file

For flavor and adjusting legitimacy in coronation ceremony the people's approval event

What it does

  • If has Legitimacy:
    • If coronation popular approval at least 3: Gains 200 Legitimacy
    • Else, if coronation popular approval at least 2: Gains 100 Legitimacy
    • Else, if coronation popular approval at least 1: Gains 50 Legitimacy
    • Else, if coronation popular approval at least 0: Gains 20 Legitimacy
    • Else, if coronation popular approval at least -1: Loses 50 Legitimacy
    • Else, if coronation popular approval at least -2: Loses 100 Legitimacy
    • Otherwise: Loses 200 Legitimacy
  • If

    • has_activity_intent = coronation_impress_attendees

    Then

    • Legitimacy improved by the Impress Attendees Intent
  • If

    Then

    • Legitimacy improved because of Peasant Leader or Populist Leader
  • If

    Then

  • If

    • Their activity:
      • has_activity_option = { category = special_type option = coronation_type_anointment }

    Then

  • If

    • Their location’s county:
      • Popular Opinion less than 0
      • Their holder:
        • One of these

          • this = root
          • or

            Any liege or above:
            • this = root

    Then

  • If

    • Their location’s county:
      • County Control less than 100
      • Their holder:
        • One of these

          • this = root
          • or

            Any liege or above:
            • this = root

    Then

  • If

    • Their location’s county:
      • Their holder:
        • One of these

          • this = scope:host
          • or

            Any liege or above:
            • this = scope:host
      • title_is_a_faction_member = yes

    Then

    • Legitimacy harmed by a Faction in …
  • If

    • One of these

      • All of these

        • Tyranny at least 80
        • Dread less than 80
      • or

        All of these

        • Tyranny at least 40
        • Dread less than 40

    Then

  • If

    • Their location: Any province epidemic:

    Then

    • Legitimacy harmed by an Plague in …

• 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 (120 lines of game script)
coronation_ceremony_legitimacy_effect = {
	if = {
		limit = {
			has_legitimacy = yes
		}
		if = {
			limit = {
				coronation_popular_approval_value >= 3
			}
			add_legitimacy = major_legitimacy_gain
		}
		else_if = {
			limit = {
				coronation_popular_approval_value >= 2
			}
			add_legitimacy = medium_legitimacy_gain
		}
		else_if = {
			limit = {
				coronation_popular_approval_value >= 1
			}
			add_legitimacy = minor_legitimacy_gain
		}
		else_if = {
			limit = {
				coronation_popular_approval_value >= 0
			}
			add_legitimacy = miniscule_legitimacy_gain
		}
		else_if = {
			limit = {
				coronation_popular_approval_value >= -1
			}
			add_legitimacy = minor_legitimacy_loss
		}
		else_if = {
			limit = {
				coronation_popular_approval_value >= -2
			}
			add_legitimacy = medium_legitimacy_loss
		}
		else = {
			add_legitimacy = major_legitimacy_loss
		}
	}
	#Tooltip major reasons why or why not
	#coronation_popular_approval_value needs to be updated with these
	if = {
		limit = {
			has_activity_intent = coronation_impress_attendees
		}
		custom_tooltip = coronation_legit_impress_attendees
	}
	if = {
		limit = {
			OR = {
				has_trait = peasant_leader
				has_trait = populist_leader
				has_trait = education_republican_knowledge_1
				has_trait = education_republican_knowledge_2
				has_trait = education_republican_knowledge_3
				has_trait = education_republican_knowledge_4	
			}
		}
		custom_tooltip = coronation_legit_improved_by_peasant_leader
	}
	if = {
		limit = {
			location.county = {
				county_opinion >= 25
			}
		}
		custom_tooltip = coronation_legit_improved_by_county_opinion
	}
	if = {
		limit = {
			involved_activity = {
				has_activity_option = {
					category = special_type
					option = coronation_type_anointment
				}
			}
		}
		custom_tooltip = coronation_legit_improved_by_anointment
	}
	if = {
		limit = {
			location.county = {
				county_opinion < 0
				holder = {
					OR = {
						this = root
						any_liege_or_above = {
							this = root
						}
					}
				}
			}
		}
		custom_tooltip = coronation_legit_harmed_by_county_opinion
	}
	if = {
		limit = {
			location.county = {
				county_control < 100
				holder = {
					OR = {
						this = root
						any_liege_or_above = {
							this = root
						}
					}
				}
			}
		}
		custom_tooltip = coronation_legit_harmed_by_county_control
	}
	if = {
		limit = {
			#county is in faction against liege

As written in game/common/scripted_effects/10_ach_effects.txt.

The first 120 of its 160 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 1598.

Where it is used

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

Events (2)

Source: game/common/scripted_effects/10_ach_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?