# DO NOT ALTER THE NAME OR NUMBER OF THESE!

succession_laws = {
	succ_gavelkind = {
		oldest_child_opinion = -5
		child_opinion = 15
		dynasty_opinion = 5
		vassal_opinion = 5

		potential = {
			rebel = no
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				OR = {
					is_feudal = yes
					is_tribal = yes
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
				NOR = {
					any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = nomadic_tribal_government
					government = sacred_confederacy_government
				}
			}
		}

		allow = {
			# NOTE: Do not combine these three. They are separate for the tooltip
			trigger_if = {
				limit = {
					has_dlc = "Conclave"
					has_law = succ_feudal_elective
				}

				has_law = succession_voting_power_0
			}
			trigger_else_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = crown_authority_4
			}
			trigger_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = centralization_4
			}

			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { in_revolt = yes }
					in_revolt = no
				}

				trigger_if = {
					limit = { is_tribal = yes }

					custom_tooltip = {
						text = TT_NOT_UNREFORMED_PAGAN

						trigger_if = {
							limit = { religion_group = pagan_group }

							OR = {
								religion = hellenic_pagan
								is_reformed_religion = yes
							}
						}
					}
				}

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}
			}
		}

		pass_effect = {
			log = "succ_gavelkind pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_gavelkind ([This.GetFullBaseName])"
			succession = gavelkind
		}
	}

	succ_elective_gavelkind = {
		child_opinion = 15
		dynasty_opinion = 5

		potential = {
			rebel = no
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				OR = {
					is_feudal = yes
					is_tribal = yes
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
				NOR = {
					any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
					government = chinese_imperial_government
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = nomadic_tribal_government
					government = sacred_confederacy_government
				}
			}
		}

		allow = {
			# NOTE: Do not combine these three. They are separate for the tooltip
			trigger_if = {
				limit = {
					has_dlc = "Conclave"
					has_law = succ_feudal_elective
				}

				has_law = succession_voting_power_0
			}
			trigger_else_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = crown_authority_4
			}
			trigger_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = centralization_4
			}

			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { in_revolt = yes }
					in_revolt = no
				}

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}
			}
		}

		pass_effect = {
			log = "succ_elective_gavelkind pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_elective_gavelkind ([This.GetFullBaseName])"

			succession = {
				base_type = elective_gavelkind
				voting_rules = elective_gavelkind
			}
		}
	}

	succ_eldership = {
		dynasty_opinion = 5

		potential = {
			has_dlc = "Holy Fury"

			rebel = no
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				OR = {
					is_feudal = yes
					is_tribal = yes
				}

				OR = {
					AND = {
						is_tribal = yes

						OR = {
							religion = baltic_pagan
							religion = west_african_pagan
						}
					}
					
					has_religion_feature = religion_beatification
					has_religion_feature = religion_feature_baltic
					has_religion_feature = religion_feature_west_african
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
				NOR = {
					any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
					government = chinese_imperial_government
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = nomadic_tribal_government
					government = sacred_confederacy_government
					has_religion_feature = religion_matriarchal
					has_religion_feature = religion_patriarchal
				}
			}
		}

		allow = {
			# NOTE: Do not combine these three. They are separate for the tooltip
			trigger_if = {
				limit = {
					has_dlc = "Conclave"
					has_law = succ_feudal_elective
				}

				has_law = succession_voting_power_0
			}
			trigger_else_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = crown_authority_4
			}
			trigger_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = centralization_4
			}

			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { in_revolt = yes }
					in_revolt = no
				}

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}
			}
		}

		pass_effect = {
			log = "succ_eldership pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_eldership ([This.GetFullBaseName])"

			succession = {
				base_type = tanistry
				voting_rules = eldership_rules
			}
		}
	}

	succ_seniority = {
		vassal_opinion = -5
		oldest_child_opinion = -15
		child_opinion = -10
		dynasty_opinion = 5

		potential = {
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				trigger_if = {
					limit = { is_merchant_republic = yes }
					PREV = { is_primary_holder_title = no }
				}
				trigger_else_if = {
					limit = { is_patrician = no }

					is_feudal = yes
					NOT = { religion_group = indian_group }
				}

				trigger_if = {
					limit = { religion_group = pagan_group }

					OR = {
						is_reformed_religion = yes
						religion = hellenic_pagan
						is_patrician = yes
					}
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
				NOR = {
					any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = sacred_confederacy_government
				}
			}
		}

		allow = {
			# NOTE: Do not combine these three. They are separate for the tooltip
			trigger_if = {
				limit = {
					has_dlc = "Conclave"
					has_law = succ_feudal_elective
				}

				has_law = succession_voting_power_0
			}
			trigger_else_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = crown_authority_4
			}
			trigger_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = centralization_4
			}

			trigger_if = {
				limit = {
					NOR = {
						has_dlc = "Conclave"
						holder_scope = {
							is_offmap_governor = offmap_hre
						}
						is_patrician = yes
					}

					has_crown_law_title = yes
				}

				crownlaw_title = {
					OR = {
						has_law = crown_authority_2
						has_law = crown_authority_3
						has_law = crown_authority_4
					}
				}
			}

			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { in_revolt = yes }
					in_revolt = no
				}

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}
			}
		}

		pass_effect = {
			log = "succ_seniority pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_seniority ([This.GetFullBaseName])"
			succession = seniority
		}
	}

	succ_primogeniture = {
		oldest_child_opinion = 10
		youngest_child_opinion = -15
		child_opinion = -10
		dynasty_opinion = -5

		potential = {
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				trigger_if = {
					limit = { is_feudal = no }

					is_tribal = yes
					religion_group = muslim
				}

				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}

				NOR = {
					government = confucian_bureaucracy
					government = timar_government
					government = order_government
					government = nomadic_tribal_government
					government = roman_imperial_government
				}
				
				trigger_if = {
					limit = { government = sacred_confederacy_government }

					offmap_hre = {
						has_offmap_flag = proclaim_erbkaisertum
					}
				}

				trigger_if = {
					limit = { religion_group = pagan_group }

					OR = {
						is_reformed_religion = yes
						religion = bon
						religion = hellenic_pagan
					}
				}
			}
		}

		allow = {
			trigger_if = {
				limit = {
					holder_scope = {
						religion_group = muslim
					}
				}
				#
			}
			trigger_else = {
				# NOTE: Do not combine these three. They are separate for the tooltip
				trigger_if = {
					limit = {
						has_dlc = "Conclave"
						is_vice_royalty = no
						has_law = succ_feudal_elective
					}

					has_law = succession_voting_power_0
				}
				trigger_else_if = {
					limit = {
						holder_scope = {
							is_offmap_governor = offmap_hre
						}
					}
					has_law = crown_authority_4
				}
				trigger_if = {
					limit = {
						holder_scope = {
							is_offmap_governor = offmap_hre
						}
					}
					has_law = centralization_4
				}

				# Viceroyalties can always have primogeniture if not muslim
				trigger_if = {
					limit = {
						has_dlc = "Charlemagne"

						holder_scope = {
							independent = no

							top_liege = {
								OR = {
									has_law = vice_royalty_1
									has_law = vice_royalty_2
								}
							}
						}
					}

					holder_scope = {
						show_scope_change = no

						any_demesne_title = {
							is_vice_royalty = yes
						}
					}
				}
				trigger_else_if = {
					limit = { has_dlc = "Conclave" }

					OR = {
						has_law = ze_administration_laws_1
						has_law = ze_administration_laws_2
					}
				}
				trigger_else_if = {
					limit = {
						holder_scope = {
							NOT = { is_offmap_governor = offmap_hre }
						}
					}

					crownlaw_title = {
						OR = {
							has_law = crown_authority_3
							has_law = crown_authority_4
						}
					}
				}

				holder_scope = {
					show_scope_change = no

					trigger_if = {
						limit = { in_revolt = yes }
						in_revolt = no
					}

					trigger_if = {
						limit = { independent = no }

						custom_tooltip = {
							text = not_forced_tt
							NOT = { has_character_flag = liege_forced_succ_law }
						}
					}
				}
			}
		}

		pass_effect = {
			log = "succ_primogeniture pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_primogeniture ([This.GetFullBaseName])"
			succession = primogeniture
		}
	}

	succ_feudal_elective = {
		oldest_child_opinion = -15
		child_opinion = -5
		dynasty_opinion = -5
		vassal_opinion = 10

		potential = {
			is_primary_type_title = no
			higher_real_tier_than = BARON

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				is_feudal = yes

				trigger_if = {
					limit = {
						OR = {
							#government = muslim_government
							religion_group = indian_group

							AND = {
								religion_group = pagan_group
								is_reformed_religion = no
								NOT = { religion = hellenic_pagan }
							}
						}
					}

					has_dlc = "Conclave"
					higher_real_tier_than = DUKE
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
				NOR = {
					any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
					government = chinese_imperial_government
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = sacred_confederacy_government
				}
			}
		}

		allow = {
			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}

				trigger_if = {
					limit = {
						has_dlc = "Conclave"
						OR = {
							#government = muslim_government
							religion_group = indian_group

							AND = {
								religion_group = pagan_group
								is_reformed_religion = no
								NOT = { religion = hellenic_pagan }
							}
						}
					}

					has_law = succession_voting_power_1
				}
			}
		}

		pass_effect = {
			log = "succ_feudal_elective pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_feudal_elective ([This.GetFullBaseName])"

			succession = {
				base_type = feudal_elective
				voting_rules = feudal_elective
			}
		}
	}

	succ_hre_elective = {
		oldest_child_opinion = -15
		child_opinion = -5
		dynasty_opinion = -5
		vassal_opinion = 15
		vassal_limit = 20
		
		potential = {
			# Title bound
			title = e_hre
			
			NOR = {
				has_law = succ_primogeniture
				has_law = succ_feudal_elective
			}
			
			holder_scope = {
				is_feudal = yes
				government = sacred_confederacy_government
			}
		}

		allow = {
			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = {
						has_dlc = "Conclave"

						OR = {
							#government = muslim_government
							religion_group = indian_group

							AND = {
								religion_group = pagan_group
								is_reformed_religion = no
								NOT = { religion = hellenic_pagan }
							}
						}
					}

					has_law = succession_voting_power_1
				}
			}
		}

		pass_effect = {
			log = "succ_hre_elective pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_hre_elective ([This.GetFullBaseName])"

			succession = {
				base_type = feudal_elective
				#voting_rules = hre_feudal_elective
				voting_rules = hre_elective
			}
		}
	}

	succ_byzantine_elective = {
		oldest_child_opinion = -5
		child_opinion = -5
		dynasty_opinion = -5
		feudal_opinion = -5

		potential = {
			real_tier = EMPEROR
			
			OR = {
				title = e_byzantium
				title = e_roman_empire
			}

			holder_scope = {
				is_feudal = yes
				
				NOR = {
					religion_group = muslim
					government = chinese_imperial_government
					government = confucian_bureaucracy
					government = order_government
					government = nomadic_tribal_government
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_byzantine_elective pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_byzantine_elective ([This.GetFullBaseName])"

			succession = {
				base_type = feudal_elective
				voting_rules = byzantine_elective
			}
		}
	}

	succ_tanistry = {
		oldest_child_opinion = -20
		child_opinion = -10
		dynasty_opinion = 5
		vassal_opinion = 5

		potential = {
			higher_real_tier_than = BARON
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}

			holder_scope = {
				OR = {
					is_feudal = yes
					is_tribal = yes
				}

				OR = {
					culture_group = celtic

					any_owned_bloodline = {
						has_bloodline_flag = bloodline_tanistry
					}
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
				NOR = {
					any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
					government = chinese_imperial_government
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = sacred_confederacy_government
				}
			}
		}

		allow = {
			# NOTE: Do not combine these three. They are separate for the tooltip
			trigger_if = {
				limit = {
					has_dlc = "Conclave"
					has_law = succ_feudal_elective
				}

				has_law = succession_voting_power_0
			}
			trigger_else_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = crown_authority_4
			}
			trigger_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = centralization_4
			}

			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}
			}
		}

		pass_effect = {
			log = "succ_tanistry pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_tanistry ([This.GetFullBaseName])"

			succession = {
				base_type = tanistry
				voting_rules = tanistry
			}
		}
	}

	succ_ultimogeniture = {
		youngest_child_opinion = 10
		oldest_child_opinion = -15
		child_opinion = -10
		dynasty_opinion = -5

		potential = {
            is_primary_type_title = no

            trigger_if = {
                limit = { is_landless_type_title = yes }
                temporary = yes
            }

            holder_scope = {
				trigger_if = {
					limit = { is_feudal = no }

					is_tribal = yes

					OR = {
						has_landed_title = e_mongol_empire
						has_landed_title = e_golden_horde
						has_landed_title = e_il-khanate
						has_landed_title = e_chagatai
					}
				}

                trigger_if = {
                    limit = { religion_group = pagan_group }

                    OR = {
                        culture = mongol
						culture = jurchen
						culture = kirghiz
						culture = uyghur
                        religion = bon
                        religion = hellenic_pagan
                        is_reformed_religion = yes
                    }
                }
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}
				
                NOR = {
                    any_demesne_title = { is_vice_royalty = yes }
					religion_group = muslim
                    government = confucian_bureaucracy
                    government = order_government
                    government = roman_imperial_government
					government = sacred_confederacy_government
                }
            }
        }

		allow = {
			# NOTE: Do not combine these three. They are separate for the tooltip
			trigger_if = {
				limit = {
					has_dlc = "Conclave"
					has_law = succ_feudal_elective
				}

				has_law = succession_voting_power_0
			}
			trigger_else_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = crown_authority_4
			}
			trigger_if = {
				limit = {
					holder_scope = {
						is_offmap_governor = offmap_hre
					}
				}
				has_law = centralization_4
			}

			trigger_if = {
				limit = { has_dlc = "Conclave" }

				holder_scope = {
					show_scope_change = no

					primary_title = {
						show_scope_change = no

						OR = {
							has_law = ze_administration_laws_1
							has_law = ze_administration_laws_2
						}
					}
				}
			}
			trigger_else_if = {
				limit = {
					has_crown_law_title = yes
					holder_scope = {
						NOT = { is_offmap_governor = offmap_hre }
					}
				}

				crownlaw_title = {
					OR = {
						has_law = crown_authority_1
						has_law = crown_authority_2
						has_law = crown_authority_3
						has_law = crown_authority_4
					}
				}
			}

			holder_scope = {
				show_scope_change = no

				trigger_if = {
					limit = { independent = no }

					custom_tooltip = {
						text = not_forced_tt
						NOT = { has_character_flag = liege_forced_succ_law }
					}
				}
			}
		}

		pass_effect = {
			log = "succ_ultimogeniture pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_ultimogeniture ([This.GetFullBaseName])"
			succession = ultimogeniture
		}
	}

	succ_turkish_succession = {
		oldest_child_opinion = -5
		#child_opinion = 30
		#dynasty_opinion = 10

		potential = {
			is_primary_type_title = no

			trigger_if = {
				limit = { is_landless_type_title = yes }
				temporary = yes
			}
			
			holder_scope = {
				is_feudal = yes

				OR = {
					government = timar_government
					has_religion_feature = religion_patriarchal
					has_religion_feature = religion_matriarchal
				}
				
				trigger_if = {
					limit = { tier = BARON }
					
					# Titles revert back to the liege on death
					NOT = { is_law_potential = succ_appointment }
				}

				NOR = {
					government = confucian_bureaucracy
					government = order_government
					government = roman_imperial_government
					government = sacred_confederacy_government
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_turkish_succession pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_turkish_succession ([This.GetFullBaseName])"
			succession = turkish_succession
		}
	}

	succ_papal_succession = {
		potential = {
			OR = {
				title = k_papal_state
				title = d_fraticelli
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_papal_succession pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_papal_succession ([This.GetFullBaseName])"
			succession = papal_succession
		}
	}

	# Titles revert back to the liege on death
	succ_appointment = {
		potential = {
			holder_scope = {
				OR = {
					AND = {
						government = order_government
						holy_order = no
					}
					AND = {
						is_feudal = yes
						liege = {
							OR = {
								government = roman_imperial_government
								government = timar_government
								AND = {
									government = muslim_government
									trigger_if = {
										limit = { has_dlc = "Conclave" }
										has_law = law_voting_power_0
									}
									trigger_else = {
										has_law = crown_authority_4
									}
								}
							}
						}
						tier = BARON
					}
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_appointment pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_appointment ([This.GetFullBaseName])"
			succession = appointment
		}
	}

	succ_open_elective = {
		potential = {
			temporary = no
			
			OR = {
				is_primary_type_title = yes
				holy_order = yes

				holder_scope = {
					OR = {
						is_republic = yes
						is_theocracy = yes
					}
				}
			}

			holder_scope = {
				trigger_if = {
					limit = { is_offmap_governor = yes }

					# Use Offmap succession instead
					NOT = { is_law_potential = succ_offmap_succession }
				}
				trigger_if = {
					limit = { is_theocracy = yes }

					# Use Investiture and Papal succession instead
					NOR = {
						is_law_potential = succ_papal_succession
						is_law_potential = succ_catholic_bishopric
					}
				}
				trigger_else_if = {
					limit = { is_republic = yes }
					is_patrician = no
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_open_elective pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_open_elective ([This.GetFullBaseName])"
			succession = open_elective
		}
	}

	succ_catholic_bishopric = {
		potential = {
			is_primary_type_title = no
			is_landless_type_title = no

			holder_scope = {
				is_theocracy = yes

				OR = {
					religion = catholic
					religion = fraticelli
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_catholic_bishopric pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_catholic_bishopric ([This.GetFullBaseName])"
			succession = catholic_bishopric
		}
	}

	succ_patrician_elective = {
		potential = {
			is_merchant_republic = yes

			trigger_if = {
				limit = { is_primary_holder_title = no }

				holder_scope = {
					in_revolt = yes
				}

				succ_law_title = {
					title = PREV
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_patrician_elective pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_patrician_elective ([This.GetFullBaseName])"
			succession = patrician_elective
		}
	}

	succ_nomad_succession = {
		potential = {
			holder_scope = {
				trigger_if = {
					limit = {
						has_dlc = "Horse Lords"
					}
					is_nomadic = yes
				}
				trigger_else = {
					government = nomadic_tribal_government
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_nomad_succession pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_nomad_succession ([This.GetFullBaseName])"
			succession = nomad_succession
		}
	}

	succ_offmap_succession = {
		potential = {
			holder_scope = {
				top_liege = { is_offmap_governor = yes }
				offmap_power = {
					has_offmap_flag = governor_succ_offmap_succession_enforced
				}
			}
		}

		allow = {}

		pass_effect = {
			log = "succ_offmap_succession pass ([This.GetFullBaseName])"
		}

		effect = {
			log = "succ_offmap_succession ([This.GetFullBaseName])"
			succession = offmap_succession

			# This succession type generates a character of China's culture and religion
			# They have decent (4-10) stats, and good (7-11) stewardship, and will always have a Stewardship education
			# The offmap power defined in the top liege's government is used to determine the culture and religion. Will not function if this isn't defined
		}
	}
}