﻿add_namespace = gerconfed

#gerconfed.1-100		German Confederation Minors Events
#gerconfed.101-200		Diets and Conferences Events
#gerconfed.301-400 		South German Confederation Events
#gerconfed.451-500 		German Confederation Defence Events
#gerconfed.501-999		Flavour Events for German States

##### GERMAN CONFEDERATION MINORS EVENTS (gerconfed.1-100) #####

#Resource Prospecting Successful
country_event = {
	id = gerconfed.1
	title = gerconfed.1.t
	desc = gerconfed.1.d
	
	is_triggered_only = yes	

	option = {
		name = gerconfed.1.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				has_country_flag = GEC_resource_prospecting_iron_flag
			}
			random_owned_state = {
				limit = {
					has_resources_amount = {
						resource = iron
						amount > 0
					}
				}
				add_resource = {
					type = iron
					amount = 1
				}
			}
			hidden_effect = {
				clr_country_flag = GEC_resource_prospecting_iron_flag
			}
		}
		else_if = {
			limit = {
				has_country_flag = GEC_resource_prospecting_coal_flag
			}
			random_owned_state = {
				limit = {
					has_resources_amount = {
						resource = coal
						amount > 0
					}
				}
				add_resource = {
					type = coal
					amount = 1
				}
			}
			hidden_effect = {
				clr_country_flag = GEC_resource_prospecting_coal_flag
			}
		}
	}
}

#Resource Prospecting Unsuccessful
country_event = {
	id = gerconfed.2
	title = gerconfed.2.t
	desc = gerconfed.2.d
	
	is_triggered_only = yes	

	option = {
		name = gerconfed.2.a
		ai_chance = { base = 100 }
		add_stability = -0.005
	}
}

#Prussia/Austria – FROM Seeks Military Convention
country_event = {
	id = gerconfed.3
	title = gerconfed.3.t
	desc = gerconfed.3.d
	#picture = GFX_report_event_saxony_coat_of_arms

	is_triggered_only = yes
	
	option = {
		name = gerconfed.3.a
		ai_chance = { base = 100 }
		army_experience = 10
		FROM = { army_experience = 20 }
		give_military_access = FROM
		FROM = { give_military_access = ROOT }
		add_opinion_modifier = { target = FROM modifier = GEC_MILITARY_CONVENTION_EARLY_REL }
		reverse_add_opinion_modifier = { target = FROM modifier = GEC_MILITARY_CONVENTION_EARLY_REL }
		FROM = { country_event = { days = 7 id = gerconfed.4 } }
	}
	
	option = {
		name = gerconfed.3.b
		ai_chance = { base = 0 }
		add_opinion_modifier = { target = FROM modifier = GEC_MILITARY_CONVENTION_REJECTED_REL }
		reverse_add_opinion_modifier = { target = FROM modifier = GEC_MILITARY_CONVENTION_REJECTED_REL }
		FROM = { country_event = { days = 7 id = gerconfed.5 } }
	}
}

#GEC – Prussia/Austria Agrees to Military Convention
country_event = {
	id = gerconfed.4
	title = gerconfed.4.t
	desc = gerconfed.4.d
	#picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.4.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				FROM = { tag = PRS }
			}
			add_ideas = GEC_idea_PRS_military_convention_1
		}
		if = {
			limit = {
				FROM = { tag = AUS }
			}
			add_ideas = GEC_idea_AUS_military_convention_1
		}
		unlock_decision_tooltip = GEC_decision_intensify_convention
	}
}

#GEC – Prussia/Austria Rejects Military Convention
country_event = {
	id = gerconfed.5
	title = gerconfed.5.t
	desc = gerconfed.5.d
	#picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.5.a
		ai_chance = { base = 100 }
		add_political_power = -25
		add_stability = -0.03
	}
}

#Prussia/Austria - FROM Asks for a Weapons Deal [for rifles, uniforms or cannons]
country_event = {
	id = gerconfed.6
	title = {
		trigger = { 
			FROM = { has_country_flag = GEC_rifles_deal_flag }
		}
		text = gerconfed.6.t_rifles
	}
	title = {
		trigger = { 
			FROM = { has_country_flag = GEC_uniforms_deal_flag }
		}
		text = gerconfed.6.t_uniforms
	}
	title = {
		trigger = { 
			FROM = { has_country_flag = GEC_cannons_deal_flag }
		}
		text = gerconfed.6.t_cannons
	}
	desc = {
		trigger = { 
			FROM = { has_country_flag = GEC_rifles_deal_flag }
		}
		text = gerconfed.6.d_rifles
	}
	desc = {
		trigger = { 
			FROM = { has_country_flag = GEC_uniforms_deal_flag }
		}
		text = gerconfed.6.d_uniforms
	}
	desc = {
		trigger = { 
			FROM = { has_country_flag = GEC_cannons_deal_flag }
		}
		text = gerconfed.6.d_cannons
	}
	#picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	option = {	#Yes
		name = gerconfed.6.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = GEC_sell_weapons_profit_effect_tt
		hidden_effect = {
			FROM = { country_event = { days = 2 id = gerconfed.7 } }
		}
	}
	
	option = {	#No
		name = gerconfed.6.b
		ai_chance = { base = 0 }
		hidden_effect = {
			FROM = { country_event = { days = 2 id = gerconfed.8 } }
		}
	}
}

#GEC - Prussia/Austria Would Accept a Weapons Deal
country_event = {
	id = gerconfed.7
	title = gerconfed.7.t
	desc = gerconfed.7.d
	#picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.7.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				has_idea = GEC_idea_PRS_military_convention_2
				has_country_flag = GEC_rifles_deal_flag
			}
			unlock_decision_tooltip = GEC_decision_buy_rifles_from_prussia
			hidden_effect = {
				clr_country_flag = GEC_weapons_deal_inquiry_pending_flag
				clr_country_flag = GEC_rifles_deal_flag
				set_country_flag = GEC_rifles_deal_accepted_flag
			}
		}
		if = {
			limit = {
				has_idea = GEC_idea_PRS_military_convention_2
				has_country_flag = GEC_uniforms_deal_flag
			}
			unlock_decision_tooltip = GEC_decision_buy_uniforms_from_prussia
			hidden_effect = {
				clr_country_flag = GEC_weapons_deal_inquiry_pending_flag
				clr_country_flag = GEC_uniforms_deal_flag
				set_country_flag = GEC_uniforms_deal_accepted_flag
			}
		}
		if = {
			limit = {
				has_idea = GEC_idea_PRS_military_convention_2
				has_country_flag = GEC_cannons_deal_flag
			}
			unlock_decision_tooltip = GEC_decision_buy_cannons_from_prussia
			hidden_effect = {
				clr_country_flag = GEC_weapons_deal_inquiry_pending_flag
				clr_country_flag = GEC_cannons_deal_flag
				set_country_flag = GEC_cannons_deal_accepted_flag
			}
		}
		if = {
			limit = {
				has_idea = GEC_idea_AUS_military_convention_2
				has_country_flag = GEC_rifles_deal_flag
			}
			unlock_decision_tooltip = GEC_decision_buy_rifles_from_austria
			hidden_effect = {
				clr_country_flag = GEC_weapons_deal_inquiry_pending_flag
				clr_country_flag = GEC_rifles_deal_flag
				set_country_flag = GEC_rifles_deal_accepted_flag
			}
		}
		if = {
			limit = {
				has_idea = GEC_idea_AUS_military_convention_2
				has_country_flag = GEC_uniforms_deal_flag
			}
			unlock_decision_tooltip = GEC_decision_buy_uniforms_from_austria
			hidden_effect = {
				clr_country_flag = GEC_weapons_deal_inquiry_pending_flag
				clr_country_flag = GEC_uniforms_deal_flag
				set_country_flag = GEC_uniforms_deal_accepted_flag
			}
		}
		if = {
			limit = {
				has_idea = GEC_idea_AUS_military_convention_2
				has_country_flag = GEC_cannons_deal_flag
			}
			unlock_decision_tooltip = GEC_decision_buy_cannons_from_austria
			hidden_effect = {
				clr_country_flag = GEC_weapons_deal_inquiry_pending_flag
				clr_country_flag = GEC_cannons_deal_flag
				set_country_flag = GEC_cannons_deal_accepted_flag
			}
		}
	}
}

