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

Scripted trigger

feudal_elective_potential_landed_candidate_trigger

feudal_elective_potential_landed_candidate_trigger = yes

game/common/scripted_triggers/00_elective_triggers.txt, line 158 (38 lines). No parameters.

feudal_elective_potential_landed_candidate_trigger is a scripted trigger in Crusader Kings III, written at line 158 of its file. It takes no parameters: feudal_elective_potential_landed_candidate_trigger = yes (or no). The game's script calls it in 5 places, among them confederation_elective (succession election), feudal_elective (succession election) and princely_elective (succession election). Patch 1.20.1.2, from game/common/scripted_triggers/00_elective_triggers.txt.

What it checks

  • One of these

  • One of these

    • Any liege or above:
      • this = scope:holder
    • or

      scope:holder: Is an Independent Ruler
    • or

      scope:holder:
      • exists = liege
      • None of these

        • Any liege or above:
          • has_realm_law_flag = titles_cannot_leave_realm_on_succession
          • NOT = { this = scope:potential_candidate }
          • NOT = { target_is_vassal_or_below = scope:potential_candidate }
  • One of these

    • scope:holder:
      • Not all of these

        • exists = faith.religious_head
        • this = faith.religious_head
    • or

      this.faith = scope:holder.faith
  • has_unelectable_trait_trigger = no
  • has_unelectable_government_trigger = no

• 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 (38 lines of game script)
feudal_elective_potential_landed_candidate_trigger = {
	save_temporary_scope_as = potential_candidate
	# Same-government matching empties the pool when the holder has an unelectable government, so fall back to electable candidates.
	OR = {
		has_same_government = scope:holder
		scope:holder = { has_unelectable_government_trigger = yes }
	}
	#Either the candidate is in the realm, or the title is independent, or the realm of the title does NOT have protected inheritance.
	OR = {
		any_liege_or_above = {
			this = scope:holder
		}
		scope:holder = { top_liege = this }
		scope:holder = {
			exists = liege
			NOT = {
				any_liege_or_above = {
					has_realm_law_flag = titles_cannot_leave_realm_on_succession
					NOR = {
						this = scope:potential_candidate
						target_is_vassal_or_below = scope:potential_candidate
					}
				}
			}
		}
	}
	OR = { #If the title controls the faith, candidates must be of the same faith.
		scope:holder = {
			NAND = {
				exists = faith.religious_head
				this = faith.religious_head
			}
		}
		this.faith = scope:holder.faith
	}
	has_unelectable_trait_trigger = no
	has_unelectable_government_trigger = no
}

As written in game/common/scripted_triggers/00_elective_triggers.txt.

Where it is used

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

Succession election (5)

  • confederation_elective
  • feudal_elective
  • princely_elective
  • saxon_elective
  • tribal_elective

Source: game/common/scripted_triggers/00_elective_triggers.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?