golden_bull_hre = {
	potential = {
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		hre_has_all_electors_appointed = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
	}
	trigger = {
		is_emperor = yes
		custom_trigger_tooltip = {
			tooltip = ENACTED_HRE_GOLDEN_BULL
			has_global_flag = hre_golden_bull_enacted
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = 0.05
	improve_relation_modifier = 0.1
	legitimacy = 0.25
}

golden_bull_hre_elector = {
	potential = {
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_elector = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
	}
	trigger = {
		is_elector = yes
		custom_trigger_tooltip = {
			tooltip = ENACTED_HRE_GOLDEN_BULL
			has_global_flag = hre_golden_bull_enacted
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	global_tax_income = 12
}

golden_bull_hre_member = {
	potential = {
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_part_of_hre = yes
		is_emperor = no
		is_elector = no
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
	}
	trigger = {
		is_part_of_hre = yes
		custom_trigger_tooltip = {
			tooltip = ENACTED_HRE_GOLDEN_BULL
			has_global_flag = hre_golden_bull_enacted
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	global_unrest = -1
}

golden_bull_hre_too_less_electors = {
	potential = {
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		hre_has_not_all_electors_appointed = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
	}
	trigger = {
		is_emperor = yes
		custom_trigger_tooltip = {
			tooltip = ENACTED_HRE_GOLDEN_BULL
			has_global_flag = hre_golden_bull_enacted
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	improve_relation_modifier = 0.1
}

golden_bull_hre_wrong_electors_composition_1 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			is_variable_equal = { which = num_of_total_electors_over_limit value = 1 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.02
}

golden_bull_hre_wrong_electors_composition_2 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			is_variable_equal = { which = num_of_total_electors_over_limit value = 2 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.04
}

golden_bull_hre_wrong_electors_composition_3 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			is_variable_equal = { which = num_of_total_electors_over_limit value = 3 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.06
}

golden_bull_hre_wrong_electors_composition_4 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			is_variable_equal = { which = num_of_total_electors_over_limit value = 4 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.08
}

golden_bull_hre_wrong_electors_composition_5 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			is_variable_equal = { which = num_of_total_electors_over_limit value = 5 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.1
}

golden_bull_hre_wrong_electors_composition_6 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			is_variable_equal = { which = num_of_total_electors_over_limit value = 6 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.12
}

golden_bull_hre_wrong_electors_composition_7 = {
	potential = {
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
		is_emperor = yes
		NOT = { hre_reform_passed = emperor_privilegia_de_non_appelando }
		NOT = { hre_reform_passed = privilegia_de_non_appelando }
		variable_arithmetic_trigger = {
			export_to_variable = {
				which = num_of_secular_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_ecclesiastical_electors
				value = 0
			}
			export_to_variable = {
				which = num_of_total_electors_over_limit
				value = 0
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_a_secular_country = yes
						}
						any_elector = {
							is_a_secular_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_a_secular_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_secular_electors value = 1 }
				}
			}

			if = {
				limit = {
					OR = {
						AND = {
							is_elector = yes
							is_an_ecclesiastical_country = yes
						}
						any_elector = {
							is_an_ecclesiastical_country = yes
						}
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 2
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 3
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 4
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 5
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 6
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 7
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 8
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 9
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}
			if = {
				limit = {
					calc_true_if = {
						all_elector = {
							is_an_ecclesiastical_country = yes
						}
						amount = 10
					}
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = 1 }
				}
			}

			if = {
				limit = {
					num_of_max_electors = { value = 8 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -4 }
				}
			}
			else = {
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_ecclesiastical_electors value = -3 }
				}
			}
			variable_arithmetic_trigger = {
				change_variable = { which = num_of_secular_electors value = -4 }
			}
			if = {
				limit = {
					check_variable = { which = num_of_secular_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_secular_electors }
				}
			}
			if = {
				limit = {
					check_variable = { which = num_of_ecclesiastical_electors value = 0 }
				}
				variable_arithmetic_trigger = {
					change_variable = { which = num_of_total_electors_over_limit which = num_of_ecclesiastical_electors }
				}
			}

			check_variable = { which = num_of_total_electors_over_limit value = 7 }
		}
	}
	trigger = {
		if = {
			limit = {
				num_of_max_electors = { value = 8 }
			}
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW_8_ELECTORS
				always = yes
			}
		}
		else = {
			custom_trigger_tooltip = {
				tooltip = THE_COMPOSITION_OF_ELECTORS_DIFFERS_FROM_THE_GOLDEN_BULL_LAW
				always = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Emperor"
			}
			NOT = { hre_reform_passed = emperor_erbkaisertum }
		}
		else = {
			NOT = { hre_reform_passed = erbkaisertum }
		}
	}

	imperial_authority_value = -0.14
}

hree_imperial_ban_triggered_modifier = {
	potential = {
		is_emperor = no
		is_part_of_hre = yes
	}

	trigger = {
		custom_trigger_tooltip = {
			tooltip = HREE_IS_TARGET_OF_IMPERIAL_BAN
			OR = {
				has_ruler_flag = hree_imperial_ban
				has_heir_flag = hree_imperial_ban
			}
		}
	}

	prestige = -1
	global_unrest = 1
	legitimacy = -0.5
	devotion = -0.5
	horde_unity = -0.5
	meritocracy = -0.5
	republican_tradition = -0.25
}

hree_emperor_all_imperial_archoffices_granted_triggered_modifier = {
	potential = {
		is_emperor = yes
		has_global_flag = hre_golden_bull_enacted
		NOT = { has_global_flag = hre_golden_bull_removed }
	}

	trigger = {
		is_emperor = yes
		custom_trigger_tooltip = {
			tooltip = HREE_ALL_IMPERIAL_ARCHOFFICCES_ARE_GRANTED_TT
			has_saved_global_event_target = hre_german_erzkanzler
			has_saved_global_event_target = hre_burgundian_erzkanzler
			has_saved_global_event_target = hre_italian_erzkanzler
			has_saved_global_event_target = hre_erztruchsess
			has_saved_global_event_target = hre_erzmarschall
			has_saved_global_event_target = hre_erzkaemmerer
			has_saved_global_event_target = hre_erzmundschenk
			has_saved_global_event_target = hre_erzbannertraeger
		}
	}

	reasons_to_elect = 10
}