#GEC - Prussia/Austria Rejects Weapons Deal
country_event = {
	id = gerconfed.8
	title = gerconfed.8.t
	desc = gerconfed.8.d
	#picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.8.a
		ai_chance = { base = 100 }
		add_political_power = -20
		add_stability = -0.02
	}
}

#Prussia/Austria - FROM Confirms Weapons Deal
country_event = {
	id = gerconfed.9
	title = gerconfed.9.t
	desc = gerconfed.9.d
	#picture = GFX_report_event_saxony_coat_of_arms
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.9.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				NOT = { has_idea = GEC_idea_weapons_deal_profit }
			}
			add_timed_idea = { idea = GEC_idea_weapons_deal_profit days = 90 }
			set_temp_variable = {
				money_to_gain = 2
			}
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		else = {
			modify_timed_idea = { idea = GEC_idea_weapons_deal_profit days = 90 }
			set_temp_variable = {
				money_to_gain = 2
			}
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		if = {
			limit = {
				FROM = { has_country_flag = GEC_rifles_deal_accepted_flag }
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -500
				producer = ROOT
			}
		}
		if = {
			limit = {
				FROM = { has_country_flag = GEC_uniforms_deal_accepted_flag }
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment
				amount = -500
				producer = ROOT
			}
		}
		if = {
			limit = {
				FROM = { has_country_flag = GEC_cannons_deal_accepted_flag }
			}
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = -25
				producer = ROOT
			}
		}
	}
}

##### DIETS AND CONFERENCE EVENTS (gerconfed.101-200) #####

### FRANKFURT DIET EVENTS (gerconfed.101-150) ###

#Austria proposes Frankfurt Reforms
country_event = {
	id = gerconfed.101
	title = gerconfed.101.t
	desc = gerconfed.101.d
	picture = GFX_report_event_generic_sign_treaty2
	
	is_triggered_only = yes
	
	#Why not?
	option = {
		name = gerconfed.101.a
		ai_chance = {
			base = 35
			modifier = {
				factor = 1.2
				AND = {
					is_neighbor_of = AUS
					AUS = { num_divisions > 10 }
				}
			}
		}
		custom_effect_tooltip = eoanb_tt_event_gerconfed_101_yes
		hidden_effect = {
			add_to_temp_variable = { var = eoanb_var_votes_gerconfed_101_yes value = 1 tooltip = eoanb_tt_generic_variable }
		}
	}
	
	#Fuck off, thats an obvious power grab!
	option = {
		name = gerconfed.101.b
		ai_chance = {
			base = 65 
			modifier = {
				factor = 2
				OR = {
					TAG = PRS
					TAG = HAN
					TAG = MCK
					TAG = OLD
					TAG = BRE
					TAG = HAM
					TAG = LCK
				}
			}
		}
		custom_effect_tooltip = eoanb_tt_event_gerconfed_101_no
		hidden_effect = {
				subtract_from_temp_variable = { var = eoanb_var_votes_gerconfed_101_yes value = 1 tooltip = eoanb_tt_generic_variable }
		}
	}
}

#Counting the Votes for the Frankfurt Reforms
country_event = {
	id = gerconfed.102
	title = gerconfed.102.t
	desc = gerconfed.102.d
	
	is_triggered_only = yes
	
	hidden = yes
	
	#Reform passes
	option = {
		name = gerconfed.102.a
		trigger = {
			check_variable = { eoanb_var_votes_gerconfed_101_yes > 0 }
		}
		AUS = { country_event = { days = 1 id = gerconfed.103 } }
	}
	
	#Reform doesn't pass
	option = {
		name = gerconfed.102.b
		trigger = {
			check_variable = { eoanb_var_votes_gerconfed_101_yes < 0 }
		}
		AUS = { country_event = { days = 1 id = gerconfed.104 } }
	}
	
	#Tie
	option = {
		name = gerconfed.102.c
		trigger = {
			check_variable = { eoanb_var_votes_gerconfed_101_yes = 0 }
		}
		AUS = { country_event = { days = 1 id = gerconfed.105 } }
	}
}

#Frankfurt Reforms - Success
country_event = {
	id = gerconfed.103
	title = gerconfed.103.t
	desc = gerconfed.103.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.103.a
		ai_chance = { base = 100 }
		add_political_power = 50
		add_stability = 0.05
		hidden_effect = {
			clear_variable = eoanb_var_votes_gerconfed_101_no
			clear_variable = eoanb_var_votes_gerconfed_101_no
		}
	}
}

#Frankfurt Reforms - Failure
country_event = {
	id = gerconfed.104
	title = gerconfed.104.t
	desc = gerconfed.104.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.104.a
		ai_chance = { base = 100 }
		add_political_power = -50
		add_stability = -0.05
		hidden_effect = {
			clear_variable = eoanb_var_votes_gerconfed_101_no
			clear_variable = eoanb_var_votes_gerconfed_101_no
		}
	}
}

#Frankfurt Reforms - Tie
country_event = {
	id = gerconfed.105
	title = gerconfed.105.t
	desc = gerconfed.105.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.105.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = eoanb_tt_event_gerconfed_105_c
		hidden_effect = {
			clear_variable = eoanb_var_votes_gerconfed_101_no
			clear_variable = eoanb_var_votes_gerconfed_101_no
		}
	}
}

