law_groups = {
	status_of_women = {
		law_type = realm
	}
	revoke_title_law = {
		law_type = realm
	}
	ze_administration_laws = {
		law_type = realm
	}
}

laws = {
	status_of_women_0 = {
		group = status_of_women
		allow = {
			OR = {
				has_law = status_of_women_1
				custom_tooltip = {
					text = "Is a skaven"
				holder_scope = { culture_group = skaven_group }
				}
				custom_tooltip = {
					text = "Is a beastman"
				holder_scope = { culture_group = beastman_group }
				}
				custom_tooltip = {
					text = "Is an ogre"
				holder_scope = { culture_group = ogre_group }
				}
				custom_tooltip = {
					text = "Is Bretonnian"
				holder_scope = { culture_group = bretonnian_group }
				}
				custom_tooltip = {
					text = "Is Arabyan"
				holder_scope = { culture_group = arabyan_group }
				}
				custom_tooltip = {
					text = "Is Nehekharan"
				holder_scope = { culture_group = nehekharan_group }
				}
				custom_tooltip = {
					text = "Is Cathayan"
				holder_scope = { culture = cathayan }
				}
			}
			custom_tooltip = {
				text = "Is not a monster, witch elf, assassin, or slave."
			holder_scope = { cant_love_trigger = yes }
			}
			NOR = {
				custom_tooltip = {
					text = "Is an Elf"
					holder_scope = { culture_group = asur_group }
					holder_scope = { culture_group = asrai_group }
					holder_scope = { culture_group = druchii_group }
				}
				custom_tooltip = {
					text = "Is Kislevite"
					holder_scope = { culture_group = kislevite_group }
				}
				custom_tooltip = {
					text = "Is an Amazon"
					holder_scope = { culture_group = amazon_group }
				}
				custom_tooltip = {
					text = "Is a Lahmian vampire"
					holder_scope = { culture_group = lahmian_group }
				}
			}
		}
		potential = {
			has_dlc = "Zeus"
			holder_scope = { cant_love_trigger = yes }
		}
		ai_will_do = {
			factor = 0
		}
		pass_effect = {

		}
		effect = {
			# if = {
				# limit = {
					# has_law = status_of_women_1
				# }
				# custom_tooltip = {
					# text = TOOLTIP_DISALLOW_FEMALE_SPYMASTER
				# }
			# }
			if = {
				limit = {
					has_law = status_of_women_2
				}
				# custom_tooltip = {
					# text = TOOLTIP_DISALLOW_FEMALE_SPYMASTER
				# }
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_TREASURER
				}
			}
			if = {
				limit = {
					has_law = status_of_women_3
				}
				# custom_tooltip = {
					# text = TOOLTIP_DISALLOW_FEMALE_SPYMASTER
				# }
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_MARSHAL

				}
			}
			if = {
				limit = {
					has_law = status_of_women_4
				}
				# custom_tooltip = {
					# text = TOOLTIP_DISALLOW_FEMALE_SPYMASTER
				# }
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_MARSHAL
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_TRUE_COGNATIC
				}
			}
			hidden_tooltip = {
				revoke_law = status_of_women_1
				revoke_law = status_of_women_2
				revoke_law = status_of_women_3
				revoke_law = status_of_women_4
			}
			set_allow_feminism = no
			set_allow_gender_laws = no
		}
	}
	status_of_women_1 = {
		group = status_of_women
		allow = {
			NOR = {
				custom_tooltip = {
					text = "Is an Elf"
					holder_scope = { culture_group = asur_group }
					holder_scope = { culture_group = asrai_group }
					holder_scope = { culture_group = druchii_group }
				}
				custom_tooltip = {
					text = "Is a Skaven"
					holder_scope = { culture_group = skaven_group }
				}
				custom_tooltip = {
					text = "Is a Beastman"
					holder_scope = { culture_group = beastman_group }
				}
				custom_tooltip = {
					text =  "Is an Amazon"
					holder_scope = { culture_group = amazon_group }
				}
				custom_tooltip = {
					text = "is a Lahmian vampire"
					holder_scope = { culture_group = lahmian_group }
				}
			}
			custom_tooltip = {
				text = "Is not a monster, witch elf, assassin, or slave."
			holder_scope = { cant_love_trigger = yes }
			}
			OR = {
				has_law = status_of_women_0
				has_law = status_of_women_2
			}
		}
		potential = {
			holder_scope = { cant_love_trigger = yes }
			has_dlc = "Zeus"
		}
		ai_will_do = {
			factor = 0
		}
		pass_effect = {

		}
		default_selection = {
			factor = 0

			additive_modifier = {
				value = 10
				holder_scope = {
					OR = {
						culture_group = norscan_group
						culture_group = hung_group
						culture_group = kurgan_group
						culture_group = imperial_group
						culture_group = sartosan_group
					}
				}
			}
		}
		effect = {
			# if = {
				# limit = {
					# has_law = status_of_women_0
				# }
				# custom_tooltip = {
					# text = TOOLTIP_ALLOW_FEMALE_SPYMASTER
				# }
			# }
			if = {
				limit = {
					has_law = status_of_women_2
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_TREASURER
				}
			}
			if = {
				limit = {
					has_law = status_of_women_3
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_MARSHAL
				}
			}
			if = {
				limit = {
					has_law = status_of_women_4
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_MARSHAL
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_TRUE_COGNATIC
				}
			}

			hidden_tooltip = {
				revoke_law = status_of_women_0
				revoke_law = status_of_women_2
				revoke_law = status_of_women_3
				revoke_law = status_of_women_4
			}
			set_allow_feminism = no
			set_allow_gender_laws = no
		}
	}
	status_of_women_2 = {
		group = status_of_women
		allow = {
			NOR = {
				custom_tooltip = {
					text = "Is an Elf"
					holder_scope = { culture_group = asur_group }
					holder_scope = { culture_group = asrai_group }
					holder_scope = { culture_group = druchii_group }
				}
				custom_tooltip = {
					text = "Is a Skaven"
					holder_scope = { culture_group = skaven_group }
				}
				custom_tooltip = {
					text = "Is a Beastman"
					holder_scope = { culture_group = beastman_group }
				}
				custom_tooltip = {
					text = "Is an Amazon"
					holder_scope = { culture_group = amazon_group }
				}
				custom_tooltip = {
					text = "Is a Lahmian vampire"
					holder_scope = { culture_group = lahmian_group }
				}
			}
			custom_tooltip = {
				text = "Is not a monster, witch elf, assassin, or slave."
			holder_scope = { cant_love_trigger = yes }
			}
			OR = {
				has_law = status_of_women_1
				has_law = status_of_women_3
			}
		}
		potential = {
			holder_scope = { cant_love_trigger = yes }
			has_dlc = "Zeus"
		}
		ai_will_do = {
			factor = 0
		}
		pass_effect = {

		}
		default_selection = {
			factor = 0

			additive_modifier = {
				value = 10
				holder_scope = {
					OR = {
						culture_group = estalian_group
						culture_group = tilean_group
						culture_group = southlander_group
					}
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_law = status_of_women_0
				}
				# custom_tooltip = {
					# text = TOOLTIP_ALLOW_FEMALE_SPYMASTER
				# }
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_TREASURER
				}
			}
			if = {
				limit = {
					has_law = status_of_women_1
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_TREASURER
				}
			}
			if = {
				limit = {
					has_law = status_of_women_3
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_MARSHAL
				}
			}
			if = {
				limit = {
					has_law = status_of_women_4
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_FEMALE_MARSHAL
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_TRUE_COGNATIC
				}
			}
			hidden_tooltip = {
				revoke_law = status_of_women_0
				revoke_law = status_of_women_1
				revoke_law = status_of_women_3
				revoke_law = status_of_women_4
			}
			set_allow_feminism = no
			set_allow_gender_laws = no
		}
	}
	status_of_women_3 = {
		group = status_of_women
		allow = {
			NOR = {
				custom_tooltip = {
					text = "Is a Skaven"
					holder_scope = { culture_group = skaven_group }
				}
				custom_tooltip = {
					text = "Is a Beastman"
					holder_scope = { culture_group = beastman_group }
				}
				custom_tooltip = {
					text = "Is am Amazon"
					holder_scope = { culture_group = amazon_group }
				}
			}
			custom_tooltip = {
				text = "Is not a monster, witch elf, assassin, or slave."
			holder_scope = { cant_love_trigger = yes }
			}
			OR = {
				has_law = status_of_women_2
				has_law = status_of_women_4
				custom_tooltip = {
					text = "Is a High Elf"
					culture_group = asur_group
				}
				custom_tooltip = {
					text = "Is a Dark Elf"
					culture_group = druchii_group
				}
			}
		}
		potential = {
			holder_scope = { cant_love_trigger = yes }
			has_dlc = "Zeus"
		}
		ai_will_do = {
			factor = 0
		}
		pass_effect = {

		}
		default_selection = {
			factor = 0

			additive_modifier = {
				value = 10
				holder_scope = {
					OR = { culture_group = asur_group
						culture_group = druchii_group
						culture_group = kislevite_group }
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_law = status_of_women_0
				}
				# custom_tooltip = {
					# text = TOOLTIP_ALLOW_FEMALE_SPYMASTER
				# }
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_MARSHAL
				}
			}
			if = {
				limit = {
					has_law = status_of_women_1
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_MARSHAL
				}
			}
			if = {
				limit = {
					has_law = status_of_women_2
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_MARSHAL
				}
			}
			if = {
				limit = {
					has_law = status_of_women_4
				}
				custom_tooltip = {
					text = TOOLTIP_DISALLOW_TRUE_COGNATIC
				}
			}
			hidden_tooltip = {
				revoke_law = status_of_women_0
				revoke_law = status_of_women_1
				revoke_law = status_of_women_2
				revoke_law = status_of_women_4
			}
			set_allow_feminism = no
			set_allow_gender_laws = yes
		}
	}
	status_of_women_4 = {
		group = status_of_women
		allow = {
			NOR = {
				custom_tooltip = {
					text = "Is a Skaven"
					holder_scope = { culture_group = skaven_group }
					}
				custom_tooltip = {
					text = "Is a Beastman"
					holder_scope = { culture_group = beastman_group }
					}
			}
			custom_tooltip = {
				text = "Is not a monster, witch elf, assassin, or slave."
			holder_scope = { cant_love_trigger = yes }
			}
			OR = {
				has_law = status_of_women_3
				custom_tooltip = {
					text = "Is a Lahmian Vampire"
					holder_scope = { culture_group = lahmian_group }
				}
				custom_tooltip = {
					text = "Is an Amazon"
					holder_scope = { culture_group = amazon_group }
				}
				custom_tooltip = {
					text = "Is a Wood Elf"
					holder_scope = { culture_group = asrai_group }
				}
			}
		}
		potential = {
			holder_scope = { cant_love_trigger = yes }
			has_dlc = "Zeus"
		}
		ai_will_do = {
			factor = 0
		}
		pass_effect = {

		}
		default_selection = {
			factor = 0

			additive_modifier = {
				value = 10
				holder_scope = {
					OR = { culture_group = asrai_group
						culture_group = lahmian_group
						culture_group = amazon_group }
				}
			}
		}
		effect = {
			if = {
				limit = {
					has_law = status_of_women_0
				}
				# custom_tooltip = {
					# text = TOOLTIP_ALLOW_FEMALE_SPYMASTER
				# }
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_MARSHAL
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_TRUE_COGNATIC
				}
			}
			if = {
				limit = {
					has_law = status_of_women_1
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_CHANCELLOR
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_TREASURER
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_MARSHAL
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_TRUE_COGNATIC
				}
			}
			if = {
				limit = {
					has_law = status_of_women_2
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_FEMALE_MARSHAL
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_TRUE_COGNATIC
				}
			}
			if = {
				limit = {
					has_law = status_of_women_3
				}
				custom_tooltip = {
					text = TOOLTIP_ALLOW_TRUE_COGNATIC
				}
			}
			hidden_tooltip = {
				revoke_law = status_of_women_0
				revoke_law = status_of_women_1
				revoke_law = status_of_women_2
				revoke_law = status_of_women_3
			}
			set_allow_feminism = yes
			set_allow_gender_laws = yes
		}
	}

	revoke_title_law_0 = {
		group = revoke_title_law
		default = yes
		allow = {
			NOT = { has_law = revoke_title_law_2 } }
		potential = {
			holder_scope = { NOT = { religion_group = greenskin_gods_group } }
			has_dlc = "Zeus"
			NOT = { holder_scope = { is_nomadic = yes } }
		}
		ai_will_do = { factor = 0 }
		pass_effect = { }
		effect = {
			set_allow_title_revokation = no
			set_allow_free_infidel_revokation = no
			hidden_tooltip = {
				revoke_law = revoke_title_law_1
				revoke_law = revoke_title_law_2
			}
		}
	}
	revoke_title_law_1 = {
		group = revoke_title_law
		allow = { }
		potential = {
			holder_scope = { NOT = { religion_group = greenskin_gods_group } }
			has_dlc = "Zeus"
			NOT = { holder_scope = { is_nomadic = yes } }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.05
				has_law = revoke_title_law_0
			}
			modifier = {
				factor = 0
				has_law = revoke_title_law_2
			}
		}
		pass_effect = { }
		effect = {
			set_allow_title_revokation = yes
			set_allow_free_infidel_revokation = no
			hidden_tooltip = {
				revoke_law = revoke_title_law_0
				revoke_law = revoke_title_law_2
			}
		}
	}
	revoke_title_law_2 = {
		group = revoke_title_law
		allow = {
			NOT = { has_law = revoke_title_law_0 }
		}
		potential = {
			holder_scope = { NOT = { religion_group = greenskin_gods_group } }
			has_dlc = "Zeus"
			NOT = { holder_scope = { is_nomadic = yes } }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.01
			}
			modifier = {
				factor = 10
				holder_scope = { trait = zealous }
			}
		}
		default_selection = {
			factor = 0

			additive_modifier = {
				value = 10
				holder_scope = {
					culture_group = asur_group
				}
			}

			additive_modifier = {
				value = 10
				holder_scope = {
					culture_group = druchii_group
				}
			}
		}
		pass_effect = { }
		effect = {
			set_allow_title_revokation = yes
			set_allow_free_infidel_revokation = yes
			hidden_tooltip = {
				revoke_law = revoke_title_law_0
				revoke_law = revoke_title_law_1
			}
		}
	}

	ze_administration_laws_0 = {
		group = ze_administration_laws
		default = yes
		allow = {
			NOT = { has_law = ze_administration_laws_2 }
		}
		potential = {
			holder_scope = { NOT = { religion_group = greenskin_gods_group } }
			has_dlc = "Zeus"
			NOT = { holder_scope = { is_nomadic = yes } }
		}
		ai_will_do = { factor = 0 }
		pass_effect = { }
		effect = {
			custom_tooltip = {
				text = TOOLTIP_DISALLOW_ADDITIONAL_SUCCESSION_LAWS
			}
			if = {
				limit = {
					NOT = { has_dlc = "Charlemagne" }
				}
				set_allow_free_duchy_revokation = no
			}
			if = {
				limit = {
					has_dlc = "Charlemagne"
				}
				set_allow_free_vice_royalty_revokation = no
			}
			hidden_tooltip = {
				revoke_law = ze_administration_laws_1
				revoke_law = ze_administration_laws_2
			}
		}
	}
	ze_administration_laws_1 = {
		group = ze_administration_laws
		allow = {

		}
		potential = {
			holder_scope = { NOT = { religion_group = greenskin_gods_group } }
			holder_scope = { NOT = { culture_group = asur_group } }
			holder_scope = { NOT = { culture_group = asrai_group } }
			has_dlc = "Zeus"
			NOT = { holder_scope = { is_nomadic = yes } }
		}
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.2
				always = yes
			}
			modifier = {
				factor = 0
				has_law = ze_administration_laws_2
			}
		}
		default_selection = {
			factor = 0
			additive_modifier = {
				value = 10
				culture_group = imperial_group
			}
			additive_modifier = {
				value = 10
				culture_group = tilean_group
			}
			additive_modifier = {
				value = 10
				culture_group = estalian_group
			}

		}
		pass_effect = { }
		effect = {
			if = {
				limit = { has_law = ze_administration_laws_0 }
				custom_tooltip = {
					text = TOOLTIP_ALLOW_ADDITIONAL_SUCCESSION_LAWS
				}
			}
			if = {
				limit = {
					NOT = { has_dlc = "Charlemagne" }
				}
				set_allow_free_duchy_revokation = no
			}
			if = {
				limit = {
					has_dlc = "Charlemagne"
				}
				set_allow_free_vice_royalty_revokation = no
			}
			hidden_tooltip = {
				revoke_law = ze_administration_laws_0
				revoke_law = ze_administration_laws_2
			}
		}
	}
	ze_administration_laws_2 = {
		group = ze_administration_laws
		allow = {
			tier = EMPEROR
			NOT = { has_law = ze_administration_laws_0 }
			has_law = law_voting_power_0
			has_law = war_voting_power_0
			has_law = revoke_title_voting_power_0
			has_law = imprison_voting_power_0
			has_law = grant_title_voting_power_0
			has_law = banish_voting_power_0
			has_law = execution_voting_power_0
			has_law = revoke_title_law_2
			has_law = out_of_realm_inheritance_law_1
		}
		potential = {
			holder_scope = { NOT = { religion_group = greenskin_gods_group } }
			holder_scope = { NOT = { culture_group = asur_group } }
			holder_scope = { NOT = { culture_group = asrai_group } }
			has_dlc = "Zeus"
			NOT = { holder_scope = { is_nomadic = yes } }
		}
		ai_will_do = {
			factor = 10
		}
		default_selection = {
			factor = 0

			additive_modifier = {
				value = 10
				title = e_naggaroth
			}
			additive_modifier = {
				value = 10
				OR = {
					culture = cathayan
					culture = living_jade
				}
				religion = draconite
			}

		}
		pass_effect = { }
		effect = {
			if = {
				limit = { has_law = ze_administration_laws_0 }
				custom_tooltip = {
					text = TOOLTIP_ALLOW_ADDITIONAL_SUCCESSION_LAWS
				}
			}
			if = {
				limit = {
					NOT = { has_dlc = "Charlemagne" }
				}
				set_allow_free_duchy_revokation = yes
			}
			if  = {
				limit = {
					has_dlc = "Charlemagne"
				}
				add_law = vice_royalty_2
				set_allow_free_vice_royalty_revokation = yes
			}
			hidden_tooltip = {
				revoke_law = ze_administration_laws_0
				revoke_law = ze_administration_laws_1
			}
		}

		vassal_limit = 25
		feudal_opinion = -10
	}
}
