﻿add_namespace = secschwar

#Denmark - A New Constitution - 30 March 1863
country_event = {
	id = secschwar.1
	title = secschwar.1.t
	desc = secschwar.1.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	trigger = {
		tag = DEN
		has_idea = DEN_Frederick_VII
	}
	
	option = {
		name = secschwar.1.a
		ai_chance = { base = 100 }
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 7 id = secschwar.2 }
				country_event = { days = 127 id = secschwar.4 }
				country_event = { days = 185 id = secschwar.5 }
			}
		}
	}
}

#GC - Uproar in the GC
country_event = {
	id = secschwar.2
	title = secschwar.2.t
	desc = secschwar.2.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.2.a
		ai_chance = { base = 100 }
		add_opinion_modifier = { target = DEN modifier = PRS_SCHLESWIG_SCANDAL_1_REL }
		reverse_add_opinion_modifier = { target = DEN modifier = PRS_SCHLESWIG_SCANDAL_1_REL }
		hidden_effect = {
			DEN = { country_event = { days = 7 id = secschwar.3 } }
		}
	}
}

#Denmark - Anger in the German Confederation
country_event = {
	id = secschwar.3
	title = secschwar.3.t
	desc = secschwar.3.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.3.a
		ai_chance = { base = 100 }
		add_political_power = -50
		add_stability = -0.02
		add_war_support = 0.05
	}
}

#GC - Federal Execution Against Denmark Pending
country_event = {
	id = secschwar.4
	title = secschwar.4.t
	desc = secschwar.4.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.4.a
		ai_chance = { base = 100 }
		add_war_support = 0.03
		add_political_power = 10
		if = {
			limit = {
				tag = SAX
			}
			complete_national_focus = SAX_focus_schleswig_holstein_question
		}
	}
}

#GC - Federal execution against Denmark – Motion granted - 1 October 1863
country_event = {
	id = secschwar.5
	title = secschwar.5.t
	desc = secschwar.5.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes

	option = {
		name = secschwar.5.a
		ai_chance = { base = 100 }
		add_war_support = 0.05
		add_political_power = 10
		hidden_effect = {
			DEN = { country_event = { days = 7 id = secschwar.6 } }
		}
	}
}

#Denmark - GC Threatens Federal Execution 
country_event = {
	id = secschwar.6
	title = secschwar.6.t
	desc = secschwar.6.d
	picture = GFX_report_event_german_confederation_building
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.6.a
		ai_chance = { base = 100 }
		add_political_power = -50
		add_stability = -0.02
		add_war_support = 0.15
		hidden_effect = {
			DEN = { country_event = { days = 5 id = secschwar.7 } }
		}
	}
}

#Denmark - Parliament Approves November Constitution  - 13 October 1863
country_event = {
	id = secschwar.7
	title = secschwar.7.t
	desc = secschwar.7.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.7.a
		ai_chance = { base = 100 }
		add_political_power = 25
		add_stability = 0.02
		add_war_support = 0.1
		58 = { add_core_of = DEN }
		1032 = { add_core_of = DEN }
		hidden_effect = {
			DEN = { country_event = { days = 33 id = secschwar.8 } }
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.57 }
			}
		}
	}
}

#Denmark - Death of Frederick VII - The King is Dead – Long Live the King - 15 November 1863
country_event = {
	id = secschwar.8
	title = secschwar.8.t
	desc = secschwar.8.d
	picture = GFX_report_event_europe_funeral
	
	immediate = {
		hidden_effect = {
			DEN = { country_event = { id = denmark.1 } }
		}
	}
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.8.a
		ai_chance = { base = 100 }
		add_political_power = -20
		add_stability = -0.05
		decrease_ps_by_one = yes
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = secschwar.58 }
			}
			DEN = { country_event = { days = 1 id = secschwar.9 } }
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.9 }
				country_event = { days = 10 id = secschwar.53 }
			}
			DEN = { country_event = { days = 3 id = secschwar.10 } }
		}
	}
}

#Denmark and GC - Dolzig Proclamation: Friedrich Christian August Claims the Duchies of Schleswig and Holstein - 16 November 1863
country_event = {
	id = secschwar.9
	title = secschwar.9.t
	desc = secschwar.9.d
	picture = GFX_report_event_augustenburg_reception
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.9.a
		ai_chance = { base = 100 }
		add_war_support = 0.03
	}
}

#Denmark - Christian IX Decides on whether to Enact the November Constitution - 18 November 1863
country_event = {
	id = secschwar.10
	title = secschwar.10.t
	desc = secschwar.10.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	#Sign the constitution.
	option = {
		name = secschwar.10.a
		ai_chance = { base = 100 }
		add_ideas = DEN_idea_november_constitution
		DEN = { transfer_state = 58 }
		DEN = { transfer_state = 1032 }
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				} 
				country_event = { days = 1 id = secschwar.11 }
				country_event = { days = 5 id = secschwar.13 }
				country_event = { days = 12 id = secschwar.14 }
			}
			PRS = { country_event = { days = 18 id = secschwar.15 } }
			PRS = { set_variable = { var = GC_federal_execution value = 0 } }
		}
	}
	
	#Refuse to sign the constitution.
	option = {
		name = secschwar.10.b
		ai_chance = { base = 0 }
		add_stability = -0.1
		add_political_power = -100
		decrease_ps_by_one = yes
		custom_effect_tooltip = PRS_focus_highly_unfinished_warning_effect_tt
		hidden_effect = {
			DEN = { country_event = { days = 7 id = secschwar.95 } } # Civil War
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				} 
				country_event = { days = 1 id = secschwar.12 } 
			}
		}
	}
}

#GC - Christian IX Enacts November Constitution  
country_event = {
	id = secschwar.11
	title = secschwar.11.t
	desc = secschwar.11.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.11.a
		ai_chance = { base = 100 }
		add_war_support = 0.03
		add_opinion_modifier = { target = DEN modifier = PRS_SCHLESWIG_SCANDAL_2_REL }
		reverse_add_opinion_modifier = { target = DEN modifier = PRS_SCHLESWIG_SCANDAL_2_REL }
	}
}

#GC - Christian IX Refuses to Enact November Constitution  
country_event = {
	id = secschwar.12
	title = secschwar.12.t
	desc = secschwar.12.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.12.a
		ai_chance = { base = 100 }
		add_political_power = 50
		add_stability = 0.03
	}
}

#GC - Motion to activate granted federal execution against Denmark  
country_event = {
	id = secschwar.13
	title = secschwar.13.t
	desc = secschwar.13.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.13.a
		ai_chance = { base = 100 }
		add_political_power = 10
	}
}

#GC - Voting on activation of federal execution against Denmark   
country_event = {
	id = secschwar.14
	title = secschwar.14.t
	desc = secschwar.14.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	timeout_days = 4

	option = {
		name = secschwar.14.a
		ai_chance = { 
			base = 70
			modifier = {
				factor = 5
				OR = {
					tag = AUS
					tag = BAD
					tag = HAN
					tag = MCK
					tag = OLD
					tag = PRS
					tag = SAX
				}
			}		
		}
		add_political_power = 10
		hidden_effect = {
			PRS = { add_to_variable = { var = GC_federal_execution value = 1 } }
		}
	}
	
	option = {
		name = secschwar.14.b
		ai_chance = { 
			base = 30
			modifier = {
				factor = 5
				OR = {
					tag = BRE
					tag = HAM
					tag = LCK
					tag = LIE
					tag = LUX
				}
			}
		}
		add_political_power = -10
	}
}

#PRS - Hidden Event to check variable   
country_event = {
	id = secschwar.15
	title = secschwar.15.t
	desc = secschwar.15.d
	
	fire_only_once = yes
	hidden = yes
	is_triggered_only = yes

	option = {
		name = secschwar.15.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				check_variable = { var = GC_federal_execution value = 10 compare = greater_than_or_equals }
			}
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				} 
				country_event = { days = 1 id = secschwar.16 } 
			}
		}
		else_if = {
			limit = {
				check_variable = { var = GC_federal_execution value = 10 compare = less_than }
			}
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				} 
				country_event = { days = 1 id = secschwar.17 } 
			}
		}
	}
}

#GC - Activate Federal Execution Against Denmark – Motion Granted - 7 December 1863
country_event = {
	id = secschwar.16
	title = secschwar.16.t
	desc = secschwar.16.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes

	option = {
		name = secschwar.16.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			custom_effect_tooltip = PRS_event_federal_execution_granted_tt
			hidden_effect = {
				set_country_flag = PRS_event_federal_execution_granted_flag
				clear_variable = GC_federal_execution
			}
		}
		if = {
			limit = {
				tag = SAX
			}
			if = {
				limit = {
					has_country_flag = SAX_unanimous_support_for_augustenburger_flag
				}
				unlock_decision_tooltip = SAX_decision_file_for_federal_intervention
			}
			else = {
				custom_effect_tooltip = SAX_decision_file_for_federal_intervention_trigger_tt
			}
			hidden_effect = {
				set_country_flag = SAX_event_federal_execution_granted_flag
			}
		}
		add_political_power = 10
		add_war_support = 0.05
		hidden_effect = {
			DEN = { country_event = { days = 1 id = secschwar.18 } }
		}
	}
}

#GC - Activate Federal Execution Against Denmark – Motion Denied
country_event = {
	id = secschwar.17
	title = secschwar.17.t
	desc = secschwar.17.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes

	option = {
		name = secschwar.17.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			unlock_decision_tooltip = PRS_decision_cooperate_with_austria
			hidden_effect = {
				PRS = { set_country_flag = PRS_event_federal_execution_denied_flag }
				clear_variable = GC_federal_execution
			}
		}
		add_political_power = -10
		add_war_support = -0.25
		hidden_effect = {
			DEN = { country_event = { days = 1 id = secschwar.19 } }
		}
	}
}

#Denmark - GC Declares Activation of Federal Execution   
country_event = {
	id = secschwar.18
	title = secschwar.18.t
	desc = secschwar.18.d
	picture = GFX_report_event_german_confederation_building
	
	fire_only_once = yes
	is_triggered_only = yes
	
	timeout_days = 5
	
	option = {
		name = secschwar.18.a
		ai_chance = { base = 100 }
		add_war_support = 0.05
		add_political_power = -25
		hidden_effect = {
			DEN = { country_event = { days = 15 id = secschwar.20 } }
		}
	}
}

#Denmark - GC Rejects Activation of Federal Execution   
country_event = {
	id = secschwar.19
	title = secschwar.19.t
	desc = secschwar.19.d
	picture = GFX_report_event_german_confederation_building
	
	fire_only_once = yes
	is_triggered_only = yes
	
	timeout_days = 5
	
	option = {
		name = secschwar.19.a
		ai_chance = { base = 100 }
		add_war_support = -0.15
		add_political_power = 25
	}
}

#Denmark - Federal Execution – GC forces occupy Holstein - 23 December 1863
country_event = {
	id = secschwar.20
	title = secschwar.20.t
	desc = secschwar.20.d
	picture = GFX_report_event_prs_danish_retreat
	
	fire_only_once = yes
	is_triggered_only = yes
	
	timeout_days = 5
	
	option = {
		name = secschwar.20.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_20
		hidden_effect = {
			news_event = news.5
			HAN = { transfer_state = 949 }
			HAN = { give_military_access = SAX }
			HES = { give_military_access = SAX }
			HAN = { give_military_access = PRS }
			HAN = { give_military_access = AUS }
			MCK = { give_military_access = PRS }
			MCK = { give_military_access = AUS }
			DEN = { country_event = { days = 8 id = secschwar.21 } }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				} 
				country_event = { days = 15 id = secschwar.22 } 
			}
			949 = { add_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			949 = { add_compliance = 50 }
		}
	}
}

#Denmark - Hall Resigns - 31 December 1863
country_event = {
	id = secschwar.21
	title = secschwar.21.t
	desc = secschwar.21.d
	picture = GFX_report_event_prs_danish_retreat
	
	fire_only_once = yes
	is_triggered_only = yes
	
	#Ditlev Gothard Monrad - Liberals Remain in Power
	option = {
		name = secschwar.21.a
		trigger = {
			has_government = centrism
		}
		ai_chance = { base = 100 }
		add_stability = -0.05
		add_political_power = -50
		custom_effect_tooltip = historical_option
		DEN_ditlev_gothard_monrad = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_GENERIC_EOANB_DESC"
					ideology = market_liberal
					expire = "1931.1.1"
				}
			}
		}
		retire_character = DEN_carl_christian_hall
	}
	
	#Christian Albrecht Bluhme - Conservatives Take Over
	option = {
		name = secschwar.21.b
		trigger = {
			has_government = centrism
		}
		ai_chance = { base = 100 }
		add_stability = -0.05
		add_political_power = -50
		set_politics = { ruling_party = traditional_conservatism }
		hidden_effect = {
			DEN_ditlev_gothard_monrad = {
				add_country_leader_role = {
					country_leader = {
						desc = "POLITICS_GENERIC_EOANB_DESC"
						ideology = market_liberal
						expire = "1931.1.1"
					}
				}
				promote_character = yes
				promote_character = market_liberal
			}
		}
	}
	
	#Ditlev Gothard Monrad - Liberals Take Over
	option = {
		name = secschwar.21.c
		trigger = {
			has_government = traditional_conservatism
		}
		ai_chance = { base = 100 }
		add_stability = -0.05
		add_political_power = -50
		set_politics = { ruling_party = centrism }
		DEN_ditlev_gothard_monrad = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_GENERIC_EOANB_DESC"
					ideology = market_liberal
					expire = "1931.1.1"
				}
			}
		}
		retire_character = DEN_carl_christian_hall
		hidden_effect = {
			DEN_christian_emil_frijs = {
				add_country_leader_role = {
					country_leader = {
						desc = "DEN_CHRISTIAN_EMIL_FRIJS_LEADER_DESC"
						ideology = conserv
						expire = "1920.1.1"
					}
				}
				promote_character = yes
				promote_character = conserv
			}
			retire_character = DEN_christian_albrecht_bluhme #Maybe remove country_leader only
		}
	}
	
	#Christian Emil Frijs - Conservatives Remain in Power
	option = {
		name = secschwar.21.e
		trigger = {
			has_government = traditional_conservatism
		}
		ai_chance = { base = 100 }
		add_stability = -0.05
		add_political_power = -50
		DEN_christian_emil_frijs = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					desc = "DEN_CHRISTIAN_EMIL_FRIJS_LEADER_DESC"
					ideology = conserv
					expire = "1931.1.1"
				}
			}
		}
		retire_character = DEN_christian_albrecht_bluhme #Maybe remove country_leader only
	}
}