#Austria calls for a diet in Frankfurt
country_event = {
	id = gerconfed.106
	title = gerconfed.106.t
	desc = gerconfed.106.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.106.a
		ai_chance = { base = 50 }
		custom_effect_tooltip = eoanb_tt_event_gerconfed_106_a
		hidden_effect = {
			AUS = { add_political_power = 10 }
		}
	}
	
	option = {
		name = gerconfed.106.b
		ai_chance = { 
			base = 50 
			modifier = {
				factor = 4
				TAG = PRS
			}
		}
		custom_effect_tooltip = eoanb_tt_event_gerconfed_106_b
	}
}

### SOUTH GERMAN CONFEDERATION EVENTS (gerconfed.301-400) ###

#The German Confederation Question
country_event = {
	id = gerconfed.301
	title = gerconfed.301.t
	desc = gerconfed.301.d
	
	fire_only_once = yes
	is_triggered_only = yes	

	#GIVE THEM INDEPENDENCE
	option = {
		name = gerconfed.301.a
		ai_chance = { 
			factor = 40 
		}
		add_political_power = -25
		custom_effect_tooltip = GEC_customtrigger_help_german_independence
		hidden_effect = {
			GEC = {
				add_autonomy_ratio = {
					value = 0.1
					localization = GEC_customeffect_german_independence
				}
				add_timed_idea = {
					idea = GEC_less_autonomy_gain
					days = 365
				}
			}
		}
	}

	#DONT GIVE THEM INDEPENDENCE
	option = {
		name = gerconfed.301.b
		ai_chance = {
			factor = 40
		}
		add_political_power = 25
		custom_effect_tooltip = GEC_customtrigger_dont_help_german_independence
		hidden_effect = {
			GEC = {
				add_autonomy_ratio = {
					value = -0.1
					localization = GEC_customeffect_german_dependence
				}
			}
		}
	}
}

### GERMAN CONFEDERATION DEFENSE EVENTS (gerconfed.451-500) ###

#Defensive War in Germany
news_event = {
	id = gerconfed.451
	title = gerconfed.451.t
	desc = gerconfed.451.d
	picture = GFX_news_event_destroyers
	
	is_triggered_only = yes
	
	option = {
		trigger = { 
			GER_CONF_is_german_nation = yes
		}
		name = gerconfed.451.a
	}
	
	option = {
		trigger = { 
			GER_CONF_has_war_with_german_nation = no
			GER_CONF_is_german_nation = no
		}
		name = gerconfed.451.b
	}
	
	option = {
		trigger = { 
			GER_CONF_has_war_with_german_nation = yes
		}
		name = gerconfed.451.c
	}
}

country_event = {
	id = gerconfed.452
	title = gerconfed.452.t
	desc = gerconfed.452.d
	#picture = GFX_news_event_destroyers
	
	hidden = yes
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.452.a
		
		every_country = {
			limit = {
				is_part_of_the_german_confederation = yes
			}
			#set_country_flag = PS_war_immunity_temp
			if = {
				limit = {
					NOT = { has_variable = GER_CONF_defensive_defender }
				}
				set_variable = { GER_CONF_defensive_defender = 1 }
			}
			else = {
				add_to_variable = { GER_CONF_defensive_defender = 1 }
			}
			FROM = {
				set_country_flag = GER_CONF_defensive_is_at_war_with_conf
			}
			add_to_war = { 
				targeted_alliance = ROOT
				enemy = FROM
				hostility_reason = asked_to_join
			}
		}
	}
}

### GERMAN CONFEDERATION FLAVOUR EVENTS (gerconfed.501-999) ###

#50th Anniversary Ceremony of the Battle of the Nations at Leipzig (16.10.1863)
country_event = {
	id = gerconfed.501
	title = gerconfed.501.t
	desc = gerconfed.501.d
	picture = GFX_report_event_battle_of_the_nations
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.501.a
		ai_chance = { base = 100 }
		add_political_power = 10
		add_war_support = 0.02
		hidden_effect = {
			if = {
				limit = {
					tag = PRS
				}
				AUS = { country_event = { id = gerconfed.501 } }
				SAX = { country_event = { id = gerconfed.501 } }
				BAV = { country_event = { id = gerconfed.501 } }
				WUR = { country_event = { id = gerconfed.501 } }
				BAD = { country_event = { id = gerconfed.501 } }
				MCK = { country_event = { id = gerconfed.501 } }
				THU = { country_event = { id = gerconfed.501 } }
				HAN = { country_event = { id = gerconfed.501 } }
				HES = { country_event = { id = gerconfed.501 } }
				HSD = { country_event = { id = gerconfed.501 } }
				SWE = { country_event = { id = gerconfed.501 } }
				RUS = { country_event = { id = gerconfed.501 } }
			}
		}
	}
}

#Centenary of Friedrich Schiller's Birthday (10.11.1859)
country_event = {
	id = gerconfed.502
	title = gerconfed.502.t
	desc = gerconfed.502.d
	picture = GFX_report_event_friedrich_schiller
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.502.a
		ai_chance = { base = 100 }
		set_temp_variable = { eoanb_prestige_change = 1 }
		eoanb_change_prestige_score = yes
		hidden_effect = {
			if = {
				limit = {
					tag = PRS
				}
				AUS = { country_event = { id = gerconfed.502 } }
				BAD = { country_event = { id = gerconfed.502 } }
				BAV = { country_event = { id = gerconfed.502 } }
				BRE = { country_event = { id = gerconfed.502 } }
				FRK = { country_event = { id = gerconfed.502 } }
				HAM = { country_event = { id = gerconfed.502 } }
				HAN = { country_event = { id = gerconfed.502 } }
				HES = { country_event = { id = gerconfed.502 } }
				HLS = { country_event = { id = gerconfed.502 } }
				HSD = { country_event = { id = gerconfed.502 } }
				LCK = { country_event = { id = gerconfed.502 } }
				LUX = { country_event = { id = gerconfed.502 } }
				MCK = { country_event = { id = gerconfed.502 } }
				NAS = { country_event = { id = gerconfed.502 } }
				OLD = { country_event = { id = gerconfed.502 } }
				SCH = { country_event = { id = gerconfed.502 } }
				SAX = { country_event = { id = gerconfed.502 } }
				THU = { country_event = { id = gerconfed.502 } }
				WUR = { country_event = { id = gerconfed.502 } }
			}
		}
	}
}

#Richard Wagner Granted Partial Amnesty by King Johann of Saxony
country_event = {
	id = gerconfed.503
	title = gerconfed.503.t
	desc = gerconfed.503.d
	picture = GFX_report_event_wagner_lohengrin
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.503.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = SAX
			}
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.503 } }
				BAD = { country_event = { id = gerconfed.503 } }
				BAV = { country_event = { id = gerconfed.503 } }
				BRE = { country_event = { id = gerconfed.503 } }
				FRK = { country_event = { id = gerconfed.503 } }
				HAM = { country_event = { id = gerconfed.503 } }
				HAN = { country_event = { id = gerconfed.503 } }
				HES = { country_event = { id = gerconfed.503 } }
				HLS = { country_event = { id = gerconfed.503 } }
				HSD = { country_event = { id = gerconfed.503 } }
				LCK = { country_event = { id = gerconfed.503 } }
				LUX = { country_event = { id = gerconfed.503 } }
				MCK = { country_event = { id = gerconfed.503 } }
				NAS = { country_event = { id = gerconfed.503 } }
				OLD = { country_event = { id = gerconfed.503 } }
				PRS = { country_event = { id = gerconfed.503 } }
				SCH = { country_event = { id = gerconfed.503 } }
				THU = { country_event = { id = gerconfed.503 } }
				WUR = { country_event = { id = gerconfed.503 } }
			}
		}
	}
}

