SAX_decision_category_foreign_policy = {
	
	#Prusso-Saxon Rapprochement
	SAX_decision_prusso_saxon_rapprochement = {

		icon = hol_exchange_intelligence_data
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_mend_divide_prs
		}

		visible = {
			PRS = { 
				exists = yes
				is_puppet = no 
			}
			SAX = { 
				exists = yes
				is_puppet = no 
			}
			has_country_flag = SAX_PRS_relation_good_flag
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 180
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			add_stability = -0.03
		}
		
		remove_effect = {
			PRS = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_PRS_EARLY_RAPPROCHEMENT_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = PRS
					modifier = SAX_PRS_EARLY_RAPPROCHEMENT_REL
				}
			}
			add_opinion_modifier = { target = PRS modifier = SAX_PRS_MEDIUM_RAPPROCHEMENT_REL }
			reverse_add_opinion_modifier = { target = PRS modifier = SAX_PRS_MEDIUM_RAPPROCHEMENT_REL }
			hidden_effect = {
				clr_country_flag = SAX_PRS_relation_good_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convince the People
	SAX_decision_convince_the_people = {

		icon = generic_civil_support
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
		}

		visible = {
			PRS = { 
				exists = yes
				is_puppet = no 
			}
			SAX = { 
				exists = yes
				is_puppet = no 
			}
			has_opinion_modifier = SAX_PRS_FULL_RAPPROCHEMENT_REL
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 365
		 
		modifier = {
			political_power_gain = -0.02
		}
		
		complete_effect = {
			add_stability = -0.04
		}
		
		remove_effect = {
			PRS = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_PRS_ANTI_PRUSSIAN_SENTIMENT_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = PRS
					modifier = SAX_PRS_ANTI_PRUSSIAN_SENTIMENT_REL
				}
			}
			remove_ideas = SAX_idea_anti_prussian_sentiments
		}
		
		ai_will_do = {
			base = 1000
		}
	}
}