#GC - Federal Execution Successful - 7 January 1864
country_event = {
	id = secschwar.22
	title = secschwar.22.t
	desc = secschwar.22.d
	picture = GFX_report_event_prs_danish_retreat
	
	is_triggered_only = yes

	trigger = {
		NOT = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war_trias
				SAX = { has_decision = SAX_decision_invade_schleswig }
			}
		}
	}
	
	option = {
		name = secschwar.22.a
		ai_chance = { base = 100 }
		add_political_power = 10
		add_stability = 0.01
		if = {
			limit = {
				OR = {
					tag = HAN
					tag = SAX
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 2
			}
			eoanb_change_prestige_score = yes
		}
	}
}

#Prussia/Austria - PRS/AUS take matters into their own hands  
country_event = {
	id = secschwar.23
	title = secschwar.23.t
	desc = secschwar.23.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.23.a
		ai_chance = { base = 100 }
		add_political_power = 25
		hidden_effect = { 
			DEN = { country_event = { days = 1 id = secschwar.25 } }
		}
	}
}

#Prussia/Austria - PRS/AUS take matters into their own hands  
country_event = {
	id = secschwar.24
	title = secschwar.24.t
	desc = secschwar.24.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.24.a
		ai_chance = { base = 100 }
		add_political_power = 25
		if = {
			limit = {
				tag = PRS
			}
			PRS = { transfer_state = 949 }
		}
		every_other_country = {
			limit = {
				is_part_of_the_german_confederation = yes
				NOT = { tag = AUS }
				NOT = { tag = PRS }
			}
			add_opinion_modifier = { target = ROOT modifier = PRS_AUS_GC_SCHLESWIG_REL }
			reverse_add_opinion_modifier = { target = ROOT modifier = PRS_AUS_GC_SCHLESWIG_REL }
		}
		hidden_effect = {
			PRS = { country_event = { days = 4 id = secschwar.26 } }
			if = {
				limit = {
					NOT = { 949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } } }
				}
				949 = { add_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			949 = { add_compliance = 50 }
		}
	}
}

#Denmark - PRS/AUS forces occupy Holstein   
country_event = {
	id = secschwar.25
	title = secschwar.25.t
	desc = secschwar.25.d
	picture = GFX_report_event_prs_danish_retreat
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.25.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_25
		hidden_effect = {
			news_event = news.25
			PRS = { transfer_state = 949 }
			PRS = { give_military_access = AUS }
			MCK = { give_military_access = PRS }
			MCK = { give_military_access = AUS }
			PRS = { country_event = { days = 3 id = secschwar.26 } }
			949 = { add_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			949 = { add_compliance = 50 }
		}
	}
}

#Prussia - Send Ultimatum - 16 January 1864
country_event = {
	id = secschwar.26
	title = secschwar.26.t
	desc = secschwar.26.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.26.a
		ai_chance = { base = 100 }
		add_political_power = 25
		DEN = { country_event = { days = 2 id = secschwar.27 } }
	}
}

#Denmark - Denmark Responds to Bismarck's Ultimatum
country_event = {
	id = secschwar.27
	title = secschwar.27.t
	desc = secschwar.27.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	fire_only_once = yes
	is_triggered_only = yes
	
	timeout_days = 2
	
	option = {
		name = secschwar.27.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = historical_option
		add_stability = 0.1
		add_war_support = 0.15
		add_political_power = 100
		hidden_effect = {
			PRS = { country_event = { id = secschwar.28 } }
			AUS = { country_event = { id = secschwar.28 } }
		}
	}
	
	option = {
		name = secschwar.27.b
		ai_chance = { base = 0 }
		add_stability = -0.2
		add_political_power = -200
		remove_ideas = DEN_idea_november_constitution
		custom_effect_tooltip = eoanb_tt_event_secschwar_27
		hidden_effect = {
			SCH = {
				transfer_state = 58
				transfer_state = 949
				transfer_state = 1032
				add_state_core = 58
				add_state_core = 949
				add_state_core = 1032
			}
			DEN = {
				end_puppet = HLS
				remove_state_core = 58
				remove_state_core = 949
				remove_state_core = 1032
			}
			SCH = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = SCH_autocracy_party_provisional }
				SCH_provisional_administration = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = SCH_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = SCH_Frederick_of_Augustenburg 
				}
				give_military_access = PRS
				give_military_access = AUS
				inherit_technology = DEN
			}
			PRS = { country_event = { id = secschwar.29 } }
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
		}
	}
}

#Prussia/Austria - Denmark's Ultimatum Has Expired - 18 January 1864
country_event = {
	id = secschwar.28
	title = secschwar.28.t
	desc = secschwar.28.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.28.a
		ai_chance = { base = 100 }
		add_political_power = -25
		add_war_support = 0.05
		if = {
			limit = {
				tag = PRS
			}
			unlock_decision_tooltip = PRS_decision_invade_schleswig
			PRS = { give_military_access = AUS }
			hidden_effect = {
				PRS = { set_country_flag = PRS_denmark_ultimatum_expired_flag }
			}
		}
	}
}

#Prussia - Denmark Has Accepted the Ultimatum
country_event = {
	id = secschwar.29
	title = secschwar.29.t
	desc = secschwar.29.d
	picture = GFX_report_event_prs_danish_retreat
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.29.a
		ai_chance = { base = 100 }
		add_political_power = 25
		add_war_support = -0.3
		hidden_effect = {
			PRS = { set_country_flag = eoanb_flag_avoided_2_schleswig_war }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 7 id = secschwar.56 }
			}
			PRS = { country_event = { days = 5 id = prussia.89 } }
		}
	}
}

#Prussia - Declare War on Denmark - 1 February 1864
country_event = {
	id = secschwar.30
	title = secschwar.30.t
	desc = secschwar.30.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.30.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_30
		hidden_effect = {
			declare_war_on = { target = DEN type = wargoal_second_schleswig_war }
			add_named_threat = { 
				threat = 3
				name = eoanb_threat_ssw_war
			}
			if = {
				limit = {
					is_ai = yes
				}
				add_ideas = hidden_idea_historical_PRS_victory
			}
			set_global_flag = eoanb_flag_second_schleswig_war
			DEN = {
				add_ideas = hidden_idea_never_surrender
				add_ideas = DEN_idea_spirit_of_1848
				country_event = { days = 7 id = denmark.451 }
			}
			AUS = { country_event = { id = secschwar.31 } }
			activate_mission = PRS_mission_london_conference
			DEN = { activate_mission = PRS_mission_london_conference }
		}
	}
}

#Austria - Join War against Denmark - 1 February 1864
country_event = {
	id = secschwar.31
	title = secschwar.31.t
	desc = secschwar.31.d
	picture = GFX_report_event_vienna_1
	
	fire_only_once = yes
	is_triggered_only = yes
	
	timeout_days = 2
	
	option = {
		name = secschwar.31.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_31
		hidden_effect = {
			AUS = { add_to_war = { targeted_alliance = PRS enemy = DEN } }
		}
	}
}

#PRS/AUS/DEN/GC - London Conference - Prussian Victory
country_event = {
	id = secschwar.32
	title = secschwar.32.t
	desc = secschwar.32.d
	picture = GFX_report_event_duppeler_schanzen
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.32.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_32
		if = {
			limit = {
				tag = PRS
			}
			increase_ps_by_one = yes
		}
		if = {
			limit = {
				tag = AUS
			}
			increase_ps_by_one = yes
		}
		if = {
			limit = {
				tag = DEN
			}
			increase_ps_by_one = yes
			hidden_effect = {
				remove_mission = PRS_mission_london_conference
			}
		}
	}
}