#Richard Wagner Granted Full Amnesty by King Johann of Saxony
country_event = {
	id = gerconfed.504
	title = gerconfed.504.t
	desc = gerconfed.504.d
	picture = GFX_report_event_wagner_full_amnesty_1862
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.504.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = SAX
			}
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.504 } }
				BAD = { country_event = { id = gerconfed.504 } }
				BAV = { country_event = { id = gerconfed.504 } }
				BRE = { country_event = { id = gerconfed.504 } }
				FRK = { country_event = { id = gerconfed.504 } }
				HAM = { country_event = { id = gerconfed.504 } }
				HAN = { country_event = { id = gerconfed.504 } }
				HES = { country_event = { id = gerconfed.504 } }
				HLS = { country_event = { id = gerconfed.504 } }
				HSD = { country_event = { id = gerconfed.504 } }
				LCK = { country_event = { id = gerconfed.504 } }
				LUX = { country_event = { id = gerconfed.504 } }
				MCK = { country_event = { id = gerconfed.504 } }
				NAS = { country_event = { id = gerconfed.504 } }
				OLD = { country_event = { id = gerconfed.504 } }
				PRS = { country_event = { id = gerconfed.504 } }
				SCH = { country_event = { id = gerconfed.504 } }
				THU = { country_event = { id = gerconfed.504 } }
				WUR = { country_event = { id = gerconfed.504 } }
			}
		}
	}
}

#King Ludwig II of Bavaria Becomes Wagner's Patron (04.05.1864)
country_event = {
	id = gerconfed.505
	title = gerconfed.505.t
	desc = gerconfed.505.d
	picture = GFX_report_event_wagner_ludwig_ii
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.505.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = BAV
			}
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.505 } }
				BAD = { country_event = { id = gerconfed.505 } }
				BRE = { country_event = { id = gerconfed.505 } }
				FRK = { country_event = { id = gerconfed.505 } }
				HAM = { country_event = { id = gerconfed.505 } }
				HAN = { country_event = { id = gerconfed.505 } }
				HES = { country_event = { id = gerconfed.505 } }
				HLS = { country_event = { id = gerconfed.505 } }
				HSD = { country_event = { id = gerconfed.505 } }
				LCK = { country_event = { id = gerconfed.505 } }
				LUX = { country_event = { id = gerconfed.505 } }
				MCK = { country_event = { id = gerconfed.505 } }
				NAS = { country_event = { id = gerconfed.505 } }
				OLD = { country_event = { id = gerconfed.505 } }
				PRS = { country_event = { id = gerconfed.505 } }
				SAX = { country_event = { id = gerconfed.505 } }
				SCH = { country_event = { id = gerconfed.505 } }
				THU = { country_event = { id = gerconfed.505 } }
				WUR = { country_event = { id = gerconfed.505 } }
			}
		}
	}
}

#World Premiere of 'Tristan und Isolde' in Munich (11.06.1865)
country_event = {
	id = gerconfed.506
	title = gerconfed.506.t
	desc = gerconfed.506.d
	picture = GFX_report_event_wagner_tristan_und_isolde
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.506.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = BAV
			}
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.506 } }
				BAD = { country_event = { id = gerconfed.506 } }
				HSD = { country_event = { id = gerconfed.506 } }
				LUX = { country_event = { id = gerconfed.506 } }
				PRS = { country_event = { id = gerconfed.506 } }
				WUR = { country_event = { id = gerconfed.506 } }
			}
		}
	}
}

#World Premiere of 'Das Rheingold' in Munich (23.09.1869)
country_event = {
	id = gerconfed.507
	title = gerconfed.507.t
	desc = gerconfed.507.d
	picture = GFX_report_event_wagner_rheingold
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.507.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = BAV
			}
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.507 } }
				BAD = { country_event = { id = gerconfed.507 } }
				HSD = { country_event = { id = gerconfed.507 } }
				LUX = { country_event = { id = gerconfed.507 } }
				PRS = { country_event = { id = gerconfed.507 } }
				WUR = { country_event = { id = gerconfed.507 } }
			}
		}
	}
}

#World Premiere of 'Die Walküre' in Munich (27.06.1870)
country_event = {
	id = gerconfed.508
	title = gerconfed.508.t
	desc = gerconfed.508.d
	picture = GFX_report_event_wagner_walkure
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.508.a
		ai_chance = { base = 100 }
		trigger = {
			PRS = { NOT = { has_cosmetic_tag = PRS_GER_bismarck } }
		}
		if = {
			limit = {
				tag = BAV
			}
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.508 } }
				BAD = { country_event = { id = gerconfed.508 } }
				HSD = { country_event = { id = gerconfed.508 } }
				LUX = { country_event = { id = gerconfed.508 } }
				WUR = { country_event = { id = gerconfed.508 } }
			}
		}
	}
	
	option = {
		name = gerconfed.508.b
		ai_chance = { base = 100 }
		trigger = {
			PRS = { has_cosmetic_tag = PRS_GER_bismarck }
		}
		if = {
			limit = {
				tag = PRS
			}
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.508 } }
				LUX = { country_event = { id = gerconfed.508 } }
			}
		}
	}
}

#Marriage between Cosima and Wagner (28.08.1870)
country_event = {
	id = gerconfed.509
	title = gerconfed.509.t
	desc = gerconfed.509.d
	picture = GFX_report_event_wagner_cosima
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.509.a
		ai_chance = { base = 100 }
		trigger = {
			PRS = { NOT = { has_cosmetic_tag = PRS_GER_bismarck } }
		}
		if = {
			limit = {
				tag = BAV
			}
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.509 } }
				BAD = { country_event = { id = gerconfed.509 } }
				HSD = { country_event = { id = gerconfed.509 } }
				LUX = { country_event = { id = gerconfed.509 } }
				WUR = { country_event = { id = gerconfed.509 } }
			}
		}
	}
	
	option = {
		name = gerconfed.509.b
		ai_chance = { base = 100 }
		trigger = {
			PRS = { has_cosmetic_tag = PRS_GER_bismarck }
		}
		if = {
			limit = {
				tag = PRS
			}
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.509 } }
				LUX = { country_event = { id = gerconfed.509 } }
			}
		}
	}
}

