offmap_hre = {
	name = e_hre_adj
	window_name = domestic_offmaps_germany_window
	button_name = icon_offmaps_germany_entry
	currency_name = TXT_GRACE_HRE
	currency_gain = monthly_hre_grace
	currency_reset_on_dynasty_change = yes

	holder_title = title_hre_emperor			# minor title used to identify a character as holder of this offmap power
	governor_title = e_hre
	tier = emperor

	non_aggression_modifier = hre_prince_elector
	coa_religion = orthodox # catholic
	government = feudal_government
	beginning_of_history = 962.2.2
	sound = china_interaction_interface

	display_trigger = {
		#has_dlc = "Imperator" # Just kidding. You lazy Paradox.
		FROM = {
			is_within_diplo_range = ROOT
		}
		has_status = hre_shattered
	}

	policies = {
		hre_policy_placeholder
	}

	statuses = {
		hre_united
		hre_shattered
	}
	
	buttons = {
		offmap_gifts = {
			is_active_trigger = {
				always = no
			}
			display_trigger = {
				always = no
			}
		}

		offmap_boons = {
			is_active_trigger = {
				always = no
			}
			display_trigger = {
				always = no
			}
		}

		offmap_hostility = {
			is_active_trigger = {
				always = no
			}
			display_trigger = {
				always = no
			}
		}

		offmap_hostility2 = {
			is_active_trigger = {
				always = no
			}
			display_trigger = {
				always = no
			}
		}

		offmap_hre_elector_italian = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				governor_title = {
					persistent_event_target:hre_title_1_per = {
						title = c_roma
					}
				}
			}
		}

		offmap_hre_elector_french = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				governor_title = {
					persistent_event_target:hre_title_1_per = {
						title = c_amiens
					}
				}
			}
		}

		offmap_hre_elector_german = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				governor_title = {
					persistent_event_target:hre_title_1_per = {
						title = c_koln
					}
				}
			}
		}

		offmap_hre_elector_spain = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				governor_title = {
					persistent_event_target:hre_title_1_per = {
						title = c_santiago
					}
				}
			}
		}

		offmap_hre_elector_britannia = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				governor_title = {
					persistent_event_target:hre_title_1_per = {
						title = c_kent
					}
				}
			}
		}

		leave_hre = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					FROM = {
						#is_decision_potential = leave_hre # NOT working, there's no is_offmap_decision_potential implement
						OR = {
							higher_real_tier_than = KING
							AND = {
								tier = KING
								primary_title = {
									NOT = {
										title = k_bohemia
									}
									empire = {
										NOT = {
											title = e_hre
										}
									}
								}
							}
							AND = {
								tier = KING
								capital_scope = {
									empire = {
										NOT = {
											title = e_hre
										}
									}
								}
							}
						}
						is_member_of_hre = yes
						e_hre = {
							NOR = {
								persistent_event_target:hre_title_1_per = { holder_scope = { character = PREVPREVPREV } }
								persistent_event_target:hre_title_2_per = { holder_scope = { character = PREVPREVPREV } }
								persistent_event_target:hre_title_3_per = { holder_scope = { character = PREVPREVPREV } }
								persistent_event_target:hre_title_4_per = { holder_scope = { character = PREVPREVPREV } }
								persistent_event_target:hre_title_5_per = { holder_scope = { character = PREVPREVPREV } }
								persistent_event_target:hre_title_6_per = { holder_scope = { character = PREVPREVPREV } }
								persistent_event_target:hre_title_7_per = { holder_scope = { character = PREVPREVPREV } }
							}
						}
					}
				}
			}
		}

		offmap_hre_ia_99 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value = 100 }
					}
				}
			}
		}
		
		offmap_hre_ia_95 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 95 }
						check_variable = { which = imperial_authority value < 100 }
					}
				}
			}
		}
		
		offmap_hre_ia_90 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 90 }
						check_variable = { which = imperial_authority value < 95 }
					}
				}
			}
		}
		
		offmap_hre_ia_85 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 85 }
						check_variable = { which = imperial_authority value < 90 }
					}
				}
			}
		}
		
		offmap_hre_ia_80 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 80 }
						check_variable = { which = imperial_authority value < 85 }
					}
				}
			}
		}
		
		offmap_hre_ia_75 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 75 }
						check_variable = { which = imperial_authority value < 80 }
					}
				}
			}
		}
		
		offmap_hre_ia_70 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 70 }
						check_variable = { which = imperial_authority value < 75 }
					}
				}
			}
		}
		
		offmap_hre_ia_65 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 65 }
						check_variable = { which = imperial_authority value < 70 }
					}
				}
			}
		}
		
		offmap_hre_ia_60 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 60 }
						check_variable = { which = imperial_authority value < 65 }
					}
				}
			}
		}
		
		offmap_hre_ia_55 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 55 }
						check_variable = { which = imperial_authority value < 60 }
					}
				}
			}
		}
		
		offmap_hre_ia_50 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 50 }
						check_variable = { which = imperial_authority value < 55 }
					}
				}
			}
		}
		
		offmap_hre_ia_45 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 45 }
						check_variable = { which = imperial_authority value < 50 }
					}
				}
			}
		}
		
		offmap_hre_ia_40 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 40 }
						check_variable = { which = imperial_authority value < 45 }
					}
				}
			}
		}
		
		offmap_hre_ia_35 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 35 }
						check_variable = { which = imperial_authority value < 40 }
					}
				}
			}
		}
		
		offmap_hre_ia_30 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 30 }
						check_variable = { which = imperial_authority value < 35 }
					}
				}
			}
		}
		
		offmap_hre_ia_25 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 25 }
						check_variable = { which = imperial_authority value < 30 }
					}
				}
			}
		}
		
		offmap_hre_ia_20 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 20 }
						check_variable = { which = imperial_authority value < 25 }
					}
				}
			}
		}
		
		offmap_hre_ia_15 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 15 }
						check_variable = { which = imperial_authority value < 20 }
					}
				}
			}
		}
		
		offmap_hre_ia_10 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 10 }
						check_variable = { which = imperial_authority value < 15 }
					}
				}
			}
		}
		
		offmap_hre_ia_05 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value >= 5 }
						check_variable = { which = imperial_authority value < 10 }
					}
				}
			}
		}
		
		offmap_hre_ia_01 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value > 0 }
						check_variable = { which = imperial_authority value < 5 }
					}
				}
			}
		}
		
		offmap_hre_ia_00 = {
			is_active_trigger = {
				hidden_tooltip = {
					always = yes
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						check_variable = { which = imperial_authority value = 0 }
					}
				}
			}
		}
		
		hre_reform_call_for_reichsreform = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = call_for_reichsreform
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = call_for_reichsreform
					}
				}
			}
		}
		
		hre_reform_institute_reichsregiment = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = institute_reichsregiment
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = institute_reichsregiment
					}
				}
			}
		}
		
		hre_reform_enact_gemeiner_pfennig = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = enact_gemeiner_pfennig
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = enact_gemeiner_pfennig
					}
				}
			}
		}
		
		hre_reform_ewiger_landfriede = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = ewiger_landfriede
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = ewiger_landfriede
					}
				}
			}
		}
		
		hre_reform_establish_the_reichstag_collegia = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = establish_the_reichstag_collegia
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = establish_the_reichstag_collegia
					}
				}
			}
		}
		
		hre_reform_curtail_the_imperial_estates = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = curtail_the_imperial_estates
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = curtail_the_imperial_estates
					}
				}
			}
		}
		
		hre_reform_revoke_the_privilegia = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = revoke_the_privilegia
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = revoke_the_privilegia
					}
				}
			}
		}
		
		hre_reform_proclaim_erbkaisertum = {
			is_active_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = proclaim_erbkaisertum
					}
				}
			}
			display_trigger = {
				hidden_tooltip = {
					offmap_hre = {
						has_offmap_flag = proclaim_erbkaisertum
					}
				}
			}
		}
	}

	#These conditions only effect the appearance of the button, it does not actually disable them from being clickable. The same triggers are used in all tribute/boon decisions respectively

	icon_triggers = {}
	
	monthly_currency_gain = {}

	temple_names = {
		{ # Founder names
		}
		{ # Successor names
		}
	}

	holder_succession = {
		# Chances of getting a female holder, as a percentage:
		# If the total is >= 100, the new holder will always be female
		# If the total is <= 0, the new holder will always be male
		is_female = {
			value = 5

			additive_modifier = {
				value = 45
				has_game_rule = {
					name = gender
					value = all
				}
			}
		}

		culture = {
			german = { 		# Default culture for new kaiser
				value = 99	# If any other value reaches 100, it will be picked instead
			}

			FROM = {		# Default culture for new kaiser
							# the left side here (and for culture, religion, graphical_culture and dynasty)
							# can be a right hand side value (FROM, ROOT, a culture name, etc)
							# The right hand side / inside the brackets is a standard MTTH evaluation
							# Only the one with the highest weight will be used
							# If there's a tie, one of the tied values is picked at random
				value = 0

				additive_modifier = { #the new kaiser will keep current culture if things are great
					value = 100
					FROM = { # Essentially a check that the previous kaiser actually exists
						culture_scope = {
							always = yes
						}
					}
				}
			}

			hedgehog_culture = {
				value = 0

				additive_modifier = {
					value = 100
					has_alternate_start_parameter = {
						key = special_culture
						value = animal_world
					}
				}
			}
		}

		graphical_culture = { # FROM scope is not working. Do not waste your time here.
			FROM = {
				value = 100
			}
		}

		religion = {
			catholic = {	# Default religion for new kaiser
				value = 99	# If any other value reaches 100, it will be picked instead (unless equal, then it will randomize)
			}

			FROM = {
				value = 0
				additive_modifier = { # The new kaiser will keep current religion if things are great
					value = 100
					FROM = { religion_scope = { always = yes } } # Essentially a check that the previous kaiser actually exists
				}
			}
		}

		dynasty = {
			0 = {		 	# Default dynasty for new kaiser
				value = 100	# Might drop from modifiers -- highest value will be picked instead (unless equal, then it will randomize)
			}
		}

		likes = {
			likes_wealth = {
				value = 300
			}

			likes_tributaries = {
				value = 100
			}
		}

		dislikes = {
			likes_tributaries = {
				value = 100
			}

			likes_wealth = {
				value = 100
			}
		}
	}

	diplomatic_range = { # Already includes the HRE's "normal" diplo range
	}
}