#Prussia - London Conference - Prussian Vote
country_event = {
	id = secschwar.33
	title = secschwar.33.t
	desc = secschwar.33.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.33.a
		ai_chance = { base = 0 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_russell_proposal
		hidden_effect = {
			AUS = { country_event = { days = 5 id = secschwar.34 } }
			set_global_flag = eoanb_flag_PRS_supported_russell
		}
	}
	
	option = {
		name = secschwar.33.b
		ai_chance = { base = 89 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_bismarck_proposal
		custom_effect_tooltip = historical_option
		hidden_effect = {
			AUS = { country_event = { days = 5 id = secschwar.34 } }
			set_global_flag = eoanb_flag_PRS_supported_bismarck
		}
	}
	
	option = {
		name = secschwar.33.c
		ai_chance = { 
			base = 11
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		custom_effect_tooltip = eoanb_tt_event_secschwar_beust_proposal
		hidden_effect = {
			AUS = { country_event = { days = 5 id = secschwar.34 } }
			set_global_flag = eoanb_flag_PRS_supported_beust
		}
	}
}

#Austria - London Conference - Austrian Vote
country_event = {
	id = secschwar.34
	title = secschwar.34.t
	desc = secschwar.34.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.34.a
		ai_chance = { base = 0 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_russell_proposal
		hidden_effect = {
			DEN = { country_event = { days = 5 id = secschwar.35 } }
			set_global_flag = eoanb_flag_AUS_supported_russell
		}
	}
	
	option = {
		name = secschwar.34.b
		ai_chance = { base = 59 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_bismarck_proposal
		custom_effect_tooltip = historical_option
		hidden_effect = {
			DEN = { country_event = { days = 5 id = secschwar.35 } }
			set_global_flag = eoanb_flag_AUS_supported_bismarck
		}
	}
	
	option = {
		name = secschwar.34.c
		ai_chance = { 
			base = 41 
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		custom_effect_tooltip = eoanb_tt_event_secschwar_beust_proposal
		hidden_effect = {
			DEN = { country_event = { days = 5 id = secschwar.35 } }
			set_global_flag = eoanb_flag_AUS_supported_beust
		}
	}	
}

#Denmark - London Conference - Danish Vote
country_event = {
	id = secschwar.35
	title = secschwar.35.t
	desc = secschwar.35.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.35.a
		ai_chance = { base = 95 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_russell_proposal
		custom_effect_tooltip = historical_option
		hidden_effect = {
			set_global_flag = eoanb_flag_DEN_supported_russell
		}
		hidden_effect = {
			if = {
				limit = {
					AND = {
						has_global_flag = eoanb_flag_PRS_supported_russell
						has_global_flag = eoanb_flag_AUS_supported_russell 
					}
				}
				PRS = { country_event = { days = 5 id = secschwar.36 } }
				clr_global_flag = eoanb_flag_DEN_supported_russell
				clr_global_flag = eoanb_flag_PRS_supported_russell
				clr_global_flag = eoanb_flag_AUS_supported_russell
			}
			else = {
				PRS = { country_event = { days = 5 id = secschwar.39 } }
				clr_global_flag = eoanb_flag_DEN_supported_russell
				clr_global_flag = eoanb_flag_PRS_supported_russell
				clr_global_flag = eoanb_flag_AUS_supported_russell
				clr_global_flag = eoanb_flag_PRS_supported_bismarck
				clr_global_flag = eoanb_flag_AUS_supported_bismarck
				clr_global_flag = eoanb_flag_PRS_supported_beust
				clr_global_flag = eoanb_flag_AUS_supported_beust
			}
		}
	}
	
	option = {
		name = secschwar.35.b
		ai_chance = { 
			base = 5 
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		custom_effect_tooltip = eoanb_tt_event_secschwar_bismarck_proposal
		hidden_effect = {
			set_global_flag = eoanb_flag_DEN_supported_bismarck
		}
		hidden_effect = {
			if = {
				limit = {
					AND = {
						has_global_flag = eoanb_flag_PRS_supported_bismarck
						has_global_flag = eoanb_flag_AUS_supported_bismarck
					}
				}
				PRS = { country_event = { days = 5 id = secschwar.37 } }
				clr_global_flag = eoanb_flag_DEN_supported_bismarck
				clr_global_flag = eoanb_flag_PRS_supported_bismarck
				clr_global_flag = eoanb_flag_AUS_supported_bismarck
			}
			else = {
				PRS = { country_event = { days = 5 id = secschwar.39 } }
				clr_global_flag = eoanb_flag_DEN_supported_bismarck
				clr_global_flag = eoanb_flag_PRS_supported_bismarck
				clr_global_flag = eoanb_flag_AUS_supported_bismarck
				clr_global_flag = eoanb_flag_PRS_supported_russell
				clr_global_flag = eoanb_flag_AUS_supported_russell
				clr_global_flag = eoanb_flag_PRS_supported_beust
				clr_global_flag = eoanb_flag_AUS_supported_beust
			}
		}
	}
	
	option = {
		name = secschwar.35.c
		ai_chance = { base = 0 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_beust_proposal
		hidden_effect = {
			set_global_flag = eoanb_flag_DEN_supported_beust
		}
		hidden_effect = {
			if = {
				limit = {
					AND = {
						has_global_flag = eoanb_flag_PRS_supported_beust
						has_global_flag = eoanb_flag_AUS_supported_beust 
					}
				}
				PRS = { country_event = { days = 5 id = secschwar.38 } }
				clr_global_flag = eoanb_flag_DEN_supported_beust
				clr_global_flag = eoanb_flag_PRS_supported_beust
				clr_global_flag = eoanb_flag_AUS_supported_beust
			}
			else = {
				PRS = {	country_event = { days = 5 id = secschwar.39 } }
				clr_global_flag = eoanb_flag_DEN_supported_beust
				clr_global_flag = eoanb_flag_PRS_supported_beust
				clr_global_flag = eoanb_flag_AUS_supported_beust
				clr_global_flag = eoanb_flag_PRS_supported_russell
				clr_global_flag = eoanb_flag_AUS_supported_russell
				clr_global_flag = eoanb_flag_PRS_supported_bismarck
				clr_global_flag = eoanb_flag_AUS_supported_bismarck
			}
		}
	}
}

#Russell's proposal passes
country_event = {
	id = secschwar.36
	title = secschwar.36.t
	desc = secschwar.36.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.36.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_russell_proposal
		hidden_effect = {
			DEN = {
				white_peace = PRS
				white_peace = AUS
			}
			DEN = {
				transfer_state = 58
				transfer_state = 1032
				add_state_core = 58
				add_state_core = 1032
			}
			HLS = {
				transfer_state = 949
				add_state_core = 949
			}
			DEN = {
				white_peace = HLS
			}
			PRS = {
				puppet = HLS
			}
			HLS = {
				HLS_provisional_administration = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = HLS_christian_ix
				retire_character = HLS_friedrich_von_augustenburg
				add_popularity = {
					ideology = autocracy
					popularity = 0.5
				}
				inherit_technology = PRS
			}
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war
			PRS = {
				set_country_flag = eoanb_flag_won_2_schleswig_war
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			DEN = {
			    add_ideas = DEN_idea_lost_second_schleswig_war
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				if = {
					limit = {
						has_template = "Danish Militia"
					}
					delete_unit_template_and_units = {
						division_template = "Danish Militia"
					}
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			DEN = { add_war_support = -0.35 }
			PRS = { add_war_support = -0.35 }
			AUS = { add_war_support = -0.35 }
		}
	}
}

#Bismarck's proposal passes
country_event = {
	id = secschwar.37
	title = secschwar.37.t
	desc = secschwar.37.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.37.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_bismarck_proposal
		hidden_effect = {
			DEN = {
				white_peace = PRS
				white_peace = AUS
			}
			DEN = {
				transfer_state = 1032
				add_state_core = 1032
			}
			SCH = {
				transfer_state = 58
				transfer_state = 949
				add_state_core = 58
				add_state_core = 949
			}
			DEN = {
				white_peace = SCH
			}
			PRS = {
				puppet = SCH
			}
			SCH = {
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = SCH_autocracy_party_prussia }
				SCH_wilhelm_i = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1889.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = SCH_friedrich_von_augustenburg
				retire_character = SCH_christian_ix
				add_popularity = {
					ideology = autocracy
					popularity = 0.5
				}
				inherit_technology = PRS
			}
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war
			PRS = {
				set_country_flag = eoanb_flag_won_2_schleswig_war
				country_event = { days = 5 id = prussia.89 }
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			DEN = {
			    add_ideas = DEN_idea_lost_second_schleswig_war
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				if = {
					limit = {
						has_template = "Danish Militia"
					}
					delete_unit_template_and_units = {
						division_template = "Danish Militia"
					}
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			DEN = { add_war_support = -0.55 }
			PRS = { add_war_support = -0.35 }
			AUS = { add_war_support = -0.35 }
		}
	}
}

#Beust's proposal passes
country_event = {
	id = secschwar.38
	title = secschwar.38.t
	desc = secschwar.38.d
	picture = GFX_report_event_augustenburg_reception
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.38.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_beust_proposal
		hidden_effect = {
			DEN = {
				white_peace = PRS
				white_peace = AUS
				end_puppet = SCH
				white_peace = SCH
			}
			SCH = {
				transfer_state = 58
				transfer_state = 949
				transfer_state = 1032
				add_state_core = 58
				add_state_core = 949
				add_state_core = 1032
				set_capital = {
					state = 949
					remember_old_capital = no
				}
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = SCH_autocracy_party_augustenburg }
				SCH_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = SCH_christian_ix
				give_military_access = PRS
				give_military_access = AUS
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
				country_event = { id = secschwar.54 }
			}
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war
			PRS = {
				set_country_flag = eoanb_flag_won_2_schleswig_war_gc
				country_event = { days = 5 id = prussia.89 }
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			DEN = {
			    add_ideas = DEN_idea_lost_second_schleswig_war
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				if = {
					limit = {
						has_template = "Danish Militia"
					}
					delete_unit_template_and_units = {
						division_template = "Danish Militia"
					}
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			DEN = { add_war_support = -0.35 }
			PRS = { add_war_support = -0.35 }
			AUS = { add_war_support = -0.35 }
		}
	}
}

#Breakdown of the London Conference 
country_event = {
	id = secschwar.39
	title = secschwar.39.t
	desc = secschwar.39.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.39.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_conference_breakdown
		PRS = { declare_war_on = { target = DEN type = wargoal_second_schleswig_war } }
		AUS = { add_to_war = { targeted_alliance = PRS enemy = DEN } }
		add_political_power = -25
		add_war_support = -0.05
		add_opinion_modifier = { target = ENG modifier = PRS_SCHLESWIG_WAR_CONTINUES_REL }
		reverse_add_opinion_modifier = { target = ENG modifier = PRS_SCHLESWIG_WAR_CONTINUES_REL }
		every_other_country = {
			limit = {
				is_part_of_the_german_confederation = yes
				NOT = { tag = AUS }
			}
			add_opinion_modifier = { target = ROOT modifier = PRS_SCHLESWIG_WAR_CONTINUES_REL }
			reverse_add_opinion_modifier = { target = ROOT modifier = PRS_SCHLESWIG_WAR_CONTINUES_REL }
		}
		hidden_effect = {
			activate_mission = PRS_mission_finish_war_with_denmark
			DEN = { activate_mission = PRS_mission_finish_war_with_denmark }
			PRS = { set_country_flag = PRS_london_conference_breakdown_flag }
			every_country = {
				limit = {
					OR = {
						AND = {
							is_part_of_the_german_confederation = yes
							NOT = { tag = PRS }
						}
						tag = DEN
					}
				}
				country_event = { days = 1 id = secschwar.40 }
			}
		}
	}
}

#The War Continues 
country_event = {
	id = secschwar.40
	title = secschwar.40.t
	desc = secschwar.40.d
	picture = GFX_report_event_generic_parliament
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.40.a
		ai_chance = { base = 100 }
		add_war_support = -0.05
	}
}

#Denmark Sues for Peace
country_event = {
	id = secschwar.41
	title = secschwar.41.t
	desc = secschwar.41.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.41.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_41
		complete_national_focus = DEN_focus_humiliating_defeat
		set_temp_variable = {
			eoanb_prestige_change = -5
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = DEN_humiliating_defeat_flag
			white_peace = PRS
			white_peace = AUS
			PRS = { set_country_flag = PRS_denmark_sues_for_peace_flag }
			PRS = {
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = secschwar.59 }
			}
			remove_mission = PRS_mission_finish_war_with_denmark
			if = {
				limit = {
					DEN = {
						has_war_with = LUX
					}
				}
				DEN = { white_peace = LUX }
			}
			if = {
				limit = {
					has_template = "Danish Militia"
				}
				delete_unit_template_and_units = {
					division_template = "Danish Militia"
				}
			}
			mark_focus_tree_layout_dirty = yes
		}
	}
}

#Treaty of Vienna
country_event = {
	id = secschwar.42
	title = secschwar.42.t
	desc = secschwar.42.d
	picture = GFX_report_event_generic_parliament

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.42.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_42
		set_temp_variable = {
			eoanb_prestige_change = 5
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			DEN = { end_puppet = SCH }
			DEN = { white_peace = SCH }
			SCH = { transfer_state = 58 }
			SCH = { transfer_state = 949 }
			SCH = { transfer_state = 1032 }
			SCH = { set_politics = { ruling_party = autocracy } }
			SCH = { set_party_name = { ideology = autocracy name = SCH_autocracy_party_provisional } }
			SCH = { 
				SCH_provisional_administration = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				#retire_character = SCH_frederick_vii
			}
			SCH = { give_military_access = PRS }
			PRS = { give_guarantee = SCH }
			SCH = { give_military_access = AUS }
			AUS = { give_guarantee = SCH }
			SCH = { inherit_technology = DEN }
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war
			PRS = { set_country_flag = eoanb_flag_won_2_schleswig_war }
			PRS = { country_event = { days = 5 id = prussia.89 } }
			DEN = {
			    add_ideas = DEN_idea_lost_second_schleswig_war
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
			}
			SCH = {
				remove_ideas = SCH_idea_ethnic_conflicts
				remove_ideas = DEN_idea_london_protocol
				add_ideas = SCH_idea_ethnic_conflicts_DEN
			}
			DEN = { add_war_support = -0.65 }
			PRS = { add_war_support = -0.35 }
			AUS = { add_war_support = -0.35 }
			news_event = news.26
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			SAX = { complete_national_focus = SAX_focus_trias_fails }
		}
	}
}

#Prussia - PRS Supports Federal Execution
country_event = {
	id = secschwar.43
	title = secschwar.43.t
	desc = secschwar.43.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.43.a
		ai_chance = { base = 100 }
		hidden_effect = { 
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 7 id = secschwar.44 }
			}
		}
	}
}

#GC - Growing Pressure for Liberation of Schleswig 
country_event = {
	id = secschwar.44
	title = secschwar.44.t
	desc = secschwar.44.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.44.a
		ai_chance = { base = 100 }
		add_political_power = -10
		hidden_effect = {
			PRS = { country_event = { days = 7 id = secschwar.45 } }
		}
	}
}

#Prussia - Send Ultimatum GC
country_event = {
	id = secschwar.45
	title = secschwar.45.t
	desc = secschwar.45.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.45.a
		ai_chance = { base = 100 }
		add_political_power = 25
		DEN = { country_event = { days = 2 id = secschwar.46 } }
	}
}

#Denmark - Denmark Responds to Bismarck's Ultimatum
country_event = {
	id = secschwar.46
	title = secschwar.46.t
	desc = secschwar.46.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.46.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = historical_option
		add_stability = 0.1
		add_war_support = 0.15
		add_political_power = 100
		hidden_effect = {
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.47 }
			}
		}
	}
	
	option = {
		name = secschwar.46.b
		ai_chance = { base = 0 }
		add_stability = -0.2
		add_political_power = -200
		remove_ideas = DEN_idea_november_constitution
		custom_effect_tooltip = eoanb_tt_event_secschwar_46
		hidden_effect = {
			SCH = { transfer_state = 58 }
			SCH = { transfer_state = 949 }
			SCH = { transfer_state = 1032 }
			DEN = { end_puppet = SCH }
			SCH = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
			}
			SCH = { set_politics = { ruling_party = autocracy } }
			SCH = { set_party_name = { ideology = autocracy name = SCH_autocracy_party_augustenburg } }
			SCH = { 
				SCH_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				#retire_character = SCH_frederick_vii
			}
			SCH = { give_military_access = PRS }
			SCH = { give_military_access = AUS }
			SCH = { inherit_technology = DEN }
			SCH = { load_oob = "SCH_free_GC_member" }
			SCH = { country_event = { days = 14 id = secschwar.54 } }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.48 }
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
		}
	}
}

#GC - Denmark lets ultimatum expire 
country_event = {
	id = secschwar.47
	title = secschwar.47.t
	desc = secschwar.47.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.47.a
		ai_chance = { base = 100 }
		add_political_power = -25
		add_war_support = 0.03
		if = {
			limit = {
				tag = PRS
			}
			unlock_decision_tooltip = PRS_decision_support_bundesintervention
			hidden_effect = {
				PRS = { set_country_flag = PRS_denmark_gc_ultimatum_expired_flag }
			}
		}
	}
}

#GC - Denmark Has Accepted the Ultimatum
country_event = {
	id = secschwar.48
	title = secschwar.48.t
	desc = secschwar.48.d
	picture = GFX_report_event_prs_danish_retreat
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.48.a
		ai_chance = { base = 100 }
		add_political_power = 50
		add_stability = 0.03
		add_war_support = -0.35
		hidden_effect = {
			if = {
				limit = {
					tag = PRS
				}
				PRS = { set_country_flag = eoanb_flag_avoided_2_schleswig_war_gc }
			}
			PRS = { country_event = { days = 5 id = prussia.89 } }
			if = {
				limit = {
					tag = SAX
				}
				complete_national_focus = SAX_focus_trias_succeeds
			}
		}
	}
}

#Prussia - Declare War on Denmark
country_event = {
	id = secschwar.49
	title = secschwar.49.t
	desc = secschwar.49.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.49.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_49
		hidden_effect = {
			create_faction_from_template = faction_template_prussia_ssw
			declare_war_on = { target = DEN type = wargoal_second_schleswig_war }
			add_named_threat = { 
				threat = 3
				name = eoanb_threat_ssw_war
			}
			if = {
				limit = {
					is_ai = yes
				}
				add_ideas = hidden_idea_historical_PRS_victory
			}
			MCK = { give_military_access = PRS }
			set_global_flag = eoanb_flag_second_schleswig_war_gc
			DEN = {
				add_ideas = hidden_idea_never_surrender
				add_ideas = DEN_idea_spirit_of_1848
				country_event = { days = 7 id = denmark.451 }
			}
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = LUX }
					NOT = { tag = LIE }
				}
				country_event = { id = secschwar.50 } 
			}
			activate_mission = PRS_mission_win_war_with_denmark
			DEN = { activate_mission = PRS_mission_win_war_with_denmark }
		}
	}
}

#GC - Join War against Denmark
country_event = {
	id = secschwar.50
	title = secschwar.50.t
	desc = secschwar.50.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.50.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_50
		hidden_effect = {
			PRS = { add_to_faction = ROOT }
			ROOT = { add_to_war = { targeted_alliance = PRS enemy = DEN } }
		}
	}
}

#Denmark Sues for Peace
country_event = {
	id = secschwar.51
	title = secschwar.51.t
	desc = secschwar.51.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.51.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_51
		complete_national_focus = DEN_focus_humiliating_defeat
		set_temp_variable = {
			eoanb_prestige_change = -5
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = DEN_humiliating_defeat_flag
			white_peace = PRS
			PRS = { set_country_flag = PRS_denmark_sues_for_peace_flag }
			PRS = {
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = secschwar.59 }
			}
			PRS = { dismantle_faction = yes }
			remove_mission = PRS_mission_win_war_with_denmark
			if = {
				limit = {
					DEN = {
						has_war_with = LUX
					}
				}
				DEN = { white_peace = LUX }
			}
			if = {
				limit = {
					has_template = "Danish Militia"
				}
				delete_unit_template_and_units = {
					division_template = "Danish Militia"
				}
			}
			mark_focus_tree_layout_dirty = yes
		}
	}
}

#Treaty of Frankfurt
country_event = {
	id = secschwar.52
	title = secschwar.52.t
	desc = secschwar.52.d
	picture = GFX_report_event_augustenburg_reception

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.52.a
		ai_chance = { base = 100 }
		add_political_power = 50
		custom_effect_tooltip = eoanb_tt_event_secschwar_52
		set_temp_variable = {
			eoanb_prestige_change = 3
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			DEN = { end_puppet = SCH }
			DEN = { white_peace = SCH }
			SCH = { transfer_state = 58 }
			SCH = { transfer_state = 949 }
			SCH = { transfer_state = 1032 }
			SCH = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
			}
			SCH = { set_politics = { ruling_party = autocracy } }
			SCH = { set_party_name = { ideology = autocracy name = SCH_autocracy_party_augustenburg } }
			SCH = { 
				SCH_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				#retire_character = SCH_frederick_vii
			}
			SCH = { give_military_access = PRS }
			SCH = { give_military_access = AUS }
			SCH = { inherit_technology = DEN }
			SCH = { load_oob = "SCH_free_GC_member" }
			SCH = { country_event = { days = 14 id = secschwar.54 } }
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war_gc
			PRS = { set_country_flag = eoanb_flag_won_2_schleswig_war_gc }
			PRS = { country_event = { days = 5 id = prussia.89 } }
			DEN = {
			    add_ideas = DEN_idea_lost_second_schleswig_war
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				add_war_support = -0.65
			}
			news_event = news.26
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
		}
	}
}

#GC - Popular Support for Duke Friedrich Augustenburg
country_event = {
	id = secschwar.53
	title = secschwar.53.t
	desc = secschwar.53.d
	picture = GFX_report_event_augustenburg_reception
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.53.a
		ai_chance = { base = 100 }
		add_war_support = 0.05
		add_political_power = 10
		if = {
			limit = {
				tag = SAX
			}
			if = {
				limit = {
					OR = {
						has_country_flag = SAX_decision_trias_idea_ready_flag
						has_completed_focus = SAX_focus_support_augustenburger
					}
					NOT = {
						OR = {
							has_global_flag = eoanb_flag_second_schleswig_war
							has_global_flag = eoanb_flag_second_schleswig_war_gc
						}
					}
				}
				unlock_decision_tooltip = SAX_decision_gather_support_for_the_augustenburger
			}
			hidden_effect = {
				set_country_flag = SAX_decision_support_augustenburger_ready_flag
			}
		}
	}
}