#Cornerstone Ceremony of the Festspielhaus in Bayreuth (22.05.1872)
country_event = {
	id = gerconfed.510
	title = gerconfed.510.t
	desc = gerconfed.510.d
	picture = GFX_report_event_wagner_festspielhaus_cornerstone
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.510.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.510 } }
				LUX = { country_event = { id = gerconfed.510 } }
			}
		}
	}
}

#World Premiere of the Bayreuther Festspiele (14.08.1876)
country_event = {
	id = gerconfed.511
	title = gerconfed.511.t
	desc = gerconfed.511.d
	picture = GFX_report_event_wagner_festspielhaus_finished
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.511.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.511 } }
				LUX = { country_event = { id = gerconfed.511 } }
			}
		}
	}
}

#Second Edition of the Bayreuther Festspiele (27.07.1882)
country_event = {
	id = gerconfed.512
	title = gerconfed.512.t
	desc = gerconfed.512.d
	picture = GFX_report_event_wagner_parsifal
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.512.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			set_temp_variable = { eoanb_prestige_change = 5 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.512 } }
				LUX = { country_event = { id = gerconfed.512 } }
			}
		}
	}
}

#Richard Wagner Dies in Venice (14.02.1883)
country_event = {
	id = gerconfed.513
	title = gerconfed.513.t
	desc = gerconfed.513.d
	picture = GFX_report_event_wagner_venice_funeral
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.513.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.513 } }
				LUX = { country_event = { id = gerconfed.513 } }
				PRS = { country_event = { days = 4 id = gerconfed.514 } }
			}
		}
	}
}

#Richard Wagner's Funeral in Bayreuth (18.02.1883)
country_event = {
	id = gerconfed.514
	title = gerconfed.514.t
	desc = gerconfed.514.d
	picture = GFX_report_event_wagner_funeral
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.514.a
		ai_chance = { base = 100 }
		if = {
			limit = {
				tag = PRS
			}
			hidden_effect = {
				AUS = { country_event = { id = gerconfed.514 } }
				LUX = { country_event = { id = gerconfed.514 } }
			}
		}
	}
}

#HAPAG Steamer Austria Sinks - Hundreds of Casualties (13.09.1858)
country_event = {
	id = gerconfed.515
	title = gerconfed.515.t
	desc = gerconfed.515.d
	picture = GFX_report_event_hapag_austria_tragedy
	
	is_triggered_only = yes

	option = {
		name = gerconfed.515.a
		if = {
			limit = {
				tag = HAM
			}
			add_political_power = -50
			add_stability = -0.03
		}
		hidden_effect = {
			if = {
				limit = {
					tag = PRS
				}
				AUS = { country_event = { id = gerconfed.515 } }
				BAD = { country_event = { id = gerconfed.515 } }
				BAV = { country_event = { id = gerconfed.515 } }
				BRE = { country_event = { id = gerconfed.515 } }
				FRK = { country_event = { id = gerconfed.515 } }
				HAM = { country_event = { id = gerconfed.515 } }
				HAN = { country_event = { id = gerconfed.515 } }
				HES = { country_event = { id = gerconfed.515 } }
				HLS = { country_event = { id = gerconfed.515 } }
				HSD = { country_event = { id = gerconfed.515 } }
				LCK = { country_event = { id = gerconfed.515 } }
				LUX = { country_event = { id = gerconfed.515 } }
				MCK = { country_event = { id = gerconfed.515 } }
				NAS = { country_event = { id = gerconfed.515 } }
				OLD = { country_event = { id = gerconfed.515 } }
				SCH = { country_event = { id = gerconfed.515 } }
				SAX = { country_event = { id = gerconfed.515 } }
				THU = { country_event = { id = gerconfed.515 } }
				WUR = { country_event = { id = gerconfed.515 } }
			}
		}
	}
}

#Foundation of the Deutsche Volkspartei (September 1868)
country_event = {
	id = gerconfed.516
	title = gerconfed.516.t
	desc = gerconfed.516.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.516.a
		ai_chance = { base = 100 }
		set_party_name = { ideology = ideology_social_liberalism long_name = GEC_ideology_social_liberalism_party_long name = GEC_ideology_social_liberalism_party }
		add_popularity = {
			ideology = ideology_social_liberalism
			popularity = 0.03
		}
		hidden_effect = {
			if = {
				limit = {
					tag = BAV
				}
				BAD = { country_event = { id = gerconfed.516 } }
				HSD = { country_event = { id = gerconfed.516 } }
				WUR = { country_event = { id = gerconfed.516 } }
			}
		}
	}
}

#Badische Anilin- und Sodafabrik (BASF) Founded by Friedrich Engelhorn (06.04.1865)
country_event = {
	id = gerconfed.517
	title = gerconfed.517.t
	desc = {
		trigger = { tag = BAD }
		text = gerconfed.517.d_bad
	}
	desc = {
		trigger = { tag = BAV }
		text = gerconfed.517.d_bav
	}
	desc = {
		trigger = { NOT = { OR = { tag = BAD tag = BAV } } }
		text = gerconfed.517.d_gec
	}
	picture = GFX_report_event_engelhorn_basf
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.517.a
		trigger = {
			tag = BAD
		}
		ai_chance = { base = 100 }
		add_political_power = 10
		add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
		hidden_effect = {
			AUS = { country_event = { id = gerconfed.517 days = 1 } }
			BAV = { country_event = { id = gerconfed.517 days = 1 } }
			BRE = { country_event = { id = gerconfed.517 days = 1 } }
			FRK = { country_event = { id = gerconfed.517 days = 1 } }
			HAM = { country_event = { id = gerconfed.517 days = 1 } }
			HAN = { country_event = { id = gerconfed.517 days = 1 } }
			HES = { country_event = { id = gerconfed.517 days = 1 } }
			HLS = { country_event = { id = gerconfed.517 days = 1 } }
			HSD = { country_event = { id = gerconfed.517 days = 1 } }
			LCK = { country_event = { id = gerconfed.517 days = 1 } }
			LUX = { country_event = { id = gerconfed.517 days = 1 } }
			MCK = { country_event = { id = gerconfed.517 days = 1 } }
			NAS = { country_event = { id = gerconfed.517 days = 1 } }
			OLD = { country_event = { id = gerconfed.517 days = 1 } }
			PRS = { country_event = { id = gerconfed.517 days = 1 } }
			SCH = { country_event = { id = gerconfed.517 days = 1 } }
			SAX = { country_event = { id = gerconfed.517 days = 1 } }
			THU = { country_event = { id = gerconfed.517 days = 1 } }
			WUR = { country_event = { id = gerconfed.517 days = 1 } }
		}
	}
	
	#Offer him subsidies for a move to Ludwigshafen
	option = {
		name = gerconfed.517.b
		trigger = {
			tag = BAV
		}
		ai_chance = { base = 90 }
		custom_effect_tooltip = BAV_attract_basf_to_ludwigshafen_effect_tt
		custom_effect_tooltip = historical_option
		hidden_effect = {
			BAD = { country_event = { id = gerconfed.518 days = 3 } }
		}
	}
	
	#Don't get involved
	option = {
		name = gerconfed.517.c
		trigger = {
			tag = BAV
		}
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	option = {
		name = gerconfed.517.e
		trigger = {
			NOT = {
				OR = {
					tag = BAD
					tag = BAV
				}
			}
		}
		ai_chance = { base = 100 }
	}
}

