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_dynastic_candidate_trigger

feudal_elective_potential_landless_dynastic_candidate_trigger = yes

game/common/scripted_triggers/00_elective_triggers.txt, line 239 (90 lines). No parameters.

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

What it checks

• 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 (90 lines of game script)
feudal_elective_potential_landless_dynastic_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
	}

	#Grandkid block
	trigger_if = {
		limit = {
			NOR = {
				#Check to see that you're not the product of incest
				AND = {
					exists = mother
					exists = father
					mother = { 
						relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = prev.father }
					}
				}
				#Let's make the incredibly bold assumption that if incest is completely allowed we'll just default to check the child instead of parents
				scope:holder.rite = {
					rite_has_parameter = consanguinity_unrestricted_incest 
				}
			}
		}
		# We don't want grandkids to show as candidates if their parent is eligable and still alive
		NOR = {
			mother ?= {
				is_alive = yes
				parent_for_elective_succession_trigger = yes
			}
			father ?= {
				is_alive = yes
				parent_for_elective_succession_trigger = yes
			}
		}
	}
	#if incest is allowed, check if you're the child of the holder since you can be both their kid and grandkid at the same time... 
	trigger_else_if = {
		limit = {
			OR = {
				mother ?= {
					is_alive = yes
				}
				father ?= {
					is_alive = yes
				}
			}
		}
		parent_for_elective_succession_trigger = yes 
	}
	trigger_else = {
		#Your parents are dead and you're eligible for title inheritance. Congrats.
	}
	
	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_dynastic_candidate_trigger.

Succession election (7)

  • confederation_elective
  • feudal_elective
  • gaelic_elective
  • princely_elective
  • saxon_elective
  • scandinavian_elective
1 more
  • 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?