#SCH - Schleswig-Holstein New German Mittelstaat
country_event = {
	id = secschwar.54
	title = secschwar.54.t
	desc = secschwar.54.d
	picture = GFX_report_event_augustenburg_reception
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.54.a
		ai_chance = { base = 100 }
		add_political_power = 100
		eoanb_danish_unrecognised = yes
		if = {
			limit = {
				has_idea = DEN_idea_london_protocol
			}
			remove_ideas = DEN_idea_london_protocol
		}
		if = {
			limit = {
				has_idea = SCH_idea_ethnic_conflicts
			}
			remove_ideas = SCH_idea_ethnic_conflicts
		}
		if = {
			limit = {
				has_idea = GEC_idea_german_confederation_minor_power
			}
			swap_ideas = { remove_idea = GEC_idea_german_confederation_minor_power add_idea = GEC_idea_german_confederation_middle_power }
		}
		else = {
			add_ideas = GEC_idea_german_confederation_middle_power
		}
		if = {
			limit = {
				NOT = { has_idea = SCH_idea_ethnic_conflicts_DEN }
			}
			add_ideas = SCH_idea_ethnic_conflicts_DEN
		}
		if = {
			limit = {
				has_idea = state_controlled_press
			}
			swap_ideas = { remove_idea = state_controlled_press add_idea = free_press }
		}
		else_if = {
			limit = {
				has_idea = censored_press
			}
			swap_ideas = { remove_idea = censored_press add_idea = free_press }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_constitution
		#		}
		#		swap_ideas = { remove_idea = no_constitution add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = human_rights
		#		}
		#		swap_ideas = { remove_idea = human_rights add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = limited_constitution
		#		}
		#		swap_ideas = { remove_idea = limited_constitution add_idea = constitution_adopted }
		#	}
		if = {
			limit = {
				has_idea = no_elections
			}
			swap_ideas = { remove_idea = no_elections add_idea = limited_elections }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_heir
		#		}
		#		swap_ideas = { remove_idea = no_heir add_idea = has_heir }
		#	}
		if = {
			limit = {
				has_idea = agrarian
			}
			swap_ideas = { remove_idea = agrarian add_idea = industrializing }
		}
		##	if = {
		#		limit = {
		#			has_idea = absolute_monarchy
		#		}
		#		swap_ideas = { remove_idea = absolute_monarchy add_idea = parliamentary_monarchy }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = constitutional_monarchy
		#		}
		#		swap_ideas = { remove_idea = constitutional_monarchy add_idea = parliamentary_monarchy }
		#	}
		if = {
			limit = {
				has_idea = absolutism
			}
			swap_ideas = { remove_idea = absolutism add_idea = universal_male_suffrage }
		}
		add_popularity = {
			ideology = centrism
			popularity = 0.35
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.55 }
			}
			if = {
				limit = {
					SAX = { 
						OR = {
							has_country_flag = SAX_decision_notify_the_middle_states_failure_flag
							has_country_flag = SAX_decision_notify_the_middle_states_small_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_large_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_unanimity_flag
						}
					}
				}
				add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
				reverse_add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			}
			else_if = {
				limit = {
					SAX = { has_variable = SAX_bundesreform_positive_votes }
				}
				country_event = { id = saxony.303 }
			}
			if = {
				limit = {
					owns_state = 58
				}
				58 = { add_core_of = SCH }
			}
			if = {
				limit = {
					owns_state = 949
				}
				949 = { add_core_of = SCH }
			}
			if = {
				limit = {
					owns_state = 1032
				}
				1032 = { add_core_of = SCH }
			}
		}
	}
}

#GC - Schleswig-Holstein New Member of the German Confederation
country_event = {
	id = secschwar.55
	title = secschwar.55.t
	desc = secschwar.55.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.55.a
		ai_chance = { base = 100 }
		add_political_power = -10
		SCH = { add_political_power = 10 }
		ROOT = {
			add_opinion_modifier = { target = FROM modifier = eoanb_SCHLESWIG_GC_MEMBER_REL }
			reverse_add_opinion_modifier = { target = FROM modifier = eoanb_SCHLESWIG_GC_MEMBER_REL }
		}
		if = {
			limit = {
				tag = SAX
			}
			complete_national_focus = SAX_focus_trias_succeeds
		}
	}
}

#GC - United Schleswig-Holstein under Prussian Control
country_event = {
	id = secschwar.56
	title = secschwar.56.t
	desc = secschwar.56.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.56.a
		ai_chance = { base = 100 }
		add_war_support = -0.35
		add_political_power = -10
	}
}

#GC - Danish Parliament Approves November Constitution
country_event = {
	id = secschwar.57
	title = secschwar.57.t
	desc = secschwar.57.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.57.a
		ai_chance = { base = 100 }
		add_political_power = -10
	}
}

#GC - Death of King Frederick VII
country_event = {
	id = secschwar.58
	title = secschwar.58.t
	desc = secschwar.58.d
	picture = GFX_report_event_europe_funeral
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.58.a
		ai_chance = { base = 100 }
	}
}

#GC - Denmark Sues for Peace 
country_event = {
	id = secschwar.59
	title = secschwar.59.t
	desc = secschwar.59.d
	picture = GFX_report_event_duppeler_schanzen
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.59.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
			unlock_decision_tooltip = PRS_decision_peace_of_frankfurt
		}
		else_if = {
			limit = {
				tag = PRS
				has_global_flag = eoanb_flag_second_schleswig_war
			}
			unlock_decision_tooltip = PRS_decision_peace_of_vienna
		}
		add_political_power = 25
		add_war_support = -0.5
		if = {
			limit = {
				tag = AUS
			}
			set_temp_variable = {
				eoanb_prestige_change = 5
			}
			eoanb_change_prestige_score = yes
		}
		hidden_effect = {
			if = {
				limit = {
					DEN = {
						has_war_with = LUX
					}
				}
				DEN = { white_peace = LUX }
			}
		}
	}
}

#Gastein Convention - Austria
country_event = {
	id = secschwar.60
	title = secschwar.60.t
	desc = secschwar.60.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.60.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_gastein
		add_political_power = 50
		hidden_effect = {
			HLS = { transfer_state = 949 }
			949 = { add_compliance = 80 }
			AUS = { puppet = HLS }
			AUS = {
				diplomatic_relation = {
					country = SCH
					relation = guarantee
					active = no
				}
			}
			HLS = {	set_politics = { ruling_party = autocracy } }
			HLS = {	
				set_popularities = {
					anarchism = 0
					ideology_social_liberalism = 0
					ideology_radical_socialism = 0
					social_egalitarianism = 0
					centrism = 0
					traditional_conservatism = 0
					radical_democracy = 0
					chauvinist_populism = 0
					autocracy = 100
					fundamentalism = 0
				}
			}
			HLS = { set_party_name = { ideology = autocracy name = HLS_autocracy_party_austria } }
			HLS = {
				HLS_franz_joseph_i = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1917.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				#if = {
				#	limit = {
				#		has_character = HLS_friedrich_von_augustenburg
				#	}
				#}
				#retire_character = HLS_friedrich_von_augustenburg
			}
			HLS = { give_military_access = PRS }
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = PRS }
				}
				add_opinion_modifier = { target = ROOT modifier = eoanb_AUS_PRS_GC_SCHLESWIG_DISAPPOINTMENT }
				reverse_add_opinion_modifier = { target = ROOT modifier = eoanb_AUS_PRS_GC_SCHLESWIG_DISAPPOINTMENT }
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
		}
	}
}

#Gastein Convention - Prussia
country_event = {
	id = secschwar.61
	title = secschwar.61.t
	desc = secschwar.61.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.61.a
		ai_chance = { base = 100 }
		add_political_power = 100
		custom_effect_tooltip = eoanb_tt_event_secschwar_gastein
		hidden_effect = {
			PRS = { puppet = SCH }
			SCH = { set_politics = { ruling_party = autocracy } }
			SCH = { set_party_name = { ideology = autocracy name = SCH_autocracy_party_prussia } }
			SCH = { 
				SCH_carl_von_scheel_plessen = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1893.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				#retire_character = SCH_frederick_vii
				#retire_character = SCH_provisional_administration
				#retire_character = SCH_friedrich_von_augustenburg
			}
			SCH = {
				add_popularity = {
					ideology = autocracy
					popularity = 0.5
				}
			}
			SCH = { give_military_access = AUS }
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = AUS }
				}
				add_opinion_modifier = { target = ROOT modifier = eoanb_AUS_PRS_GC_SCHLESWIG_DISAPPOINTMENT }
				reverse_add_opinion_modifier = { target = ROOT modifier = eoanb_AUS_PRS_GC_SCHLESWIG_DISAPPOINTMENT }
			}
			PRS = { set_country_flag = PRS_gastein_convetion }
		}
	}
}

#Gastein Convention - GC Notification
country_event = {
	id = secschwar.62
	title = secschwar.62.t
	desc = secschwar.62.d
	picture = GFX_report_event_german_confederation_inner_circle
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.62.a
		ai_chance = { base = 100 }
		add_political_power = -25
		custom_effect_tooltip = eoanb_tt_event_secschwar_gastein_gc
	}
}

#PRS/AUS/DEN/GC - London Conference - Danish Victory
country_event = {
	id = secschwar.63
	title = secschwar.63.t
	desc = secschwar.63.d
	picture = GFX_report_event_duppeler_schanzen
	
	timeout_days = 5
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.63.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_63
		if = {
			limit = {
				tag = DEN
			}
			increase_ps_by_one = yes
		}
		if = {
			limit = {
				tag = PRS
			}
			hidden_effect = {
				remove_mission = PRS_mission_london_conference
			}
		}
	}
}

#Denmark - Opening of the London Conference 
country_event = {
	id = secschwar.64
	title = secschwar.64.t
	desc = secschwar.64.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.64.a
		ai_chance = { base = 100 }
		add_political_power = 25
		add_war_support = -0.1
		hidden_effect = {
			PRS = { country_event = { id = secschwar.65 } }
			AUS = { country_event = { id = secschwar.65 } }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = PRS }
					NOT = { tag = AUS }
				} 
				country_event = { id = secschwar.66 } 
			}
			DEN = { country_event = { days = 7 id = secschwar.67 } }
		}
	}
}

#Prussia/Austria - Opening of the London Conference 
country_event = {
	id = secschwar.65
	title = secschwar.65.t
	desc = secschwar.65.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 5

	is_triggered_only = yes
	
	option = {
		name = secschwar.65.a
		ai_chance = { base = 100 }
		add_political_power = -25
		add_war_support = -0.1
	}
}

#GC - Opening of the London Conference 
country_event = {
	id = secschwar.66
	title = secschwar.66.t
	desc = secschwar.66.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 5

	is_triggered_only = yes
	
	option = {
		name = secschwar.66.a
		ai_chance = { base = 100 }
		add_political_power = -15
	}
}

#Denmark - Attempt to Extend November Constitution to Holstein?
country_event = {
	id = secschwar.67
	title = secschwar.67.t
	desc = secschwar.67.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 5
	
	fire_only_once = yes
	is_triggered_only = yes
	
	#Try to take Holstein
	option = {
		name = secschwar.67.a
		ai_chance = { base = 100 }
		add_political_power = 10
		hidden_effect = {
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = PRS }
					NOT = { tag = AUS }
				} 
				country_event = { days = 2 id = secschwar.68 } 
			}
		}
	}

	#Settle for Schleswig and let Holstein be free
	option = {
		name = secschwar.67.b
		ai_chance = { base = 0 }
		add_political_power = -10
		hidden_effect = {
			country_event = { days = 14 id = secschwar.71 } 
		}
	}
}

#GC - Threaten War over Duchy of Holstein 
country_event = {
	id = secschwar.68
	title = secschwar.68.t
	desc = secschwar.68.d
	picture = GFX_report_event_german_confederation_building
	
	timeout_days = 5

	is_triggered_only = yes
	
	option = {
		name = secschwar.68.a
		ai_chance = { base = 100 }
		add_political_power = 20
		add_war_support = 0.1
		hidden_effect = {
			DEN = { country_event = { id = secschwar.69 } }
		}
	}
}

#Denmark - Threaten War over Duchy of Holstein
country_event = {
	id = secschwar.69
	title = secschwar.69.t
	desc = secschwar.69.d
	picture = GFX_report_event_german_confederation_building
	
	timeout_days = 3
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.69.a
		ai_chance = { base = 100 }
		add_political_power = -10
		hidden_effect = {
			PRS = { country_event = { id = secschwar.70 } }
			AUS = { country_event = { id = secschwar.70 } }
			DEN = { country_event = { days = 14 id = secschwar.71 } }
		}
	}
}

#Prussia/Austria - Threaten War over Duchy of Holstein 
country_event = {
	id = secschwar.70
	title = secschwar.70.t
	desc = secschwar.70.d
	picture = GFX_report_event_german_confederation_building
	
	timeout_days = 3

	is_triggered_only = yes
	
	option = {
		name = secschwar.70.a
		ai_chance = { base = 100 }
		add_political_power = 5
	}
}

#Denmark - London Peace Treaty of 1864 
country_event = {
	id = secschwar.71
	title = secschwar.71.t
	desc = secschwar.71.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.71.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_71
		complete_national_focus = DEN_focus_glorious_victory
		set_temp_variable = {
			eoanb_prestige_change = 25
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = DEN_glorious_victory_flag
			HLS = {
				transfer_state = 949
				add_state_core = 949
			}
			DEN = {
				end_puppet = HLS
				remove_state_core = 949
			}
			HLS = {
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = HLS_autocracy_party_augustenburg }
				HLS_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = HLS_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = HLS_Frederick_of_Augustenburg 
				}
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
			}
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war
			PRS = {
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			DEN = {
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				if = {
					limit = {
						has_template = "Danish Militia"
					}
					delete_unit_template_and_units = {
						division_template = "Danish Militia"
					}
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			DEN = { add_war_support = -0.4 }
			PRS = { add_war_support = -0.5 }
			AUS = { add_war_support = -0.4 }
			PRS = { country_event = { id = secschwar.72 } }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = PRS }
				} 
				country_event = { id = secschwar.73 } 
			}
			HLS = { country_event = { days = 3 id = secschwar.74 } }
			news_event = news.29
			mark_focus_tree_layout_dirty = yes
		}
	}
}

#Prussia - London Peace Treaty of 1864  
country_event = {
	id = secschwar.72
	title = secschwar.72.t
	desc = secschwar.72.d
	picture = GFX_report_event_generic_parliament

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.72.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_72
		add_political_power = -10
		set_temp_variable = {
			eoanb_prestige_change = -25
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = eoanb_flag_stopgap_2_schleswig_war
		}
	}
}