#BAD - Bavaria Lures Engelhorn with Industrial Subsidies
country_event = {
	id = gerconfed.518
	title = gerconfed.518.t
	desc = gerconfed.518.d
	picture = GFX_report_event_engelhorn_basf
	
	fire_only_once = yes
	is_triggered_only = yes
	
	#Match their offer to keep him here
	option = {
		name = gerconfed.518.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		custom_effect_tooltip = basf_and_engelhorn_available_effect_tt
		add_timed_idea = { idea = GEC_idea_basf_subsidies days = 1095 }
		set_temp_variable = { eoanb_prestige_change = 1 }
		eoanb_change_prestige_score = yes
		hidden_effect = {
			BAV = { country_event = { id = gerconfed.519 days = 3 } }
			set_country_flag = BAD_basf_established_in_baden_flag
		}
	}
	
	#Don't match their offer
	option = {
		name = gerconfed.518.b
		ai_chance = { base = 90 }
		custom_effect_tooltip = basf_moves_to_ludwigshafen_effect_tt
		custom_effect_tooltip = historical_option
		unlock_national_focus = BAD_focus_chemical_industry
		hidden_effect = {
			BAV = { country_event = { id = gerconfed.520 days = 3 } }
			retire_character = BAD_friedrich_engelhorn
		}
	}
}

#BAV - Baden Matches Offer for Industrial Subsidies
country_event = {
	id = gerconfed.519
	title = gerconfed.519.t
	desc = gerconfed.519.d
	picture = GFX_report_event_engelhorn_basf
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = gerconfed.519.a
		ai_chance = { base = 100 }
		add_political_power = -10
		hidden_effect = {
			retire_character = BAV_friedrich_engelhorn
		}
	}
}

#BAV - Engelhorn and the BASF Move to Ludwigshafen
country_event = {
	id = gerconfed.520
	title = gerconfed.520.t
	desc = {
		trigger = { tag = BAV }
		text = gerconfed.520.d_bav
	}
	desc = {
		trigger = { NOT = { tag = BAV } }
		text = gerconfed.520.d_gec
	}
	picture = GFX_report_event_engelhorn_basf
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.520.a
		trigger = {
			tag = BAV
		}
		ai_chance = { base = 100 }
		custom_effect_tooltip = basf_and_engelhorn_available_effect_tt
		add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
		add_timed_idea = { idea = GEC_idea_basf_subsidies days = 1095 }
		set_temp_variable = { eoanb_prestige_change = 2 }
		eoanb_change_prestige_score = yes
		hidden_effect = {
			set_country_flag = BAV_basf_established_in_palatinate_flag
			AUS = { country_event = { id = gerconfed.520 days = 1 } }
			BRE = { country_event = { id = gerconfed.520 days = 1 } }
			FRK = { country_event = { id = gerconfed.520 days = 1 } }
			HAM = { country_event = { id = gerconfed.520 days = 1 } }
			HAN = { country_event = { id = gerconfed.520 days = 1 } }
			HES = { country_event = { id = gerconfed.520 days = 1 } }
			HLS = { country_event = { id = gerconfed.520 days = 1 } }
			HSD = { country_event = { id = gerconfed.520 days = 1 } }
			LCK = { country_event = { id = gerconfed.520 days = 1 } }
			LUX = { country_event = { id = gerconfed.520 days = 1 } }
			MCK = { country_event = { id = gerconfed.520 days = 1 } }
			NAS = { country_event = { id = gerconfed.520 days = 1 } }
			OLD = { country_event = { id = gerconfed.520 days = 1 } }
			PRS = { country_event = { id = gerconfed.520 days = 1 } }
			SCH = { country_event = { id = gerconfed.520 days = 1 } }
			SAX = { country_event = { id = gerconfed.520 days = 1 } }
			THU = { country_event = { id = gerconfed.520 days = 1 } }
			WUR = { country_event = { id = gerconfed.520 days = 1 } }
		}
	}
	
	option = {
		name = gerconfed.520.b
		trigger = {
			NOT = { tag = BAV }
		}
		ai_chance = { base = 100 }
	}
}

#Foundation of the Deutscher Nationalverein
country_event = {
	id = gerconfed.521
	title = gerconfed.521.t
	desc = gerconfed.521.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.521.a
		ai_chance = { base = 100 }
		add_political_power = -10
		add_stability = -0.03
		add_opinion_modifier = {
			target = PRS
			modifier = PRS_SECOND_EISENACH_DECLARATION_REL
		}
	}
}

#GEC - Prussian Invitation to a Convention at Baden-Baden / Bad Kissingen
country_event = {
	id = gerconfed.522
	title = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
		}
		text = gerconfed.522.t_baden
	}
	title = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
		}
		text = gerconfed.522.t_bavaria
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
		}
		text = gerconfed.522.d_baden
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
		}
		text = gerconfed.522.d_bavaria
	}
	picture = GFX_report_event_prussian_parliament_king
	
	is_triggered_only = yes
	
	#We will attend.
	option = {
		name = gerconfed.522.a
		ai_chance = { base = 100 }
		custom_effect_tooltip = GEC_attend_monarchs_convention_effect_tt
		add_opinion_modifier = { target = PRS modifier = PRS_AGREED_TO_ATTEND_MONARCHS_CONVENTION_REL }
		reverse_add_opinion_modifier = { target = PRS modifier = PRS_AGREED_TO_ATTEND_MONARCHS_CONVENTION_REL }
		hidden_effect = {
			
			set_country_flag = GEC_attend_monarchs_convention_flag
		}
	}

	#We won't attend.
	option = {
		name = gerconfed.522.b 
		ai_chance = { base = 0 }
		custom_effect_tooltip = GEC_do_not_attend_monarchs_convention_effect_tt
		add_opinion_modifier = { target = PRS modifier = PRS_REFUSED_TO_ATTEND_MONARCHS_CONVENTION_REL }
		reverse_add_opinion_modifier = { target = PRS modifier = PRS_REFUSED_TO_ATTEND_MONARCHS_CONVENTION_REL }
		hidden_effect = {
			set_country_flag = GEC_do_not_attend_monarchs_convention_flag
		}
	}
}

