namespace = elbian_confederation

elbian_confederation.1 = {
	type = country_event

	title = elbian_confederation.1.t
	desc = {
		first_valid = {
			triggered_desc = {
				desc = elbian_confederation.1.d
				trigger = {
					NOT = { has_variable = elbian_confederation_fail }
				}
			}
			triggered_desc = {
				desc = elbian_confederation.1.d2
				trigger = {
					has_variable = elbian_confederation_fail
				}
			}
		}
	}
	flavor = elbian_confederation.1.f

	event_image = {
		video = "gfx/event_pictures/unspecific_ruler_speaking_to_people.bk2"
	}

	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/leader_speaking_to_a_group_of_people"

	duration = 3

	trigger = {
		# triggered by elbian confederation JE
	}

	immediate = {
		cu:north_german = {
			save_scope_as = north_german_culture
		}
	}

	option = {
		name = elbian_confederation.1.a
		trigger = {
			NOT = { has_variable = elbian_confederation_fail }
		}
		default_option = yes
		custom_tooltip = elbian_confederation_tt
		add_primary_culture = cu:north_german
		add_loyalists = {
			culture = cu:north_german
			value = 0.2
		}
		ig:ig_landowners = {
			remove_ideology = ideology_austrian_hegemony
			hidden_effect = {
				set_interest_group_name = ig_landowners
			}
		}
	}
	option = { # accept compromise
		name = elbian_confederation.1.b
		trigger = {
			has_variable = elbian_confederation_fail
		}
		custom_tooltip = elbian_confederation_tt
		add_primary_culture = cu:north_german
		ig:ig_landowners = {
			remove_ideology = ideology_austrian_hegemony
			hidden_effect = {
				set_interest_group_name = ig_landowners
			}
		}
		add_radicals = {
			value = large_radicals
			culture = cu:czech
			pop_type = aristocrats
		}
		# lose prestige
		add_modifier = {
			name = dual_monarchy_compromise
			months = very_long_modifier_time
		}
	}
	option = { #reject compromise
		name = elbian_confederation.1.c
		trigger = {
			has_variable = elbian_confederation_fail
		}
		add_radicals = {
			value = very_large_radicals
			culture = cu:north_german
		}
		# add radicals from discrimination
		every_scope_state = {
			limit = {
				state_region = {
					is_homeland = cu:north_german
				}
			}
			add_modifier = {
				name = dual_monarchy_compromise_rejected
				months = long_modifier_time
			}
		}
	}
}