#GC - London Peace Treaty of 1864 
country_event = {
	id = secschwar.73
	title = secschwar.73.t
	desc = secschwar.73.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	option = {
		name = secschwar.73.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				NOT = { tag = AUS }
			}
			add_political_power = 25
			add_war_support = -0.25
		}
		if = {
			limit = {
				tag = AUS
			}
			set_temp_variable = {
				eoanb_prestige_change = -25
			}
			eoanb_change_prestige_score = yes
		}
	}
}

#HLS - Duchy of Holstein New German Mittelstaat
country_event = {
	id = secschwar.74
	title = secschwar.74.t
	desc = secschwar.74.d
	picture = GFX_report_event_augustenburg_reception
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.74.a
		ai_chance = { base = 100 }
		add_political_power = 100
		if = {
			limit = {
				has_idea = DEN_idea_london_protocol
			}
			remove_ideas = DEN_idea_london_protocol
		}
		if = {
			limit = {
				has_idea = GEC_idea_german_confederation_minor_power
			}
			swap_ideas = { remove_idea = GEC_idea_german_confederation_minor_power add_idea = GEC_idea_german_confederation_middle_power }
		}
		else = {
			add_ideas = GEC_idea_german_confederation_middle_power
		}
		if = {
			limit = {
				has_idea = state_controlled_press
			}
			swap_ideas = { remove_idea = state_controlled_press add_idea = free_press }
		}
		else_if = {
			limit = {
				has_idea = censored_press
			}
			swap_ideas = { remove_idea = censored_press add_idea = free_press }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_constitution
		#		}
		#		swap_ideas = { remove_idea = no_constitution add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = human_rights
		#		}
		#		swap_ideas = { remove_idea = human_rights add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = limited_constitution
		#		}
		#		swap_ideas = { remove_idea = limited_constitution add_idea = constitution_adopted }
		#	}
		if = {
			limit = {
				has_idea = no_elections
			}
			swap_ideas = { remove_idea = no_elections add_idea = limited_elections }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_heir
		#		}
		#		swap_ideas = { remove_idea = no_heir add_idea = has_heir }
		#	}
		#	if = {
		#		limit = {
		#			has_idea = absolute_monarchy
		#		}
		#		swap_ideas = { remove_idea = absolute_monarchy add_idea = parliamentary_monarchy }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = constitutional_monarchy
		#		}
		#		swap_ideas = { remove_idea = constitutional_monarchy add_idea = parliamentary_monarchy }
		#	}
		if = {
			limit = {
				has_idea = absolutism
			}
			swap_ideas = { remove_idea = absolutism add_idea = universal_male_suffrage }
		}
		add_popularity = {
			ideology = centrism
			popularity = 0.4
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.75 }
			}
			if = {
				limit = {
					SAX = { 
						OR = {
							has_country_flag = SAX_decision_notify_the_middle_states_failure_flag
							has_country_flag = SAX_decision_notify_the_middle_states_small_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_large_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_unanimity_flag
						}
					}
				}
				add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
				reverse_add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			}
			else_if = {
				limit = {
					SAX = { has_variable = SAX_bundesreform_positive_votes }
				}
				country_event = { id = saxony.303 }
			}
			if = {
				limit = {
					owns_state = 58
				}
				58 = { add_core_of = HLS }
			}
			if = {
				limit = {
					owns_state = 949
				}
				949 = { add_core_of = HLS }
			}
		}
	}
}

#GC - Duchy of Holstein New Member of the German Confederation
country_event = {
	id = secschwar.75
	title = secschwar.75.t
	desc = secschwar.75.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.75.a
		ai_chance = { base = 100 }
		add_political_power = -10
		HLS = { add_political_power = 10 }
		ROOT = {
			add_opinion_modifier = { target = FROM modifier = eoanb_HOLSTEIN_GC_MEMBER_REL }
			reverse_add_opinion_modifier = { target = FROM modifier = eoanb_HOLSTEIN_GC_MEMBER_REL }
		}
		if = {
			limit = {
				tag = SAX
			}
			complete_national_focus = SAX_focus_trias_succeeds
		}
	}
}

#Prussia - We Need to Seek a Peace Deal
country_event = {
	id = secschwar.76
	title = secschwar.76.t
	desc = secschwar.76.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.76.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				has_global_flag = eoanb_flag_second_schleswig_war
			}
			custom_effect_tooltip = eoanb_tt_event_secschwar_76_london
		}
		else_if = {
			limit = {
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
			custom_effect_tooltip = eoanb_tt_event_secschwar_76_gc
		}
		add_political_power = -50
		add_war_support = -0.15
		set_temp_variable = {
			eoanb_prestige_change = -25
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			DEN = { country_event = { id = secschwar.79 } }
			if = {
				limit = {
					has_active_mission = PRS_mission_win_war_with_denmark
				}
				remove_mission = PRS_mission_win_war_with_denmark
			}
			if = {
				limit = {
					has_active_mission = PRS_mission_finish_war_with_denmark
				}
				remove_mission = PRS_mission_finish_war_with_denmark
			}
		}
	}
}

#Austria - We Have Been Defeated 
country_event = {
	id = secschwar.77
	title = secschwar.77.t
	desc = secschwar.77.d
	picture = GFX_report_event_vienna_1
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.77.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_77
		add_political_power = -50
		add_war_support = -0.15
		set_temp_variable = {
			eoanb_prestige_change = -25
		}
		eoanb_change_prestige_score = yes
	}
}

#GC - We Have Been Defeated 
country_event = {
	id = secschwar.78
	title = secschwar.78.t
	desc = secschwar.78.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.78.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_78
		add_political_power = -20
		add_war_support = -0.15
	}
}

#Denmark - Prussia Is Looking for Peace 
country_event = {
	id = secschwar.79
	title = secschwar.79.t
	desc = secschwar.79.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	timeout_days = 3
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.79.a
		ai_chance = { base = 100 }
		add_political_power = 25
		hidden_effect = {
			DEN = { transfer_state = 949 }
			949 = { add_compliance = 20 }
			if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war
				}
				white_peace = PRS
				white_peace = AUS
			}
			else_if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
				white_peace = PRS
				PRS = { dismantle_faction = yes }
			}
			DEN = { country_event = { days = 5 id = secschwar.80 } }
			if = {
				limit = {
					DEN = {
						has_war_with = LUX
					}
				}
				DEN = { white_peace = LUX }
			}
		}
	}
}

#Denmark - Let the Peace Talks Commence 
country_event = {
	id = secschwar.80
	title = secschwar.80.t
	desc = secschwar.80.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.80.a
		ai_chance = { base = 100 }
		add_political_power = 10
		add_war_support = -0.1
		hidden_effect = {
			if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war
				}
				PRS = { country_event = { id = secschwar.81 } }
				AUS = { country_event = { id = secschwar.81 } }
			}
			else_if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
				every_country = {
					limit = {
						is_part_of_the_german_confederation = yes
						NOT = { tag = LUX }
						NOT = { tag = LIE }
					}
					country_event = { id = secschwar.81 }
				}
			}
			DEN = { country_event = { days = 7 id = secschwar.82 } }
		}
	}
}

#Prussia/Austria/GC - The Peace Talks Have Commenced 
country_event = {
	id = secschwar.81
	title = secschwar.81.t
	desc = secschwar.81.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 5
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.81.a
		ai_chance = { base = 100 }
	}
}

#Denmark - Find a Compromise that Ensures Peace 
country_event = {
	id = secschwar.82
	title = secschwar.82.t
	desc = secschwar.82.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.82.a
		ai_chance = { base = 100 }
		add_political_power = -10
		hidden_effect = {
			if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war
				}
				PRS = { country_event = { id = secschwar.83 } }
				AUS = { country_event = { id = secschwar.83 } }
			}
			else_if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
				every_country = {
					limit = {
						is_part_of_the_german_confederation = yes
						NOT = { tag = LUX }
						NOT = { tag = LIE }
					}
					country_event = { id = secschwar.83 }
				}
			}
			DEN = { country_event = { days = 7 id = secschwar.84 } }
		}
	}
}

#Prussia/Austria/GC - Denmark Willing to Find Sustainable Compromise 
country_event = {
	id = secschwar.83
	title = secschwar.83.t
	desc = secschwar.83.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 5
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.83.a
		ai_chance = { base = 100 }
		add_political_power = 10
	}
}

#Denmark - Glücksburg Peace Treaty of 1864 
country_event = {
	id = secschwar.84
	title = secschwar.84.t
	desc = secschwar.84.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.84.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_71
		complete_national_focus = DEN_focus_glorious_victory
		set_temp_variable = {
			eoanb_prestige_change = 25
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = DEN_glorious_victory_flag
			HLS = { transfer_state = 949 }
			DEN = { end_puppet = HLS }
			DEN = { remove_state_core = 949 }
			HLS = { add_state_core = 949 }
			HLS = { set_politics = { ruling_party = autocracy } }
			HLS = { set_party_name = { ideology = autocracy name = HLS_autocracy_party_augustenburg } }
			HLS = { inherit_technology = DEN }
			HLS = { load_oob = "SCH_free_GC_member" }
			PRS = {
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			DEN = {
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				if = {
					limit = {
						has_template = "Danish Militia"
					}
					delete_unit_template_and_units = {
						division_template = "Danish Militia"
					}
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			DEN = { add_war_support = -0.5 }
			PRS = { add_war_support = -0.5 }
			PRS = { country_event = { id = secschwar.85 } }
			if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war
				}
				AUS = { country_event = { id = secschwar.86 } }
			}
			else_if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
				every_country = {
					limit = {
						is_part_of_the_german_confederation = yes
						NOT = { tag = PRS }
						NOT = { tag = LUX }
						NOT = { tag = LIE }
					}
					country_event = { id = secschwar.86 }
				}
			}
			HLS = { country_event = { days = 3 id = secschwar.87 } }
			news_event = news.29
			mark_focus_tree_layout_dirty = yes
		}
	}
}

#Prussia - Glücksburg Peace Treaty of 1864
country_event = {
	id = secschwar.85
	title = secschwar.85.t
	desc = secschwar.85.d
	picture = GFX_report_event_generic_parliament

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.85.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_72
		add_political_power = -10
		hidden_effect = {
			set_country_flag = eoanb_flag_stopgap_2_schleswig_war
		}
	}
}

#GC/Austria - Glücksburg Peace Treaty of 1864
country_event = {
	id = secschwar.86
	title = secschwar.86.t
	desc = secschwar.86.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 3

	is_triggered_only = yes
	
	option = {
		name = secschwar.86.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				NOT = { tag = AUS }
			}
			add_political_power = 10
			add_war_support = -0.25
		}
		else_if = {
			limit = {
				tag = AUS
				has_global_flag = eoanb_flag_second_schleswig_war
			}
			add_political_power = -10
			add_war_support = -0.5
			hidden_effect = {
				set_global_flag = eoanb_flag_second_schleswig_war_end
				clr_global_flag = eoanb_flag_second_schleswig_war
			}
		}
		else_if = {
			limit = {
				tag = AUS
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
			add_political_power = -10
			add_war_support = -0.25
			hidden_effect = {
				set_global_flag = eoanb_flag_second_schleswig_war_end
				clr_global_flag = eoanb_flag_second_schleswig_war_gc
			}
		}
	}
}

#HLS - Duchy of Holstein New German Mittelstaat
country_event = {
	id = secschwar.87
	title = secschwar.87.t
	desc = secschwar.87.d
	picture = GFX_report_event_augustenburg_reception
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.87.a
		ai_chance = { base = 100 }
		add_political_power = 100
		if = {
			limit = {
				has_idea = DEN_idea_london_protocol
			}
			remove_ideas = DEN_idea_london_protocol
		}
		if = {
			limit = {
				has_idea = GEC_idea_german_confederation_minor_power
			}
			swap_ideas = { remove_idea = GEC_idea_german_confederation_minor_power add_idea = GEC_idea_german_confederation_middle_power }
		}
		else = {
			add_ideas = GEC_idea_german_confederation_middle_power
		}
		if = {
			limit = {
				has_idea = state_controlled_press
			}
			swap_ideas = { remove_idea = state_controlled_press add_idea = free_press }
		}
		else_if = {
			limit = {
				has_idea = censored_press
			}
			swap_ideas = { remove_idea = censored_press add_idea = free_press }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_constitution
		#		}
		#		swap_ideas = { remove_idea = no_constitution add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = human_rights
		#		}
		#		swap_ideas = { remove_idea = human_rights add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = limited_constitution
		#		}
		#		swap_ideas = { remove_idea = limited_constitution add_idea = constitution_adopted }
		#	}
		if = {
			limit = {
				has_idea = no_elections
			}
			swap_ideas = { remove_idea = no_elections add_idea = limited_elections }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_heir
		#		}
		#		swap_ideas = { remove_idea = no_heir add_idea = has_heir }
		#	}
		#	if = {
		#		limit = {
		#			has_idea = absolute_monarchy
		#		}
		#		swap_ideas = { remove_idea = absolute_monarchy add_idea = parliamentary_monarchy }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = constitutional_monarchy
		#		}
		#		swap_ideas = { remove_idea = constitutional_monarchy add_idea = parliamentary_monarchy }
		#	}
		if = {
			limit = {
				has_idea = absolutism
			}
			swap_ideas = { remove_idea = absolutism add_idea = universal_male_suffrage }
		}
		add_popularity = {
			ideology = centrism
			popularity = 0.4
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 1 id = secschwar.75 }
			}
			if = {
				limit = {
					SAX = { 
						OR = {
							has_country_flag = SAX_decision_notify_the_middle_states_failure_flag
							has_country_flag = SAX_decision_notify_the_middle_states_small_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_large_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_unanimity_flag
						}
					}
				}
				add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
				reverse_add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			}
			else_if = {
				limit = {
					SAX = { has_variable = SAX_bundesreform_positive_votes }
				}
				country_event = { id = saxony.303 }
			}
			if = {
				limit = {
					owns_state = 58
				}
				58 = { add_core_of = HLS }
			}
			if = {
				limit = {
					owns_state = 949
				}
				949 = { add_core_of = HLS }
			}
		}
	}
}

#Denmark/Prussia/Austria - Stalemate in Schleswig-Holstein 
country_event = {
	id = secschwar.88
	title = secschwar.88.t
	desc = secschwar.88.d
	picture = GFX_report_event_duppeler_schanzen
	
	timeout_days = 3

	is_triggered_only = yes
	
	option = {
		name = secschwar.88.a
		ai_chance = { base = 100 }
		add_political_power = -50
		add_war_support = -0.5
	}
}

