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_landless_claimant_candidate_trigger

feudal_elective_potential_landless_claimant_candidate_trigger = yes

game/common/scripted_triggers/00_elective_triggers.txt, line 197 (41 lines). No parameters.

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

What it checks

  • One of these

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

      Is not a ruler
    • 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 }
  • None of these

  • One of these

    • scope:holder:
      • Not all of these

        • exists = faith.religious_head
        • this = scope:holder.faith.religious_head
    • or

      Their faith is the same as that of holder
  • 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 (41 lines of game script)
feudal_elective_potential_landless_claimant_candidate_trigger = {
	save_temporary_scope_as = potential_candidate
	#Either the candidate is in the realm, or is landless, or the title is independent, or the realm of the title does NOT have protected inheritance.
	OR = {
		any_liege_or_above = {
			this = scope:holder
		}
		is_ruler = no
		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
					}
				}
			}
		}
	}
	NOT = { #Landless characters should not be heirs to Theocracies/Republics.
		any_heir_title = {
			holder ?= {
				has_unelectable_government_trigger = yes
			}
		}
	}
	OR = { #If the title controls the faith, candidates must be of the same faith.
		scope:holder = {
			NAND = {
				exists = faith.religious_head
				this = scope:holder.faith.religious_head
			}
		}
		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_landless_claimant_candidate_trigger.

Succession election (5)

  • feudal_elective
  • princely_elective
  • saxon_elective
  • scandinavian_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?