# DO NOT ALTER THE NAME OR NUMBER OF THESE!

succession_laws = {

#	succ_my_test_law = {
#		child_opinion = 15
#		dynasty_opinion = 5
#	
#		potential = {
#			holder_scope = {
#				is_nomadic = no
#				OR = {
#					independent = yes
#					NOT = {
#						any_liege = {
#							holy_order = yes
#						}
#					}
#				}
#				NOT = { religion_group = muslim }
#				is_merchant_republic = no
#				is_patrician = no
#				OR = {
#					independent = yes
#					NOT = {
#						any_demesne_title = {
#							is_vice_royalty = yes
#						}
#					}
#				}
#			}
#			OR = {
#				is_landless_type_title = no
#				is_tribal_type_title = yes
#				temporary = yes
#			}
#			
#			rebel = no
#			
#			OR = {
#				holder_scope = { is_feudal = yes }
#				holder_scope = { is_tribal = yes }
#			}
#			is_primary_type_title = no
#			NOT = { holder_scope = { government = confucian_bureaucracy } }
#			NOT = { holder_scope = { government = chinese_imperial_government } }
#		}
#		allow = {
#			conditional_tooltip = {
#				trigger = {
#					has_dlc = "Conclave"
#				}
#				custom_tooltip = {
#					text = forced_elective_tt
#					hidden_tooltip = {
#						NAND = { 
#							has_law = succession_voting_power_1
#							has_law = succ_feudal_elective
#						}
#					}
#				}
#			}
#			holder_scope = {
#				show_scope_change = no
#				in_revolt = no
#			}
#		}
#		effect = {
#			succession = {
#				base_type = feudal_elective 
#				voting_rules = my_test_law #Definded in common/00_succession_voting
#			}
#			elective_voting_rules = my_test_law
#		}
#		revoke_allowed = {
#			always = no
#		}			
#	}
	
	succ_RR_pious_elective = {
		potential = {
			holder_scope = {
				is_feudal = yes
				OR = {
					government = RR_religious_community_government
					government = theocratic_feudal_government
					government = muslim_government
				}
				is_merchant_republic = no #Probably redundant, but better safe than sorry.
				is_patrician = no
				NOT = { government = confucian_bureaucracy }
				NOT = { government = chinese_imperial_government }
				OR = { # holy order exception
					independent = yes
					NOT = {
						any_liege = {
							holy_order = yes
						}
					}
				}
				OR = { # viceroyalty exception
					independent = yes
					NOT = {
						any_demesne_title = {
							is_vice_royalty = yes
						}
					}
				}
			}
			OR = {
				is_landless_type_title = no
				is_tribal_type_title = yes
				temporary = yes
			}
			is_primary_type_title = no
			NOT = { tier = baron }
		}
		allow = {
			custom_tooltip = {
				text = not_forced_tt
				hidden_tooltip = {
					holder_scope = { NOT = { has_character_flag = liege_forced_succ_law } }
				}
			}
		}
		effect = {
			succession = {
				base_type = feudal_elective
				voting_rules = RR_pious_elective
			}
		}
		revoke_allowed = {
			always = no
		}			
	}
}