#Denmark - Propose a Sustainable Compromise
country_event = {
	id = secschwar.89
	title = secschwar.89.t
	desc = secschwar.89.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.89.a
		ai_chance = { base = 100 }
		add_political_power = 10
		hidden_effect = {
			PRS = { country_event = { days = 1 id = secschwar.90 } }
			if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war
				}
				AUS = { country_event = { days = 1 id = secschwar.91 } }
			}
			else_if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
				every_country = {
					limit = {
						is_part_of_the_german_confederation = yes
						NOT = { tag = PRS }
						NOT = { tag = LUX }
						NOT = { tag = LIE }
					}
					country_event = { days = 1 id = secschwar.91 }
				}
			}
			DEN = { country_event = { days = 7 id = secschwar.92 } }
		}
	}
}

#Prussia - Denmark Proposes Compromise
country_event = {
	id = secschwar.90
	title = secschwar.90.t
	desc = secschwar.90.d
	picture = GFX_report_event_wilhelmstrasse_staatsministerium
	
	timeout_days = 5
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.90.a
		ai_chance = { base = 100 }
		add_political_power = 10
	}
}

#GC/Austria - Denmark Proposes Compromise 
country_event = {
	id = secschwar.91
	title = secschwar.91.t
	desc = secschwar.91.d
	picture = GFX_report_event_german_confederation_building
	
	timeout_days = 5
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.91.a
		ai_chance = { base = 100 }
		add_political_power = 10
	}
}

#Denmark - Lyksborg Peace Treaty of 1864 
country_event = {
	id = secschwar.92
	title = secschwar.92.t
	desc = secschwar.92.d
	picture = GFX_report_event_generic_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.92.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_92
		complete_national_focus = DEN_focus_a_region_divided
		set_temp_variable = {
			eoanb_prestige_change = 10
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = DEN_a_region_divided_flag
			HLS = {
				transfer_state = 949
				transfer_state = 58
				add_state_core = 949
				add_state_core = 58
			}
			DEN = {
				end_puppet = HLS
				remove_state_core = 949
				remove_state_core = 58
			}
			HLS = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = HLS_autocracy_party_augustenburg }
				HLS_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = HLS_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = HLS_Frederick_of_Augustenburg
				}
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
			}
			PRS = {
				remove_ideas = DEN_idea_pomerania_blockade
				remove_ideas = hidden_idea_historical_PRS_victory
			}
			DEN = {
				remove_ideas = hidden_idea_never_surrender
				#remove_ideas = HLS_idea_profits_from_altona_1
				if = {
					limit = {
						has_template = "Danish Militia"
					}
					delete_unit_template_and_units = {
						division_template = "Danish Militia"
					}
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			DEN = { add_war_support = -0.5 }
			PRS = { add_war_support = -0.5 }
			PRS = { country_event = { id = secschwar.93 } }
			if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war
				}
				AUS = { country_event = { id = secschwar.94 } }
			}
			else_if = {
				limit = {
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
				every_country = {
					limit = {
						is_part_of_the_german_confederation = yes
						NOT = { tag = PRS }
						NOT = { tag = LUX }
						NOT = { tag = LIE }
					}
					country_event = { id = secschwar.94 }
				}
			}
			HLS = { country_event = { days = 3 id = secschwar.87 } }
			news_event = news.30
			mark_focus_tree_layout_dirty = yes
		}
	}
}

#Prussia - Glücksburg Peace Treaty of 1864
country_event = {
	id = secschwar.93
	title = secschwar.93.t
	desc = secschwar.93.d
	picture = GFX_report_event_generic_parliament

	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.93.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_secschwar_93
		set_temp_variable = {
			eoanb_prestige_change = -10
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = eoanb_flag_stopgap_2_schleswig_war
		}
	}
}

#GC/Austria - Glücksburg Peace Treaty of 1864
country_event = {
	id = secschwar.94
	title = secschwar.94.t
	desc = secschwar.94.d
	picture = GFX_report_event_generic_parliament
	
	timeout_days = 3

	is_triggered_only = yes
	
	option = {
		name = secschwar.94.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				NOT = { tag = AUS }
			}
			add_political_power = 10
			add_war_support = -0.25
		}
		else_if = {
			limit = {
				tag = AUS
				has_global_flag = eoanb_flag_second_schleswig_war
			}
			add_political_power = -10
			add_war_support = -0.3
			set_temp_variable = {
				eoanb_prestige_change = -10
			}
			eoanb_change_prestige_score = yes
			hidden_effect = {
				set_global_flag = eoanb_flag_second_schleswig_war_end
				clr_global_flag = eoanb_flag_second_schleswig_war
			}
		}
		else_if = {
			limit = {
				tag = AUS
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
			add_political_power = -10
			add_war_support = -0.15
			set_temp_variable = {
				eoanb_prestige_change = -5
			}
			eoanb_change_prestige_score = yes
			hidden_effect = {
				set_global_flag = eoanb_flag_second_schleswig_war_end
				clr_global_flag = eoanb_flag_second_schleswig_war_gc
			}
		}
	}
}

#Denmark - The King Refuses to Sign the Constitution into Law
country_event = {
	id = secschwar.95
	title = secschwar.95.t
	desc = secschwar.95.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.95.a
		ai_chance = { base = 100 }
		add_popularity = { ideology = centrism popularity = 0.05 }
		set_temp_variable = {
			eoanb_prestige_change = -3
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			DEN = { country_event = { days = 2 id = secschwar.96 } }
		}
	}
}

#Denmark - National Liberals Outraged
country_event = {
	id = secschwar.96
	title = secschwar.96.t
	desc = secschwar.96.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.96.a
		ai_chance = { base = 100 }
		add_political_power = -25
		add_popularity = { ideology = centrism popularity = 0.05 }
		hidden_effect = {
			DEN = { country_event = { days = 3 id = secschwar.97 } }
		}
	}
}

#Denmark - National Liberals Demand the King to Give In to Parliament
country_event = {
	id = secschwar.97
	title = secschwar.97.t
	desc = secschwar.97.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.97.a
		ai_chance = { base = 100 }
		add_political_power = 10
		add_stability = -0.05
		hidden_effect = {
			DEN = { country_event = { days = 5 id = secschwar.98 } }
		}
	}
}

#Denmark - Rising Tensions Between the Monarchy and the Folketing
country_event = {
	id = secschwar.98
	title = secschwar.98.t
	desc = secschwar.98.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.98.a
		ai_chance = { base = 100 }
		add_stability = -0.05
		decrease_ps_by_one = yes
		hidden_effect = {
			DEN = { country_event = { days = 5 id = secschwar.99 } }
		}
	}
}

#Denmark - Uprising Imminent
country_event = {
	id = secschwar.99
	title = secschwar.99.t
	desc = secschwar.99.d
	picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.99.a
		ai_chance = { base = 100 }
		add_stability = -0.05
		hidden_effect = {
			DEN = { country_event = { days = 2 id = secschwar.100 } }
		}
	}
}

#Denmark - The Danish Civil War
country_event = {
	id = secschwar.100
	title = secschwar.100.t
	desc = secschwar.100.d
	#picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.100.a
		ai_chance = { base = 100 }
		start_civil_war = {
			ruling_party = centrism
			ideology = traditional_conservatism
			size = 0.4
			capital = 99
			states = { 
				99 100 101 337 1307 1357
			}
			keep_unit_leaders = {
				3601 3605 3607
			}
			#if = {
			#	limit = {
			#		has_government = centrism
			#	}
			#	keep_political_leader = yes
			#}
		}
		DEN = { country_event = { id = secschwar.101 } }
	}
}

#Denmark - The Danish Civil War - Pick a Side
country_event = {
	id = secschwar.101
	title = secschwar.101.t
	desc = secschwar.101.d
	#picture = GFX_report_event_danish_parliament
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.101.a
		ai_chance = { base = 100 }
		
	}
}

################################################################################################################
#                          			GERMAN TRIAS ALT HISTORICAL SCENARIO									   #
################################################################################################################

#Saxony - Vote on Activation of Federal Intervention against Denmark
country_event = {
	id = secschwar.501
	title = secschwar.501.t
	desc = secschwar.501.d
	picture = GFX_report_event_german_confederation_building
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.501.a
		ai_chance = { base = 100 }
		every_other_country = {
			limit = {
				is_part_of_the_german_confederation = yes
				NOT = { tag = HLS }
			}
			country_event = { days = 1 id = secschwar.502 }
		}
		hidden_effect = {
			set_variable = { var = GC_federal_intervention value = 4 }
			country_event = { id = secschwar.503 days = 7 }
		}
	}
}

#GC - Vote on Activation of Federal Intervention against Denmark
country_event = {
	id = secschwar.502
	title = secschwar.502.t
	desc = secschwar.502.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes
	
	timeout_days = 5

	#Vote in favour of the motion.
	option = {
		name = secschwar.502.a
		ai_chance = { 
			base = 60
			modifier = {
				add = -30
				tag = PRS
			}
			modifier = {
				add = -20
				tag = AUS
			}
			modifier = {
				add = 20
				tag = THU
			}
			modifier = {
				add = -10
				has_government = traditional_conservatism
			}
			modifier = {
				add = -20
				has_government = autocracy
			}
			modifier = {
				factor = 0
				tag = PRS
				has_country_leader = {
					character = PRS_otto_von_bismarck
					ruling_only = yes
				}
			}
		}
		add_political_power = 10
		add_war_support = 0.03
		if = {
			limit = {
				OR = {
					tag = BAD
					tag = HAN
				}
			}
			custom_effect_tooltip = historical_option
		}
		hidden_effect = {
			### 	VOTING IN THE GC's FEDERAL CONVENTION:
			###		5 VOTES EACH: PRUSSIA (+ 1 for Hohenzollern-Sigmaringen) = 5 votes
			###		4 VOTES EACH: AUSTRIA, BAVARIA, HANOVER, SAXONY, WURTTEMBERG, THURINGIA (normally one each but we only have that) = 24 votes
			###		3 VOTES EACH: BADEN, HESSE, HESSE-DARMSTADT, LUXEMBOURG, MECKLENBURG (2 + 1 for Strelitz) = 15 votes
			###		normally HOLSTEIN too but they are not allowed to vote here
			###		2 VOTES EACH: NASSAU (normally BRAUNSCHWEIG too, but we don't have them) = 2 votes
			###		1 VOTE EACH: BREMEN, FRANKFURT, HAMBURG, LÜBECK, OLDENBURG = 5 votes
			###		= total of 51 votes -- 2/3 majority needs to reach 34 votes in that case
			if = {
				limit = {
					OR = {
						tag = AUS
						tag = BAV
						tag = HAN
						tag = PRS
						tag = WUR
					}
				}
				SAX = { add_to_variable = { var = GC_federal_intervention value = 4 } }
			}
			else_if = {
				limit = {
					OR = {
						tag = BAD
						tag = HES
						tag = HSD
						tag = LUX
						tag = MCK
						tag = THU
					}
				}
				SAX = { add_to_variable = { var = GC_federal_intervention value = 3 } }
			}
			else_if = {
				limit = {
					tag = NAS
				}
				SAX = { add_to_variable = { var = GC_federal_intervention value = 2 } }
			}
			else = {
				SAX = { add_to_variable = { var = GC_federal_intervention value = 1 } }
			}
		}
	}
	
	#Vote against the motion.
	option = {
		name = secschwar.502.b
		ai_chance = { 
			base = 40
			modifier = {
				add = 30
				tag = PRS
			}
			modifier = {
				add = 20
				tag = AUS
			}
			modifier = {
				add = -20
				tag = THU
			}
			modifier = {
				add = 10
				has_government = traditional_conservatism
			}
			modifier = {
				add = 20
				has_government = autocracy
			}
			modifier = {
				factor = 0
				NOT = {
					OR = {
						tag = AUS
						tag = PRS
					}
				}
				has_government = centrism
			}
			modifier = {
				factor = 0
				OR = {
					tag = BAD
					tag = BAV
					tag = HAN
					tag = HES
					tag = HSD
					tag = WUR
				}
			}
		}
		add_political_power = -10
		add_stability = -0.03
		if = {
			limit = {
				OR = {
					tag = AUS
					tag = PRS
				}
			}
			custom_effect_tooltip = historical_option
		}
	}
}

#Saxony - Enough Support for the Motion?
country_event = {
	id = secschwar.503
	title = {
		trigger = { check_variable = { var = GC_federal_intervention value = 34 compare = greater_than_or_equals } }
		text = secschwar.503.t_enough_support
	}
	title = {
		trigger = { check_variable = { var = GC_federal_intervention value = 34 compare = less_than } }
		text = secschwar.503.t_not_enough_support
	}
	desc = {
		trigger = { check_variable = { var = GC_federal_intervention value = 34 compare = greater_than_or_equals } }
		text = secschwar.503.d_enough_support
	}
	desc = {
		trigger = { check_variable = { var = GC_federal_intervention value = 34 compare = less_than } }
		text = secschwar.503.d_not_enough_support
	}
	picture = GFX_report_event_german_confederation_building
	
	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_temp_variable = { var = no_votes_var value = 51 }
			subtract_from_temp_variable = { var = no_votes_var value = SAX.GC_federal_intervention }
		}
	}
	
	#Prepare for War!
	option = {
		name = secschwar.503.a
		ai_chance = { base = 100 }
		trigger = {
			check_variable = { var = GC_federal_intervention value = 34 compare = greater_than_or_equals }
		}
		add_power_balance_value = {
			id = SAX_Balance_of_Power_Trias
			value = 0.03
		}
		unlock_decision_tooltip = SAX_decision_issue_ultimatum_to_denmark
		hidden_effect = {
			set_country_flag = SAX_gc_federal_intervention_passed_flag
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = HLS }
				}
				country_event = { id = secschwar.504 }
			}
		}
	}

	#That is so very disappointing...
	option = {
		name = secschwar.503.b
		ai_chance = { base = 100 }
		trigger = {
			check_variable = { var = GC_federal_intervention value = 34 compare = less_than }
		}
		add_political_power = -50
		add_stability = -0.02
		add_war_support = -0.25
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = HLS }
				}
				country_event = { id = secschwar.505 }
			}
		}
	}
}

#GC - Motion for Federal Intervention Against Denmark Granted
country_event = {
	id = secschwar.504
	title = secschwar.504.t
	desc = secschwar.504.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_temp_variable = { var = no_votes_var value = 51 }
			subtract_from_temp_variable = { var = no_votes_var value = SAX.GC_federal_intervention }
		}
	}
	
	option = {
		name = secschwar.504.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				OR = {
					tag = BAD
					tag = BAV
					tag = HAN
					tag = HES
					tag = HSD
					tag = WUR
				}
			}
			add_political_power = 50
			add_war_support = 0.05
		}
	}
}