#GEC - German Monarchs' Convention at Baden-Baden / Bad Kissingen
country_event = {
	id = gerconfed.523
	title = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
		}
		text = gerconfed.523.t_baden
	}
	title = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
		}
		text = gerconfed.523.t_bavaria
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
			NOT = { FRA = { has_country_flag = FRA_attend_monarchs_convention_flag } }
		}
		text = gerconfed.523.d_baden
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
			NOT = { FRA = { has_country_flag = FRA_attend_monarchs_convention_flag } }
		}
		text = gerconfed.523.d_bavaria
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
			FRA = { has_country_flag = FRA_attend_monarchs_convention_flag }
		}
		text = gerconfed.523.d_baden_france
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
			FRA = { has_country_flag = FRA_attend_monarchs_convention_flag }
		}
		text = gerconfed.523.d_bavaria_france
	}
	picture = GFX_report_event_monarchs_convention_baden_baden
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.523.a
		ai_chance = { base = 100 }
		add_political_power = 5
		if = {
			limit = {
				FRA = { has_country_flag = FRA_attend_monarchs_convention_flag }
			}
			add_opinion_modifier = { target = FRA modifier = fra_german_monarchs_convention }
			reverse_add_opinion_modifier = { target = FRA modifier = fra_german_monarchs_convention }
		}
	}
}

#BAD/BAV = Host - German Monarchs' Convention at Baden-Baden / Bad Kissingen
country_event = {
	id = gerconfed.524
	title = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
		}
		text = gerconfed.524.t_baden
	}
	title = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
		}
		text = gerconfed.524.t_bavaria
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
			NOT = { FRA = { has_country_flag = FRA_attend_monarchs_convention_flag } }
		}
		text = gerconfed.524.d_baden
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
			NOT = { FRA = { has_country_flag = FRA_attend_monarchs_convention_flag } }
		}
		text = gerconfed.524.d_bavaria
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_baden_flag }
			FRA = { has_country_flag = FRA_attend_monarchs_convention_flag }
		}
		text = gerconfed.524.d_baden_france
	}
	desc = {
		trigger = { 
			PRS = { has_country_flag = PRS_invite_crowned_heads_to_a_meeting_bavaria_flag }
			FRA = { has_country_flag = FRA_attend_monarchs_convention_flag }
		}
		text = gerconfed.524.d_bavaria_france
	}
	picture = GFX_report_event_monarchs_convention_baden_baden
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = gerconfed.524.a
		ai_chance = { base = 100 }
		add_political_power = 25
		if = {
			limit = {
				FRA = { has_country_flag = FRA_attend_monarchs_convention_flag }
			}
			add_opinion_modifier = { target = FRA modifier = fra_german_monarchs_convention }
			reverse_add_opinion_modifier = { target = FRA modifier = fra_german_monarchs_convention }
		}
		set_temp_variable = { money_to_gain = -0.2 }
		add_money_with_inflation_included_with_tooltip_effect = yes
	}
}

#Vatican Rejects Settlement over Disputes in Baden
country_event = {
	id = gerconfed.551
	title = gerconfed.551.t
	desc = gerconfed.551.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.551.a
		trigger = {
			NOT = {
				is_in_array = {
					array = national_religion_array
					value = global.catholicism
				}
			}
		}
		ai_chance = { base = 100 }
	}

	option = {
		name = gerconfed.551.b
		trigger = {
			is_in_array = {
				array = national_religion_array
				value = global.catholicism
			}
		}
		ai_chance = { base = 100 }
		add_political_power = -10
	}
}

#Baden Signs Concordat with the Vatican
country_event = {
	id = gerconfed.552
	title = gerconfed.552.t
	desc = gerconfed.552.d
	picture = GFX_report_event_generic_sign_treaty1
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.552.a
		trigger = {
			NOT = {
				is_in_array = {
					array = national_religion_array
					value = global.catholicism
				}
			}
		}
		ai_chance = { base = 100 }
	}

	option = {
		name = gerconfed.552.b
		trigger = {
			is_in_array = {
				array = national_religion_array
				value = global.catholicism
			}
		}
		ai_chance = { base = 100 }
		add_political_power = 10
	}
}

#Grand Duke Friedrich I Declares Dawn of a New Era in Baden
country_event = {
	id = gerconfed.553
	title = gerconfed.553.t
	desc = gerconfed.553.d
	picture = GFX_report_event_generic_parliament
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.553.a
		trigger = {
			OR = {
				has_government = centrism
				has_government = ideology_social_liberalism
			}
		}
		ai_chance = { base = 100 }
		add_political_power = 10
	}

	option = {
		name = gerconfed.553.b
		trigger = {
			NOT = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
		}
		ai_chance = { base = 100 }
	}
}

#Call for a Gathering of all German Gymnastics Clubs (24.01.1860)
country_event = {
	id = gerconfed.601
	title = gerconfed.601.t
	desc = gerconfed.601.d
	picture = GFX_report_event_german_gymnasts
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.601.a
		trigger = {
			tag = PRS
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.601 }
			}
		}
	}

	option = {
		name = gerconfed.601.b
		trigger = {
			NOT = { tag = PRS }
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
	}
}

#First Gathering of all German Gymnastics Clubs at Coburg (18.06.1860)
country_event = {
	id = gerconfed.602
	title = gerconfed.602.t
	desc = gerconfed.602.d
	picture = GFX_report_event_german_gymnasts_first_gathering
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.602.a
		trigger = {
			tag = PRS
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.602 }
			}
			country_event = { id = gerconfed.603 days = 90 }
		}
	}

	option = {
		name = gerconfed.602.b
		trigger = {
			NOT = {
				OR = {
					tag = PRS
					tag = THU
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
	}

	option = {
		name = gerconfed.602.c
		trigger = {
			tag = THU
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 25
		}
		else = {
			add_political_power = 10
			add_stability = -0.01
		}
		set_temp_variable = { eoanb_prestige_change = 1 }
		eoanb_change_prestige_score = yes
	}
}

#Nuremburg Suggested as Hosting Site for Second Gymnastics Festival
country_event = {
	id = gerconfed.603
	title = gerconfed.603.t
	desc = {
		trigger = { 
			NOT = { tag = BAV }
		}
		text = gerconfed.603.d_not_bavaria
	}
	desc = {
		trigger = { 
			tag = BAV
		}
		text = gerconfed.603.d_bavaria
	}
	picture = GFX_report_event_nuremburg
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.603.a
		trigger = {
			tag = PRS
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.603 }
			}
		}
	}

	option = {
		name = gerconfed.603.b
		trigger = {
			NOT = {
				OR = {
					tag = BAV
					tag = PRS
				}
			}
		}
	}

	#BAV - Yes
	option = {
		name = gerconfed.603.c
		trigger = {
			tag = BAV
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 65
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 25
			add_stability = -0.005
		}
		else = {
			add_political_power = 10
			add_stability = -0.01
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.604 }
			}
			country_event = { id = gerconfed.606 days = 320 }
		}
	}

	#BAV - No
	option = {
		name = gerconfed.603.e
		trigger = {
			tag = BAV
		}
		ai_chance = {
			base = 90
			modifier = {
				add = -65
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = -25
		}
		else = {
			add_political_power = 5
		}
		custom_effect_tooltip = historical_option
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.605 }
			}
			PRS = { country_event = { id = gerconfed.607 days = 60 } }
		}
	}
}