eoanb_decision_category_schleswig_holstein_question = {

	#File for Federal Intervention Against Denmark
	SAX_decision_file_for_federal_intervention = {

		icon = politics
		
		allowed = { tag = SAX }

		available = {
			has_stability > 0.4
			has_war_support > 0.4
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.5
			}
		}

		visible = {
			has_country_flag = SAX_event_federal_execution_granted_flag
			has_country_flag = SAX_unanimous_support_for_augustenburger_flag
			NOT = {
				OR = {
					has_global_flag = eoanb_flag_second_schleswig_war
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
			}
		}

		fire_only_once = yes
		
		cost = 50
		
		complete_effect = {
			country_event = { days = 1 id = secschwar.501 }
		}
		
		ai_will_do = {
			base = 1000
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	#Issue an Ultimatum to Denmark
	SAX_decision_issue_ultimatum_to_denmark = {

		icon = politics
		
		allowed = { tag = SAX }

		available = {
			has_war_support > 0.5
		}

		visible = {
			has_country_flag = SAX_gc_federal_intervention_passed_flag
			NOT = {
				OR = {
					has_global_flag = eoanb_flag_second_schleswig_war
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		complete_effect = {
			DEN = {
				country_event = { id = secschwar.511 }
			}
			hidden_effect = {
				clear_variable = GC_federal_intervention
			}
		}
		
		ai_will_do = {
			base = 1000
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	#Invade Schleswig
	SAX_decision_invade_schleswig = {

		icon = generic_prepare_civil_war

		allowed = { tag = SAX }

		available = {
			has_war_support > 0.5
		}

		visible = {
			has_country_flag = SAX_denmark_ultimatum_expired_flag
			NOT = {
				OR = {
					has_global_flag = eoanb_flag_second_schleswig_war
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
			}
		}

		cancel_trigger = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
		}

		fire_only_once = yes

		cost = 0

		days_remove = 10

		war_with_on_remove = DEN

		complete_effect = {
			add_war_support = 0.05
			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
			}
		}

		remove_effect = {
			country_event = { id = secschwar.517 }
			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 = {
				clr_country_flag = SAX_denmark_ultimatum_expired_flag
			}
		}

		ai_will_do = {
			base = 10000
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	#The Second Schleswig War
	SAX_mission_second_schleswig_war = {
		
		icon = generic_ignite_civil_war
		
		allowed = { always = no }
		
		available = {
			if = {
				limit = {
					tag = SAX
				}
				OR = {
					AND = {
						949 = {
							NOT = { is_controlled_by = DEN }
						}
						58 = {
							NOT = { is_controlled_by = DEN }
						}
						1032 = {
							NOT = { is_controlled_by = DEN }
						}
						99 = {
							NOT = { is_controlled_by = DEN }
						}
						37 = {
							NOT = { is_fully_controlled_by = DEN }
						}
					}
					DEN = { casualties > 6000 }
				}
			}
			if = {
				limit = {
					tag = DEN
				}
				date > 1864.4.1
				949 = {
					is_fully_controlled_by = DEN
				}
				58 = {
					is_fully_controlled_by = DEN
				}
				1032 = {
					is_fully_controlled_by = DEN
				}
				99 = {
					is_fully_controlled_by = DEN
				}
				37 = {
					is_fully_controlled_by = DEN
				}
				NOT = {
					DEN = { casualties > 6000 }
				}
			}
		}

		activation = { always = no }

		priority = 100

		selectable_mission = no

		is_good = no

		days_mission_timeout = 240

		timeout_effect = {
			if = {
				limit = {
					tag = SAX
				}
				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
				}
				country_event = {
					id = secschwar.541
				}
			}
		}

		complete_effect = {
			if = {
				limit = {
					tag = SAX
				}
				custom_effect_tooltip = SAX_mission_second_schleswig_war_SAX_effect_tt
				hidden_effect = {
					DEN = {
						country_event = {
							id = secschwar.521
						}
					}
				}
			}
			if = {
				limit = {
					tag = DEN
				}
				custom_effect_tooltip = SAX_mission_second_schleswig_war_DEN_effect_tt
				hidden_effect = {
					SAX = {
						country_event = {
							id = secschwar.531
						}
					}
				}
			}
		}
	}
}

SAX_decision_category_trias_policy = {
	
	#The Trias Policy
	SAX_mission_trias_policy = {

		icon = german_confederation

		allowed = { always = no }

		available = {
			custom_trigger_tooltip = {
				tooltip = SAX_mission_trias_policy_trigger_tt
				hidden_trigger = {
					BAD = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					BAV = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					HAN = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					HES = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					HSD = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					WUR = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
				}
			}
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.8
			}
		}
		
		activation = { always = no }
		
		priority = 100

		fire_only_once = yes

		is_good = no
		
		days_mission_timeout = 3650
		
		cancel_trigger = {
			has_global_flag = eoanb_flag_seven_weeks_war_ongoing
		}
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -150
				add_stability = -0.05
				add_war_support = -0.03
			}
		}
		
		complete_effect = {
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.03
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Develop a Reform Agenda
	SAX_decision_develop_reform_agenda = {

		icon = constitution
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive_null = yes
		}

		visible = {
			#
		}
		
		priority = 90

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 180
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			unlock_decision_tooltip = SAX_decision_notify_the_middle_states
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.05
			}
			hidden_effect = {
				set_country_flag = SAX_decision_develop_reform_agenda_complete_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Notify the German Middle States
	SAX_decision_notify_the_middle_states = {

		icon = german_confederation
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			has_completed_focus = SAX_focus_legacy_of_four_kings_alliance
			has_completed_focus = SAX_focus_legacy_of_bamberg_conference
		}

		visible = {
			has_country_flag = SAX_decision_develop_reform_agenda_complete_flag
		}
		
		priority = 80

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 30
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = SAX_decision_notify_the_middle_states_complete_effect_tt
			BAD = { country_event = { id = saxony.303 days = 7 random_days = 10 } }
			BAV = { country_event = { id = saxony.303 days = 7 random_days = 10 } }
			HAN = { country_event = { id = saxony.303 days = 7 random_days = 10 } }
			HES = { country_event = { id = saxony.303 days = 7 random_days = 10 } }
			HSD = { country_event = { id = saxony.303 days = 7 random_days = 10 } }
			WUR = { country_event = { id = saxony.303 days = 7 random_days = 10 } }
			hidden_effect = {
				set_variable = { var = SAX_bundesreform_positive_votes value = 1 }
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_notify_the_middle_states_remove_effect_tt
			if = {
				limit = {
					check_variable = { var = SAX_bundesreform_positive_votes value = 3 compare = less_than_or_equals }
				}
				custom_effect_tooltip = SAX_decision_notify_the_middle_states_remove_effect_failure_tt
				add_political_power = -100
				hidden_effect = {
					set_country_flag = SAX_decision_notify_the_middle_states_failure_flag
				}
			}
			else_if = {
				limit = {
					check_variable = { var = SAX_bundesreform_positive_votes value = 4 compare = equals }
				}
				custom_effect_tooltip = SAX_decision_notify_the_middle_states_remove_effect_small_majority_tt
				add_political_power = 25
				hidden_effect = {
					set_country_flag = SAX_decision_notify_the_middle_states_small_majority_flag
				}
			}
			else_if = {
				limit = {
					check_variable = { var = SAX_bundesreform_positive_votes value = 5 compare = equals }
				}
				custom_effect_tooltip = SAX_decision_notify_the_middle_states_remove_effect_decent_majority_tt
				add_political_power = 50
				hidden_effect = {
					set_country_flag = SAX_decision_notify_the_middle_states_small_majority_flag
				}
			}
			else_if = {
				limit = {
					check_variable = { var = SAX_bundesreform_positive_votes value = 6 compare = equals }
				}
				custom_effect_tooltip = SAX_decision_notify_the_middle_states_remove_effect_big_majority_tt
				add_political_power = 75
				hidden_effect = {
					set_country_flag = SAX_decision_notify_the_middle_states_large_majority_flag
				}
			}
			else_if = {
				limit = {
					check_variable = { var = SAX_bundesreform_positive_votes value = 7 compare = equals }
				}
				custom_effect_tooltip = SAX_decision_notify_the_middle_states_remove_effect_unanimity_tt
				add_political_power = 100
				hidden_effect = {
					set_country_flag = SAX_decision_notify_the_middle_states_unanimity_flag
				}
			}
			hidden_effect = {
				clear_variable = SAX_bundesreform_positive_votes
				clr_country_flag = SAX_decision_develop_reform_agenda_complete_flag
				set_country_flag = SAX_decision_wurzburg_conference_ready
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#TRIAS STEP 1 - Persuade those German middle states which reject the reform initially = Eanbles Würzburg Conference
	
	#Persuade Baden
	SAX_decision_persuade_BAD = {

		icon = envelope_bad
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			BAD = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_BAD_effect_tt
			BAD = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = BAD
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			add_opinion_modifier = { target = BAD modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			reverse_add_opinion_modifier = { target = BAD modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Persuade Bavaria
	SAX_decision_persuade_BAV = {

		icon = envelope_bav
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			BAV = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_BAV_effect_tt
			BAV = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = BAV
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			add_opinion_modifier = { target = BAV modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			reverse_add_opinion_modifier = { target = BAV modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Persuade Hanover
	SAX_decision_persuade_HAN = {

		icon = envelope_han
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			HAN = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_HAN_effect_tt
			HAN = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HAN
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			add_opinion_modifier = { target = HAN modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			reverse_add_opinion_modifier = { target = HAN modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Persuade Hesse-Kassel
	SAX_decision_persuade_HES = {

		icon = envelope_hes
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			HES = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_HES_effect_tt
			HES = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HES
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			add_opinion_modifier = { target = HES modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			reverse_add_opinion_modifier = { target = HES modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Persuade Hesse-Darmstadt
	SAX_decision_persuade_HSD = {

		icon = envelope_hsd
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			HSD = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_HSD_effect_tt
			HSD = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HSD
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			add_opinion_modifier = { target = HSD modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			reverse_add_opinion_modifier = { target = HSD modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Persuade Wurttemberg
	SAX_decision_persuade_WUR = {

		icon = envelope_wur
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			WUR = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_WUR_effect_tt
			WUR = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = WUR
					modifier = SAX_GC_BUNDESREFORM_NEGATIVE_REL
				}
			}
			add_opinion_modifier = { target = WUR modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			reverse_add_opinion_modifier = { target = WUR modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#TRIAS STEP 2 - Convince the German middle states of our reform plan = Make them have a positive stance on the matter
	
	#Convince Baden of Our Reform Plans
	SAX_decision_convince_BAD = {

		icon = envelope_bad
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_completed_focus = SAX_focus_wurzburg_conference
			BAD = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			BAD = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = BAD
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			add_opinion_modifier = { target = BAD modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			reverse_add_opinion_modifier = { target = BAD modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convince Bavaria of Our Reform Plans
	SAX_decision_convince_BAV = {

		icon = envelope_bav
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_completed_focus = SAX_focus_wurzburg_conference
			BAV = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			BAV = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = BAV
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			add_opinion_modifier = { target = BAV modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			reverse_add_opinion_modifier = { target = BAV modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convince Hanover of Our Reform Plans
	SAX_decision_convince_HAN = {

		icon = envelope_han
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_completed_focus = SAX_focus_wurzburg_conference
			HAN = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			HAN = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HAN
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			add_opinion_modifier = { target = HAN modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			reverse_add_opinion_modifier = { target = HAN modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convince Hesse-Kassel of Our Reform Plans
	SAX_decision_convince_HES = {

		icon = envelope_hes
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_completed_focus = SAX_focus_wurzburg_conference
			HES = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			HES = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HES
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			add_opinion_modifier = { target = HES modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			reverse_add_opinion_modifier = { target = HES modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convince Hesse-Darmstadt of Our Reform Plans
	SAX_decision_convince_HSD = {

		icon = envelope_hsd
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_completed_focus = SAX_focus_wurzburg_conference
			HSD = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			HSD = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HSD
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			add_opinion_modifier = { target = HSD modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			reverse_add_opinion_modifier = { target = HSD modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convince Wurttemberg of Our Reform Plans
	SAX_decision_convince_WUR = {

		icon = envelope_wur
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_completed_focus = SAX_focus_wurzburg_conference
			WUR = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			WUR = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = WUR
					modifier = SAX_GC_BUNDESREFORM_CAUTIOUS_REL
				}
			}
			add_opinion_modifier = { target = WUR modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			reverse_add_opinion_modifier = { target = WUR modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.01
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#TRIAS STEP 3 - Tighten the bond with the German middle states = Make them supportive
	
	#Tighten the Bonds with Baden
	SAX_decision_tighten_bonds_BAD = {

		icon = envelope_bad
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
			BAD = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			BAD = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = BAD
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			add_opinion_modifier = { target = BAD modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			reverse_add_opinion_modifier = { target = BAD modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Tighten the Bonds with Bayern
	SAX_decision_tighten_bonds_BAV = {

		icon = envelope_bav
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
			BAV = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			BAV = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = BAV
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			add_opinion_modifier = { target = BAV modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			reverse_add_opinion_modifier = { target = BAV modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Tighten the Bonds with Hanover
	SAX_decision_tighten_bonds_HAN = {

		icon = envelope_han
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
			HAN = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			HAN = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HAN
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			add_opinion_modifier = { target = HAN modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			reverse_add_opinion_modifier = { target = HAN modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Tighten the Bonds with Hesse-Kassel
	SAX_decision_tighten_bonds_HES = {

		icon = envelope_hes
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
			HES = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			HES = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HES
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			add_opinion_modifier = { target = HES modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			reverse_add_opinion_modifier = { target = HES modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Tighten the Bonds with Hesse-Darmstadt
	SAX_decision_tighten_bonds_HSD = {

		icon = envelope_hsd
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
			HSD = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			HSD = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = HSD
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			add_opinion_modifier = { target = HSD modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			reverse_add_opinion_modifier = { target = HSD modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Tighten the Bonds with Wurttemberg
	SAX_decision_tighten_bonds_WUR = {

		icon = envelope_wur
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			NOT = { has_country_flag = SAX_decision_trias_diplomatic_mission_flag }
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
			WUR = { 
				has_opinion_modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				exists = yes
				is_subject = no 
			}
		}

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		remove_effect = {
			WUR = {
				remove_opinion_modifier = {
					target = SAX
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			SAX = {
				remove_opinion_modifier = {
					target = WUR
					modifier = SAX_GC_BUNDESREFORM_POSITIVE_REL
				}
			}
			add_opinion_modifier = { target = WUR modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			reverse_add_opinion_modifier = { target = WUR modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_diplomatic_mission_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Attempt to Reform the German Confederation's Judiciary
	SAX_decision_attempt_to_reform_the_confederations_judiciary = {

		icon = generic_speech
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
		}

		visible = {
			has_country_flag = SAX_first_wurzburg_conference_flag
		}
		
		priority = 75

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_attempt_to_reform_the_confederations_judiciary_effect_tt
			hidden_effect = {
				if = {
					limit = {
						BAD = { has_country_flag = SAX_attend_wurzburg_conference_flag }
						BAV = { has_country_flag = SAX_attend_wurzburg_conference_flag }
						HAN = { has_country_flag = SAX_attend_wurzburg_conference_flag }
						HES = { has_country_flag = SAX_attend_wurzburg_conference_flag }
						HSD = { has_country_flag = SAX_attend_wurzburg_conference_flag }
						WUR = { has_country_flag = SAX_attend_wurzburg_conference_flag }
					}
					random_list = {
						25 = {
							country_event = { id = saxony.312 days = 21 }
						}
						75 = {
							country_event = { id = saxony.313 days = 21 }
						}
					}
				}
				else = {
					random_list = {
						10 = {
							country_event = { id = saxony.312 days = 21 }
						}
						90 = {
							country_event = { id = saxony.313 days = 21 }
						}
					}
				}
			}
		}
		
		ai_will_do = {
			base = 500
		}
	}
	
	#Convene the Second Würzburg Conference
	SAX_decision_convene_second_wurzburg_conference = {

		icon = german_confederation
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
		}

		visible = {
			has_country_flag = {
				flag = SAX_first_wurzburg_conference_flag
				days > 210
			}
		}
		
		priority = 70

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 30
		 
		modifier = {
			political_power_gain = -0.05
		}

		complete_effect = {
			hidden_effect = {
				country_event = { id = saxony.336 days = 14 }
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_convene_second_wurzburg_conference_effect_tt
			BAD = { country_event = { id = saxony.315 } }
			BAV = { country_event = { id = saxony.315 } }
			HAN = { country_event = { id = saxony.315 } }
			HES = { country_event = { id = saxony.315 } }
			HSD = { country_event = { id = saxony.315 } }
			WUR = { country_event = { id = saxony.315 } }
			hidden_effect = {
				country_event = { id = saxony.318 days = 21 }
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convene the Third Würzburg Conference
	SAX_decision_convene_third_wurzburg_conference = {

		icon = german_confederation
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
		}

		visible = {
			has_country_flag = {
				flag = SAX_second_wurzburg_conference_flag
				days > 240
			}
		}
		
		priority = 65

		fire_only_once = yes
		
		cost = 25
		
		days_remove = 30
		 
		modifier = {
			political_power_gain = -0.05
		}

		complete_effect = {
			hidden_effect = {
				set_country_flag = SAX_third_wurzburg_conference_flag
				country_event = { id = saxony.336 days = 14 }
			}
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_convene_third_wurzburg_conference_effect_tt
			BAD = { country_event = { id = saxony.320 } }
			BAV = { country_event = { id = saxony.320 } }
			HAN = { country_event = { id = saxony.320 } }
			HES = { country_event = { id = saxony.320 } }
			HSD = { country_event = { id = saxony.320 } }
			WUR = { country_event = { id = saxony.320 } }
			hidden_effect = {
				country_event = { id = saxony.323 days = 21 }
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Attempt to Reform the German Confederation's War Constitution
	SAX_decision_attempt_to_reform_the_confederations_war_constitution = {

		icon = generic_speech
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
		}

		visible = {
			has_country_flag = SAX_third_wurzburg_conference_finished_flag
		}
		
		priority = 60

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_attempt_to_reform_the_confederations_war_constitution_effect_tt
			hidden_effect = {
				if = {
					limit = {
						BAD = { has_country_flag = SAX_attend_third_wurzburg_conference_flag }
						BAV = { has_country_flag = SAX_attend_third_wurzburg_conference_flag }
						HAN = { has_country_flag = SAX_attend_third_wurzburg_conference_flag }
						HES = { has_country_flag = SAX_attend_third_wurzburg_conference_flag }
						HSD = { has_country_flag = SAX_attend_third_wurzburg_conference_flag }
						WUR = { has_country_flag = SAX_attend_third_wurzburg_conference_flag }
					}
					random_list = {
						15 = {
							country_event = { id = saxony.325 days = 21 }
						}
						85 = {
							country_event = { id = saxony.326 days = 21 }
						}
					}
				}
				else = {
					random_list = {
						5 = {
							country_event = { id = saxony.325 days = 21 }
						}
						95 = {
							country_event = { id = saxony.326 days = 21 }
						}
					}
				}
			}
		}
		
		ai_will_do = {
			base = 500
		}
	}
	
	#Propose a Comprehensive Constitutional Reform
	SAX_decision_propose_a_comprehensive_constitutional_reform = {

		icon = german_confederation
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.4
			}
		}

		visible = {
			has_country_flag = {
				flag = SAX_third_wurzburg_conference_finished_flag
				days > 240
			}
		}
		
		priority = 55

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_propose_a_comprehensive_constitutional_reform_effect_tt
			BAD = { country_event = { id = saxony.327 } }
			BAV = { country_event = { id = saxony.327 } }
			HAN = { country_event = { id = saxony.327 } }
			HES = { country_event = { id = saxony.327 } }
			HSD = { country_event = { id = saxony.327 } }
			WUR = { country_event = { id = saxony.327 } }
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Present the Constitutional Reform Proposal in Frankfurt
	SAX_decision_present_the_constitutional_reform_proposal_in_frankfurt = {

		icon = generic_speech
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.5
			}
		}

		visible = {
			BAD = { has_country_flag = SAX_support_comprehensive_constitutional_reform_flag }
			BAV = { has_country_flag = SAX_support_comprehensive_constitutional_reform_flag }
			HAN = { has_country_flag = SAX_support_comprehensive_constitutional_reform_flag }
			HES = { has_country_flag = SAX_support_comprehensive_constitutional_reform_flag }
			HSD = { has_country_flag = SAX_support_comprehensive_constitutional_reform_flag }
			WUR = { has_country_flag = SAX_support_comprehensive_constitutional_reform_flag }
		}
		
		priority = 50

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_present_the_constitutional_reform_proposal_in_frankfurt_effect_tt
			random_list = {
				5 = {
					country_event = { id = saxony.331 days = 21 }
				}
				95 = {
					country_event = { id = saxony.332 days = 21 }
				}
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Attempt to Sway the Sceptics
	SAX_decision_attempt_to_sway_the_sceptics = {

		icon = politics
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.35
			PS_pol_positive = yes
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.1
			}
		}

		visible = {
			OR = {
				BAD = { has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag }
				BAV = { has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag }
				HAN = { has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag }
				HES = { has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag }
				HSD = { has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag }
				WUR = { has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag }
			}
		}
		
		priority = 45

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 30
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_attempt_to_sway_the_sceptics_effect_tt
			every_other_country = {
				limit = {
					has_country_flag = SAX_reject_comprehensive_constitutional_reform_flag
				}
				country_event = { id = saxony.333 days = 7 }
			}
		}
		
		ai_will_do = {
			base = 500
		}
	}
	
	#Develop the Trias Idea
	SAX_decision_develop_trias_idea = {

		icon = constitution
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.45
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.4
			}
		}

		visible = {
			has_completed_focus = SAX_focus_idea_of_german_trias
		}

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = SAX_decision_develop_trias_idea_complete_effect_tt
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_develop_trias_idea_remove_effect_tt
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			hidden_effect = {
				set_country_flag = SAX_decision_develop_trias_idea_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Refine the Trias Idea
	SAX_decision_refine_trias_idea = {

		icon = constitution
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.45
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.45
			}
		}

		visible = {
			has_country_flag = SAX_decision_develop_trias_idea_flag
		}

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = SAX_decision_refine_trias_idea_complete_effect_tt
		}
		
		remove_effect = {
			if = {
				limit = {
					has_country_flag = SAX_decision_notify_the_middle_states_unanimity_flag
					BAD = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					BAV = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					HAN = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					HES = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					HSD = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
					WUR = { has_opinion_modifier = SAX_GC_BUNDESREFORM_SUPPORT_REL }
				}
				unlock_decision_tooltip = SAX_decision_prepare_a_trias_conference_in_dresden
				set_country_flag = SAX_decision_trias_idea_ready_flag
			}
			else = {
				custom_effect_tooltip = SAX_decision_refine_trias_idea_remove_effect_tt
				set_country_flag = SAX_decision_refine_trias_idea_flag
			}
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Make Amendments to Appease Skeptics
	SAX_decision_appease_skeptics = {

		icon = politics
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.45
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.5
			}
		}

		visible = {
			has_country_flag = SAX_decision_refine_trias_idea_flag
		}

		fire_only_once = yes
		
		cost = 75
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			custom_effect_tooltip = SAX_decision_appease_skeptics_complete_effect_tt
			add_stability = -0.03
		}
		
		remove_effect = {
			if = {
				limit = {
					has_completed_focus = SAX_focus_support_augustenburger
				}
				unlock_decision_tooltip = SAX_decision_gather_support_for_the_augustenburger
			}
			add_power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value = 0.02
			}
			set_country_flag = SAX_decision_trias_idea_ready_flag
			hidden_effect = {
				clr_country_flag = SAX_decision_refine_trias_idea_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}

	#Gather Support for the Augustenburger
	SAX_decision_gather_support_for_the_augustenburger = {

		icon = politics
		
		#allowed = { tag = SAX }

		available = {
			has_country_flag = SAX_decision_trias_idea_ready_flag
			has_country_flag = SAX_decision_support_augustenburger_ready_flag
			has_completed_focus = SAX_focus_support_augustenburger
			has_stability > 0.5
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.5
			}
		}

		visible = {
			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
				}
			}
		}

		cancel_trigger = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
		}

		fire_only_once = yes
		
		cost = 75
		
		days_remove = 7
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_gather_support_for_the_augustenburger_effect_tt
			country_event = { id = saxony.352 }
		}
		
		ai_will_do = {
			base = 1000
		}
	}

	#Try to Persuade the Sceptics
	SAX_decision_persuade_sceptics_for_the_augustenburger = {

		icon = politics
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.5
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.5
			}
		}

		visible = {
			has_country_flag = SAX_persuade_sceptics_augustenburger_flag
			NOT = {
				OR = {
					has_global_flag = eoanb_flag_second_schleswig_war
					has_global_flag = eoanb_flag_second_schleswig_war_gc
				}
			}
		}

		cancel_trigger = {
			OR = {
				has_global_flag = eoanb_flag_second_schleswig_war
				has_global_flag = eoanb_flag_second_schleswig_war_gc
			}
		}

		fire_only_once = yes
		
		cost = 100
		
		days_remove = 7
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_persuade_sceptics_for_the_augustenburger_effect_tt
			every_other_country = {
				limit = {
					has_country_flag = SAX_trias_augustenburger_support_undecided_flag
				}
				country_event = { id = saxony.358 days = 1 }
			}
			hidden_effect = {
				country_event = { id = saxony.361 days = 14 }
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Prepare a Trias Conference in Dresden
	SAX_decision_prepare_a_trias_conference_in_dresden = {

		icon = politics
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.5
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.6
			}
		}

		visible = {
			has_country_flag = SAX_decision_trias_idea_ready_flag
			has_completed_focus = SAX_focus_trias_succeeds
		}

		fire_only_once = yes
		
		cost = 75
		
		days_remove = 90
		 
		modifier = {
			political_power_gain = -0.05
			consumer_goods_expected_value = 0.03
		}
		
		remove_effect = {
			custom_effect_tooltip = SAX_decision_prepare_a_trias_conference_in_dresden_effect_tt
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_idea_ready_flag
				set_country_flag = SAX_decision_trias_conference_ready_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Convene the Trias Conference
	SAX_decision_convene_the_trias_conference = {

		icon = german_confederation
		
		#allowed = { tag = SAX }

		available = {
			has_stability > 0.5
			PS_pol_positive = yes
			has_war = no
			power_balance_value = {
				id = SAX_Balance_of_Power_Trias
				value > 0.6
			}
		}

		visible = {
			has_country_flag = SAX_decision_trias_conference_ready_flag
		}

		fire_only_once = yes
		
		cost = 50
		
		days_remove = 60
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		remove_effect = {
			custom_effect_tooltip = THIS_IS_WIP_TT
			custom_effect_tooltip = SAX_decision_convene_the_trias_conference_effect_tt
			#BAD = { country_event = { id = saxony.336 } }
			#BAV = { country_event = { id = saxony.336 } }
			#HAN = { country_event = { id = saxony.336 } }
			#HES = { country_event = { id = saxony.336 } }
			#HSD = { country_event = { id = saxony.336 } }
			#WUR = { country_event = { id = saxony.336 } }
			hidden_effect = {
				#country_event = { id = saxony.339 days = 21 }
			}
			hidden_effect = {
				clr_country_flag = SAX_decision_trias_conference_ready_flag
				#set_country_flag = SAX_decision_trias_conference_ready_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
}

SAX_decision_category_domestic_policy = {

	#Grant Partial Amnesty to Richard Wagner
	SAX_decision_grant_partial_amnesty_to_richard_wagner = {

		icon = generic_independence
		
		#allowed = { tag = SAX }

		available = {
			date > 1860.8.1
			has_stability > 0.35
			PS_pol_positive = yes
			has_war = no
		}

		visible = {
			NOT = {
				has_completed_focus = SAX_focus_conserve_the_status_quo
			}
		}

		fire_only_once = yes
		
		cost = 10
		
		complete_effect = {
			custom_effect_tooltip = SAX_decision_grant_partial_amnesty_to_richard_wagner_effect_tt
			country_event = { id = gerconfed.503 days = 3 }
			hidden_effect = {
				set_country_flag = SAX_partial_amnesty_richard_wagner_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Grant Full Amnesty to Richard Wagner
	SAX_decision_grant_full_amnesty_to_richard_wagner = {

		icon = generic_independence
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_amnesty_for_insurgents_of_48_49
			has_stability > 0.4
			PS_pol_positive = yes
			has_war = no
		}

		visible = {
			NOT = {
				has_completed_focus = SAX_focus_conserve_the_status_quo
			}
			has_country_flag = SAX_partial_amnesty_richard_wagner_flag
		}

		fire_only_once = yes
		
		cost = 20
		
		complete_effect = {
			custom_effect_tooltip = SAX_decision_grant_partial_amnesty_to_richard_wagner_effect_tt
			country_event = { id = gerconfed.504 days = 3 }
			hidden_effect = {
				clr_country_flag = SAX_partial_amnesty_richard_wagner_flag
			}
		}
		
		ai_will_do = {
			base = 1000
		}
	}
}

SAX_decision_category_military = {
	
	#Establish a Military Arsenal at Dresden
	SAX_decision_establish_dresden_arsenal = {

		icon = SOV_place_hq
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_establish_a_military_arsenal
		}

		visible = {
			controls_state = 65
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 360
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -2.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_manpower = 1000
			add_war_support = 0.03
			army_experience = 50
			add_doctrine_cost_reduction = {
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Buy Rifles from Liège Factories
	SAX_decision_buy_rifles_from_liege_factories = {

		icon = generic_industry
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_buy_rifles_from_liege_factories
		}

		visible = {
			country_exists = BEL
			BEL = { owns_state = 34 }
			BEL = { has_war = no }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1000
				producer = BEL
			}
		}
		
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				has_equipment = { infantry_equipment > 1999 }
			}
		}
	}
	
	#Buy Rifles from Austria
	SAX_decision_buy_austrian_rifles = {

		icon = generic_industry
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_buy_austrian_rifles
		}

		visible = {
			country_exists = AUS
			AUS = { has_war = no }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1000
				producer = AUS
			}
		}
		
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				has_equipment = { infantry_equipment > 1999 }
			}
		}
	}
	
	#Buy Cannons from Prussia
	SAX_decision_buy_prussian_cannons = {

		icon = artillery
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_buy_prussian_cannons
		}

		visible = {
			country_exists = PRS
			PRS = { has_war = no }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_money_and_political_power_50_and_command_power_50
		
		days_remove = 90
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			add_command_power = -50
		}
		
		remove_effect = {
			add_equipment_to_stockpile = {
				type = cannon_equipment
				amount = 36
				producer = PRS
			}
		}
		
		ai_will_do = {
			base = 500
			modifier = {
				factor = 0
				has_equipment = { cannon_equipment > 39 }
			}
		}
	}
	
	#Ask for Military Convention with Austria
	SAX_decision_convention_with_austria = {

		icon = generic_military
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_convention_with_austria
		}

		visible = {
			country_exists = AUS
			NOT = { has_war_with = AUS }
			NOT = { has_completed_focus = SAX_focus_loosen_ties_aus }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 99.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_100
		
		complete_effect = {
			add_political_power = -100
			add_command_power = -100
			AUS = { country_event = { days = 1 id = saxony.751 } }
		}
		
		ai_will_do = {
			base = 100
		}
	}

	#Propose a Military Convention among the Trias
	SAX_decision_propose_convention_with_trias = {

		icon = generic_military
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_idea_of_german_trias
			has_completed_focus = SAX_focus_convention_with_the_trias
		}

		visible = {
			NOT = {
				OR = {
					has_war_with = AUS
					has_war_with = PRS
				}
			}
			NOT = {
				AND = {
					has_completed_focus = SAX_focus_loosen_ties_aus
					has_completed_focus = SAX_focus_mend_divide_prs
				}
				AND = {
					has_completed_focus = SAX_focus_strengthen_bond_aus
					has_completed_focus = SAX_focus_deepen_rift_prs
				}
			}
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 99.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_100
		
		complete_effect = {
			add_political_power = -100
			add_command_power = -100
			#AUS = { country_event = { days = 1 id = saxony.751 } }
		}
		
		ai_will_do = {
			base = 100
		}
	}

	#Ask for Military Convention with Prussia
	SAX_decision_convention_with_prussia = {

		icon = generic_military
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_convention_with_prussia
		}

		visible = {
			country_exists = PRS
			NOT = { has_war_with = PRS }
			NOT = { has_completed_focus = SAX_focus_deepen_rift_prs }
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 99.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_100
		
		complete_effect = {
			add_political_power = -100
			add_command_power = -100
			PRS = { country_event = { days = 1 id = saxony.751 } }
		}
		
		ai_will_do = {
			base = 100
		}
	}
	
	#Intensify the Military Convention
	SAX_decision_intensify_convention = {

		icon = generic_military
		
		#allowed = { tag = SAX }

		available = {
			if = {
				limit = {
					has_idea = SAX_idea_PRS_military_convention_1
				}
				PRS = { has_war = no }
			}
			if = {
				limit = {
					has_idea = SAX_idea_AUS_military_convention_1
				}
				AUS = { has_war = no }
			}
			has_stability > 0.35
			if = {
				limit = {
					has_government = centrism
				}
				centrism > 0.35
			}
			else_if = {
				limit = {
					has_government = ideology_social_liberalism
				}
				ideology_social_liberalism > 0.3
			}
			else_if = {
				limit = {
					has_government = traditional_conservatism
				}
				traditional_conservatism > 0.45
			}
			else_if = {
				limit = {
					has_government = autocracy
				}
				autocracy > 0.45
			}
		}

		visible = {
			OR = {
				has_idea = SAX_idea_PRS_military_convention_1
				has_idea = SAX_idea_AUS_military_convention_1
			}
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			has_political_power > 99.9
			command_power > 49.99
		}
		custom_cost_text = eoanb_political_power_100_command_power_50
		
		days_remove = 180

		complete_effect = {
			add_political_power = -100
			add_command_power = -50
		}
		
		remove_effect = {
			if = {
				limit = {
					has_idea = SAX_idea_PRS_military_convention_1
				}
				swap_ideas = { remove_idea = SAX_idea_PRS_military_convention_1 add_idea = SAX_idea_PRS_military_convention_2 }
				PRS = {
					remove_opinion_modifier = {
						target = SAX
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				SAX = {
					remove_opinion_modifier = {
						target = PRS
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				add_opinion_modifier = { target = PRS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
				reverse_add_opinion_modifier = { target = PRS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
			}
			else_if = {
				limit = {
					has_idea = SAX_idea_AUS_military_convention_1
				}
				swap_ideas = { remove_idea = SAX_idea_AUS_military_convention_1 add_idea = SAX_idea_AUS_military_convention_2 }
				AUS = {
					remove_opinion_modifier = {
						target = SAX
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				SAX = {
					remove_opinion_modifier = {
						target = AUS
						modifier = SAX_MILITARY_CONVENTION_EARLY_REL
					}
				}
				add_opinion_modifier = { target = AUS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
				reverse_add_opinion_modifier = { target = AUS modifier = SAX_MILITARY_CONVENTION_MEDIUM_REL }
			}
		}
		
		ai_will_do = {
			base = 100
		}
	}
}

SAX_decision_category_economy = {

	#Expand Railway Network
	SAX_mission_railway_expansion = {

		icon = railway

		allowed = { always = no }

		available = {
			has_railway_level = {
				state = 65
				level = 2
			}
			custom_trigger_tooltip = { #Chemnitz-Zwickau
				tooltip = SAX_mission_railway_expansion_trigger_tt_1
				hidden_trigger = {
					has_railway_connection = {
						start_province = 11481
						target_province = 9471
					}
				}
			}
			custom_trigger_tooltip = { #Dresden-Freiberg
				tooltip = SAX_mission_railway_expansion_trigger_tt_2
				hidden_trigger = {
					has_railway_connection = {
						start_province = 514
						target_province = 6559
					}
				}
			}
		}
		
		activation = { always = no }

		highlight_states = {
			highlight_state_targets = {
				state = 65
			}
		}

		fire_only_once = yes

		is_good = no
		
		days_mission_timeout = 1200
		
		cancel_trigger = {
			NOT = { owns_state = 65 }
		}
		
		timeout_effect = {
			if = {
				limit = {
					is_ai = no
				}
				add_political_power = -50
				add_stability = -0.02
			}
		}
		
		complete_effect = {
			65 = { add_extra_state_shared_building_slots = 1 }
			add_tech_bonus = { bonus = 0.5 uses = 1 category = transport_tech }
			EOANBSYS_institutions_innovative_add_three = yes
		}

		ai_will_do = {
			base = 100
		}
	}

	#Construct a Railway Line to Freiberg
	SAX_decision_construct_freiberg_railway = {

		icon = railway
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_saxon_state_railway
		}

		visible = {
			NOT = {
				has_railway_connection = {
					start_province = 514
					target_province = 6559
				}
			}
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
		}
		
		remove_effect = {
			build_railway = { #Dresden-Freiberg
				level = 1
				path = { 514 6559 }
				start_province = 514
				target_province = 6559
			}
			EOANBSYS_institutions_innovative_add_one = yes
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
		}
		
		ai_will_do = {
			base = 1000
		}
	}

	#Construct a Railway Line between Chemnitz and Zwickau
	SAX_decision_construct_chemnitz_zwickau_railway = {

		icon = railway
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_saxon_state_railway
			has_tech = porter_allen_engine
			has_tech = nitroglycerine
		}

		visible = {
			#
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 210
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -2.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
		}
		
		remove_effect = {
			build_railway = { #Chemnitz-Zwickau
				level = 1
				path = { 11481 9471 }
				start_province = 11481
				target_province = 9471
			}
			EOANBSYS_institutions_innovative_add_one = yes
			set_temp_variable = {
				unemployment_value = -0.0001
			}
			add_unemployment_effect = yes
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Railway Upgrade
	SAX_decision_railway_upgrade = {

		icon = railway
		
		#allowed = { tag = SAX }

		available = {
			has_completed_focus = SAX_focus_railway_gaps
			65 = { infrastructure > 7 }
			has_railway_level = {
				state = 65
				level = 2
			}
			if = {
				limit = {
					owns_state = 950
				}
				950 = { infrastructure > 6 }
				has_railway_level = {
					state = 950
					level = 2
				}
			}
			has_tech = steam_locomotive_3
			has_tech = standardized_gauge
			has_tech = train_1855
		}

		visible = {
			has_idea = NA_B_small_scale_railways
		}

		fire_only_once = yes
		
		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		 
		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			if = {
				limit = {
					has_idea = road_spending_level_1 
				}
				swap_ideas = { remove_idea = road_spending_level_1 add_idea = road_spending_level_2 }
			}
			else_if = {
				limit = {
					has_idea = road_spending_level_2
				}
				swap_ideas = { remove_idea = road_spending_level_2 add_idea = road_spending_level_3 }
			}
			else_if = {
				limit = {
					has_idea = road_spending_level_3
				}
				swap_ideas = { remove_idea = road_spending_level_3 add_idea = road_spending_level_4 }
			}
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = {
			swap_ideas = { remove_idea = NA_B_small_scale_railways add_idea = NA_B_medium_scale_railways }
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_one = yes
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
		}
		
		ai_will_do = {
			base = 1000
		}
	}
	
	#Expand Resource Output
	SAX_decision_expand_resource_output = {

		icon = coal

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_railway_ore_mountains
			has_stability > 0.3
			has_tech = machine_tools_1
			65 = { infrastructure > 6 }
		}

		visible = {
			NOT = { 
				65 = {
					has_resources_amount = {
						resource = coal
						amount > 28
						state = 65
					}
				}
				65 = {
					has_resources_amount = {
						resource = iron
						amount > 28
						state = 65
					}
				}
			}
		}

		fire_only_once = yes
		
		days_re_enable = 730

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.25
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180

		complete_effect = {
			set_temp_variable = { money_to_gain = -0.25 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}
		
		remove_effect = {
			add_resource = {
				type = coal
				amount = 1
				state = 65
			}
			add_resource = {
				type = iron
				amount = 1
				state = 65
			}
			EOANBSYS_institutions_innovative_add_one = yes
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Expand Königin Marienhütte
	SAX_decision_expand_queen_mary_ironworks = {

		icon = coal

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_queen_mary_ironworks
			has_stability > 0.3
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			65 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = coal_mine
					level = 1
					instant_build = yes
				}
			}
			add_victory_points = {
				province = 9471
				value = 3
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Expand Mining Districts
	SAX_decision_expand_mining_districts = {

		icon = iron

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_expand_mining_districts
			has_stability > 0.3
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.75
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.75 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			add_resource = {
				type = coal
				amount = 2
				state = 65
			}
			add_resource = {
				type = iron
				amount = 4
				state = 65
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Leipzig-Plagwitz City Development
	SAX_decision_leipzig_plagwitz_city_development = {

		icon = hol_draw_up_staff_plans

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_factory_industry
			has_stability > 0.3
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
		}
		custom_cost_text = eoanb_money_and_political_power_50
		
		days_remove = 730

		complete_effect = {
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
		}
		
		remove_effect = {
			65 = {
				add_extra_state_shared_building_slots = 1
				add_manpower = 5000
			}
			add_victory_points = {
				province = 3535
				value = 5
			}
			add_tech_bonus = { bonus = 0.5 uses = 1 category = mechanical_engineering_tech }
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			set_temp_variable = {
				eoanb_prestige_change = 1
			}
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Meissener Porzellan
	SAX_decision_meissener_porzellan = {

		icon = money

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_proto_industrialization
			has_stability > 0.3
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
				}
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = { bonus = 0.25 uses = 1 category = humanities_tech }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Spiegelglashütte Friedrichsthal
	SAX_decision_spiegelglas_friedrichsthal = {

		icon = money

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_proto_industrialization
			has_stability > 0.3
			controls_state = 950
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
				}
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.3
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 180
		
		complete_effect = {
			set_temp_variable = { money_to_gain = -0.3 }
			add_money_with_inflation_included_with_tooltip_effect = yes
		}

		remove_effect = {
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			add_tech_bonus = { bonus = 0.25 uses = 1 category = biochemistry_tech }
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Enact Free Enterprise
	SAX_decision_enact_free_enterprise = {

		icon = eng_trade_unions_support

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_free_enterprise
			has_stability > 0.3
			centrism > 0.3
			traditional_conservatism < 0.6
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
					has_government = chauvinist_populism
				}
			}
			has_idea = GEC_idea_weakened_zunftwesen
		}

		fire_only_once = yes

		cost = 75
		
		days_remove = 180

		modifier = {
			political_power_gain = -0.1
			stability_weekly_factor = -0.003
		}
		
		complete_effect = {
			add_stability = -0.02
			decrease_ps_by_one = yes
		}
		
		remove_effect = {
			swap_ideas = { remove_idea = GEC_idea_weakened_zunftwesen add_idea = GEC_idea_gewerbefreiheit }
			if = {
				limit = {
					NOT = {
						OR = {
							has_government = social_egalitarianism
							has_government = ideology_radical_socialism
							has_government = anarchism
							has_government = chauvinist_populism
						}
					}
				}
				unlock_decision_tooltip = SAX_decision_attract_foreign_businesses
			}
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				country_event = { id = saxony.20 days = 60 }
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Establish an Industrial Code
	SAX_decision_establish_an_industrial_code = {

		icon = eng_trade_unions_support

		#allowed = { tag = SAX }
		
		available = {
			has_stability > 0.3
			centrism > 0.3
			traditional_conservatism < 0.6
			has_tech = tech_humanities_workers_rights
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
					has_government = chauvinist_populism
				}
			}
			has_idea = GEC_idea_gewerbefreiheit
		}

		fire_only_once = yes

		cost = 50
		
		days_remove = 180

		modifier = {
			political_power_gain = -0.05
		}
		
		complete_effect = {
			add_stability = 0.03
		}
		
		remove_effect = {
			swap_ideas = { remove_idea = GEC_idea_gewerbefreiheit add_idea = GEC_idea_gewerbeordnung }
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Attract Foreign Businesses
	SAX_decision_attract_foreign_businesses = {

		icon = hol_attract_foreign_investors

		#allowed = { tag = SAX }
		
		available = {
			OR = {
				has_idea = GEC_idea_gewerbefreiheit
				has_idea = GEC_idea_gewerbeordnung
			}
			has_stability > 0.3
			centrism > 0.3
			traditional_conservatism < 0.65
		}

		visible = {
			NOT = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_radical_socialism
					has_government = anarchism
					has_government = chauvinist_populism
				}
			}
		}

		fire_only_once = yes

		cost = 100
		
		days_remove = 365
		
		remove_effect = {
			add_ideas = SAX_idea_foreign_investors
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_one = yes
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Chemnitzer Actien-Spinnerei
	SAX_decision_chemnitzer_actien_spinnerei = {

		icon = generic_factory

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_textile_industry
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_resource = {
				type = fabric
				amount = 6
				state = 65
			}
			add_victory_points = {
				province = 11481
				value = 1
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Plauen Embroidery Industry
	SAX_decision_plauen_embroidery_industry = {

		icon = generic_factory

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_textile_industry
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_resource = {
				type = fabric
				amount = 4
				state = 65
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Chemnitzer Werkzeugmaschinenfabrik
	SAX_decision_chemnitzer_werkzeugmaschinenfabrik = {

		icon = generic_factory

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_saxon_manchester
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			65 = {
				free_building_slots = {
					building = industrial_complex
					size > 0
				}
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -2.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			65 = {
				add_extra_state_shared_building_slots = 1
				if = {
					limit = {
						steel_mill > 0
					}
					add_building_construction = {
						type = 	machine_parts_factory
						level = 1
						instant_build = yes
					}
				}
				else = {
					add_building_construction = {
						type = 	steel_mill
						level = 1
						instant_build = yes
					}
				}
			}
			add_victory_points = {
				province = 11481
				value = 2
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Sächsische Maschinenfabrik
	SAX_decision_saxon_maschinenfabrik = {

		icon = generic_factory

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_saxon_manchester
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_industry_development_ongoing_flag }
		}

		visible = {
			65 = {
				free_building_slots = {
					building = industrial_complex
					size > 0
				}
			}
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
		}
		custom_cost_text = eoanb_money_cost_text
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_industry_development_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -2.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_industry_development_ongoing_flag 
			}
		}
		
		remove_effect = {
			65 = {
				add_extra_state_shared_building_slots = 1
				if = {
					limit = {
						steel_mill > 0
					}
					add_building_construction = {
						type = machine_parts_factory
						level = 1
						instant_build = yes
					}
				}
				else = {
					add_building_construction = {
						type = steel_mill
						level = 1
						instant_build = yes
					}
				}
			}
			add_victory_points = {
				province = 11481
				value = 2
			}
			set_temp_variable = {
				unemployment_value = -0.0002
			}
			add_unemployment_effect = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_industry_development_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Support the ADCA
	SAX_decision_support_adca = {

		icon = gre_investment_decisions

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_allgemeine_creditanstalt
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 0.5
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 49.9
		}
		custom_cost_text = eoanb_money_and_political_power_50
		
		days_remove = 180
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -50
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_stability = 0.03
			increase_ps_by_one = yes
			EOANBSYS_institutions_innovative_add_two = yes
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Strengthen the Leipzig Trade Fair
	SAX_decision_strenghten_leipzig_trade_fair = {

		icon = money

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_leipzig_book_fair
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 1
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 99.9
		}
		custom_cost_text = eoanb_money_and_political_power_100
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			set_temp_variable = { money_to_gain = -1 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			add_political_power = -100
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_victory_points = {
				province = 3535
				value = 5
			}
			set_temp_variable = { eoanb_prestige_change = 3 }
			eoanb_change_prestige_score = yes
			add_stability = 0.02
			if = {
				limit = {
					has_idea = limited_exports
				}
				swap_ideas = { remove_idea = limited_exports add_idea = export_focus }
			}
			EOANBSYS_institutions_innovative_add_one = yes
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}
	
	#Found the Sächsische Bank zu Dresden
	SAX_decision_found_saxon_bank_dresden = {

		icon = money

		#allowed = { tag = SAX }
		
		available = {
			has_completed_focus = SAX_focus_saxon_bank_dresden
			has_stability > 0.3
			NOT = { has_country_flag = eoanb_financial_investment_ongoing_flag }
		}

		visible = {
			#
		}

		fire_only_once = yes

		custom_cost_trigger = {
			set_temp_variable = {
				amount_of_money_to_check = 2
			}
			has_specific_amount_of_money_with_inflation_included = yes
			has_political_power > 149.9
		}
		custom_cost_text = eoanb_money_and_political_power_150
		
		days_remove = 365
		
		complete_effect = {
			custom_effect_tooltip = eoanb_financial_investment_ongoing_effect_tt
			add_political_power = -150
			set_temp_variable = { money_to_gain = -2 }
			add_money_with_inflation_included_with_tooltip_effect = yes
			hidden_effect = { 
				set_country_flag = eoanb_financial_investment_ongoing_flag 
			}
		}
		
		remove_effect = {
			add_stability = 0.05
			add_ideas = SAX_idea_dresden_bank
			add_tech_bonus = { bonus = 0.5 uses = 1 category = humanities_tech }
			set_temp_variable = { eoanb_prestige_change = 2 }
			eoanb_change_prestige_score = yes
			EOANBSYS_institutions_innovative_add_two = yes
			unlock_decision_tooltip = SAX_decision_take_cheap_loan
			hidden_effect = {
				clr_country_flag = eoanb_financial_investment_ongoing_flag
				set_country_flag = SAX_saxon_bank_dresden_founded_flag
			}
		}

		ai_will_do = {
			base = 1000
		}
	}

	#Take a Cheap Loan with the Sächsische Bank
	SAX_decision_take_cheap_loan = {

		icon = money

		#allowed = { tag = SAX }
		
		available = {
			has_stability > 0.3
			set_temp_variable = { loan_size_to_check = 50 }
			has_less_than_specific_loan_size = yes
		}

		visible = {
			has_country_flag = SAX_saxon_bank_dresden_founded_flag
		}

		cost = 50
		
		days_re_enable = 1825
		
		complete_effect = {
			set_temp_variable = { loans_amount = 5 }
			take_loan_without_inflation_effect = yes
		}

		ai_will_do = {
			base = 1000
			modifier = {
				factor = 0
				set_temp_variable = { loan_size_to_check = 20 }
				has_more_than_specific_loan_size = yes
			}
		}
	}
}