#GC - Motion for Federal Intervention Against Denmark Denied
country_event = {
	id = secschwar.505
	title = secschwar.505.t
	desc = secschwar.505.d
	picture = GFX_report_event_german_confederation_building
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_temp_variable = { var = no_votes_var value = 51 }
			subtract_from_temp_variable = { var = no_votes_var value = SAX.GC_federal_intervention }
		}
	}
	
	option = {
		name = secschwar.505.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				OR = {
					tag = BAD
					tag = BAV
					tag = HAN
					tag = HES
					tag = HSD
					tag = WUR
				}
			}
			add_political_power = -50
			add_war_support = -0.25
		}
	}
}

#Denmark - Denmark Responds to Saxony's Ultimatum
country_event = {
	id = secschwar.511
	title = secschwar.511.t
	desc = secschwar.511.d
	picture = GFX_report_event_saxony_coat_of_arms
	
	fire_only_once = yes
	is_triggered_only = yes
	
	timeout_days = 3
	
	#Go to war
	option = {
		name = secschwar.511.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = historical_option
		add_stability = 0.1
		add_war_support = 0.15
		add_political_power = 100
		hidden_effect = {
			SAX = { country_event = { id = secschwar.512 days = 2 } }
		}
	}
	
	#Back down
	option = {
		name = secschwar.511.b
		ai_chance = { base = 0 }
		add_stability = -0.2
		add_political_power = -200
		remove_ideas = DEN_idea_november_constitution
		custom_effect_tooltip = eoanb_event_DEN_trias_ultimatum_accepted_effect_tt
		hidden_effect = {
			SCH = {
				transfer_state = 58
				transfer_state = 949
				transfer_state = 1032
			}
			DEN = { end_puppet = SCH }
			SCH = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = SCH_autocracy_party_augustenburg }
				SCH_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = SCH_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = SCH_Frederick_of_Augustenburg 
				}
				give_military_access = HAN
				give_military_access = SAX
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
				country_event = { id = secschwar.551 }
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			SAX = { country_event = { id = secschwar.513 days = 1 } }
		}
	}
}

#Saxony - Denmark's Ultimatum Has Expired
country_event = {
	id = secschwar.512
	title = secschwar.512.t
	desc = secschwar.512.d
	picture = GFX_report_event_saxony_coat_of_arms
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.512.a
		ai_chance = { base = 100 }
		add_political_power = -10
		add_war_support = 0.02
		unlock_decision_tooltip = SAX_decision_invade_schleswig
		hidden_effect = {
			set_country_flag = SAX_denmark_ultimatum_expired_flag
		}
	}
}

#Saxony - Denmark Has Accepted the Ultimatum
country_event = {
	id = secschwar.513
	title = secschwar.513.t
	desc = secschwar.513.d
	picture = GFX_report_event_prs_danish_retreat
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.513.a
		ai_chance = { base = 100 }
		set_temp_variable = {
			eoanb_prestige_change = 4
		}
		eoanb_change_prestige_score = yes
		add_political_power = 10
		add_war_support = -0.35
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = {
						OR = {
							tag = AUS
							tag = PRS
						}
					}
				}
				country_event = { days = 1 id = secschwar.514 }
			}
			AUS = { country_event = { id = secschwar.515 days = 1 } }
			PRS = { country_event = { id = secschwar.515 days = 1 } }
			news_event = { id = secschwar.516 days = 3 }
		}
	}
}

#GC - Denmark Has Accepted the Ultimatum
country_event = {
	id = secschwar.514
	title = secschwar.514.t
	desc = secschwar.514.d
	picture = GFX_report_event_prs_danish_retreat
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.514.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				OR = {
					tag = BAD
					tag = BAV
					tag = HAN
					tag = HES
					tag = HSD
					tag = WUR
				}
			}
			set_temp_variable = {
				eoanb_prestige_change = 3
			}
			eoanb_change_prestige_score = yes
		}
		add_political_power = 10
		add_war_support = -0.35
	}
}

#Austria/Prussia - Denmark Has Accepted the Ultimatum
country_event = {
	id = secschwar.515
	title = secschwar.515.t
	desc = secschwar.515.d
	picture = GFX_report_event_prs_danish_retreat
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.515.a
		ai_chance = { base = 100 }
		add_war_support = -0.35
		set_temp_variable = {
			eoanb_prestige_change = -1
		}
		eoanb_change_prestige_score = yes
	}
}

#Denmark Accepts German Ultimatum
news_event = {
	id = secschwar.516
	title = secschwar.516.t
	desc = secschwar.516.d
	picture = GFX_news_event_military_planning
	
	major = yes

	show_major = {
		NOT = {
			OR = {
				tag = AUS
				tag = BAD
				tag = BAV
				tag = DEN
				tag = HES
				tag = HLS
				tag = HSD
				tag = PRS
				tag = SCH
				tag = WUR
			}
		}
	}

	is_triggered_only = yes

	fire_for_sender = no

	option = {
		name = secschwar.516.a
		ai_chance = { base = 100 }
	}
}


#Saxony - Declare War on Denmark
country_event = {
	id = secschwar.517
	title = secschwar.517.t
	desc = secschwar.517.d
	picture = GFX_report_event_saxony_coat_of_arms
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.517.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_event_trias_sax_against_denmark_effect_tt
		create_faction_from_template = faction_template_german_confederation_against_denmark
		#SAX = { set_faction_leader = yes }
		#create_faction = faction_trias_allies_ssw
		BAD = { country_event = { id = secschwar.518 } }
		BAV = { country_event = { id = secschwar.518 } }
		HAN = { country_event = { id = secschwar.518 } }
		HES = { country_event = { id = secschwar.518 } }
		HSD = { country_event = { id = secschwar.518 } }
		WUR = { country_event = { id = secschwar.518 } }
		if = {
			limit = {
				PRS = { has_country_flag = PRS_supports_bundesintervention_flag }
			}
			PRS = { country_event = { id = secschwar.518 } }
		}
		if = {
			limit = {
				NOT = {
					OR = {
						has_global_flag = eoanb_flag_second_schleswig_war
						has_global_flag = eoanb_flag_second_schleswig_war_gc
					}
				}
				OR = {
					DEN = { owns_state = 949 }
					HAN = { owns_state = 949 }
					PRS = { owns_state = 949 }
				}
			}
			transfer_state = 949
		}
		hidden_effect = {
			declare_war_on = { target = DEN type = wargoal_second_schleswig_war }
			add_named_threat = { 
				threat = 3
				name = eoanb_threat_ssw_war
			}
			if = {
				limit = {
					is_ai = yes
				}
				add_ideas = hidden_idea_historical_PRS_victory
				949 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = supply_node
						province = 6389
						level = 1
						instant_build = yes
					}
				}
			}
			set_global_flag = eoanb_flag_second_schleswig_war_trias
			DEN = {
				add_ideas = hidden_idea_never_surrender
				add_ideas = DEN_idea_spirit_of_1848
				country_event = { days = 7 id = denmark.451 }
			}
			activate_mission = SAX_mission_second_schleswig_war
			DEN = { activate_mission = SAX_mission_second_schleswig_war }
		}
	}
}

#German Middle States + potentially alt-history Prussia - Join the War against Denmark
country_event = {
	id = secschwar.518
	title = secschwar.518.t
	desc = secschwar.518.d
	picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	timeout_days = 3
	
	option = {
		name = secschwar.518.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_event_trias_war_against_denmark_effect_tt
		hidden_effect = {
			SAX = { add_to_faction = ROOT }
			ROOT = { add_to_war = { targeted_alliance = SAX enemy = DEN } }
			if = {
				limit = {
					tag = PRS
				}
				clr_country_flag = PRS_supports_bundesintervention_flag
			}
		}
	}
}

#Denmark - We have to Sue for Peace
country_event = {
	id = secschwar.521
	title = secschwar.521.t
	desc = secschwar.521.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			remove_mission = SAX_mission_second_schleswig_war
			SAX = { remove_mission = SAX_mission_second_schleswig_war }
			every_country = {
				limit = {
					has_war_with = DEN
					OR = {
						is_part_of_the_german_confederation = yes
						overlord = { is_part_of_the_german_confederation = yes }
					}
				}
				white_peace = DEN
			}
		}
	}

	option = {
		name = secschwar.521.a
		ai_chance = { base = 100 }
		complete_national_focus = DEN_focus_humiliating_defeat
		set_temp_variable = {
			eoanb_prestige_change = -10
		}
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = DEN_humiliating_defeat_flag
			mark_focus_tree_layout_dirty = yes
			SCH = {
				transfer_state = 58
				transfer_state = 949
				transfer_state = 1032
			}
			DEN = { end_puppet = SCH }
			SCH = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = SCH_autocracy_party_augustenburg }
				SCH_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = SCH_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = SCH_Frederick_of_Augustenburg 
				}
				give_military_access = HAN
				give_military_access = SAX
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
				country_event = { id = secschwar.551 }
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			SAX = {
				remove_ideas = hidden_idea_historical_PRS_victory
				country_event = { id = secschwar.522 }
			}
		}
	}
}

#Saxony - Denmark Sues for Peace
country_event = {
	id = secschwar.522
	title = secschwar.522.t
	desc = secschwar.522.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.522.a
		ai_chance = { base = 100 }
		dismantle_faction = yes
		complete_national_focus = SAX_focus_trias_succeeds
		hidden_effect = {
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war_trias
			BAD = { country_event = { id = secschwar.523 days = 1 } }
			BAV = { country_event = { id = secschwar.523 days = 1 } }
			HAN = { country_event = { id = secschwar.523 days = 1 } }
			HES = { country_event = { id = secschwar.523 days = 1 } }
			HSD = { country_event = { id = secschwar.523 days = 1 } }
			WUR = { country_event = { id = secschwar.523 days = 1 } }
			country_event = { id = secschwar.523 days = 1 }
			news_event = { id = secschwar.524 days = 3 }
		}
	}
}

#Trias - Peace of Flensburg
country_event = {
	id = secschwar.523
	title = secschwar.523.t
	desc = secschwar.523.d
	picture = GFX_report_event_duppeler_schanzen
	
	is_triggered_only = yes

	option = {
		name = secschwar.523.a
		ai_chance = { base = 100 }
		set_temp_variable = {
			eoanb_prestige_change = 5
		}
		eoanb_change_prestige_score = yes
		add_political_power = 50
		add_war_support = -0.5
		add_stability = 0.05
		increase_ps_by_one = yes
		hidden_effect = {
			#clr_country_flag
			#clear some flags and variables?
		}
	}
}

#End of the Second Schleswig War - Victory for the Germans
news_event = {
	id = secschwar.524
	title = secschwar.524.t
	desc = secschwar.524.d
	picture = GFX_news_event_military_planning
	
	major = yes

	show_major = {
		NOT = {
			OR = {
				tag = BAD
				tag = BAV
				tag = DEN
				tag = HES
				tag = HLS
				tag = HSD
				tag = SCH
				tag = WUR
			}
		}
	}

	is_triggered_only = yes

	fire_for_sender = no

	option = {
		name = secschwar.524.a
		ai_chance = { base = 100 }
	}
}

#Saxony - We have to Sue for Peace
country_event = {
	id = secschwar.531
	title = secschwar.531.t
	desc = secschwar.531.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			remove_mission = SAX_mission_second_schleswig_war
			DEN = { remove_mission = SAX_mission_second_schleswig_war }
			every_country = {
				limit = {
					has_war_with = DEN
					OR = {
						is_part_of_the_german_confederation = yes
						overlord = { is_part_of_the_german_confederation = yes }
					}
				}
				white_peace = DEN
			}
		}
	}

	option = {
		name = secschwar.531.a
		ai_chance = { base = 100 }
		dismantle_faction = yes
		set_temp_variable = {
			eoanb_prestige_change = -5
		}
		eoanb_change_prestige_score = yes
		add_political_power = -75
		add_war_support = -0.5
		add_stability = -0.1
		decrease_ps_by_one = yes
		complete_national_focus = SAX_focus_trias_fails
		hidden_effect = {
			remove_ideas = hidden_idea_historical_PRS_victory
			BAD = { country_event = { id = secschwar.532 } }
			BAV = { country_event = { id = secschwar.532 } }
			HAN = { country_event = { id = secschwar.532 } }
			HES = { country_event = { id = secschwar.532 } }
			HSD = { country_event = { id = secschwar.532 } }
			WUR = { country_event = { id = secschwar.532 } }
			DEN = { country_event = { id = secschwar.533 } }
		}
	}
}

#Trias - Forced to Sign Armistice
country_event = {
	id = secschwar.532
	title = secschwar.532.t
	desc = secschwar.532.d
	picture = GFX_report_event_duppeler_schanzen
	
	is_triggered_only = yes

	option = {
		name = secschwar.532.a
		ai_chance = { base = 100 }
		set_temp_variable = {
			eoanb_prestige_change = -5
		}
		eoanb_change_prestige_score = yes
		add_political_power = -50
		add_war_support = -0.5
		add_stability = -0.05
		decrease_ps_by_one = yes
	}
}

#Denmark - Victory over the Germans
country_event = {
	id = secschwar.533
	title = secschwar.533.t
	desc = secschwar.533.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.533.a
		ai_chance = { base = 100 }
		complete_national_focus = DEN_focus_glorious_victory
		HLS = { transfer_state = 949 }
		puppet = HLS
		set_autonomy = {
			target = HLS
			autonomous_state = autonomy_personal_union_3
			freedom_level = 0.4
		}
		set_temp_variable = {
			eoanb_prestige_change = 20
		}
		eoanb_change_prestige_score = yes
		add_political_power = 100
		add_war_support = -0.4
		add_stability = 0.1
		increase_ps_by_one = yes
		hidden_effect = {
			set_country_flag = DEN_glorious_victory_flag
			remove_ideas = hidden_idea_never_surrender
			#remove_ideas = HLS_idea_profits_from_altona_1
			if = {
				limit = {
					has_template = "Danish Militia"
				}
				delete_unit_template_and_units = {
					division_template = "Danish Militia"
				}
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			mark_focus_tree_layout_dirty = yes
			country_event = { id = secschwar.534 days = 14 }
		}
	}
}

#Denmark - Attempt to Extend November Constitution to Holstein?
country_event = {
	id = secschwar.534
	title = secschwar.534.t
	desc = secschwar.534.d
	picture = GFX_report_event_generic_parliament

	timeout_days = 7
	
	fire_only_once = yes
	is_triggered_only = yes

	#Try to take Holstein
	option = {
		name = secschwar.534.a
		ai_chance = { base = 100 }
		add_political_power = 10
		hidden_effect = {
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = HLS }
				}
				country_event = { id = secschwar.535 days = 2 } 
			}
		}
	}

	#Settle for Schleswig and let Holstein be free
	option = {
		name = secschwar.534.b
		ai_chance = { base = 0 }
		add_political_power = -10
		hidden_effect = {
			country_event = { id = secschwar.537 days = 7 }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = HLS }
				}
				country_event = { id = secschwar.537 days = 7 }
			}
		}
	}
}