#Bavaria Agrees to Host Gymnasts' Gathering at Nuremburg
country_event = {
	id = gerconfed.604
	title = gerconfed.604.t
	desc = gerconfed.604.d
	picture = GFX_report_event_german_gymnasts
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.604.a
		trigger = {
			OR = {
				has_government = centrism
				has_government = ideology_social_liberalism
			}
		}
	}

	option = {
		name = gerconfed.604.b
		trigger = {
			NOT = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
		}
	}
}

#Bavaria Forbids Hosting of Gymnasts' Gathering at Nuremburg
country_event = {
	id = gerconfed.605
	title = gerconfed.605.t
	desc = gerconfed.605.d
	picture = GFX_report_event_german_gymnasts
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.605.a
		trigger = {
			OR = {
				has_government = centrism
				has_government = ideology_social_liberalism
			}
		}
	}

	option = {
		name = gerconfed.605.b
		trigger = {
			NOT = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
		}
	}
}

#Second Gathering of all German Gymnastics Clubs at Nuremburg (alt-history, 1861)
country_event = {
	id = gerconfed.606
	title = gerconfed.606.t
	desc = gerconfed.606.d
	picture = GFX_report_event_german_gymnasts_second_gathering
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.606.a
		trigger = {
			tag = BAV
			OR = {
				has_government = centrism
				has_government = ideology_social_liberalism
			}
		}
		add_political_power = 25
		add_stability = -0.005
		set_temp_variable = { eoanb_prestige_change = 1 }
		eoanb_change_prestige_score = yes
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.606 }
			}
			PRS = { country_event = { id = gerconfed.610 days = 500 } }
		}
	}

	option = {
		name = gerconfed.606.b
		trigger = {
			tag = BAV
			NOT = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
		}
		add_political_power = -10
		add_stability = -0.015
		set_temp_variable = { eoanb_prestige_change = 1 }
		eoanb_change_prestige_score = yes
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.606 }
			}
			PRS = { country_event = { id = gerconfed.610 days = 500 } }
		}
	}

	option = {
		name = gerconfed.606.c
		trigger = {
			NOT = { tag = BAV }
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
	}
}

#Berlin Suggested as Alternative Hosting Site for Second Gymnastics Festival
country_event = {
	id = gerconfed.607
	title = gerconfed.607.t
	desc = {
		trigger = { 
			NOT = { tag = PRS }
		}
		text = gerconfed.607.d_not_prussia
	}
	desc = {
		trigger = { 
			tag = PRS
		}
		text = gerconfed.607.d_prussia
	}
	picture = GFX_report_event_prussia_berliner_schloss
	
	is_triggered_only = yes
	
	#PRS - Yes
	option = {
		name = gerconfed.607.a
		trigger = {
			tag = PRS
		}
		ai_chance = {
			base = 90
			modifier = {
				add = -15
				OR = {
					has_government = traditional_conservatism
					has_government = autocracy
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 25
			add_stability = -0.005
		}
		else = {
			add_political_power = -5
			add_stability = -0.015
		}
		custom_effect_tooltip = historical_option
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.607 }
			}
			country_event = { id = gerconfed.609 days = 250 }
		}
	}

	#PRS - No
	option = {
		name = gerconfed.607.b
		trigger = {
			tag = PRS
		}
		ai_chance = {
			base = 10
			modifier = {
				add = 15
				OR = {
					has_government = traditional_conservatism
					has_government = autocracy
				}
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = -25
		}
		else = {
			add_political_power = 5
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.607 }
			}
			country_event = { id = gerconfed.608 days = 250 }
		}
	}

	option = {
		name = gerconfed.607.c
		trigger = {
			NOT = { tag = PRS }
		}
	}
}

#Second Gathering of all German Gymnastics Clubs at Coburg (alt-history, 1861)
country_event = {
	id = gerconfed.608
	title = gerconfed.608.t
	desc = gerconfed.608.d
	picture = GFX_report_event_german_gymnasts_second_gathering
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.608.a
		trigger = {
			tag = PRS
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.608 }
			}
			country_event = { id = gerconfed.610 days = 500 }
		}
	}

	option = {
		name = gerconfed.608.b
		trigger = {
			NOT = {
				OR = {
					tag = PRS
					tag = THU
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else = {
			add_stability = -0.005
		}
	}

	option = {
		name = gerconfed.608.c
		trigger = {
			tag = THU
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 25
		}
		else = {
			add_political_power = 10
			add_stability = -0.01
		}
		set_temp_variable = { eoanb_prestige_change = 1 }
		eoanb_change_prestige_score = yes
	}
}

#Second Gathering of all German Gymnastics Clubs at Berlin (12.08.1861)
country_event = {
	id = gerconfed.609
	title = gerconfed.609.t
	desc = gerconfed.609.d
	picture = GFX_report_event_german_gymnasts_second_gathering
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.609.a
		trigger = {
			tag = PRS
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 25
			add_stability = -0.005
		}
		else = {
			add_stability = -0.01
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.609 }
			}
			country_event = { id = gerconfed.610 days = 500 }
		}
	}

	option = {
		name = gerconfed.609.b
		trigger = {
			NOT = { tag = PRS }
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_government = centrism
						has_government = ideology_social_liberalism
					}
				}
			}
			add_stability = -0.005
		}
	}
}

#Third Gathering of all German Gymnastics Clubs at Leipzig / 3. Allgemeines Deutsches Turnerfest 1863 at Schützenhaus Leipzig (05.08.1863)
country_event = {
	id = gerconfed.610
	title = gerconfed.610.t
	desc = gerconfed.610.d
	picture = GFX_report_event_german_gymnasts_third_gathering
	
	is_triggered_only = yes
	
	option = {
		name = gerconfed.610.a
		trigger = {
			tag = PRS
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_government = centrism
						has_government = ideology_social_liberalism
					}
				}
			}
			add_stability = -0.005
		}
		hidden_effect = {
			every_other_country = {
				limit = {
					is_part_of_the_german_confederation = yes
				}
				country_event = { id = gerconfed.610 }
			}
		}
	}

	option = {
		name = gerconfed.610.b
		trigger = {
			NOT = {
				OR = {
					tag = PRS
					tag = SAX
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 10
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_government = centrism
						has_government = ideology_social_liberalism
					}
				}
			}
			add_stability = -0.005
		}
	}

	option = {
		name = gerconfed.610.c
		trigger = {
			tag = SAX
		}
		if = {
			limit = {
				OR = {
					has_government = centrism
					has_government = ideology_social_liberalism
				}
			}
			add_political_power = 25
			add_stability = 0.005
		}
		else_if = {
			limit = {
				NOT = {
					OR = {
						has_government = centrism
						has_government = ideology_social_liberalism
					}
				}
			}
			add_political_power = 10
			add_stability = -0.005
		}
	}
}