#GC - Threaten War over Duchy of Holstein
country_event = {
	id = secschwar.535
	title = secschwar.535.t
	desc = secschwar.535.d
	picture = GFX_report_event_german_confederation_building
	
	timeout_days = 7

	is_triggered_only = yes
	
	#Prussia
	option = {
		name = secschwar.535.a
		ai_chance = { base = 100 }
		trigger = {
			OR = {
				tag = AUS
				tag = PRS
			}
		}
		add_war_support = 0.05
		hidden_effect = {
			DEN = { country_event = { id = secschwar.536 } }
		}
	}

	#The Rest
	option = {
		name = secschwar.535.b
		ai_chance = { base = 100 }
		trigger = {
			NOT = {
				OR = {
					tag = AUS
					tag = PRS
				}
			}
		}
		add_war_support = 0.05
	}
}

#Denmark - Austria and Prussia Threaten War over Duchy of Holstein
country_event = {
	id = secschwar.536
	title = secschwar.536.t
	desc = secschwar.536.d
	picture = GFX_report_event_german_confederation_building
	
	timeout_days = 7
	
	fire_only_once = yes
	is_triggered_only = yes
	
	#End the bloodshed
	option = {
		name = secschwar.536.a
		ai_chance = { base = 100 }
		add_political_power = -25
		add_stability = -0.025
		hidden_effect = {
			country_event = { id = secschwar.537 days = 7 }
			every_country = {
				limit = {
					is_part_of_the_german_confederation = yes
					NOT = { tag = HLS }
				}
				country_event = { id = secschwar.537 days = 7 }
			}
		}
	}
}

#London Peace Treaty of 1864
country_event = {
	id = secschwar.537
	title = secschwar.537.t
	desc = secschwar.537.d
	picture = GFX_report_event_generic_parliament
	
	is_triggered_only = yes
	
	#Denmark
	option = {
		name = secschwar.537.a
		ai_chance = { base = 100 }
		trigger = {
			tag = DEN
		}
		custom_effect_tooltip = eoanb_tt_event_secschwar_71
		hidden_effect = {
			HLS = {
				transfer_state = 949
				add_state_core = 949
			}
			DEN = {
				end_puppet = HLS
				remove_state_core = 949
			}
			HLS = {
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = HLS_autocracy_party_augustenburg }
				HLS_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = HLS_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = HLS_Frederick_of_Augustenburg 
				}
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
				country_event = { id = secschwar.551 }
			}
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war_trias
			news_event = { days = 3 id = secschwar.538 }
			mark_focus_tree_layout_dirty = yes
		}
	}

	#The Others
	option = {
		name = secschwar.537.b
		ai_chance = { base = 100 }
		trigger = {
			NOT = { tag = DEN }
		}
		custom_effect_tooltip = eoanb_tt_event_secschwar_71
		add_political_power = 10
		add_war_support = -0.05
	}
}

#End of the Second Schleswig War - Victory for the Danes
news_event = {
	id = secschwar.538
	title = secschwar.538.t
	desc = secschwar.538.d
	picture = GFX_news_event_military_planning
	
	major = yes

	is_triggered_only = yes

	show_major = {
		NOT = {
			OR = {
				tag = BAD
				tag = BAV
				tag = SAX
				tag = HES
				tag = HLS
				tag = HSD
				tag = SCH
				tag = WUR
			}
		}
	}

	fire_for_sender = no

	option = {
		name = secschwar.538.a
		ai_chance = { base = 100 }
	}
}

#Saxony - Stalemate in Schleswig-Holstein
country_event = {
	id = secschwar.541
	title = secschwar.541.t
	desc = secschwar.541.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			remove_mission = SAX_mission_second_schleswig_war
			DEN = { remove_mission = SAX_mission_second_schleswig_war }
			every_country = {
				limit = {
					has_war_with = DEN
					OR = {
						is_part_of_the_german_confederation = yes
						overlord = { is_part_of_the_german_confederation = yes }
					}
				}
				white_peace = DEN
			}
		}
	}

	option = {
		name = secschwar.541.a
		ai_chance = { base = 100 }
		dismantle_faction = yes
		hidden_effect = {
			remove_ideas = hidden_idea_historical_PRS_victory
			BAD = { country_event = { id = secschwar.542 } }
			BAV = { country_event = { id = secschwar.542 } }
			HAN = { country_event = { id = secschwar.542 } }
			HES = { country_event = { id = secschwar.542 } }
			HSD = { country_event = { id = secschwar.542 } }
			WUR = { country_event = { id = secschwar.542 } }
			DEN = { country_event = { id = secschwar.543 } }
		}
	}
}

#Trias - Stalemate in Schleswig-Holstein
country_event = {
	id = secschwar.542
	title = secschwar.542.t
	desc = secschwar.542.d
	picture = GFX_report_event_duppeler_schanzen
	
	is_triggered_only = yes

	option = {
		name = secschwar.542.a
		ai_chance = { base = 100 }
	}
}

#Denmark - Stalemate in Schleswig-Holstein
country_event = {
	id = secschwar.543
	title = secschwar.543.t
	desc = secschwar.543.d
	picture = GFX_report_event_duppeler_schanzen
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = secschwar.543.a
		ai_chance = { base = 100 }
		hidden_effect = {
			BAD = { country_event = { id = secschwar.544 days = 14 } }
			BAV = { country_event = { id = secschwar.544 days = 14 } }
			HAN = { country_event = { id = secschwar.544 days = 14 } }
			HES = { country_event = { id = secschwar.544 days = 14 } }
			HSD = { country_event = { id = secschwar.544 days = 14 } }
			WUR = { country_event = { id = secschwar.544 days = 14 } }
			SAX = { country_event = { id = secschwar.544 days = 14 } }
			country_event = { id = secschwar.544 days = 14 }
		}
	}
}

#Lyksborg Peace Treaty of 1864 
country_event = {
	id = secschwar.544
	title = {
		trigger = { tag = DEN }
		text = secschwar.544.t_den
	}
	title = {
		trigger = { NOT = { tag = DEN } }
		text = secschwar.544.t_ger
	}
	desc = {
		trigger = { tag = DEN }
		text = secschwar.544.d_den
	}
	desc = {
		trigger = { NOT = { tag = DEN } }
		text = secschwar.544.d_ger
	}
	picture = GFX_report_event_generic_parliament
	
	is_triggered_only = yes
	
	#Denmark
	option = {
		name = secschwar.544.a
		ai_chance = { base = 100 }
		trigger = {
			tag = DEN
		}
		custom_effect_tooltip = eoanb_tt_event_secschwar_92
		complete_national_focus = DEN_focus_a_region_divided
		set_temp_variable = {
			eoanb_prestige_change = 5
		}
		eoanb_change_prestige_score = yes
		add_political_power = 50
		add_war_support = -0.4
		add_stability = 0.05
		hidden_effect = {
			set_global_flag = eoanb_flag_second_schleswig_war_end
			clr_global_flag = eoanb_flag_second_schleswig_war_trias
			set_country_flag = DEN_a_region_divided_flag
			remove_ideas = hidden_idea_never_surrender
			#remove_ideas = HLS_idea_profits_from_altona_1
			if = {
				limit = {
					has_template = "Danish Militia"
				}
				delete_unit_template_and_units = {
					division_template = "Danish Militia"
				}
			}
			HLS = {
				transfer_state = 949
				transfer_state = 58
				add_state_core = 949
				add_state_core = 58
			}
			DEN = {
				end_puppet = HLS
				remove_state_core = 949
				remove_state_core = 58
			}
			HLS = {
				set_capital = {
					state = 949
					remember_old_capital = no
				}
				set_politics = { ruling_party = autocracy }
				set_party_name = { ideology = autocracy name = HLS_autocracy_party_augustenburg }
				HLS_friedrich_von_augustenburg = {
					add_country_leader_role = {
						promote_leader = yes
						country_leader = {
							expire = "1950.1.1"
							desc = "POLITICS_GENERIC_EOANB_DESC"
							ideology = constit_monarch
							traits = {
								#
							}
						}
					}
				}
				retire_character = HLS_christian_ix
				swap_ideas = {
					remove_idea = DEN_Christian_IX 
					add_idea = HLS_Frederick_of_Augustenburg
				}
				give_military_access = HAN
				give_military_access = SAX
				inherit_technology = DEN
				load_oob = "SCH_free_GC_member"
				country_event = { id = secschwar.551 }
			}
			if = {
				limit = {
					949 = { has_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
				}
				949 = { remove_dynamic_modifier = { modifier = dynmod_PRS_SSW_holstein_supply } }
			}
			mark_focus_tree_layout_dirty = yes
			news_event = { days = 7 id = secschwar.545 }
		}
	}

	#Saxony
	option = {
		name = secschwar.544.b
		ai_chance = { base = 100 }
		trigger = {
			tag = SAX
		}
		complete_national_focus = SAX_focus_trias_fails
		set_temp_variable = {
			eoanb_prestige_change = -3
		}
		eoanb_change_prestige_score = yes
		add_political_power = -50
		add_war_support = -0.35
		add_stability = -0.05
		decrease_ps_by_one = yes
	}

	#Others
	option = {
		name = secschwar.544.c
		ai_chance = { base = 100 }
		trigger = {
			NOT = {
				OR = {
					tag = DEN
					tag = SAX
				}
			}
		}
		set_temp_variable = {
			eoanb_prestige_change = -3
		}
		eoanb_change_prestige_score = yes
		add_political_power = -25
		add_war_support = -0.35
		add_stability = -0.03
		decrease_ps_by_one = yes
	}
}

#End of the Second Schleswig War - Stalemate
news_event = {
	id = secschwar.545
	title = secschwar.545.t
	desc = secschwar.545.d
	picture = GFX_news_event_military_planning
	
	major = yes

	is_triggered_only = yes

	show_major = {
		NOT = {
			OR = {
				tag = BAD
				tag = BAV
				tag = DEN
				tag = HES
				tag = HLS
				tag = HSD
				tag = SCH
				tag = WUR
			}
		}
	}

	fire_for_sender = no

	option = {
		name = secschwar.545.a
		ai_chance = { base = 100 }
	}
}

#SCH/HLS - New German Middle State
country_event = {
	id = secschwar.551
	title = secschwar.551.t
	desc = secschwar.551.d
	picture = GFX_report_event_augustenburg_reception
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = secschwar.551.a
		ai_chance = { base = 100 }
		add_political_power = 100
		eoanb_danish_unrecognised = yes
		if = {
			limit = {
				has_idea = DEN_idea_london_protocol
			}
			remove_ideas = DEN_idea_london_protocol
		}
		if = {
			limit = {
				has_idea = SCH_idea_ethnic_conflicts
			}
			remove_ideas = SCH_idea_ethnic_conflicts
		}
		if = {
			limit = {
				has_idea = GEC_idea_german_confederation_minor_power
			}
			swap_ideas = { remove_idea = GEC_idea_german_confederation_minor_power add_idea = GEC_idea_german_confederation_middle_power }
		}
		else = {
			add_ideas = GEC_idea_german_confederation_middle_power
		}
		if = {
			limit = {
				owns_state = 58
				NOT = { has_idea = SCH_idea_ethnic_conflicts_DEN }
			}
			add_ideas = SCH_idea_ethnic_conflicts_DEN
		}
		if = {
			limit = {
				has_idea = state_controlled_press
			}
			swap_ideas = { remove_idea = state_controlled_press add_idea = free_press }
		}
		else_if = {
			limit = {
				has_idea = censored_press
			}
			swap_ideas = { remove_idea = censored_press add_idea = free_press }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_constitution
		#		}
		#		swap_ideas = { remove_idea = no_constitution add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = human_rights
		#		}
		#		swap_ideas = { remove_idea = human_rights add_idea = constitution_adopted }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = limited_constitution
		#		}
		#		swap_ideas = { remove_idea = limited_constitution add_idea = constitution_adopted }
		#	}
		if = {
			limit = {
				has_idea = no_elections
			}
			swap_ideas = { remove_idea = no_elections add_idea = limited_elections }
		}
		#	if = {
		#		limit = {
		#			has_idea = no_heir
		#		}
		#		swap_ideas = { remove_idea = no_heir add_idea = has_heir }
		#	}
		if = {
			limit = {
				has_idea = agrarian
			}
			swap_ideas = { remove_idea = agrarian add_idea = industrializing }
		}
		##	if = {
		#		limit = {
		#			has_idea = absolute_monarchy
		#		}
		#		swap_ideas = { remove_idea = absolute_monarchy add_idea = parliamentary_monarchy }
		#	}
		#	else_if = {
		#		limit = {
		#			has_idea = constitutional_monarchy
		#		}
		#		swap_ideas = { remove_idea = constitutional_monarchy add_idea = parliamentary_monarchy }
		#	}
		if = {
			limit = {
				has_idea = absolutism
			}
			swap_ideas = { remove_idea = absolutism add_idea = universal_male_suffrage }
		}
		add_popularity = {
			ideology = centrism
			popularity = 0.45
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { days = 7 id = secschwar.552 }
			}
			if = {
				limit = {
					SAX = { 
						OR = {
							has_country_flag = SAX_decision_notify_the_middle_states_failure_flag
							has_country_flag = SAX_decision_notify_the_middle_states_small_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_large_majority_flag
							has_country_flag = SAX_decision_notify_the_middle_states_unanimity_flag
						}
					}
				}
				add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
				reverse_add_opinion_modifier = { target = SAX modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			}
			else_if = {
				limit = {
					SAX = { has_variable = SAX_bundesreform_positive_votes }
				}
				country_event = { id = saxony.303 }
			}
			if = {
				limit = {
					owns_state = 58
				}
				58 = { add_core_of = ROOT }
			}
			if = {
				limit = {
					owns_state = 949
				}
				949 = { add_core_of = ROOT }
			}
			if = {
				limit = {
					owns_state = 1032
				}
				1032 = { add_core_of = ROOT }
			}
		}
	}
}

#GC - SCH/HLS New Member of the German Confederation
country_event = {
	id = secschwar.552
	title = secschwar.552.t
	desc = secschwar.552.d
	picture = GFX_report_event_generic_peaceful_annexation
	
	is_triggered_only = yes
	
	option = {
		name = secschwar.552.a
		ai_chance = { base = 100 }
		add_political_power = -10
		FROM = { add_political_power = 10 }
		if = {
			limit = {
				FROM = { tag = SCH }
			}
			ROOT = {
				add_opinion_modifier = { target = FROM modifier = eoanb_SCHLESWIG_GC_MEMBER_REL }
				reverse_add_opinion_modifier = { target = FROM modifier = eoanb_SCHLESWIG_GC_MEMBER_REL }
			}
		}
		else = {
			ROOT = {
				add_opinion_modifier = { target = FROM modifier = eoanb_HOLSTEIN_GC_MEMBER_REL }
				reverse_add_opinion_modifier = { target = FROM modifier = eoanb_HOLSTEIN_GC_MEMBER_REL }
			}
		}
	}
}
