add_namespace = usa_slavery_debate
add_namespace = acw_peace_deal
add_namespace = acw_generic
add_namespace = acw_reconstruction
add_namespace = acw_first_nations

country_event = {
	id = usa_slavery_debate.11
	hidden = yes
	fire_only_once = yes
	is_triggered_only = yes

	immediate = {
		every_state = {
			limit = { 
				OR = {
					is_core_of = USA 
					is_claimed_by = USA
				}
			}
			if = {
					limit = { state_population < 1000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 0 }
				}
				else_if = {
					limit = { state_population < 10000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 1 }
				}
				else_if = {
					limit = { state_population < 30000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 2 }
				}
				else_if = {
					limit = { state_population < 50000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 3 }
				}
				else_if = {
					limit = { state_population < 80000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 4 }
				}
				else_if = {
					limit = { state_population < 100000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 5 }
				}
				else_if = {
					limit = { state_population < 200000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 6 }
				}
				else_if = {
					limit = { state_population < 300000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 7 }
				}
				else_if = {
					limit = { state_population < 400000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 8 }
				}
				else_if = {
					limit = { state_population < 500000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 9 }
				}
				else_if = {
					limit = { state_population < 600000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 10 }
				}
				else_if = {
					limit = { state_population < 700000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 11 }
				}
				else_if = {
					limit = { state_population < 800000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 12 }
				}
				else_if = {
					limit = { state_population < 900000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 13 }
				}
				else_if = {
					limit = { state_population < 1000000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 14 }
				}
				else_if = {
					limit = { state_population < 1250000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 15 }
				}
				else_if = {
					limit = { state_population < 1500000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 16 }
				}
				else_if = {
					limit = { state_population < 1750000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 17 }
				}
				else_if = {
					limit = { state_population < 2000000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 18 }
				}
				else_if = {
					limit = { state_population < 2250000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 19 }
				}
				else_if = {
					limit = { state_population < 2500000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 20 }
				}
				else_if = {
					limit = { state_population < 2750000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 21 }
				}
				else_if = {
					limit = { state_population < 3000000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 22 }
				}
				else_if = {
					limit = { state_population < 3500000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 23 }
				}
				else_if = {
					limit = { state_population < 4000000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 24 }
				}
				else_if = {
					limit = { state_population < 4500000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 25 }
				}
				else_if = {
					limit = { state_population < 5000000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 26 }
				}
				else_if = {
					limit = { state_population > 5000000 }
					set_variable = { THIS.NA_B_state_pop_points@THIS = 27 }
				}
				if = {
					limit = {
						check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 0 compare = greater_than_or_equals }
						check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 3 compare = less_than }
					}
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 1 }
				}
				else_if = {
					limit = {
						check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 3 compare = equals }
					}
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 3 }
				}
				else_if = {
					limit = {
						check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 4 compare = greater_than_or_equals }
						check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 6 compare = less_than }
					}
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 4 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 6 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 6 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 7 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 8 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 8 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 10 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 9 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 12 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 10 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 14 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 11 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 18 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 12 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 22 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 13 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 26 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 14 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 30 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 15 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 35 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 16 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 40 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 17 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 45 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 18 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 50 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 19 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 55 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 20 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 60 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 21 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 65 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 22 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 70 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 23 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 80 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 24 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 90 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 25 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 100 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 26 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 110 }
				}
				else_if = {
					limit = { check_variable = { var = THIS.NA_B_state_pop_points@THIS value = 27 compare = equals } }
					add_to_variable = { THIS.NA_B_mantle_of_the_state_points@THIS = 150 }
				}
			}
		}
}

############################## SLAVERY DEBATE ##############################

	# Intro to the Slave Debate
	country_event = {
		id = usa_slavery_debate.1
		title = usa_slavery_debate.1.t
		desc = usa_slavery_debate.1.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		# Trigger only needs to check conditions that might change during delays
		# or when fired via on_actions - removed redundant 'exists = yes'
		trigger = {
			tag = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}
		
		immediate = {
			# Set initial tension change
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 2 }
			USA_Slavery_Debate_Tension_Modify = yes
			
			# Schedule follow-up events with hidden_effect for cleaner tooltips
			hidden_effect = {
				# Early events (first year)
				country_event = { id = usa_slavery_debate.15 days = 5 }
				country_event = { id = usa_slavery_debate.2 days = 370 }
				country_event = { id = usa_slavery_debate.3 days = 480 }
				country_event = { id = usa_slavery_debate.4 days = 486 random_days = 5 }
				country_event = { id = usa_slavery_debate.5 days = 510 }
				country_event = { id = usa_slavery_debate.6 days = 550 }
				
				# Later events (second year+)
				country_event = { id = usa_slavery_debate.7 days = 800 }
				country_event = { id = usa_slavery_debate.8 days = 890 random_days = 35 }
			}
		}
		
		# States' Rights - Moderate approach
		option = {
			name = usa_slavery_debate.1.a
			ai_chance = {
				base = 50
			}
			add_political_power = 20
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 1 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
		
		# Abolitionist - Anti-slavery stance
		option = {
			name = usa_slavery_debate.1.b
			ai_chance = {
				base = 15
				modifier = {
					factor = 0
					is_historical_focus_on = yes
				}
			}
			add_political_power = -15
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -4 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
		
		# Pro-Slavery - Southern sympathies
		option = {
			name = usa_slavery_debate.1.c
			ai_chance = {
				base = 35
			}
			add_political_power = -5
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 3 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
	}

	# Oregon applies for Statehood
	country_event = {
		id = usa_slavery_debate.2
		title = usa_slavery_debate.2.t
		desc = usa_slavery_debate.2.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
			owns_state = 385
		}

		immediate = {
			activate_mission = USA_Slavery_Debate_Oregon_Statehood_Mission
		}

		option = {
			name = usa_slavery_debate.2.a
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -2 }
			USA_Slavery_Debate_Tension_Modify = yes
		}
	}

	# Lincoln Douglas Debates
	country_event = {
		id = usa_slavery_debate.3
		title = usa_slavery_debate.3.t
		desc = usa_slavery_debate.3.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
			owns_state = 385
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.3.a
		}
	}

	# Dred Scott
	country_event = {
		id = usa_slavery_debate.4
		title = usa_slavery_debate.4.t
		desc = usa_slavery_debate.4.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
			owns_state = 385
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -1 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.4.a
		}
	}

	# Oberlin - Wellington Rescue
	country_event = {
		id = usa_slavery_debate.5
		title = usa_slavery_debate.5.t
		desc = usa_slavery_debate.5.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
			owns_state = 385
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 4 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.5.a
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -1 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
		option = {
			name = usa_slavery_debate.5.b
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 1 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
	}

	# 1858 Midterms
	country_event = {
		id = usa_slavery_debate.6
		title = usa_slavery_debate.6.t
		desc = usa_slavery_debate.6.d

		picture = GFX_report_event_generic_parliament

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 3 }
			USA_Slavery_Debate_Tension_Modify = yes
			hidden_effect = {
				set_variable = { var = ROOT.NA_B_chauvinist_populism_senate_seats@ROOT value = 3 }
				set_variable = { var = ROOT.NA_B_traditional_conservatism_senate_seats@ROOT value = 21 }
				set_variable = { var = ROOT.NA_B_radical_democracy_senate_seats@ROOT value = 21 }
				set_variable = { var = ROOT.NA_B_centrism_senate_seats@ROOT value = 23 }
				set_variable = { var = ROOT.NA_B_social_egalitarianism_senate_seats@ROOT value = 2 }
					
				set_variable = { var = ROOT.NA_B_chauvinist_populism_house_seats@ROOT value = 14 }
				set_variable = { var = ROOT.NA_B_radical_democracy_house_seats@ROOT value = 55 }
				set_variable = { var = ROOT.NA_B_traditional_conservatism_house_seats@ROOT value = 43 }
				set_variable = { var = ROOT.NA_B_centrism_house_seats@ROOT value = 102 }
				set_variable = { var = ROOT.NA_B_social_egalitarianism_seats@ROOT value = 21 }
			}
		}

		option = {
			name = usa_slavery_debate.6.a
			add_political_power = -5
		}
	}

	# Republican Convention
	country_event = {
		id = usa_slavery_debate.7
		title = usa_slavery_debate.7.t
		desc = usa_slavery_debate.7.d

		picture = GFX_report_event_generic_parliament

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			has_country_flag = USA_Slavery_Debate_Ongoing
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.7.a
			complete_national_focus = USA_Focus_PACW_1860_Campaigns
			add_popularity = {
				ideology = ideology_social_liberalism
				popularity = 0.06
			}
		}
	}

	# Crittenden Compromise
	country_event = {
		id = usa_slavery_debate.8
		title = usa_slavery_debate.8.t
		desc = usa_slavery_debate.8.d

		picture = GFX_report_event_generic_parliament

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			has_country_flag = USA_Slavery_Debate_Ongoing
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.8.a
			add_political_power = -20
		}
		option = {
			name = usa_slavery_debate.8.b
			add_political_power = -35
			hidden_effect = { country_event = { id = usa_slavery_debate.9 days = 450 random_days = 35 } } 
		}
	}

	# No Corwin Amendments
	country_event = {
		id = usa_slavery_debate.9
		title = usa_slavery_debate.9.t
		desc = usa_slavery_debate.9.d

		picture = GFX_report_event_generic_parliament

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			has_country_flag = USA_Slavery_Debate_Ongoing
			NOT = { has_government = radical_democracy }
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 10 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.9.a
		}
	}

	# Corwin Amendments
	country_event = {
		id = usa_slavery_debate.10
		title = usa_slavery_debate.10.t
		desc = usa_slavery_debate.10.d

		picture = GFX_report_event_generic_parliament

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			has_country_flag = USA_Slavery_Debate_Ongoing
			has_government = radical_democracy
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -5 }
			USA_Slavery_Debate_Tension_Modify = yes
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 5 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}

		option = {
			name = usa_slavery_debate.10.a
			add_political_power = -20
		}
	}

	# 1860 Election
	country_event = {
		id = usa_slavery_debate.12
		title = usa_slavery_debate.12.t
		desc = usa_slavery_debate.12.d
		picture = GFX_report_event_election_vote

		is_triggered_only = yes
		
		trigger = {
			tag = USA
			has_idea = usa_slavery_law
			OR = {
				has_government = ideology_social_liberalism
				has_government = traditional_conservatism
				has_government = radical_democracy
				has_government = social_egalitarianism
			}
		}

		immediate = {
			complete_national_focus = USA_Focus_ACW_Election_1860
			
			# Update slavery debate tension
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 3 }
			USA_Slavery_Debate_Tension_Modify = yes
			
			# Lock division templates to prevent modification during critical period
			set_division_template_lock = { division_template = "American Infantry Regiment" is_locked = yes }
			set_division_template_lock = { division_template = "American Infantry Brigade" is_locked = yes }
			set_division_template_lock = { division_template = "American Infantry Brigade with Support" is_locked = yes }
			set_division_template_lock = { division_template = "American State Guard" is_locked = yes }
			set_division_template_lock = { division_template = "American National Guard" is_locked = yes }
			set_division_template_lock = { division_template = "American Cavalry Battalion" is_locked = yes }
		}

		option = { # Lincoln - Anti-slavery candidate
			name = usa_slavery_debate.12.a
			
			trigger = {
				OR = {
					AND = {
						has_country_flag = USA_Slavery_Debate_Ongoing
						check_variable = { USA_Slavery_Debate_Leaning < 25 }
					}
					AND = {
						NOT = { has_country_flag = USA_Slavery_Debate_Ongoing }
						NOT = { 
							OR = {
								has_war_with = NEG
								has_war_with = MIN
							}
						}
					}
				}
			}
			
			ai_chance = {
				base = 65
				modifier = { 
					factor = 100 
					is_historical_focus_on = yes 
				}
			}

			add_popularity = { ideology = social_egalitarianism popularity = 0.01 }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.03 }
			
			hidden_effect = {
				set_country_flag = USA_LincolnElected
				country_event = { id = acw_generic.33 days = 1 }
				news_event = usa_slavery_debate.13
			}
		}
		
		option = { # Douglas - Popular sovereignty candidate
			name = usa_slavery_debate.12.b
			
			trigger = {
				has_country_flag = USA_Slavery_Debate_Ongoing
				has_completed_focus = USA_Focus_PACW_The_Unionists
			}
			
			ai_chance = {
				base = 10
				modifier = { 
					factor = 0 
					is_historical_focus_on = yes 
				}
			}

			add_popularity = { ideology = traditional_conservatism popularity = 0.03 }

			hidden_effect = {
				set_country_flag = USA_DouglasElected
				country_event = { id = acw_generic.46 days = 21 }
				news_event = usa_slavery_debate.13
			}
		}
		
		option = { # Bell - Constitutional Union candidate
			name = usa_slavery_debate.12.c
			
			trigger = {
				OR = {
					AND = {
						has_country_flag = USA_Slavery_Debate_Ongoing
						has_completed_focus = USA_Focus_PACW_The_Unionists
					}
					AND = {
						NOT = { has_country_flag = USA_Slavery_Debate_Ongoing }
						OR = {
							has_war_with = CSA
							has_war_with = NEG
							has_war_with = MIN
						}
					}
				}
			}
			
			ai_chance = {
				base = 10
				modifier = { 
					factor = 0 
					is_historical_focus_on = yes 
				}
			}

			add_popularity = { ideology = traditional_conservatism popularity = 0.06 }

			hidden_effect = {
				set_country_flag = USA_BellElected
				country_event = { id = acw_generic.100 days = 21 }
				news_event = usa_slavery_debate.13
			}
		}
		
		option = { # Breckinridge - Pro-slavery Southern Democrat
			name = usa_slavery_debate.12.e
			
			trigger = {
				OR = {
					AND = {
						has_country_flag = USA_Slavery_Debate_Ongoing
						has_completed_focus = USA_Focus_PACW_Pro_Slavery
					}
					AND = {
						NOT = { has_country_flag = USA_Slavery_Debate_Ongoing }
						NOT = { has_war_with = CSA }
					}
				}
			}
			
			ai_chance = {
				base = 10
				modifier = { 
					factor = 0 
					is_historical_focus_on = yes 
				}
			}

			add_popularity = { ideology = radical_democracy popularity = 0.03 }
			add_to_variable = { var = USA_Slavery_Debate_Leaning value = 30 }

			hidden_effect = {
				set_country_flag = USA_BreckinridgeElected
				country_event = { id = acw_generic.80 days = 21 }
				news_event = usa_slavery_debate.13
			}
		}
		
		option = { # Buchanan - Incumbent continuation
			name = usa_slavery_debate.12.f
			
			trigger = {
				has_country_flag = USA_Slavery_Debate_Ongoing
				has_completed_focus = USA_Focus_PACW_Pro_Slavery
				NOT = {
					OR = {
						has_country_flag = breckinridge_sucessor
						has_country_flag = douglas_successor
					}
				}
			}
			
			ai_chance = {
				base = 5
				modifier = { 
					factor = 0 
					is_historical_focus_on = yes 
				}
			}

			add_popularity = { ideology = radical_democracy popularity = 0.03 }
			add_to_variable = { var = USA_Slavery_Debate_Leaning value = 40 }

			hidden_effect = {
				set_country_flag = USA_BuchananElected
				country_event = { id = acw_buchanan.1 days = 21 }
				news_event = usa_slavery_debate.13
			}
		}
	}

	# US 1860 Election News Event
	news_event = {
		id = usa_slavery_debate.13
		title = usa_slavery_debate.13.t
		
		# Dynamic descriptions based on election winner
		desc = {
			text = usa_slavery_debate.13.d_lincoln
			trigger = {
				USA = { has_country_flag = USA_LincolnElected }
			}
		}
		desc = {
			text = usa_slavery_debate.13.d_douglas
			trigger = {
				USA = { has_country_flag = USA_DouglasElected }
			}
		}
		desc = {
			text = usa_slavery_debate.13.d_bell
			trigger = {
				USA = { has_country_flag = USA_BellElected }
			}
		}
		desc = {
			text = usa_slavery_debate.13.d_beckenridge
			trigger = {
				USA = { has_country_flag = USA_BreckinridgeElected }
			}
		}
		desc = {
			text = usa_slavery_debate.13.d_buchanan
			trigger = {
				USA = { has_country_flag = USA_BuchananElected }
			}
		}
		
		picture = GFX_report_event_election_vote
		is_triggered_only = yes
		major = yes
		
		# Only fire if USA exists and has compatible government
		trigger = {
			country_exists = USA
			USA = {
				OR = {
					has_government = social_egalitarianism
					has_government = ideology_social_liberalism
					has_government = traditional_conservatism
					has_government = radical_democracy
				}
			}
		}
		
		# Immediate effects (hidden from tooltip)
		immediate = {
			hidden_effect = {
				if = {
					limit = { tag = USA }
					add_named_threat = {
						name = "Election of 1860"
						threat = 1
					}
				}
			}
		}
		
		# Default option for all countries except SNM and USA
		option = {
			name = usa_slavery_debate.13.a
			trigger = { 
				NOT = { tag = SNM }
				NOT = { tag = USA }
			}
		}
		
		# SNM option - Honor Lincoln (conditional on election result)
		option = {
			name = usa_slavery_debate.13.b
			trigger = { tag = SNM }
			ai_chance = {
				base = 100
				modifier = { 
					factor = 0 
					USA = { 
						OR = {
							has_country_flag = USA_BreckinridgeElected
							has_country_flag = USA_BuchananElected
						}
					}
				}
			}
			complete_national_focus = SNM_focus_Honor_Abraham_Lincoln
			add_opinion_modifier = {
				target = USA
				modifier = eoanb_minor_opinion_boost
			}
			hidden_effect = {
				USA = {
					country_event = usa_slavery_debate.14
					add_to_variable = { prestige_score = 1 }
				}
			}
		}
		
		# SNM alternative option
		option = {
			name = usa_slavery_debate.13.c
			trigger = { tag = SNM }
			ai_chance = {
				base = 50
			}
		}
		
		# USA-specific option
		option = {
			name = usa_slavery_debate.13.e
			trigger = { tag = USA }
		}
	}

	country_event = {
		id = usa_slavery_debate.14
		title = usa_slavery_debate.14.t
		desc = usa_slavery_debate.14.d

		hidden = yes
		is_triggered_only = yes
		fire_only_once = yes

		immediate = {}

		option = {
			name = usa_slavery_debate.14.a
		}
	}

############################## BLEEDING KANSAS #############################

	# Kansas-Nebraska Act
	country_event = {
		id = usa_slavery_debate.15
		title = usa_slavery_debate.1.t
		desc = usa_slavery_debate.1.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			if = {
				limit = { owns_state = 383 }
				383 = {
					add_manpower = 2500
				}
			}

			hidden_effect = {
				country_event = { id = usa_slavery_debate.16 days = 3 }
				country_event = { id = usa_slavery_debate.17 days = 85 }
				country_event = { id = usa_slavery_debate.18 days = 125 }
				country_event = { id = usa_slavery_debate.19 days = 145 }
				country_event = { id = usa_slavery_debate.20 days = 170 }
				country_event = { id = usa_slavery_debate.21 days = 235 }
				country_event = { id = usa_slavery_debate.22 days = 330 }
				# kansas.9 is news event
				country_event = { id = usa_slavery_debate.24 days = 337 }
				country_event = { id = usa_slavery_debate.26 days = 590 }
				country_event = { id = usa_slavery_debate.28 days = 829 }
			}
		}

		option = {
			name = usa_slavery_debate.15.a
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -2 }
			USA_Slavery_Debate_Tension_Modify = yes
		}
	}

	# Governor Walker
	country_event = {
		id = usa_slavery_debate.16
		title = usa_slavery_debate.16.t
		desc = usa_slavery_debate.16.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 1 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.16.a
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -2 }
			USA_Slavery_Debate_Tension_Modify = yes
			ai_chance = { base = 100 }
		}
		option = {
			name = usa_slavery_debate.16.b
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 1 }
			USA_Slavery_Debate_Tension_Modify = yes
			ai_chance = { base = 0 }
		}
	}

	# Bushwhackers boycott Convention
	country_event = {
		id = usa_slavery_debate.17
		title = usa_slavery_debate.17.t
		desc = usa_slavery_debate.17.d
		
		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 1 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.17.a
			if = {
				limit = { check_variable = { prestige_score > 1 } }
				subtract_from_variable = { prestige_score = 1 }
			}
		}
		option = {
			name = usa_slavery_debate.17.b
			if = {
				limit = { check_variable = { prestige_score > 1 } }
				subtract_from_variable = { prestige_score = 1 }
			}
		}
	}

	# Lecompton Convention
	country_event = {
		id = usa_slavery_debate.18
		title = usa_slavery_debate.18.t
		desc = usa_slavery_debate.18.d
		picture = GFX_report_event_usa_election_generic
		
		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -3 }
			USA_Slavery_Debate_Tension_Modify = yes
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 2 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}

		option = {
			name = usa_slavery_debate.18.a
			add_political_power = 15
		}
	}

	# Lecompton Constitution
	country_event = {
		id = usa_slavery_debate.19
		title = usa_slavery_debate.19.t
		desc = usa_slavery_debate.19.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 6 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.19.a
			ai_chance = { base = 100 }
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -1 }
			USA_Slavery_Debate_Tension_Modify = yes
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 1 }
			USA_Slavery_Debate_Leaning_Modify = yes
			add_political_power = 15
		}
		option = {
			name = usa_slavery_debate.19.b
			ai_chance = { base = 0 }
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 4 }
			USA_Slavery_Debate_Leaning_Modify = yes
			add_political_power = 20
		}
	}

	# Votes on Lecompton
	country_event = {
		id = usa_slavery_debate.20
		title = usa_slavery_debate.20.t
		desc = usa_slavery_debate.20.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 4 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.20.a
			ai_chance = { base = 100 }
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -1 }
			USA_Slavery_Debate_Tension_Modify = yes
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -2 }
			USA_Slavery_Debate_Leaning_Modify = yes
			add_political_power = 15
		}
		option = {
			name = usa_slavery_debate.20.b
			ai_chance = { base = 0 }
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 4 }
			USA_Slavery_Debate_Leaning_Modify = yes
			add_political_power = 20
		}
	}

	# Fraud
	country_event = {
		id = usa_slavery_debate.21
		title = usa_slavery_debate.21.t
		desc = usa_slavery_debate.21.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 4 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.21.a
			ai_chance = { base = 100 }
			hidden_effect = {
				#country_event = { id = usa_slavery_debate.25 days = 90 }
				set_country_flag = Kansas_halfway
			}
		}
		option = {
			name = usa_slavery_debate.21.b
			ai_chance = { base = 0 }
			set_country_flag = Kansas_slave
			# 383 = { set_state_flag = NA_B_Slave_Kansas }
			# activate_mission = USA_Slavery_Debate_Kansas_Statehood_Mission
		}
	}

	# Marais des Cgynes
	country_event = {
		id = usa_slavery_debate.22
		title = usa_slavery_debate.22.t
		desc = usa_slavery_debate.22.d

		fire_only_once = yes
		is_triggered_only = yes
		trigger = {
			tag = USA
			exists = yes
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 6 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.22.a
			ai_chance = { base = 100 }
			hidden_effect = {
				news_event = usa_slavery_debate.23	
			}
		}
		option = {
			name = usa_slavery_debate.22.b
			ai_chance = { base = 0 }
			hidden_effect = {
				news_event = usa_slavery_debate.23
			}
		}
	}

	# Marai des Cygnes
	news_event = {
		id = usa_slavery_debate.23
		title = usa_slavery_debate.23.t
		desc = usa_slavery_debate.23.d
		picture = GFX_news_event_072

		is_triggered_only = yes
		major = yes
		trigger = {
			country_exists = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		option = {
			name = usa_slavery_debate.9.a
		}
	}

	# Occupation of Kansas
	country_event = {
		id = usa_slavery_debate.24
		title = usa_slavery_debate.24.t
		desc = usa_slavery_debate.24.d
		picture = GFX_report_event_german_reichstag_gathering

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.24.a
			add_political_power = 5
			add_timed_idea = {
				idea = Generic_Satisfy_Public_2
				days = 25
			}
		}
	}

	# Second Vote on Lecompton
	country_event = {
		id = usa_slavery_debate.25
		title = usa_slavery_debate.25.t
		desc = usa_slavery_debate.25.d
		picture = GFX_report_event_usa_election_generic

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -6 }
			USA_Slavery_Debate_Leaning_Modify = yes
			hidden_effect = {
				country_event = { id = usa_slavery_debate.27 days = 170 }
			}
		}

		option = {
			name = usa_slavery_debate.25.a
		}
	}

	# Battle of the Spurs
	country_event = {
		id = usa_slavery_debate.26
		title = usa_slavery_debate.26.t
		desc = usa_slavery_debate.26.d
		picture = GFX_report_event_usa_election_generic

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 3 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}

		option = {
			name = usa_slavery_debate.26.a
		}
	}

	# Wyandotte Convention
	country_event = {
		id = usa_slavery_debate.27
		title = usa_slavery_debate.27.t
		desc = usa_slavery_debate.27.d
		picture = GFX_report_event_usa_election_generic

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -6 }
			USA_Slavery_Debate_Leaning_Modify = yes
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -2 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.27.a
			383 = { set_state_flag = NA_B_Free_Kansas }
			activate_mission = USA_Slavery_Debate_Kansas_Statehood_Mission
		}
	}

	#Raid on Harper Ferry
	country_event = {
		id = usa_slavery_debate.28
		title = usa_slavery_debate.28.t
		desc = usa_slavery_debate.28.d
		picture = GFX_report_event_yugoslavian_cavalry

		is_triggered_only = yes
		fire_only_once = yes

		trigger = {
			country_exists = USA
			NOT = {
				has_global_flag = ACW_American_Civil_War_Avoided
				has_global_flag = ACW_American_Civil_War_Happened
			}
		}

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 2 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.28.a
			ai_chance = { base = 100 }
			add_political_power = -25
			country_event = { id = usa_slavery_debate.30 days = 3 }
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 5 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
		option = {
			name = usa_slavery_debate.28.b
			ai_chance = { base = 0 }
			country_event = { id = usa_slavery_debate.29 days = 15 }
		}
		option = {
			name = usa_slavery_debate.28.c
			ai_chance = { base = 0 }
			add_political_power = -25
			country_event = { id = usa_slavery_debate.31 days = 3 }
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -5 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}
	}

	# John Brown's Trial
	country_event = {
		id = usa_slavery_debate.29
		title = usa_slavery_debate.29.t
		desc = usa_slavery_debate.29.d

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 3 }
			USA_Slavery_Debate_Leaning_Modify = yes
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = -5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}

		option = {
			name = usa_slavery_debate.29.a
			add_political_power = -50
			country_event = usa_slavery_debate.30
		}
	}
			

	#John Brown Executed
	country_event = {
		id = usa_slavery_debate.30
		title = usa_slavery_debate.30.t
		desc = usa_slavery_debate.30.d
		picture = GFX_report_event_generic_riot

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 2 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}

		option = {
			name = usa_slavery_debate.30.a
		}
		option = {
			name = usa_slavery_debate.30.b
		}
		option = {
			name = usa_slavery_debate.30.c
		}
		option = {
			name = usa_slavery_debate.30.e
		}
	}
	#Pardon For John Brown event 
	country_event = {
		id = usa_slavery_debate.31
		title = usa_slavery_debate.31.t
		desc = usa_slavery_debate.31.d
		picture = GFX_report_event_generic_riot

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 2 }
			USA_Slavery_Debate_Leaning_Modify = yes
		}

		option = {
			name = usa_slavery_debate.31.a
		}
	}
################################ SECESSION #################################

	# Hidden Setup for Confederacy
	country_event = {
		id = usa_slavery_debate.32
		title = usa_slavery_debate.32.t
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			USA = {
				country_event = usa_slavery_debate.33
				country_event = { id = usa_slavery_debate.34 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.35 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.36 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.37 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.38 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.39 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.40 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.41 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.42 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.43 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.44 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.45 days = 10 random_days = 90 }
				country_event = { id = usa_slavery_debate.46 days = 10 random_days = 90 }
			}
			CSA = {
				country_event = { id = csa.1 days = 91 }
			}
		}
	}

	# South Carolina
	country_event = {
		id = usa_slavery_debate.33
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			# country_event = usa_slavery_debate.47
			every_other_country = {
				news_event = { id = usa_slavery_debate.48 days = 1 }
			}
			country_event = {
				id = csa.11
				days = 1
			}
			country_event = {
				id = csa.22
				days = 3650
				random_days = 4150
			}
		}
	}

	# Texas
	country_event = {
		id = usa_slavery_debate.34
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.49
			CSA = { news_event = { id = usa_slavery_debate.49 days = 1 } }
		}
	}

	# Louisiana
	country_event = {
		id = usa_slavery_debate.35
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.50
			CSA = { news_event = { id = usa_slavery_debate.50 days = 1 } }
		}
	}

	# Arkansas
	country_event = {
		id = usa_slavery_debate.36
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.51
			CSA = { news_event = { id = usa_slavery_debate.51 days = 1 } }
		}
	}

	# Kansas
	country_event = {
		id = usa_slavery_debate.37
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.52
			CSA = { news_event = { id = usa_slavery_debate.52 days = 1 } }
		}
	}

	# Missouri
	country_event = {
		id = usa_slavery_debate.38
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.53
			CSA = { news_event = { id = usa_slavery_debate.53 days = 1 } }
		}
	}

	# Tennessee
	country_event = {
		id = usa_slavery_debate.39
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.54
			CSA = { news_event = { id = usa_slavery_debate.54 days = 1 } }
		}
	}

	# Mississippi
	country_event = {
		id = usa_slavery_debate.40
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.55
			CSA = { news_event = { id = usa_slavery_debate.55 days = 1 } }
		}
	}

	# Alabama
	country_event = {
		id = usa_slavery_debate.41
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.56
			CSA = { news_event = { id = usa_slavery_debate.56 days = 1 } }
		}
	}

	# Florida
	country_event = {
		id = usa_slavery_debate.42
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.57
			CSA = { news_event = { id = usa_slavery_debate.57 days = 1 } }
		}
	}

	# Georgia
	country_event = {
		id = usa_slavery_debate.43
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.58
			CSA = { news_event = { id = usa_slavery_debate.58 days = 1 } }
		}
	}

	# North Carolina
	country_event = {
		id = usa_slavery_debate.44
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.59
			CSA = { news_event = { id = usa_slavery_debate.59 days = 1 } }
		}
	}

	# Virginia
	country_event = {
		id = usa_slavery_debate.45
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.60
			CSA = { news_event = { id = usa_slavery_debate.60 days = 1 } }
		}
	}

	# Cuba
	country_event = {
		id = usa_slavery_debate.46
		hidden = yes

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			news_event = usa_slavery_debate.61
			CSA = { news_event = { id = usa_slavery_debate.61 days = 1 } }
		}
	}

	# CSA Secedes 
	country_event = {
		id = usa_slavery_debate.47
		title = usa_slavery_debate.47.t  # Fixed title to match event ID
		desc = {
			trigger = { USA = { NOT = { has_country_flag = USA_BellElected } } }
			text = usa_slavery_debate.47.d_lincoln  # Updated to match event ID
		}
		desc = {
			trigger = { USA = { has_country_flag = USA_BellElected } }
			text = usa_slavery_debate.47.d_bell  # Updated to match event ID
		}
		picture = GFX_report_event_generic_riot

		is_triggered_only = yes
		fire_only_once = yes

		immediate = {
			if = {
				limit = { tag = USA }
				remove_state_core = 364
				
				hidden_effect = {
					add_state_claim = 364
					set_variable = { rival_country = CSA.id }
					
					every_owned_state = {
						limit = {
							OR = {
								state = 315  state = 1350  state = 1022  state = 362   state = 746
								state = 365  state = 366   state = 367   state = 368   state = 369
								state = 370  state = 371   state = 372   state = 373   state = 374
								state = 375  state = 363   state = 1285  state = 1406
							}
							controller = { tag = USA }  # Simplified control check
						}
						set_demilitarized_zone = yes
					}
					
					# Special case for Kansas with state flag check
					if = {
						limit = { 
							owns_state = 383
							controls_state = 383
							383 = { has_state_flag = NA_B_Slave_Kansas } 
						}
						383 = { set_demilitarized_zone = yes }
					}
					
					# Fire related events
					country_event = usa_slavery_debate.32
					news_event = { id = acw_generic.1 days = 35 }
					
					# CSA setup 
					CSA = {
						# Handle capital state transfer (364 or fallback)
						if = {
							limit = { USA = { owns_state = 364 } }
							transfer_state = 364
							add_state_core = 364
							set_capital = { state = 364 }
						}
						else = {
							# Fallback: transfer any demilitarized state as capital
							USA = {
								random_owned_state = {
									limit = { is_demilitarized_zone = yes }
									CSA = {
										transfer_state = PREV
										add_state_core = PREV
										set_capital = { state = PREV }
									}
								}
							}
						}

						# CSA initialization
						set_variable = { rival_country = USA.id }
						inherit_technology = USA
						set_politics = { ruling_party = radical_democracy }
						add_popularity = { ideology = radical_democracy popularity = 0.35 }

						# Variable inheritance from USA
						set_global_flag = CSA_NA_B_idea_working_class_exploitation_score_var_set_flag
						set_variable = { 
							var = CSA.NA_B_idea_working_class_exploitation_score_var@CSA 
							value = USA.NA_B_idea_working_class_exploitation_score_var@USA 
						}
						set_variable = { 
							var = CSA.NA_B_idea_working_class_organization_score_var@CSA 
							value = USA.NA_B_idea_working_class_organization_score_var@USA 
						}
						
						# CSA-specific events and ideas
						add_ideas = CSA_Slavery_Conscription
						news_event = { id = acw_generic.1 days = 35 }
						country_event = balkanized_usa.10
						country_event = { id = csa.1 days = 75 }
					}
				}
			}
		}

		# USA stays - main path
		option = {
			name = usa_slavery_debate.47.a  # Updated to match event ID
			trigger = { tag = USA }
			ai_chance = { base = 100 }
			
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			add_timed_idea = {
				idea = USA_Spirit_Southern_Secession_Crisis
				days = 120
			}
		}
		
		# Player chooses to play as CSA
		option = {
			name = usa_slavery_debate.47.b  # Updated to match event ID
			trigger = { tag = USA }
			ai_chance = { factor = 0 }
			
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			CSA = { change_tag_from = USA }
		}
	}

	# South Carolina
	news_event = {
		id = usa_slavery_debate.48
		title = usa_slavery_debate.48.t
		desc = {
			trigger = { USA = { NOT = { has_country_flag = USA_BellElected } } }
			text = usa_slavery_debate.48.d_lincoln
		}
		desc = {
			trigger = { USA = { has_country_flag = USA_BellElected } }
			text = usa_slavery_debate.48.d_bell
		}
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		option = {
			name = usa_slavery_debate.48.c
			trigger = { NOT = { tag = CSA } }
			ai_chance = { base = 100 }
		}
		option = {
			trigger = { tag = CSA }
			name = usa_slavery_debate.48.e
			ai_chance = { base = 100 }
			add_ideas = USA_Spirit_Civil_War_Initial_Disorganize
		}
	}

	# Texas
	news_event = {
		id = usa_slavery_debate.49
		title = usa_slavery_debate.49.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			OR = {
				375 = { is_owned_by = USA }
			}
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 375 } }
					remove_state_core = 375
					add_state_claim = 375
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 375 } }
					375 = { set_demilitarized_zone = no }
					transfer_state = 375
					add_state_core = 375
				}
				else = { add_state_claim = 375 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
			hidden_effect = {
				if = {
					limit = { has_country_flag = USA_Houston_Revolt_Marked }
					country_event = { id = acw_generic.101 days = 25 } # Houston Revolt
				}
			}
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Louisiana
	news_event = {
		id = usa_slavery_debate.50
		title = usa_slavery_debate.50.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			371 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 371 } }
					remove_state_core = 371
					add_state_claim = 371
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 371 } }
					371 = { set_demilitarized_zone = no }
					transfer_state = 371
					add_state_core = 371
				}
				else = { add_state_claim = 371 }
			}
		}
		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Arkansas
	news_event = {
		id = usa_slavery_debate.51
		title = usa_slavery_debate.51.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			372 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 372 } }
					remove_state_core = 372
					add_state_claim = 372
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 372 } }
					372 = { set_demilitarized_zone = no }
					transfer_state = 372
					add_state_core = 372
				}
				else = { add_state_claim = 372 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Kansas (CSA)
	news_event = {
		id = usa_slavery_debate.52
		title = usa_slavery_debate.52.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			383 = { has_state_flag = NA_B_Slave_Kansas }
			383 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 374 } }
					remove_state_core = 374
					add_state_claim = 374
				}
				if = {
					limit = { USA = { owns_state = 383 } }
					remove_state_core = 383
					add_state_claim = 383
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 374 } }
					374 = { set_demilitarized_zone = no }
					transfer_state = 374
					add_state_core = 374
				}
				else = { add_state_claim = 374 }
				if = {
					limit = { USA = { controls_state = 383 } }
					383 = { set_demilitarized_zone = no }
					transfer_state = 383
					add_state_core = 383
				}
				else = { add_state_claim = 383 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Missouri
	news_event = {
		id = usa_slavery_debate.53
		title = usa_slavery_debate.53.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			OR = {
				AND = {
					373 = { has_state_flag = NA_B_Slave_Kansas }
					373 = { is_owned_by = USA }
				}
			}
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 373 } }
					remove_state_core = 373
					add_state_claim = 373
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 373 } }
					373 = { set_demilitarized_zone = no }
					transfer_state = 373
					add_state_core = 373
				}
				else = { add_state_claim = 373 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Tennessee
	news_event = {
		id = usa_slavery_debate.54
		title = usa_slavery_debate.54.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			368 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 368 } }
					remove_state_core = 368
					add_state_claim = 368
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 368 } }
					368 = { set_demilitarized_zone = no }
					transfer_state = 368
					add_state_core = 368
				}
				else = { add_state_claim = 368 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Mississippi
	news_event = {
		id = usa_slavery_debate.55
		title = usa_slavery_debate.55.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			370 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 370 } }
					remove_state_core = 370
					add_state_claim = 370
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 370 } }
					370 = { set_demilitarized_zone = no }
					transfer_state = 370
					add_state_core = 370
				}
				else = { add_state_claim = 370 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }	
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Alabama
	news_event = {
		id = usa_slavery_debate.56
		title = usa_slavery_debate.56.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			367 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 367 } }
					remove_state_core = 367
					add_state_claim = 367
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 367 } }
					367 = { set_demilitarized_zone = no }
					transfer_state = 367
					add_state_core = 367
				}
				else = { add_state_claim = 367 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Florida
	news_event = {
		id = usa_slavery_debate.57
		title = usa_slavery_debate.57.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			366 = { is_owned_by = USA }
			1406 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 366 } }
					remove_state_core = 366
					remove_state_core = 1406
					add_state_claim = 366
					add_state_claim = 1406
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 366 } }
					366 = { set_demilitarized_zone = no }
					1406 = { set_demilitarized_zone = no }
					transfer_state = 366
					transfer_state = 1406
					add_state_core = 366
					add_state_core = 1406
				}
				else = { 
					add_state_claim = 366 
					add_state_claim = 1406
				}
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Georgia
	news_event = {
		id = usa_slavery_debate.58
		title = usa_slavery_debate.58.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			365 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 365 } }
					remove_state_core = 365
					add_state_claim = 365
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 365 } }
					365 = { set_demilitarized_zone = no }
					transfer_state = 365
					add_state_core = 365
				}
				else = { add_state_claim = 365 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# North Carolina
	news_event = {
		id = usa_slavery_debate.59
		title = usa_slavery_debate.59.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			363 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 363 } }
					remove_state_core = 363
					add_state_claim = 363
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 363 } }
					363 = { set_demilitarized_zone = no }
					transfer_state = 363
					add_state_core = 363
				}
				else = { add_state_claim = 363 }
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Virginia
	news_event = {
		id = usa_slavery_debate.60
		title = usa_slavery_debate.60.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			362 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 362 } }
					remove_state_core = 362
					add_state_claim = 362
				}
				if = {
					limit = { USA = { owns_state = 746 } }
					remove_state_core = 746
					add_state_claim = 746
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 362 } }
					362 = { set_demilitarized_zone = no }
					transfer_state = 362
					add_state_core = 362
				}
				else = { add_state_claim = 362 }
				hidden_effect = {
					if = {
						limit = { USA = { controls_state = 746 } }
						746 = { set_demilitarized_zone = no }
						transfer_state = 746
						add_state_core = 746
					}
					else = { add_state_claim = 746 }
				}
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# Cuba
	news_event = {
		id = usa_slavery_debate.61
		title = usa_slavery_debate.61.t
		desc = usa_slavery_debate.49.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = CSA
			315 = { is_owned_by = USA }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 315 } }
					remove_state_core = 315
					add_state_claim = 315
				}
				if = {
					limit = { USA = { owns_state = 1022 } }
					remove_state_core = 1022
					add_state_claim = 1022
				}
				if = {
					limit = { USA = { owns_state = 1350 } }
					remove_state_core = 1350
					add_state_claim = 1350
				}
			}
			else_if = {
				limit = { tag = CSA }
				if = {
					limit = { USA = { controls_state = 315 } }
					315 = { set_demilitarized_zone = no }
					transfer_state = 315
					add_state_core = 315
				}
				else = { add_state_claim = 315 }
				hidden_effect = {
					if = {
						limit = { USA = { controls_state = 1022 } }
						1022 = { set_demilitarized_zone = no }
						transfer_state = 1022
						add_state_core = 1022
					}
					else = { add_state_claim = 1022 }
					if = {
						limit = { USA = { controls_state = 1350 } }
						1350 = { set_demilitarized_zone = no }
						transfer_state = 1350
						add_state_core = 1350
					}
					else = { add_state_claim = 1350 }
				}
			}
		}

		option = {
			name = usa_slavery_debate.49.a
			trigger = { tag = USA }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateS_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.49.b
			trigger = { tag = CSA }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# CSA Balkanized
	country_event = {
		id = usa_slavery_debate.62
		title = usa_slavery_debate.62.t
		desc = usa_slavery_debate.62.d
		picture = GFX_news_event_south_carolina

		fire_only_once = yes
		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				add_popularity = {
					ideology = traditional_conservatism
					popularity = -0.19
				}
				USA = {
					remove_ideas = USA_Spirit_Southern_Secession_Crisis
					if = {
						limit = { NOT = { has_country_flag = USA_LincolnorDouglas_Moderate_Appeal } }
						remove_state_core = 746
						add_state_claim = 746
					}
					remove_state_core = 362
					add_state_claim = 362
					remove_state_core = 363
					add_state_claim = 363
					remove_state_core = 364
					add_state_claim = 364
					remove_state_core = 365
					add_state_claim = 365
					if = {
						limit = { owns_state = 366 }
						remove_state_core = 366
						add_state_claim = 366
					}
					remove_state_core = 367
					add_state_claim = 367
					remove_state_core = 368
					add_state_claim = 368
					remove_state_core = 370
					add_state_claim = 370
					remove_state_core = 371
					add_state_claim = 371
					remove_state_core = 372
					add_state_claim = 372
					if = {
						limit = { owns_state = 315 }
						remove_state_core = 315
						add_state_claim = 315
					}
					if = {
						limit = { owns_state = 1022 }
						remove_state_core = 1022
						add_state_claim = 1022
					}
				}
				CSA = {
					if = {
						limit = { NOT = { has_global_flag = CSA_NA_B_idea_working_class_exploitation_score_var_set_flag } }
						hidden_effect = {
							set_variable = { var = CSA.NA_B_idea_working_class_exploitation_score_var@CSA value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
							set_variable = { var = CSA.NA_B_idea_working_class_organization_score_var@CSA value = USA.NA_B_idea_working_class_organization_score_var@USA }
							country_event = { id = balkanized_usa.10 }
						}
						set_global_flag = CSA_NA_B_idea_working_class_exploitation_score_var_set_flag
					}
					if = {
						limit = { NOT = { USA = { has_country_flag = USA_LincolnorDouglas_Moderate_Appeal } } }
						transfer_state = 746
						add_state_core = 746
					}
					transfer_state = 362
					add_state_core = 362
					transfer_state = 363
					add_state_core = 363
					transfer_state = 364
					add_state_core = 364
					transfer_state = 365
					add_state_core = 365
					if = {
						limit = { USA = { owns_state = 366 } }
						transfer_state = 366
						add_state_core = 366
					}
					transfer_state = 367
					add_state_core = 367
					transfer_state = 368
					add_state_core = 368
					transfer_state = 370
					add_state_core = 370
					transfer_state = 371
					add_state_core = 371
					transfer_state = 372
					add_state_core = 372
					inherit_technology = USA
					country_event = { id = balkanized_usa.6 days = 2 }
					if = {
						limit = { NOT = { has_global_flag = NA_B_test_cuba_free } }
						if = {
							limit = { USA = { owns_state = 315 } }
							transfer_state = 315
							add_state_core = 315
						}
						if = {
							limit = { USA = { owns_state = 1022 } }
							transfer_state = 1022
							add_state_core = 1022
						}
					}
					else = {
						if = {
							limit = { USA = { owns_state = 315 } }
							CUB = {
								transfer_state = 315
								add_state_core = 315
							}
						}
						if = {
							limit = { USA = { owns_state = 1022 } }
							CUB = {
								transfer_state = 1022
								add_state_core = 1022
							}
						}
						CUB = {
							country_event = { id = balkanized_usa.6 days = 2 }
						}
					}
					CSA_character_robert_e_lee = {
						add_corps_commander_role = {
							traits = { brilliant_strategist unyielding_defender guerilla_fighter }
							skill = 4
							attack_skill = 5
							defense_skill = 5
							planning_skill = 1
							logistics_skill = 1
						}
					}
					CSA_character_stonewall_jackson = {
						add_corps_commander_role = {
							traits = { brilliant_strategist infantry_leader }
							skill = 3
							attack_skill = 6
							defense_skill = 1
							planning_skill = 1
							logistics_skill = 1
						}
					}
					CSA_character_edmund_kirby_smith = {
						add_corps_commander_role = {
							traits = {}
							skill = 3
							attack_skill = 3
							defense_skill = 4
							planning_skill = 1
							logistics_skill = 1
						}
					}
					CSA_character_leonidas_polk = {
						add_corps_commander_role = {
							traits = { politically_connected }
							skill = 1
							attack_skill = 3
							defense_skill = 4
							planning_skill = 1
							logistics_skill = 1
						}
					}
					CSA_character_william_j_hardee = {
						add_corps_commander_role = {
							traits = {}
							skill = 3
							attack_skill = 4
							defense_skill = 4
							planning_skill = 1
							logistics_skill = 1
						}
					}
					CSA_character_braxton_bragg = {
						add_corps_commander_role = {
							traits = { old_guard hill_fighter }
							skill = 2
							attack_skill = 3
							defense_skill = 3
							planning_skill = 1
							logistics_skill = 1
						}
					}
					CSA_character_joseph_e_jonston = {
						add_corps_commander_role = {
							traits = { urban_assault_specialist old_guard }
							skill = 3
							attack_skill = 2
							defense_skill = 3
							planning_skill = 4
							logistics_skill = 3
						}
					}
				}
			}
		}

		option = {
			name = acw_generic.62.a
		}
		option = {
			name = acw_generic.62.b
			trigger = { is_ai = no }
			hidden_effect = {
				CSA = { change_tag_from	= ROOT }
			}
		}
	}

	# Maine
	news_event = {
		id = usa_slavery_debate.63
		title = usa_slavery_debate.63.t
		desc = usa_slavery_debate.63.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		
		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 961
						}
					}
					961 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 961
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.63.a
			trigger = { tag = USA }
			ai_chance = { base = 100 }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.005 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.015 }
		}
		option = {
			name = usa_slavery_debate.63.b
			trigger = { tag = USA }
			ai_chance = { base = 0 }
			add_popularity = { ideology = ideology_social_liberalism popularity = 0.005 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.015 }
		}
	}

	# New Hampshire
	news_event = {
		id = usa_slavery_debate.64
		title = usa_slavery_debate.64.t
		desc = usa_slavery_debate.64.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 960
						}
					}
					960 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 960
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.64.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Vermont
	news_event = {
		id = usa_slavery_debate.65
		title = usa_slavery_debate.65.t
		desc = usa_slavery_debate.65.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 959
						}
					}
					959 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 959
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.64.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Massachusetts
	news_event = {
		id = usa_slavery_debate.66
		title = usa_slavery_debate.66.t
		desc = usa_slavery_debate.66.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 357
						}
					}
					357 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 357
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.66.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Rhode Island
	news_event = {
		id = usa_slavery_debate.67
		title = usa_slavery_debate.67.t
		desc = usa_slavery_debate.67.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 1031
						}
					}
					1031 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 1031
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.67.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Connecticut
	news_event = {
		id = usa_slavery_debate.68
		title = usa_slavery_debate.68.t
		desc = usa_slavery_debate.68.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 958
						}
					}
					958 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 958
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.68.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Pennsylvania
	news_event = {
		id = usa_slavery_debate.69
		title = usa_slavery_debate.69.t
		desc = usa_slavery_debate.69.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 360
						}
					}
					360 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 360
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.69.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Ohio
	news_event = {
		id = usa_slavery_debate.70
		title = usa_slavery_debate.70.t
		desc = usa_slavery_debate.70.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 261
						}
					}
					261 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 261
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.70.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Michigan
	news_event = {
		id = usa_slavery_debate.71
		title = usa_slavery_debate.71.t
		desc = usa_slavery_debate.71.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 393
						}
					}
					393 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 393
					}
				}
				if = {
					limit = {
						USA = {
							owns_state = 1358
						}
					}
					1358 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 1358
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.71.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Indiana
	news_event = {
		id = usa_slavery_debate.72
		title = usa_slavery_debate.72.t
		desc = usa_slavery_debate.72.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 396
						}
					}
					396 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 396
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.72.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Wisconsin
	news_event = {
		id = usa_slavery_debate.73
		title = usa_slavery_debate.73.t
		desc = usa_slavery_debate.73.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 394
						}
					}
					394 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 394
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.73.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Illinois
	news_event = {
		id = usa_slavery_debate.74
		title = usa_slavery_debate.74.t
		desc = usa_slavery_debate.74.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 395
						}
					}
					395 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 395
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.74.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Minnesota
	news_event = {
		id = usa_slavery_debate.75
		title = usa_slavery_debate.75.t
		desc = usa_slavery_debate.75.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 391
						}
					}
					391 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 391
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.75.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Iowa
	news_event = {
		id = usa_slavery_debate.76
		title = usa_slavery_debate.76.t
		desc = usa_slavery_debate.76.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 392
						}
					}
					392 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 392
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.76.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# California
	news_event = {
		id = usa_slavery_debate.77
		title = usa_slavery_debate.77.t
		desc = usa_slavery_debate.77.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes
		trigger = {
			country_exists = USA
			country_exists = NEG
			NOT = { country_exists = CAL }
		}

		immediate = {
			if = {
				limit = { tag = USA }
				if = {
					limit = { USA = { owns_state = 378 } }
					remove_state_core = 378
					add_state_claim = 378
				}
				if = {
					limit = { USA = { owns_state = 1342 } }
					remove_state_core = 1342
					add_state_claim = 1342
				}
				if = {
					limit = { USA = { owns_state = 1343 } }
					remove_state_core = 1343
					add_state_claim = 1343
				}
				hidden_effect = {
					NEG = { news_event = { id = usa_slavery_debate.77 days = 1 } }
				}
			}
			else_if = {
				limit = { tag = NEG }
				if = {
					limit = { USA = { owns_state = 378 } }
					378 = { set_demilitarized_zone = no }
					transfer_state = 378
					add_state_core = 378
				}
				else = { add_state_claim = 378 }
				if = {
					limit = { USA = { owns_state = 1342 } }
					1342 = { set_demilitarized_zone = no }
					transfer_state = 1342
					add_state_core = 1342
				}
				else = { add_state_claim = 1342 }
				if = {
					limit = { USA = { owns_state = 1343 } }
					1343 = { set_demilitarized_zone = no }
					transfer_state = 1343
					add_state_core = 1343
				}
				else = { add_state_claim = 1343 }
			}
		}

		option = {
			name = usa_slavery_debate.77.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
		option = {
			name = usa_slavery_debate.64.b
			trigger = { tag = NEG }
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
		}
	}

	# New York
	news_event = {
		id = usa_slavery_debate.78
		title = usa_slavery_debate.78.t
		desc = usa_slavery_debate.78.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 358
						}
					}
					358 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 358
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.78.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# New Jersey
	news_event = {
		id = usa_slavery_debate.79
		title = usa_slavery_debate.79.t
		desc = usa_slavery_debate.79.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 359
						}
					}
					359 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 359
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.79.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Nebraska (FSA)
	news_event = {
		id = usa_slavery_debate.80
		title = usa_slavery_debate.80.t
		desc = usa_slavery_debate.80.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 384
						}
					}
					384 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 384
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.80.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

	# Kansas (FSA)
	news_event = {
		id = usa_slavery_debate.81
		title = usa_slavery_debate.81.t
		desc = usa_slavery_debate.81.d
		picture = GFX_news_event_south_carolina

		is_triggered_only = yes

		immediate = {
			hidden_effect = {
				if = {
					limit = {
						USA = {
							owns_state = 383
						}
					}
					383 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 383
					}
				}
				if = {
					limit = {
						USA = {
							owns_state = 1052
						}
					}
					1052 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 1052
					}
				}
				if = {
					limit = {
						USA = {
							owns_state = 1296
						}
					}
					1296 = { set_demilitarized_zone = yes }
					USA = {
						remove_state_core = 1296
					}
				}
			}
		}

		option = {
			name = usa_slavery_debate.81.a
			trigger = { tag = USA }
			add_popularity = { ideology = radical_democracy popularity = 0.015 }
			add_popularity = { ideology = traditional_conservatism popularity = 0.005 }
			USA_Slavery_Debate_StateF_Count_Modify2 = yes
		}
	}

################################# GENERIC ##################################

# Fort Sumter
news_event = {
	id = acw_generic.1
	title = acw_generic.1.t
	desc = {
		text = acw_generic.1.d_usa
		trigger = { tag = USA }
	}
	desc = {
		text = acw_generic.1.d_csa
		trigger = { tag = CSA }
	}
	picture = GFX_news_event_fort_sumter

	is_triggered_only = yes
	trigger = {
		country_exists = USA
		country_exists = CSA
	}

	immediate = { 
		hidden_effect = {
			if = {
				limit = { tag = USA }
				set_global_flag = ACW_American_Civil_War_Start
				country_event = { id = acw_generic.5 days = 14 }
				country_event = { id = acw_generic.6 days = 20 }
				country_event = { id = acw_generic.7 days = 40 }
				country_event = { id = acw_generic.8 days = 60 }
				activate_mission = eoanb_decision_acw_brewing
				add_ideas = {
					USA_Spirit_American_Civil_War
				}
				every_other_country = {
					news_event = acw_generic.1
				}
			}
			else_if = {
				limit = { tag = CSA }
				country_event = { id = acw_generic.6 days = 20 }
				country_event = { id = acw_generic.7 days = 40 }
				country_event = { id = acw_generic.8 days = 60 }
				activate_mission = eoanb_decision_acw_brewing
				add_ideas = {
					USA_Spirit_American_Civil_War
					CSA_Civil_War_Scout_Dependency
				}
			}
			USA = {
				country_event = {
					id = acw_generic.44
					days = 204
				}
				country_event = {
					id = acw_generic.45
					days = 842
				}
			}
		}
	}

	option = {
		name = acw_generic.1.a
		trigger = { tag = CSA }
		add_war_support = 0.05
		add_political_power = 35
		hidden_effect = { news_event = { id = acw_generic.2 days = 5 } }
	}

	option = {
		name = acw_generic.1.b
		trigger = { tag = USA }
		add_war_support = 0.05
		add_political_power = 35
	}
	option = {
		name = acw_generic.1.c
		trigger = { NOT = { tag = USA tag = CSA } }
	}
}

news_event = {
	id = acw_generic.2
	title = acw_generic.2.t
	desc = {
		text = acw_generic.2.d_usa
		trigger = { tag = USA }
	}
	desc = {
		text = acw_generic.2.d_csa
		trigger = { tag = CSA}
	}
	desc = {
		text = acw_generic.2.d_other
		trigger = { NOT = { tag = USA tag = CSA } }
	}

	major = yes
	picture = GFX_news_event_fort_sumter

	is_triggered_only = yes
	
	option = {
		name = acw_generic.2.a
		trigger = { tag = USA }
		set_temp_variable = { acw_weapons_count_change = 16 }
		ACW_Weapons_Count_Get = yes
		set_temp_variable = { acw_draft_count_change = 18 }
		ACW_Draft_Count_Get = yes
		add_ideas = USA_Spirit_American_Civil_War_Army_Incompetency1
	}
	option = {
		name = acw_generic.2.b
		trigger = { tag = CSA }
		if = {
			limit = { NOT = { has_country_flag = CSA_fort_sumter } }
			set_temp_variable = { acw_weapons_count_change = 5 }
			ACW_Weapons_Count_Get = yes
			set_temp_variable = { acw_draft_count_change = 3 }
			ACW_Draft_Count_Get = yes

			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			hidden_effect = {
				set_country_flag = CSA_fort_sumter
				complete_national_focus = CSA_civil_war_sumter
				add_named_threat = {
					threat = 2
					name = "Siege of Fort Sumter"
				}
				country_event = csa.11
			}
		}
	}
	option = {
		name = acw_generic.2.c
		trigger = { NOT = { tag = USA tag = CSA } }
	}
}

# Boston Harbor
news_event = {
	id = acw_generic.3
	title = acw_generic.3.t
	desc = acw_generic.3.d
	picture = GFX_news_event_fort_sumter

	hidden = yes

	is_triggered_only = yes
	trigger = {
		country_exists = USA
		country_exists = NEG
	}

}

# Rebelling States continue to stop access
country_event = {
	id = acw_generic.5
	title = acw_generic.5.t
	desc = {
		text = acw_generic.5.d
		trigger = { country_exists = CSA }
	}
	desc = {
		text = acw_generic.5.d_northrebel
		trigger = { has_global_flag = ACW_Free_States_Rebelled }
	}
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_generic.5.a
		trigger = { tag = USA }
		add_command_power = 5
		set_temp_variable = { acw_weapons_count_change = 2 }
		ACW_Weapons_Count_Get = yes
		set_temp_variable = { acw_draft_count_change = 2 }
		ACW_Draft_Count_Get = yes
		hidden_effect = {
			CSA = { country_event = acw_generic.5 }
		}
	}
	option = {
		name = acw_generic.5.b
		trigger = { tag = CSA }
		add_political_power = 10
		add_manpower = 1500
	}
}

# Border Incident 1
country_event = {
	id = acw_generic.6
	title = acw_generic.6.t
	desc = acw_generic.6.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = {
		name = acw_generic.6.a
		custom_effect_tooltip = 09_ACW_GENERIC_tt
		add_war_support = 0.01
		set_temp_variable = { acw_weapons_count_change = 2 }
		ACW_Weapons_Count_Get = yes
		set_temp_variable = { acw_draft_count_change = 2 }
		ACW_Draft_Count_Get = yes
		if = {
			limit = { tag = USA }
			add_ideas = Generic_National_Riot_1
		}
	}
}

# Border Incident 2
country_event = {
	id = acw_generic.7
	title = acw_generic.6.t
	desc = acw_generic.7.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	option = {
		name = acw_generic.6.a
		custom_effect_tooltip = 09_ACW_GENERIC_tt
		add_war_support = 0.01
		set_temp_variable = { acw_weapons_count_change = 2 }
		ACW_Weapons_Count_Get = yes
		set_temp_variable = { acw_draft_count_change = 2 }
		ACW_Draft_Count_Get = yes
	}
}

# Border Incident 3
country_event = {
	id = acw_generic.8
	title = acw_generic.6.t
	desc = acw_generic.8.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes

	immediate = {
		if = {
			limit = { OR = { tag = USA tag = CAL tag = NEG tag = CSA } }
			every_owned_state = { set_demilitarized_zone = no }
		}
	}

	option = {
		name = acw_generic.6.a
		custom_effect_tooltip = 09_ACW_GENERIC_tt
		add_war_support = 0.01
		set_temp_variable = { acw_weapons_count_change = 4 }
		ACW_Weapons_Count_Get = yes
		set_temp_variable = { acw_draft_count_change = 4 }
		ACW_Draft_Count_Get = yes
	}
}

# Civil War Breaks out
news_event = {
	id = acw_generic.9
	title = acw_generic.9.t
	desc = {
		text = acw_generic.9.d
		trigger = { country_exists = CSA }
	}
	desc = {
		text = acw_generic.9.d_northrebels
		trigger = { country_exists = NEG }
	}
	picture = GFX_news_event_fort_sumter

	is_triggered_only = yes
	major = yes

	immediate = {
		hidden_effect = {
			set_global_flag = ACW_Confederate_States_Rebelled
			
			# Apply player nerf to all ACW participants
			if = {
				limit = { OR = { tag = USA tag = CAL tag = NEG tag = CSA } }
				add_ideas = USA_Spirit_American_Civil_War_Player_Nerf
			}
			
			# USA setup
			if = {
				limit = { tag = USA }
				add_stability = 0.15
				add_war_support = 0.10
				
				country_event = { id = acw_first_nations.7 days = 10 }
				if = {
					limit = { has_completed_focus = USA_Focus_PACW_The_Abolitionists }
					country_event = { id = acw_generic.15 days = 30 random_days = 45 }
				}
				country_event = { id = acw_generic.135 days = 17 }
				country_event = { id = usa.312 days = 1 }
				
				clr_global_flag = ACW_American_Civil_War_Start
				set_global_flag = ACW_American_Civil_War
				add_ideas = USA_Spirit_American_Civil_War_Historical_Buff
				
				set_temp_variable = { acw_weapons_count_change = 30 }
				ACW_Weapons_Count_Get = yes
				set_temp_variable = { acw_draft_count_change = 22 }
				ACW_Draft_Count_Get = yes
				USA_Slavery_Debate_Remove = yes
				
				load_oob = USA_Standard_ACW
				activate_mission = eoanb_decision_acw_csa_surrender_to_usa_union
				activate_mission = eoanb_decision_acw_usa_surrender_to_csa_union
				activate_decision = eoanb_decision_acw_reform_west_point1
				
				CSA = { 
					load_oob = CSA_Standard_ACW
					activate_mission = eoanb_decision_acw_csa_surrender_to_usa_dixie
					activate_mission = eoanb_decision_acw_usa_surrender_to_csa_dixie
				}
			}
			
			# Handle other factions with consolidated logic
			if = {
				limit = { OR = { tag = CSA tag = NEG tag = CAL } }
				add_stability = 0.10
				add_war_support = 0.10
				
				# Set faction-specific values
				if = {
					limit = { tag = CSA }
					set_temp_variable = { acw_weapons_count_change = 15 }
					set_temp_variable = { acw_draft_count_change = 10 }
				}
				else_if = {
					limit = { tag = NEG }
					set_temp_variable = { acw_weapons_count_change = 25 }
					set_temp_variable = { acw_draft_count_change = 15 }
				}
				else_if = {
					limit = { tag = CAL }
					set_temp_variable = { acw_weapons_count_change = 20 }
					set_temp_variable = { acw_draft_count_change = 8 }
				}
				
				ACW_Weapons_Count_Get = yes
				ACW_Draft_Count_Get = yes
			}
		}
	}

	option = {
		trigger = { tag = USA }
		name = acw_generic.9.a
		custom_effect_tooltip = 07_ACW_GENERIC_tt
		
		add_popularity = {
			ideology = traditional_conservatism
			popularity = -0.15
		}
		
		if = {
			limit = { is_ai = no }
			set_variable = { super_event_displayed = 9 }
		}
		
		custom_effect_tooltip = ACW_Union_Generals_Join_tt
		hidden_effect = {
			# Union Generals - optimized assignment
			USA_character_george_b_mcclellan = {
				add_corps_commander_role = {
					traits = { expert_administrator aversion_to_offense inflexible_strategist career_officer trait_cautious organizer }
					skill = 4
					attack_skill = 2
					defense_skill = 3
					planning_skill = 4
					logistics_skill = 4
				}
			}
			USA_character_george_meade = {
				add_corps_commander_role = {
					traits = { urban_assault_specialist hill_fighter }
					skill = 3
					attack_skill = 2
					defense_skill = 4
					planning_skill = 3
					logistics_skill = 3
				}
			}
			USA_character_henry_halleck = {
				add_corps_commander_role = {
					traits = { old_guard trait_cautious career_officer }
					skill = 1
					attack_skill = 1
					defense_skill = 2
					planning_skill = 4
					logistics_skill = 4
				}
			}
			USA_character_irvin_mcdowell = {
				add_corps_commander_role = {
					skill = 2
					attack_skill = 3
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 3
				}
			}
			USA_character_ambrose_e_burnside = {
				add_corps_commander_role = {
					traits = { aversion_to_offense }
					skill = 1
					attack_skill = 2
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 4
				}
			}
			USA_character_joseph_hooker = {
				add_corps_commander_role = {
					traits = { aversion_to_offense }
					skill = 2
					attack_skill = 2
					defense_skill = 3
					planning_skill = 3
					logistics_skill = 3
				}
			}
			USA_character_james_birdeye_mcpherson = {
				add_corps_commander_role = {
					skill = 3
					attack_skill = 4
					defense_skill = 3
					planning_skill = 4
					logistics_skill = 3
				}
			}
			USA_character_john_a_logan = {
				add_corps_commander_role = {
					skill = 2
					attack_skill = 2
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 3
				}
			}
			USA_character_oliver_o_howard = {
				add_corps_commander_role = {
					skill = 3
					attack_skill = 3
					defense_skill = 3
					planning_skill = 4
					logistics_skill = 3
				}
			}
			USA_character_benjamin_f_butler = {
				add_corps_commander_role = {
					traits = { naval_invader }
					skill = 2
					attack_skill = 2
					defense_skill = 3
					planning_skill = 3
					logistics_skill = 4
				}
			}
			USA_character_nathaniel_p_banks = {
				add_corps_commander_role = {
					skill = 1
					attack_skill = 2
					defense_skill = 1
					planning_skill = 2
					logistics_skill = 2
				}
			}
			USA_character_john_pope = {
				add_corps_commander_role = {
					traits = { aversion_to_offense }
					skill = 2
					attack_skill = 3
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 3
				}
			}
			USA_character_william_s_rosecrans = {
				add_corps_commander_role = {
					skill = 2
					attack_skill = 3
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 4
				}
			}
			USA_character_philip_sheridan = {
				add_corps_commander_role = {
					traits = { cavalry_officer career_officer }
					skill = 3
					attack_skill = 4
					defense_skill = 3
					planning_skill = 4
					logistics_skill = 3
				}
			}
			USA_character_george_h_thomas = {
				add_corps_commander_role = {
					traits = { brilliant_strategist infantry_officer }
					skill = 3
					attack_skill = 4
					defense_skill = 4
					planning_skill = 3
					logistics_skill = 2
				}
			}
			USA_character_edward_ord = {
				add_corps_commander_role = {
					traits = { bearer_of_artillery artillery_officer artillery_leader }
					skill = 3
					attack_skill = 3
					defense_skill = 3
					planning_skill = 2
					logistics_skill = 3
				}
			}
			USA_character_john_g_parke = {
				add_corps_commander_role = {
					skill = 3
					attack_skill = 3
					defense_skill = 4
					planning_skill = 3
					logistics_skill = 4
				}
			}
		}
	}
	
	option = {
		trigger = { OR = { tag = CSA tag = NEG } }
		name = acw_generic.9.b
		custom_effect_tooltip = 07_ACW_GENERIC_tt
		
		declare_war_on = {
			target = USA
			type = acw_civil_war_wargoal
		}
		
		add_named_threat = {
			threat = 5
			name = "The American Civil War"
		}
		
		country_event = { id = acw_generic.10 days = 7 }
		USA = { country_event = { id = acw_generic.10 days = 7 } }
		
		if = {
			limit = { is_ai = no }
			set_variable = { super_event_displayed = 9 }
		}
		
		if = {
			limit = { tag = CSA }
			custom_effect_tooltip = ACW_CSA_Generals_Join_tt
			hidden_effect = {
				# Confederate Generals - cleaned up and optimized
				CSA_character_robert_e_lee = {
					add_corps_commander_role = {
						traits = { brilliant_strategist unyielding_defender guerilla_fighter }
						skill = 4
						attack_skill = 5
						defense_skill = 5
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_stonewall_jackson = {
					add_corps_commander_role = {
						traits = { brilliant_strategist infantry_leader }
						skill = 3
						attack_skill = 6
						defense_skill = 1
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_edmund_kirby_smith = {
					add_corps_commander_role = {
						skill = 3
						attack_skill = 3
						defense_skill = 4
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_leonidas_polk = {
					add_corps_commander_role = {
						traits = { politically_connected }
						skill = 1
						attack_skill = 3
						defense_skill = 4
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_william_j_hardee = {
					add_corps_commander_role = {
						skill = 3
						attack_skill = 4
						defense_skill = 4
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_john_bell_hood = {
					add_corps_commander_role = {
						skill = 2
						attack_skill = 3
						defense_skill = 2
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_albert_sidney_johnson = {
					add_corps_commander_role = {
						traits = { desert_fox }
						skill = 3
						attack_skill = 4
						defense_skill = 4
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_braxton_bragg = {
					add_corps_commander_role = {
						traits = { old_guard hill_fighter }
						skill = 2
						attack_skill = 3
						defense_skill = 3
						planning_skill = 1
						logistics_skill = 1
					}
				}
				CSA_character_joseph_e_jonston = {
					add_corps_commander_role = {
						traits = { urban_assault_specialist old_guard }
						skill = 3
						attack_skill = 2
						defense_skill = 3
						planning_skill = 4
						logistics_skill = 3
					}
				}
			}
		}
	}
	
	option = {
		trigger = {
			NOR = {
				tag = USA
				tag = CSA
				tag = NEG
			}
		}
		name = acw_generic.9.c
		
		if = {
			limit = { is_ai = no }
			set_variable = { super_event_displayed = 9 }
		}
	}
}

# Major Southern Generals Defect (acw.5)
country_event = {
	id = acw_generic.10
	title = acw_generic.10.t
	desc = acw_generic.10.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = { tag = USA }
				add_ideas = USA_Spirit_Civil_War_Initial_Disorganize
				set_country_flag = USA_officers_leave_acw
				every_unit_leader = {
					limit = {
						OR = {
							has_id = 5020
							has_id = 5021
							has_id = 5027
							has_id = 5028
						}
					}
					set_nationality = CSA
				}
			}
		}
	}

	option = {
		name = acw_generic.10.a
		trigger = { tag = USA }
		army_experience = -20
	}
	option = {
		name = acw_generic.10.b
		trigger = { tag = CSA }
	}
}

# Over by Christmas? (acw.6)
country_event = {
	id = acw_generic.11
	title = acw_generic.11.t
	desc = acw_generic.11.d

	is_triggered_only = yes

	option = {
		name = acw_generic.11.a

		add_political_power = 120
		add_war_support = 0.8
		add_stability = 0.6

		if = {
			limit = { tag = USA }
			# hidden_effect = {
			#	 if = {
			#		 limit = { is_historical_focus_on = yes }
			#		 add_ideas = USA_Spirit_American_Civil_War_Historical_Buff
			#	 }
			# }
		}
		if = {
			limit = { tag = CSA }
			add_timed_idea = {
				idea = CSA_civil_war_cotton_dismay
				days = 240
			}
		}
	}
}

# USA Civil War Equipment
country_event = {
	id = acw_generic.12
	title = acw_generic.12.t
	desc = acw_generic.12.d
	picture = GFX_report_event_generic_battle

	fire_only_once = yes
	trigger = {
		tag = USA
		has_global_flag = ACW_American_Civil_War
		has_war_with = CSA
		date > 1862.1.1
	}
	mean_time_to_happen = { days = 35 }

	option = {
		name = acw_generic.12.a
		trigger = { is_ai = yes }
		if = {
			limit = { CSA = { is_ai = no } }
			add_manpower = 200000
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_1
				amount = 90000
				producer = USA
			}
			add_equipment_to_stockpile = {
				type = cannon_equipment_0
				amount = 5000
				producer = USA
			}
			add_equipment_to_stockpile={
				type = uniform_equipment_0
				amount = 100000
				producer = USA
			}
			else = {
				add_manpower = 90000
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_1
					amount = 30000
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = cannon_equipment_0
					amount = 1000
					producer = USA
				}
				add_equipment_to_stockpile={
					type = uniform_equipment_0
					amount = 50000
					producer = USA
				}
			}
		}
	}
	option = {
		name = acw_generic.12.a
		trigger = { is_ai = no }
		custom_effect_tooltip = 10_ACW_GENERIC_tt
		hidden_effect = {
			add_manpower = 30000
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_1
				amount = 7500
				producer = USA
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment_0
				amount = 10000
				producer = USA
			}
		}
	}
}

# CSA Civil War Equipment
country_event = {
	id = acw_generic.13
	title = acw_generic.12.t
	desc = acw_generic.12.d
	picture = GFX_report_event_generic_battle

	fire_only_once = yes
	trigger = {
		tag = CSA
		has_global_flag = ACW_American_Civil_War
		has_war_with = USA
		date > 1862.1.1
	}
	mean_time_to_happen = { days = 35 }

	option = {
		name = acw_generic.12.a
		trigger = { is_ai = yes }
		if = {
			limit = { USA = { is_ai = no } }
			add_manpower = 180000
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_1
				amount = 80000
				producer = USA
			}
			add_equipment_to_stockpile = {
				type = cannon_equipment_0
				amount = 5000
				producer = USA
			}
			add_equipment_to_stockpile={
				type = uniform_equipment_0
				amount = 110000
				producer = USA
			}
			else = {
				add_manpower = 60000
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_1
					amount = 20000
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = cannon_equipment_0
					amount = 700
					producer = USA
				}
				add_equipment_to_stockpile={
					type = uniform_equipment_0
					amount = 19000
					producer = USA
				}
			}
		}
	}
	option = {
		name = acw_generic.12.a
		trigger = { is_ai = no }
		custom_effect_tooltip = 10_ACW_GENERIC_tt
		hidden_effect = {
			add_manpower = 18000
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_1
				amount = 5000
				producer = USA
			}
			add_equipment_to_stockpile = {
				type = uniform_equipment_0
				amount = 7500
				producer = USA
			}
		}
	}
}

# Other Generals Leave (acw.43)
country_event = {
	id = acw_generic.14
	title = acw_generic.14.t
	desc = acw_generic.14.d

	picture = GFX_report_event_generic_battle

	trigger = {
		tag = USA
		CSA = {
			owns_state = 365
		}
	}

	mean_time_to_happen = { days = 4 }

	fire_only_once = yes

	option = {
		name = acw_generic.14.a
		USA = {
			every_unit_leader = {
				limit = {
					OR = {
						has_id = 5022
						has_id = 5023
						has_id = 5024
						has_id = 5025
						has_id = 5026
					}
				}
				set_nationality = CSA
			}
		}
	}
}

# Grant and Sherman Join (acw.44)
country_event = {
	id = acw_generic.15
	title = acw_generic.15.t
	desc = acw_generic.15.d

	picture = GFX_report_event_generic_battle

	trigger = {
		tag = USA
		has_global_flag = ACW_American_Civil_War
	}

	fire_only_once = yes

	option = {
		name = acw_generic.15.a
			USA = {
				add_advisor_role = {
					character = USA_character_ulysses_s_grant
					advisor = {
						slot = army_chief
						idea_token = ulysses_s_grant
						traits = {
							army_chief_morale_3
						}
						cost = 100
					}
				}
				add_field_marshal_role = {
					character = USA_character_ulysses_s_grant
					traits = { old_guard ranger butcher brilliant_strategist }
					skill = 6
					attack_skill = 6
					defense_skill = 4
					planning_skill = 5
					logistics_skill = 4
				}
				add_advisor_role = {
					character = USA_character_william_t_sherman
					advisor = {
						slot = army_chief
						idea_token = william_t_sherman
						traits = {
							army_chief_offensive_2
						}
						cost = 100
					}
				}
				add_corps_commander_role = {
					character = USA_character_william_t_sherman
					traits = { trickster swamp_fox commando brilliant_strategist }
					skill = 5
					attack_skill = 6
					defense_skill = 4
					planning_skill = 4
					logistics_skill = 3
				}
			}
			set_country_flag = USA_grantsherman_rejoin
	}
}

# Baptism by Fire (acw.30)
country_event = {
	id = acw_generic.16
	title = acw_generic.16.t
	desc = acw_generic.16.d
	picture = GFX_report_event_gathering_protest

	trigger = {
		tag = USA
		has_global_flag = ACW_American_Civil_War
		has_idea = USA_Spirit_Memories_of_Confederation
	}
	fire_only_once = yes
	mean_time_to_happen = {
		days = 20
	}

	option = {
		name = acw_generic.16.a
		remove_ideas = USA_Spirit_Memories_of_Confederation
		hidden_effect = {
			ENG = { country_event = { id = acw_generic.17 } }
			FRA = { country_event = { id = acw_generic.17 } }
			RUS = { country_event = { id = acw_generic.17 } }
			CAM = { country_event = { id = acw_generic.17 } }
			SPR = { country_event = { id = acw_generic.17 } }
			PRS = { country_event = { id = acw_generic.17 } }
			WUR = { country_event = { id = acw_generic.17 } }
			PIE = { country_event = { id = acw_generic.17 } }
			OTO = { country_event = { id = acw_generic.17 } }
			DEN = { country_event = { id = acw_generic.17 } }
		}
	}
}

# Observers (acw.24)
country_event = {
	id = acw_generic.17
	title = acw_generic.17.t
	desc = acw_generic.17.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	trigger = {
		has_global_flag = ACW_American_Civil_War
		NOT = { has_idea = ACW_observer }
		has_war = no
	}

	option = {
		name = acw_generic.17.a
		add_ideas = ACW_observer
	}
}

# Observers 2 (acw.25)
# country_event = {
# 	id = acw_generic.18
# 	title = acw_generic.18.t
# 	desc = acw_generic.18.d
# 	picture = GFX_report_event_german_reichstag_gathering

# 	trigger = {
# 		has_idea = ACW_observer
# 		USA = { NOT = { has_war_with = CSA } }
# 	}

# 	option = {
# 		name = acw_generic.18.a
# 		remove_ideas = ACW_observer
# 	}
# }

# Observers 3 (acw.26)
# country_event = {
# 	id = acw_generic.19
# 	title = acw_generic.19.t
# 	desc = acw_generic.19.d
# 	picture = GFX_report_event_german_reichstag_gathering

# 	trigger = {
# 		has_idea = ACW_observer
# 		OR = {
# 			has_war_with = USA
# 			has_war_with = CSA
# 		}
# 	}

# 	mean_time_to_happen = {
# 		days = 3
# 	}

# 	option = {
# 		name = acw_generic.19.a
# 		remove_ideas = ACW_observer
# 	}
# }

#Trent Affair
country_event = {
	id = acw_generic.20
	title = acw_generic.20.t
	desc = acw_generic.20.d
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes

	trigger = {
		date > 1861.11.8
		tag = USA
		USA = {
			has_war_with = CSA
		}
	}

	mean_time_to_happen = { days = -1 }

	option = {
		name = acw_generic.20.a
		custom_effect_tooltip = 08_ACW_tt
		hidden_effect = {
			CSA = {
				country_event = { days = 2 id = acw_generic.21 }
			}
		}
	}
	option = {
		name = acw_generic.20.b
		custom_effect_tooltip = 09_ACW_tt
		FRA = {
			add_opinion_modifier = {
				target = CSA
				modifier = trent_affair_never_happened
			}
		}
		ENG = {
			add_opinion_modifier = {
				target = CSA
				modifier = trent_affair_never_happened
			}
			set_country_flag = ENG_flag_trent_affair
		}
	}
}

#Trent Affair - CSA Reaction
country_event = {
	id = acw_generic.21
	title = acw_generic.21.t
	desc = acw_generic.21.d
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = acw_generic.21.a
		custom_effect_tooltip = 08_ACW_tt
		#hidden_effect = { news_event = { id = acw_generic.133 } }
		hidden_effect = {
			ENG = {
				country_event = { days = 10 id = acw_generic.22 }
			}
		}
	}
}

#Trent Affair - ENG
country_event = {
	id = acw_generic.22
	title = acw_generic.22.t
	desc = acw_generic.22.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = {
		name = acw_generic.22.a
		set_global_flag = Trent_Affair_ENG_Yes
		hidden_effect = { USA = { country_event = { days = 10 id = acw_generic.23 } } }
		custom_effect_tooltip = 10_ACW_tt
	}
	option = {
		name = acw_generic.22.b
		hidden_effect = { USA = { country_event = { days = 10 id = acw_generic.23 } } }
		custom_effect_tooltip = 11_ACW_tt
	}
}

#Trent Affair - USA
country_event = {
	id = acw_generic.23
	title = acw_generic.23.t
	desc = {
		text = acw_generic.23.d
		trigger = { has_global_flag = Trent_Affair_ENG_Yes }
	}
	desc = {
		text = acw_generic.23.d_a
		trigger = { NOT = { has_global_flag = Trent_Affair_ENG_Yes } }
	}
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		trigger = {
			NOT = {
				has_global_flag = Trent_Affair_ENG_Yes
			}
		}
		ai_chance = { factor = 60 }
		name = acw_generic.23.a
		#hidden_effect = { news_event = { id = acw_generic.134 } }
		custom_effect_tooltip = 11_ACW_tt
	}
	option = {
		trigger = {
			has_global_flag = Trent_Affair_ENG_Yes
		}
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		name = acw_generic.23.b
		set_global_flag = Trent_Affair_USA_Firm
		hidden_effect = { ENG = { country_event = { days = 10 id = acw_generic.24 } } }
		custom_effect_tooltip = 10_ACW_tt
	}
	option = {
		trigger = {
			has_global_flag = Trent_Affair_ENG_Yes
		}
		name = acw_generic.23.c
		clr_global_flag = Trent_Affair_ENG_Yes
		hidden_effect = { ENG = { country_event = { days = 10 id = acw_generic.24 } } }
		#hidden_effect = { news_event = { id = acw_generic.134 } }
		custom_effect_tooltip = 11_ACW_tt
	}
}

#Trent Affair - ENG 2
country_event = {
	id = acw_generic.24
	title = acw_generic.24.t
	desc = {
		text = acw_generic.24.d
		trigger = { has_global_flag = Trent_Affair_USA_Firm }
	}
	desc = {
		text = acw_generic.24.d_no
		trigger = { NOT = { has_global_flag = Trent_Affair_USA_Firm } }
	}
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		trigger = {
			NOT = {
				has_global_flag = Trent_Affair_USA_Firm
			}
		}
		name = acw_generic.24.a
		custom_effect_tooltip = 11_ACW_tt
		#hidden_effect = { news_event = { id = acw_generic.134 } }
	}
	option = {
		trigger = {
			has_global_flag = Trent_Affair_USA_Firm
		}
		name = acw_generic.24.b
		hidden_effect = { FRA = { country_event = { days = 2 id = acw_generic.25 } } }
		custom_effect_tooltip = 10_ACW_tt
	}
	option = {
		trigger = {
			has_global_flag = Trent_Affair_USA_Firm
		}
		name = acw_generic.24.c
		custom_effect_tooltip = 11_ACW_tt
		#hidden_effect = { news_event = { id = acw_generic.134 } }
	}
}

#Trent Affair - FRA
country_event = {
	id = acw_generic.25
	title = acw_generic.25.t
	desc = acw_generic.25.d
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = acw_generic.25.a
		hidden_effect = { ENG = { country_event = { days = 2 id = acw_generic.26 } } }
		custom_effect_tooltip = 11_ACW_tt
	}
	option = {
		name = acw_generic.25.b
		hidden_effect = { ENG = { country_event = { days = 2 id = acw_generic.26 } } }
		set_global_flag = Trent_Affair_FRA_Yes
		custom_effect_tooltip = 10_ACW_tt
	}
}

#Trent Affair - ENG - War
country_event = {
	id = acw_generic.26
	title = acw_generic.26.t
	desc = {
		text = acw_generic.26.d
		trigger = { has_global_flag = Trent_Affair_FRA_Yes }
	}
	desc = {
		text = acw_generic.26.d_a
		trigger = { NOT = { has_global_flag = Trent_Affair_FRA_Yes } }
	}
	picture = GFX_report_event_german_reichstag_gathering

	fire_only_once = yes

	is_triggered_only = yes

	option = {
			trigger = {
				has_global_flag = Trent_Affair_FRA_Yes
			}
			name = acw_generic.26.a
			hidden_effect = { ENG = { country_event = { days = 2 id = acw_generic.26 } } }
			ENG = {
				add_to_war = {
					targeted_alliance = CSA
					enemy = USA
				}
			}
			FRA = {
				add_to_war = {
					targeted_alliance = CSA
					enemy = USA
				}
			}
			hidden_effect = { news_event = { id = acw_generic.135 } }
			custom_effect_tooltip = 12_ACW_tt
	}
	option = {
		trigger = {
			NOT = {
				has_global_flag = Trent_Affair_FRA_Yes
			}
		}
		name = acw_generic.26.b
		#hidden_effect = { news_event = { id = acw_generic.134 } }
		custom_effect_tooltip = 11_ACW_tt
	}
	option = {
		trigger = {
			NOT = {
				has_global_flag = Trent_Affair_FRA_Yes
			}
		}
		name = acw_generic.26.c
		add_war_support = -0.2
		add_stability = -0.2
		add_political_power = -100
		hidden_effect = { news_event = { id = acw_generic.135 } }
		ENG = {
			add_to_war = {
				targeted_alliance = CSA
				enemy = USA
			}
		}
		custom_effect_tooltip = 13_ACW_tt
	}
}

################################# KANAWHA ###################################

# Wheeling Convention
country_event = {
	id = acw_generic.27
	title = acw_generic.27.t
	desc = {
		text = acw_generic.27.d_usa
		trigger = { 
			tag = USA 
		}
	}
	desc = {
		text = acw_generic.27.d_csa
		trigger = { 
			tag = CSA
		}
	}
	desc = {
		text = acw_generic.27.d_everyoneelse
		trigger = {
			NOT = { tag = CSA }
			NOT = { tag = USA }
		}
	}

	picture = GFX_report_event_election_vote

	trigger = {
		has_global_flag = ACW_American_Civil_War
		746 = { is_controlled_by = CSA }
	}

	is_triggered_only = yes
	fire_only_once = yes

	major = yes

	option = {
		name = acw_generic.27.a
		ai_chance = { base = 50 }
		trigger = { tag = USA }
		custom_effect_tooltip = 40_ACW_GENERIC_tt
		hidden_effect = {
			set_global_flag = ACW_virginia_talks_1
			country_event = { id = acw_generic.28 days = 30 random_days = 10 }
		}
	}
	option = {
		name = acw_generic.27.b
		ai_chance = { base = 50 }
		trigger = { tag = USA }
		hidden_effect = {
			custom_effect_tooltip = 41_ACW_GENERIC_tt
			country_event = { id = acw_generic.28 days = 30 random_days = 10 }
		}
	}
	option = {
		name = acw_generic.27.c
		ai_chance = { base = 100 }
		trigger = { tag = CSA }
	}
	option = {
		name = acw_generic.27.e
		ai_chance = { base = 100 }
		trigger = {
			NOT = {
				AND = {
					tag = USA
					tag = CSA
				}
			}
		}
	}
}

# Reformed Virginia Referendum (USA)
country_event = {
	id = acw_generic.28
	title = acw_generic.28.t
	desc = acw_generic.28.d

	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

	option = {
		name = acw_generic.28.a
		ai_chance = { factor = 50 }
		custom_effect_tooltip = 41_ACW_GENERIC_tt
		hidden_effect = {
			country_event = { id = acw_generic.29 days = 35 random_days = 20 }
		}
	}
	option = {
		name = acw_generic.28.b
		ai_chance = { factor = 50 }
		custom_effect_tooltip = 42_ACW_GENERIC_tt
		set_global_flag = ACW_virginia_talks_2
		hidden_effect = {
			country_event = { id = acw_generic.29 days = 35 random_days = 20 }
		}
	}
}

# Reformed Virginia Results (USA)
country_event = {
	id = acw_generic.29
	title = acw_generic.29.t
	desc = acw_generic.29.d

	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

	option = {
		name = acw_generic.29.a
		ai_chance = { factor = 50 }
		set_global_flag = ACW_virginia_talks_3
		hidden_effect = {
			if = {
				limit = {
					count_triggers = {
						amount = 2
						has_global_flag = ACW_virginia_talks_1
						has_global_flag = ACW_virginia_talks_2
						has_global_flag = ACW_virginia_talks_3
					}
				}
				country_event = { id = acw_generic.31 days = 20 }
				CSA = { country_event = { id = acw_generic.31 days = 20 } }
			}
			else = {
				country_event = acw_generic.30
				CSA = { country_event = acw_generic.30 }
			}
		}
	}
	option = {
		name = acw_generic.29.b
		ai_chance = { factor = 50 }
		set_global_flag = ACW_virginia_talks_3
		hidden_effect = {
			if = {
				limit = {
					count_triggers = {
						amount = 2
						has_global_flag = ACW_virginia_talks_1
						has_global_flag = ACW_virginia_talks_2
						has_global_flag = ACW_virginia_talks_3
					}
				}
				country_event = { id = acw_generic.31 days = 20 }
				CSA = { country_event = { id = acw_generic.31 days = 20 } }
			}
			else = {
				country_event = acw_generic.30
				CSA = { country_event = acw_generic.30 }
			}
		}
	}
}

country_event = {
	id = acw_generic.30
	title = acw_generic.30.t
	desc = {
		text = acw_generic.30.d_usa
		trigger = { tag = USA }
	}
	desc = {
		text = acw_generic.30.d_csa
		trigger = { tag = CSA }
	}

	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

	option = {
		name = acw_generic.30.a
		trigger = { tag = USA }
	}
	option = {
		name = acw_generic.30.a
		trigger = { tag = CSA }
	}
}

# West Virginia Uprising
country_event = {
	id = acw_generic.31
	title = acw_generic.31.t
	desc = acw_generic.31.d

	is_triggered_only = yes
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

	immediate = {
		clr_global_flag = ACW_virginia_talks_1
		clr_global_flag = ACW_virginia_talks_2
		clr_global_flag = ACW_virginia_talks_3
	}

	option = {
		name = acw_generic.31.a
		trigger = { tag = USA }
		hidden_effect = {
			if = {
				limit = { has_global_flag = ACW_American_Civil_War }
				if = {
					limit = { controls_state = 746 }
					load_oob = USA_WVG_1864
				}
				else = {
					WVG = {
						transfer_state = 746
						add_state_core = 746
						inherit_technology = USA
						add_manpower = 7000
						add_equipment_to_stockpile = {
							type = infantry_equipment
							amount = 5000
							producer = CSA
						}
						add_equipment_to_stockpile = {
							type = uniform_equipment
							amount = 5000
							producer = CSA
						}
						set_politics = {
							ruling_party = ideology_social_liberalism
							elections_allowed = yes
							election_frequency = 96
						}
						set_popularities = {
							traditional_conservatism = 30
							radical_democracy = 11
							ideology_social_liberalism = 59
						}
						load_oob = USA_WVG_1864
						country_event = { id = acw_generic.32 days = 7 }
					}
				}
			}
		}
	}
	option = {
		name = acw_generic.31.b
		trigger = { tag = CSA }
	}
}

# West Virginia joins US
country_event = {
	id = acw_generic.32
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes

	immediate = {
		USA = {
			set_autonomy = {
				target = WVG
				autonomous_state = autonomy_organized_unincorporated_territory
			}
		}
		WVG = {
			set_politics = {
				ruling_party = ideology_social_liberalism
				elections_allowed = yes
				election_frequency = 96
			}
			set_popularities = {
				traditional_conservatism = 30
				radical_democracy = 11
				ideology_social_liberalism = 59
			}
			add_to_war = {
				targeted_alliance = USA
				enemy = CSA
				hostility_reason = asked_to_join
			}
		}
		746 = { 
			reset_state_name = yes
			clr_state_flag = NA_B_Disregardable_State 
		}
		USA = { add_to_variable = { usa_state_count = 1 } }
	}
}

############################## LINCOLN #############################

# Lincoln Victory Speech
country_event = {
	id = acw_generic.33
	title = acw_generic.33.t
	desc = acw_generic.33.d
	picture = GFX_news_event_lincoln_elected_1

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 3 }
		USA_Slavery_Debate_Tension_Modify = yes
	}

	option = {
		name = acw_generic.33.a
		custom_effect_tooltip = 04_ACW_GENERIC_tt
		ai_chance = {
			factor = 75
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			set_country_flag = USA_LincolnorDouglas_Moderate_Appeal
			country_event = { id = acw_generic.34 days = 4 }
			country_event = { id = acw_generic.36 days = 30 }
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 3 }
			USA_Slavery_Debate_Tension_Modify = yes
		}
	}
	option = {
		name = acw_generic.33.b
		custom_effect_tooltip = 06_ACW_GENERIC_tt
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			set_country_flag = USA_LincolnorDouglas_No_Moderate_Appeal
			country_event = { id = acw_generic.35 days = 4 }
			country_event = { id = acw_generic.36 days = 30 }
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}
	}
}

# Response to Lincoln's speech for unity
country_event = {
	id = acw_generic.34
	title = acw_generic.34.t
	desc = acw_generic.34.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 10 }
		USA_Slavery_Debate_Leaning_Modify = yes
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = -2 }
		USA_Slavery_Debate_Tension_Modify = yes
	}

	option = {
		name = acw_generic.34.a
		custom_effect_tooltip = 03_ACW_GENERIC_tt
		add_popularity = {
			ideology = radical_democracy
			popularity = 0.02
		}
	}
}

# Response to Lincoln's speech for abolition
country_event = {
	id = acw_generic.35
	title = acw_generic.34.t
	desc = acw_generic.35.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -10 }
		USA_Slavery_Debate_Leaning_Modify = yes
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 8 }
		USA_Slavery_Debate_Tension_Modify = yes
	}

	option = {
		name = acw_generic.35.a
		custom_effect_tooltip = 06_ACW_GENERIC_tt
		add_popularity = {
			ideology = ideology_social_liberalism
			popularity = 0.01
		}
	}
}

# Stephen Douglas shows support
country_event = {
	id = acw_generic.36
	title = acw_generic.36.t
	desc = acw_generic.36.d
	picture = GFX_news_event_lincoln_douglas

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = acw_generic.36.a
		custom_effect_tooltip = 03_ACW_GENERIC_tt
		custom_effect_tooltip = 06_ACW_GENERIC_tt
		add_popularity = {
			ideology = traditional_conservatism
			popularity = -0.03
		}
		add_popularity = {
			ideology = radical_democracy
			popularity = 0.01
		}
		add_popularity = {
			ideology = ideology_social_liberalism
			popularity = 0.02
		}
		hidden_effect = {
			country_event = { id = acw_generic.38 days = 65 }
			country_event = { id = acw_generic.37 days = 80 }
		}
	}
}

# Lincoln Inaguration (usa.11)
country_event = {
	id = acw_generic.37
	title = acw_generic.37.t
	desc = acw_generic.37.d
	picture = GFX_news_event_lincoln_elected_1

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 15 }
		USA_Slavery_Debate_Tension_Modify = yes
		if = {
			limit = { has_country_flag = USA_Houston_TX_Gov }
			country_event = {
				id = usa.110
				days = 14
				random_days = 21
			}
		}
	}

	option = {
		name = acw_generic.37.a
		hidden_effect = {
			# Retire current leadership and set new politics
			retire_country_leader = yes
			set_politics = {
				ruling_party = ideology_social_liberalism
				elections_allowed = no
			}

			# Remove all doughface and inclusive ideas efficiently
			# Level 1 ideas
			remove_ideas = USA_doughface_1_lvl1
			remove_ideas = USA_doughface_2_lvl1
			remove_ideas = USA_inclusive_1_lvl1
			remove_ideas = USA_inclusive_2_lvl1
			
			# Level 2 ideas
			remove_ideas = USA_doughface_1_lvl2
			remove_ideas = USA_doughface_2_lvl2
			remove_ideas = USA_inclusive_1_lvl2
			remove_ideas = USA_inclusive_2_lvl2
			
			# Level 3 ideas
			remove_ideas = USA_doughface_1_lvl3
			remove_ideas = USA_doughface_2_lvl3
			remove_ideas = USA_inclusive_1_lvl3
			remove_ideas = USA_inclusive_2_lvl3
			
			# Level 4 ideas
			remove_ideas = USA_doughface_1_lvl4
			remove_ideas = USA_doughface_2_lvl4
			remove_ideas = USA_inclusive_1_lvl4
			remove_ideas = USA_inclusive_2_lvl4
			
			# Level 5 ideas
			remove_ideas = USA_doughface_1_lvl5
			remove_ideas = USA_doughface_2_lvl5
			remove_ideas = USA_inclusive_1_lvl5
			remove_ideas = USA_inclusive_2_lvl5

			# Reset political power and leadership
			set_political_power = 0
			retire_character = USA_character_james_buchanan
			retire_ideology_leader = ideology_social_liberalism

			# Install Lincoln as new leader
			USA_character_abraham_lincoln = {
				add_country_leader_role = {
					promote_leader = yes
					country_leader = {
						ideology = ideology_sub_social_liberal
						desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
						expire = "1894.1.6"
						traits = { eoanb_trait_patriotic_orator railroad_enthusiast }
					}
				}
			}

			# Remove all existing cabinet members
			every_character = {
				limit = {
					is_character_slot = political_advisor
					has_character_flag = usa_cabinet_member_flag
				}
				remove_advisor_role = { slot = political_advisor }
			}

			# Install new cabinet - Secretary of State
			USA_character_william_seward = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_william_h_seward
						traits = { trait_secretary_of_state silent_workhorse }
						ai_will_do = { factor = 0 }
					}
					activate = yes
				}
			}

			# Secretary of Treasury
			USA_character_salmon_p_chase = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_salmon_p_chase
						traits = { trait_secretary_of_the_treasury eoanb_trait_effective_judge }
						ai_will_do = { factor = 0 }
					}
					activate = yes
				}
			}

			# Secretary of War (Cameron)
			USA_character_simon_cameron = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_simon_cameron
						traits = { trait_secretary_of_war railroad_enthusiast }
						ai_will_do = { factor = 0 }
					}
					activate = yes
				}
			}

			# Attorney General
			USA_character_edward_bates = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_edward_bates
						traits = { trait_attorney_general }
						ai_will_do = { factor = 0 }
					}
					activate = yes
				}
			}

			# Secretary of Navy
			USA_character_gideon_welles = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_gideon_welles
						traits = { trait_secretary_of_the_navy war_veteran }
						ai_will_do = { factor = 0 }
					}
					activate = yes
				}
			}

			# Vice President
			USA_character_hannibal_hamlin = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_hannibal_hamlin
						traits = { trait_vice_president }
						ai_will_do = { factor = 0 }
					}
					activate = yes
				}
			}

			# Future Secretary of War (Stanton) - not activated initially
			USA_character_edwin_m_stanton = {
				set_character_flag = usa_cabinet_member_flag
				add_advisor_role = {
					advisor = {
						slot = political_advisor
						idea_token = USA_advisor_edwin_m_stanton
						traits = { trait_secretary_of_war efficient_administrator administrative_genius }
						ai_will_do = { factor = 0 }
					}
				}
			}
		}
	}
}

country_event = {
	id = acw_generic.38
	title = acw_generic.38.t
	desc = acw_generic.38.d
	picture = GFX_news_event_lincoln_elected_1

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -6 }
		USA_Slavery_Debate_Leaning_Modify = yes
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 5 }
		USA_Slavery_Debate_Tension_Modify = yes
	}
	option = {
		name = acw_generic.38.a
	}
}

# Lincoln's Assassination (usa.45)
country_event = {
	id = acw_generic.39
	title = acw_generic.39.t
	desc = acw_generic.39.d
	picture = GFX_report_event_worker_protests
	
	is_triggered_only = yes
	fire_only_once = yes
	
	trigger = {
		has_country_leader = {
			character = USA_character_abraham_lincoln
			ruling_only = yes
		}
	}
	
	option = {
		name = acw_generic.39.a
		ai_chance = {
			base = 80
			modifier = {
				factor = 1.25
				is_historical_focus_on = yes
			}
		}
		
		custom_effect_tooltip = 01_lincoln_tt
		add_stability = -0.2
		add_timed_idea = {
			idea = Generic_Shocked_Nation_2
			days = 93
		}
		
		hidden_effect = {
			# Set flags
			set_global_flag = Lincoln_Assassinated
			set_country_flag = Lincoln_Assassinated
			
			# Fire news event
			news_event = { id = usa_news.18 }
			
			# Handle succession based on date
			if = {
				limit = { date > 1864.11.5 }
				USA_character_andrew_johnson = {
					add_country_leader_role = {
						country_leader = {
							desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
							expire = "1947.1.1"
							ideology = federal
						}
					}
					promote_character = yes
				}
				set_politics = {
					ruling_party = traditional_conservatism
					last_election = "1864.11.5"
					elections_allowed = no
				}
			}
			else = {
				USA_character_hannibal_hamlin = {
					add_country_leader_role = {
						country_leader = {
							desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
							expire = "1947.1.1"
							ideology = ideology_sub_social_liberal
						}
					}
					promote_character = yes
				}
				set_politics = {
					ruling_party = ideology_social_liberalism
					last_election = "1860.11.5"
					elections_allowed = no
				}
			}
			
			# Retire Lincoln last to avoid scope issues
			retire_character = USA_character_abraham_lincoln
		}
	}
	
	option = {
		name = acw_generic.39.b
		ai_chance = {
			base = 20
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		custom_effect_tooltip = 02_lincoln_tt
		
		hidden_effect = {
			set_global_flag = Lincoln_Survived
			set_country_flag = Lincoln_Survived
			news_event = { id = usa_news.19 }
		}
	}
}

# Lincoln Assassination Investigations (usa.46)
country_event = {
	id = acw_generic.40
	title = acw_generic.40.t
	desc = acw_generic.40.d
	picture = GFX_report_event_german_reichstag_gathering

	trigger = {
		TAG = USA
		has_country_flag = Lincoln_Assassinated
	}
	fire_only_once = yes
	mean_time_to_happen = { days = 6 }

	option = {
		name = acw_generic.40.a
		custom_effect_tooltip = 21_ACW_LINCOLN_tt
		add_political_power = -115
		add_ideas = Generic_Investigation_Proceeding_4
		add_timed_idea = {
			idea = Generic_Satisfy_Public_3
			days = 180
		}
		hidden_effect = {
			#TempFix
			country_event = { id = acw_generic.41 days = 25 }
		}
	}
	option = {
		name = acw_generic.40.b
		custom_effect_tooltip = 22_ACW_LINCOLN_tt
		add_political_power = -85
		add_ideas = Generic_Investigation_Proceeding_3
		add_timed_idea = {
			idea = Generic_Satisfy_Public_2
			days = 180
		}
		hidden_effect = {
			#TempFix
			country_event = { id = acw_generic.41 days = 55 }
		}
	}
	option = {
		name = acw_generic.40.c
		custom_effect_tooltip = 23_ACW_LINCOLN_tt
		add_political_power = -55
		add_ideas = Generic_Investigation_Proceeding_2
		add_timed_idea = {
			idea = Generic_Satisfy_Public_1
			days = 180
		}
		hidden_effect = {
			#TempFix
			country_event = { id = acw_generic.41 days = 100 }
		}
	}
	option = {
		name = acw_generic.40.e
		custom_effect_tooltip = 24_ACW_LINCOLN_tt
		add_political_power = -20
		add_ideas = Generic_Investigation_Proceeding_1
		add_timed_idea = {
			idea = Generic_Satisfy_Public_1
			days = 180
		}
		hidden_effect = {
			#TempFix
			country_event = { id = acw_generic.42 days = 250 }
		}
	}
}

country_event = {
	id = acw_generic.41
	title = acw_generic.41.t
	desc = acw_generic.41.d

		is_triggered_only = yes

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			remove_ideas = Generic_Investigation_Proceeding_1
			remove_ideas = Generic_Investigation_Proceeding_2
			remove_ideas = Generic_Investigation_Proceeding_3
			remove_ideas = Generic_Investigation_Proceeding_4
		}
	}

	option = {
		name = acw_generic.41.a
	}
	option = {
		name = acw_generic.41.b
	}
}

country_event = {
	id = acw_generic.42
	title = acw_generic.42.t
	desc = acw_generic.42.d

		is_triggered_only = yes

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = acw_generic.42.a
		add_timed_idea = {
			idea = Generic_Shocked_Nation_2
			days = 720
		}
	}
}

# Convince Lincoln to Egalitarianism (usa.56)
country_event = {
	id = acw_generic.43
	title = acw_generic.43.t
	desc = acw_generic.43.d
	picture = GFX_report_event_german_reichstag_gathering

	trigger = {
		tag = USA
		has_country_flag = Lincoln_Survived
	}
	mean_time_to_happen = { days = 45 }
	fire_only_once = yes

	option = {
		name = acw_generic.43.a
		add_political_power = 25
		add_popularity = {
			ideology = social_egalitarianism
			popularity = 0.01
		}
	}
	option = {
		name = acw_generic.43.b
		add_political_power = -100
		add_stability = -0.1
		add_popularity = { ideology = social_egalitarianism popularity = 0.05 }
		USA_character_abraham_lincoln = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
					expire = "1947.1.1"
					ideology = liberal_social
				}
			}
		}
		set_politics = {
			ruling_party = social_egalitarianism
			elections_allowed = no
		}
		set_country_flag = USA_Radical_Lincoln
	}
}

# Winfield Scott retires
country_event = {
	id = acw_generic.44
	title = acw_generic.44.t
	desc = acw_generic.44.desc
	picture = GFX_report_event_usa_capitol
	fire_only_once = yes
	is_triggered_only = yes

	option = { # He will be missed
		name = acw_generic.44.a
		retire_character = USA_character_winfield_scott
	}
}

# Retiring John E. Wool
country_event = {
	id = acw_generic.45
	title = acw_generic.45.t
	desc = acw_generic.45.desc
	picture = GFX_report_event_usa_capitol
	fire_only_once = yes
	is_triggered_only = yes

	trigger = {
		has_character = USA_character_john_e_wool
	}

	option = { # He has served long enough. Let him rest.
		name = acw_generic.45.a
		retire_character = USA_character_john_e_wool
	}
}

############################## DOUGLAS #############################

# Douglas' position of Slavery 1
# country_event = {
# 	id = acw_generic.46
# 	title = acw_generic.46.t
# 	desc = acw_generic.46.d

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.47 days = 35 random_days = 5 }
# 		}
# 	}
# 	option = {
# 		name = acw_generic.46.a
# 		custom_effect_tooltip = 03_ACW_GENERIC_tt
# 		custom_effect_tooltip = 06_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.46.b
# 		hidden_effect = {
# 			set_country_flag = USA_LincolnorDouglas_Moderate_Appeal
# 		}
# 		custom_effect_tooltip = 04_ACW_GENERIC_tt
# 		custom_effect_tooltip = 06_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.46.c
# 		hidden_effect = {
# 			set_country_flag = USA_LincolnorDouglas_Moderate_Appeal
# 		}
# 		custom_effect_tooltip = 04_ACW_GENERIC_tt
# 		custom_effect_tooltip = 05_ACW_GENERIC_tt
# 	}
# }

# Southerners on Edge
# country_event = {
# 	id = acw_generic.47
# 	title = acw_generic.47.t
# 	desc = acw_generic.47.d

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.48 days = 25 random_days = 10 }
# 			add_ideas = USA_Spirit_Southern_Secession_Crisis
# 		}
# 	}

# 	option = {
# 		name = acw_generic.47.a
# 		hidden_effect = {
# 			if = {
# 				limit = { NOT = { has_country_flag = USA_LincolnorDouglas_Moderate_Appeal } }
# 				set_country_flag = USA_LincolnorDouglas_No_Moderate_Appeal
# 			}
# 		}
# 		custom_effect_tooltip = 04_ACW_GENERIC_tt
# 		custom_effect_tooltip = 05_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.47.b
# 		hidden_effect = {
# 			if = {
# 				limit = { NOT = { has_country_flag = USA_LincolnorDouglas_Moderate_Appeal } }
# 				set_country_flag = USA_LincolnorDouglas_No_Moderate_Appeal
# 			}
# 		}
# 		custom_effect_tooltip = 03_ACW_GENERIC_tt
# 		custom_effect_tooltip = 06_ACW_GENERIC_tt
# 	}
# }

# Lincoln and Bell shows support
# country_event = {
# 	id = acw_generic.48
# 	title = acw_generic.48.t
# 	desc = {
# 		text = acw_generic.48.d
# 		trigger = { has_country_flag = USA_LincolnorDouglas_Moderate_Appeal }
# 	}
# 	desc = {
# 		text = acw_generic.48.d_1
# 		trigger = { NOT = { has_country_flag = USA_LincolnorDouglas_Moderate_Appeal } }
# 	}

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.49 days = 65 random_days = 5 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.48.a
# 		custom_effect_tooltip = 03_ACW_GENERIC_tt
# 	}
# }

# Douglas Inaugerated (usa.12)
# country_event = {
# 	id = acw_generic.49
# 	title = acw_generic.49.t
# 	desc = acw_generic.49.d
# 	picture = GFX_report_event_crowd_in_prague

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.50 days = 10 }
# 			news_event = { id = acw_douglas_news.1 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.49.a
# 		retire_country_leader = yes
# 		set_politics = {
# 			ruling_party = traditional_conservatism
# 			elections_allowed = no
# 		}
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_1_lvl1
# 				}
# 				remove_ideas =	USA_doughface_1_lvl1
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_1_lvl2
# 				}
# 				remove_ideas =	USA_doughface_1_lvl2
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_1_lvl3
# 				}
# 				remove_ideas =	USA_doughface_1_lvl3
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_1_lvl4
# 				}
# 				remove_ideas =	USA_doughface_1_lvl4
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_1_lvl5
# 				}
# 				remove_ideas =	USA_doughface_1_lvl5
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_2_lvl1
# 				}
# 				remove_ideas =	USA_doughface_2_lvl1
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_2_lvl2
# 				}
# 				remove_ideas =	USA_doughface_2_lvl2
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_2_lvl3
# 				}
# 				remove_ideas =	USA_doughface_2_lvl3
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_2_lvl4
# 				}
# 				remove_ideas =	USA_doughface_2_lvl4
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_doughface_2_lvl5
# 				}
# 				remove_ideas =	USA_doughface_2_lvl5
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_1_lvl1
# 				}
# 				remove_ideas =	USA_inclusive_1_lvl1
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_1_lvl2
# 				}
# 				remove_ideas =	USA_inclusive_1_lvl2
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_1_lvl3
# 				}
# 				remove_ideas =	USA_inclusive_1_lvl3
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_1_lvl4
# 				}
# 				remove_ideas =	USA_inclusive_1_lvl4
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_1_lvl5
# 				}
# 				remove_ideas =	USA_inclusive_1_lvl5
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_2_lvl1
# 				}
# 				remove_ideas =	USA_inclusive_2_lvl1
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_2_lvl2
# 				}
# 				remove_ideas =	USA_inclusive_2_lvl2
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_2_lvl3
# 				}
# 				remove_ideas =	USA_inclusive_2_lvl3
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_2_lvl4
# 				}
# 				remove_ideas =	USA_inclusive_2_lvl4
# 			}
# 			if = {
# 				limit = {
# 					has_idea = USA_inclusive_2_lvl5
# 				}
# 				remove_ideas =	USA_inclusive_2_lvl5
# 			}
# 			set_political_power = 0
# 		}
# 	}
# }

# Popular Sovereignty Act (usa.143)
# country_event = {
# 	id = acw_generic.50
# 	title = acw_generic.50.t
# 	desc = acw_generic.50.d
# 	picture = GFX_news_event_acw_freestates_win

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	option = {
# 		name = acw_generic.50.a
# 		hidden_effect = {
# 			country_event = { id = acw_generic.51 }
# 		}
# 	}
# }

# Tour of Unity (usa.144)
# country_event = {
# 	id = acw_generic.51
# 	title = acw_generic.51.t
# 	desc = acw_generic.51.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			set_country_flag = USA_Douglas_Tour_Start
# 			country_event = { id = acw_generic.52 days = 1 random_days = 2 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.51.a
# 	}
# }

# Douglas visits Maryland
# country_event = {
# 	id = acw_generic.52
# 	title = acw_generic.52.t
# 	desc = acw_generic.52.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.53 days = 3 random_days = 2 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.52.a
# 	}
# }

# Douglas visits Pennsylvania
# country_event = {
# 	id = acw_generic.53
# 	title = acw_generic.53.t
# 	desc = acw_generic.53.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.54 days = 4 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.52.a
# 	}
# }

# Douglas visits Ohio
# country_event = {
# 	id = acw_generic.54
# 	title = acw_generic.54.t
# 	desc = acw_generic.54.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.55 days = 5 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.52.a
# 	}
# }

# Douglas visits Kentucky
# country_event = {
# 	id = acw_generic.55
# 	title = acw_generic.55.t
# 	desc = acw_generic.55.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.56 days = 4 random_days = 2 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.52.a
# 	}
# }

# Douglas visits Tennessee
# country_event = {
# 	id = acw_generic.56
# 	title = acw_generic.56.t
# 	desc = acw_generic.56.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			country_event = { id = acw_generic.57 days = 1 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.56.a
# 	}
# }

# Douglas falls Ill (usa.124)
# country_event = {
# 	id = acw_generic.57
# 	title = acw_generic.57.t
# 	desc = acw_generic.57.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	option = {
# 		name = acw_generic.57.a
# 		add_political_power = -55
# 		ai_chance = { factor = 30 }
# 		hidden_effect = {
# 			set_country_flag = USA_Douglas_Hospitalized
# 			country_event = { id = acw_generic.58 days = 2 }
# 		}
# 	}
# 	option = {
# 		name = acw_generic.57.b
# 		add_political_power = -15
# 		hidden_effect = {
# 			country_event = { id = acw_generic.59 days = 6 }
# 		}
# 	}
# }

# Douglas Hospitalized
# country_event = {
# 	id = acw_generic.58
# 	title = acw_generic.58.t
# 	desc = acw_generic.58.d
# 	picture = GFX_report_event_worker_protests

# 	fire_only_once = yes
# 	is_triggered_only = yes

# 	option = {
# 		name = acw_generic.58.a
# 		add_political_power = -15
# 		hidden_effect = {
# 			country_event = { id = acw_generic.59 days = 4 random_days = 15 }
# 		}
# 	}
# }

# Douglas Dies (usa.125)
# country_event = {
# 	id = acw_generic.59
# 	title = acw_generic.59.t
# 	desc = {
# 		text = acw_generic.59.d
# 		trigger = { NOT = { has_country_flag = USA_Douglas_Hospitalized } }
# 	}
# 	desc = {
# 		text = acw_generic.59.d_Hospitalized
# 		trigger = { has_country_flag = USA_Douglas_Hospitalized }
# 	}
# 	picture = GFX_report_national_funeral

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		USA_character_william_herschell = {
# 			add_country_leader_role = {
# 				country_leader = {
# 					desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 					expire = "1900.1.1"
# 					ideology = conserv_liberal
# 				}
# 			}
# 			promote_character = yes
# 		}
# 		retire_character = USA_character_stephen_douglas
# 	}
# 	option = {
# 		name = acw_generic.59.a
# 		add_timed_idea = {
# 			idea = idea_national_funeral
# 			days = 14
# 		}
# 		hidden_effect = {
# 			add_timed_idea = {
# 				idea = Generic_Shocked_Nation_2
# 				days = 200
# 			}
# 			country_event = { id = acw_generic.60 days = 5 }
# 		}
# 	}
# }

# Hershel Assassinated (usa.127)
# country_event = {
# 	id = acw_generic.60
# 	title = acw_generic.60.t
# 	desc = acw_generic.60.d
# 	picture = GFX_report_event_crowd_in_prague

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		USA_character_william_pennington = {
# 			add_country_leader_role = {
# 				country_leader = {
# 					desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 					expire = "1900.1.1"
# 					ideology = market_liberal
# 				}
# 			}
# 			promote_character = yes
# 		}
# 		retire_character = USA_character_william_herschell
# 		hidden_effect = {
# 			country_event = { id = acw_generic.61 }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.60.a
# 		add_timed_idea = {
# 			idea = idea_national_funeral
# 			days = 7
# 		}
# 		hidden_effect = {
# 			remove_ideas = Generic_Shocked_Nation_2
# 			add_timed_idea = {
# 				idea = Generic_Shocked_Nation_3
# 				days = 200
# 			}
# 		}
# 	}
# }

# House Speaker Overdoses (usa.129)
#country_event = {
# 	id = acw_generic.61
# 	title = acw_generic.61.t
# 	desc = acw_generic.61.d
# 	picture = GFX_report_event_german_reichstag_gathering

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			retire_country_leader = yes
# 			if = {
# 				limit = { NOT = { has_country_flag = USA_DouglasElected } }
# 				set_country_flag = USA_DouglasElected
# 			}
# 			#swap_ideas = {
# 				#remove_idea = Generic_Shocked_Nation_3
# 				#add_timed_idea = Generic_Shocked_Nation_4
# 			#}
# 			country_event = { id = usa_slavery_debate.62 days = 3 } # CSA
# 			country_event = { id = acw_generic.62 days = 10 random_days = 75 } # Oregon
# 			country_event = { id = acw_generic.63 days = 10 random_days = 75 } # California
# 			country_event = { id = acw_generic.64 days = 10 random_days = 75 } # Utah
# 			country_event = { id = acw_generic.65 days = 10 random_days = 75 } # Pueblo
# 			country_event = { id = acw_generic.66 days = 10 random_days = 75 } # Texas
# 			country_event = { id = acw_generic.67 days = 10 random_days = 75 } # Oklahoma
# 			country_event = { id = acw_generic.68 days = 10 random_days = 75 } # Kansas
# 			country_event = { id = acw_generic.69 days = 10 random_days = 75 } # Dakota
# 			country_event = { id = acw_generic.70 days = 10 random_days = 75 } # Great Lakes
# 			country_event = { id = acw_generic.71 days = 10 random_days = 75 } # Missouri
# 			country_event = { id = acw_generic.72 days = 10 random_days = 75 } # Kentucky
# 			country_event = { id = acw_generic.73 days = 10 random_days = 75 } # West Virginia
# 			country_event = { id = acw_generic.74 days = 10 random_days = 75 } # Manhattan
# 			country_event = { id = acw_generic.76 days = 10 random_days = 75 } # New England
# 			country_event = { id = acw_generic.77 days = 10 random_days = 75 } # Alaska
# 			country_event = { id = acw_generic.78 days = 85 random_days = 5 } # Atlantic
# 		}
# 	}
# 	option = {
# 		name = acw_generic.61.a
# 		hidden_effect = {
# 			add_timed_idea = {
# 				idea = idea_national_funeral
# 				days = 7
# 			}
# 		}
# 	}
# }

# Oregon (usa.132)
# country_event = {
# 	id = acw_generic.62
# 	title = acw_generic.62.t
# 	desc = acw_generic.62.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 385 # West Oregon
# 			owns_state = 386 # Washington
# 			owns_state = 1073 # Asotin
# 			owns_state = 1074 # Nez Perce
# 			owns_state = 1076 # Coeur d'Alene
# 			owns_state = 1289 # Madoc
# 		}
# 	}
# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = ORE
# 					ORE = { is_subject = yes }
# 				}
# 				ORE = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							ORE = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = ORE
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 385 }
# 				385 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					ORE = { transfer_state = PREV }
# 					add_core_of = ORE
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 386 }
# 				386 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					ORE = { transfer_state = PREV }
# 					add_core_of = ORE
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1073 }
# 				1073 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					ORE = { transfer_state = PREV }
# 					add_core_of = ORE
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1074 }
# 				1074 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					ORE = { transfer_state = PREV }
# 					add_core_of = ORE
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1076 }
# 				1076 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					ORE = { transfer_state = PREV }
# 					add_core_of = ORE
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1289 }
# 				1289 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					ORE = { transfer_state = PREV }
# 					add_core_of = ORE
# 				}
# 			}
# 			ORE = {
# 				hidden_effect = {
# 					set_variable = { var = ORE.NA_B_idea_working_class_exploitation_score_var@ORE value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = ORE.NA_B_idea_working_class_organization_score_var@ORE value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				country_event = { id = balkanized_usa.31 days = 7 random_days = 5 }
# 				set_politics = {
# 					ruling_party = traditional_conservatism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					autocracy = 2
# 					fundamentalism = 1
# 					anarchism = 15
# 					centrism = 42
# 					traditional_conservatism = 28
# 					social_egalitarianism = 12
# 				}
# 				USA_character_john_whiteaker = {
# 					add_country_leader_role = {
# 						country_leader = {
# 							desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 							expire = "1885.3.6"
# 							ideology = moderatism
# 						}
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = CAL
# 						CAL = { is_subject = no }
# 					}
# 					ORE = {
# 						set_variable = { rival_country = CAL.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NEZ
# 						NEZ = { is_subject = no }
# 					}
# 					ORE = {
# 						set_variable = { rival_country = NEZ.id }
# 					}
# 					NEZ = {
# 						set_variable = { rival_country = ORE.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = DAK
# 						DAK = { is_subject = no }
# 					}
# 					ORE = {
# 						set_variable = { most_favoured_country = KNS.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}

# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		ORE = { change_tag_from = ROOT }
# 	}
# }

# California (usa.131)
# country_event = {
# 	id = acw_generic.63
# 	title = acw_generic.63.t
# 	desc = acw_generic.63.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 1342 # Jefferson
# 			owns_state = 1343 # Central Valley
# 			owns_state = 378 # South California
# 			owns_state = 484 # Baja California
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1342 }
# 				1342 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					CAL = { transfer_state = PREV }
# 					add_core_of = CAL
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1343 }
# 				1343 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					CAL = { transfer_state = PREV }
# 					add_core_of = CAL
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 378 }
# 				378 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					CAL = { transfer_state = PREV }
# 					add_core_of = CAL
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 484 }
# 				484 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					CAL = { transfer_state = PREV }
# 					add_core_of = CAL
# 				}
# 			}
# 			CAL = {
# 				hidden_effect = {
# 					set_variable = { var = CAL.NA_B_idea_working_class_exploitation_score_var@CAL value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = CAL.NA_B_idea_working_class_organization_score_var@CAL value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = centrism
# 					elections_allowed = no
# 				}
				
# 				set_popularities = {
# 					autocracy = 26
# 					fundamentalism = 1
# 					anarchism = 11
# 					centrism = 41
# 					traditional_conservatism = 16
# 					social_egalitarianism = 5
# 				}
# 				if = {
# 					limit = {
# 						country_exists = UTA
# 						UTA = { is_subject = no }
# 					}
# 					CAL = {
# 						set_variable = { rival_country = UTA.id }
# 					}
# 					UTA = {
# 						set_variable = { rival_country = CAL.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NMX
# 						NMX = { is_subject = no }
# 					}
# 					NMX = {
# 						set_variable = { most_favoured_country = NMX.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			CAL = { change_tag_from = ROOT }
# 		}
# 	}
# }

# Utah (usa.140)
# country_event = {
# 	id = acw_generic.64
# 	title = acw_generic.64.t
# 	desc = acw_generic.64.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 379 # Great Basin
# 			owns_state = 380 # Utah
# 			owns_state = 382 # Ute
# 			owns_state = 387 # Idaho
# 			owns_state = 1092 # Upper Colorado
# 			owns_state = 1291 # Shoshone
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = UTA
# 					UTA = { is_subject = yes }
# 				}
# 				UTA = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							UTA = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = UTA
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 379 }
# 				379 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 380 }
# 				380 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 382 }
# 				382 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 387 }
# 				387 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1092 }
# 				1092 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1289 }
# 				1289 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1291 }
# 				1291 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					UTA = { transfer_state = PREV }
# 					add_core_of = UTA
# 				}
# 			}
# 			UTA = {
# 				hidden_effect = {
# 					set_variable = { var = UTA.NA_B_idea_working_class_exploitation_score_var@UTA value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = UTA.NA_B_idea_working_class_organization_score_var@UTA value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = fundamentalism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					fundamentalism = 37
# 					centrism = 35
# 					traditional_conservatism = 28
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NAV
# 						NAV = { is_subject = no }
# 					}
# 					NAV = {
# 						set_variable = { rival_country = UTA.id }
# 					}
# 					UTA = {
# 						set_variable = { rival_country = NAV.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = CAL
# 						CAL = { is_subject = no }
# 					}
# 					CAL = {
# 						set_variable = { rival_country = UTA.id }
# 					}
# 					UTA = {
# 						set_variable = { rival_country = CAL.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NMX
# 						NMX = { is_subject = no }
# 					}
# 					UTA = {
# 						set_variable = { most_favoured_country = NMX.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			UTA = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Pueblo (usa.140)
# country_event = {
# 	id = acw_generic.65
# 	title = acw_generic.65.t
# 	desc = acw_generic.65.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 377 # Gila
# 			owns_state = 1288 # San Juan
# 			owns_state = 1297 # Arizona
# 			owns_state = 1285
# 			owns_state = 1262
# 			owns_state = 1093 # Nevada
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = NMX
# 					NMX = { is_subject = yes }
# 				}
# 				NMX = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							NMX = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = NMX
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 377 }
# 				377 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1286 }
# 				1286 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1288 }
# 				1288 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1297 }
# 				1297 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1301 }
# 				1301 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state =	376 }
# 				 376 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state =	1285 }
# 				 1285 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state =	1279 }
# 				 1279 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state =	1093 }
# 				 1093 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NMX = { transfer_state = PREV }
# 					add_core_of = NMX
# 				}
# 			}
# 			NMX = {
# 				hidden_effect = {
# 					set_variable = { var = NMX.NA_B_idea_working_class_exploitation_score_var@NMX value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = NMX.NA_B_idea_working_class_organization_score_var@NMX value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = traditional_conservatism
# 					elections_allowed = yes
# 					election_frequency = 60
# 				}
# 				set_popularities = {
# 					autocracy = 3
# 					social_egalitarianism = 5
# 					fundamentalism = 16
# 					anarchism = 9
# 					centrism = 27
# 					traditional_conservatism = 40
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NAV
# 						APA = { is_subject = no }
# 					}
# 					NAV = {
# 						set_variable = { rival_country = NMX.id }
# 					}
# 					NMX = {
# 						set_variable = { rival_country = NAV.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = APA
# 						APA = { is_subject = no }
# 					}
# 					APA = {
# 						set_variable = { rival_country = NMX.id }
# 					}
# 					NMX = {
# 						set_variable = { rival_country = APA.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = TEX
# 						TEX = { is_subject = no }
# 					}
# 					TEX = {
# 						set_variable = { rival_country = NMX.id }
# 					}
# 					NMX = {
# 						set_variable = { rival_country = TEX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = UTA
# 						UTA = { is_subject = no }
# 					}
# 					UTA = {
# 						set_variable = { most_favoured_country = NMX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = CAL
# 						UTA = { is_subject = no }
# 					}
# 					CAL = {
# 						set_variable = { most_favoured_country = NMX.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			NMX = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Texas (usa.130)
# country_event = {
# 	id = acw_generic.66
# 	title = acw_generic.66.t
# 	desc = acw_generic.66.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 375 # Texas
# 			owns_state = 376 # Santa Fe
# 			owns_state = 1279 # Mosquero
# 			owns_state = 1285 # Central Pecos
# 			owns_state = 1293 # Oklahoma Strip
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 375 }
# 				375 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					TEX = { transfer_state = PREV }
# 					add_core_of = TEX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 376 }
# 				376 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					TEX = { transfer_state = PREV }
# 					add_core_of = TEX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1279 }
# 				1279 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					TEX = { transfer_state = PREV }
# 					add_core_of = TEX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1280 }
# 				1280 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					TEX = { transfer_state = PREV }
# 					add_core_of = TEX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1285 }
# 				1285 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					TEX = { transfer_state = PREV }
# 					add_core_of = TEX
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1293 }
# 				1293 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					TEX = { transfer_state = PREV }
# 					add_core_of = TEX
# 				}
# 			}
# 			CSA = {
# 				add_corps_commander_role = {
# 					character = CSA_character_albert_sidney_johnson
# 					traits = { desert_fox }
# 					skill = 3
# 					attack_skill = 4
# 					defense_skill = 4
# 					planning_skill = 1
# 					logistics_skill = 1
# 				}
# 				CSA_character_albert_sidney_johnson = {
# 					set_nationality = TEX
# 				}
# 			}
			
# 			TEX = {
# 				hidden_effect = {
# 					set_variable = { var = TEX.NA_B_idea_working_class_exploitation_score_var@TEX value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = TEX.NA_B_idea_working_class_organization_score_var@TEX value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = traditional_conservatism
# 					elections_allowed = yes
# 					election_frequency = 48
# 				}
# 				set_popularities = {
# 					fundamentalism = 0
# 					anarchism = 1
# 					centrism = 35
# 					traditional_conservatism = 64
# 				}
# 				if = {
# 					limit = {
# 						country_exists = OKL
# 						OKL = { is_subject = no }
# 					}
# 					TEX = {
# 						set_variable = { rival_country = OKL.id }
# 					}
# 					OKL = {
# 						set_variable = { rival_country = TEX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = MEX
# 						TEX = { is_subject = no }
# 					}
# 					TEX = {
# 						set_variable = { rival_country = MEX.id }
# 					}
# 					MEX = {
# 						set_variable = { rival_country = TEX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = MEC
# 						MEC = { is_subject = no }
# 					}
# 					TEX = {
# 						set_variable = { rival_country = MEC.id }
# 					}
# 					MEC = {
# 						set_variable = { rival_country = TEX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NMX
# 						NMX = { is_subject = no }
# 					}
# 					TEX = {
# 						set_variable = { rival_country = NMX.id }
# 					}
# 					NMX = {
# 						set_variable = { rival_country = TEX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = MIO
# 						MIO = { is_subject = no }
# 					}
# 					MIO = {
# 						set_variable = { most_favoured_country = TEX.id }
# 					}
# 					TEX = {
# 						set_variable = { most_favoured_country = MIO.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			TEX = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Oklahoma	(usa.140)
# country_event = {
# 	id = acw_generic.67
# 	title = acw_generic.67.t
# 	desc = acw_generic.67.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 374 # Oklahoma
# 			owns_state = 1293
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = OKL
# 					OKL = { is_subject = yes }
# 				}
# 				OKL = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							OKL = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = OKL
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 		}	
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 374 }
# 				374 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					OKL = { transfer_state = PREV }
# 					add_core_of = OKL
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1293 }
# 				1293 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					OKL = { transfer_state = PREV }
# 					add_core_of = OKL
# 				}
# 			}
# 			OKL = {
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = fundamentalism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					fundamentalism = 79
# 					anarchism = 2
# 					centrism = 10
# 					social_egalitarianism = 9
# 				}
# 				if = {
# 					limit = {
# 						country_exists = MIO
# 						MIO = { is_subject = no }
# 					}
# 					MIO = {
# 						set_variable = { rival_country = OKL.id }
# 					}
# 					OKL = {
# 						set_variable = { rival_country = MIO.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = CSA
# 						CSA = { is_subject = no }
# 					}
# 					CSA = {
# 						set_variable = { rival_country = OKL.id }
# 					}
# 					OKL = {
# 						set_variable = { rival_country = CSA.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = TEX
# 						TEX = { is_subject = no }
# 					}
# 					TEX = {
# 						set_variable = { rival_country = OKL.id }
# 					}
# 					OKL = {
# 						set_variable = { rival_country = TEX.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = APA
# 						APA = { is_subject = no }
# 					}
# 					APA = {
# 						set_variable = { most_favoured_country = OKL.id }
# 					}
# 					OKL = {
# 						set_variable = { most_favoured_country = APA.id }
# 					}
# 				}
# 				if = {
# 					limit = {
# 						country_exists = NAV
# 						MIO = { is_subject = no }
# 					}
# 					MIO = {
# 						set_variable = { most_favoured_country = OKL.id }
# 					}
# 					OKL = {
# 						set_variable = { most_favoured_country = MIO.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			OKL = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Kansas (usa.133)
# country_event = {
# 	id = acw_generic.68
# 	title = acw_generic.68.t
# 	desc = acw_generic.68.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 383 # Kansas
# 			owns_state = 384 # Nebraska
# 			owns_state = 1049 # Cheyenne
# 			owns_state = 1051 # Lower Colorado
# 			owns_state = 1052 # Kiowa
# 			owns_state = 1283 # Pinon Canyon
# 			owns_state = 1296 # Jicarilla
# 			owns_state = 1298 # Colorado Springs
# 		}
# 	}

# immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = KNS
# 					KNS = { is_subject = yes }
# 				}
# 				KNS = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							KNS = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = KNS
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 383 }
# 				383 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 384 }
# 				384 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1049 }
# 				1049 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1051 }
# 				1051 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1052 }
# 				1052 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1283 }
# 				1283 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1296 }
# 				1296 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1298 }
# 				1298 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KNS = { transfer_state = PREV }
# 					add_core_of = KNS
# 				}
# 			}
# 			KNS = {
# 				hidden_effect = {
# 					set_variable = { var = KNS.NA_B_idea_working_class_exploitation_score_var@KNS value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = KNS.NA_B_idea_working_class_organization_score_var@KNS value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = centrism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					fundamentalism = 14
# 					anarchism = 11
# 					traditional_conservatism = 11
# 					centrism = 45
# 					social_egalitarianism = 19
# 				}
# 				if = {
# 					limit = { country_exists = OKL }
# 					OKL = {
# 						set_variable = { rival_country = KNS.id }
# 					}
# 					KNS = {
# 						set_variable = { rival_country = OKL.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = MIO }
# 					MIO = {
# 						set_variable = { rival_country = KNS.id }
# 					}
# 					KNS = {
# 						set_variable = { rival_country = MIO.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = DAK }
# 					DAK = {
# 						set_variable = { most_favoured_country = KNS.id }
# 					}
# 					KNS = {
# 						set_variable = { most_favoured_country = DAK.id }
# 					}
# 				}
# 			}
# 			if = {
# 				limit = {
# 					NOT = {
# 						KNS_character_john_brown = {
# 							is_character_slot = country_leader
# 						}
# 					}
# 				}
# 				KNS_character_thomas_carney = {
# 					add_country_leader_role = {
# 						country_leader = {
# 							desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 							expire = "1894.1.6"
# 							ideology = liberal_social
# 							traits = { }
# 						}
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			KNS = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Dakota (usa.134)
# country_event = {
# 	id = acw_generic.69
# 	title = acw_generic.69.t
# 	desc = acw_generic.69.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 381 # Wyoming
# 			owns_state = 388 # Montana
# 			owns_state = 389 # Dakota
# 			owns_state = 390 # Yankton
# 			owns_state = 1045 # Ponca
# 			owns_state = 1047 # Kettle
# 			owns_state = 1048 # Teton
# 			owns_state = 1292 # Blackfoot
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = DAK
# 					DAK = { is_subject = yes }
# 				}
# 				DAK = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							DAK = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = DAK
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 381 }
# 				381 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 388 }
# 				388 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 389 }
# 				389 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 390 }
# 				390 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1045 }
# 				1045 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1047 }
# 				1047 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1048 }
# 				1048 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1292 }
# 				1292 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					DAK = { transfer_state = PREV }
# 					add_core_of = DAK
# 				}
# 			}
# 			DAK = {
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_country_flag = NA_B_infrastructure_progress_disabled
# 				set_country_flag = NA_B_academic_progress_disabled
# 				set_country_flag = NA_B_militia_progress_disabled
# 				DAK_wilmot_w_brookings = {
# 					add_country_leader_role = {
# 						country_leader = {
# 							desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 							expire = "1905.1.6"
# 							ideology = moderatism
# 							traits = { }
# 						}
# 					}
# 				}
# 				set_politics = {
# 					ruling_party = centrism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					traditional_conservatism = 49
# 					centrism = 35
# 					social_egalitarianism = 16
# 				}
# 				if = {
# 					limit = { country_exists = KNS }
# 					DAK = {
# 						set_variable = { most_favoured_country = KNS.id }
# 					}
# 					KNS = {
# 						set_variable = { most_favoured_country = DAK.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = ORE }
# 					ORE = {
# 						set_variable = { most_favoured_country = DAK.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = KTY }
# 					DAK = {
# 						set_variable = { rival_country = KTY.id }
# 					}
# 					KTY = {
# 						set_variable = { rival_country = DAK.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			DAK = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Great Lakes (usa.137)
# country_event = {
# 	id = acw_generic.70
# 	title = acw_generic.70.t
# 	desc = acw_generic.70.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 261 # Ohio
# 			owns_state = 391 # Minnesota
# 			owns_state = 392 # Iowa
# 			owns_state = 393 # Michigan
# 			owns_state = 394 # Wisconsin
# 			owns_state = 395 # Illinois
# 			owns_state = 396 # Indiana
# 		}
# 	}

# immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = {
# 					country_exists = MIN
# 					MIN = { is_subject = yes }
# 				}
# 				MIN = {
# 					every_owned_state = {
# 						if = {
# 							limit = { is_controlled_by = CAL }
# 							CAL = {
# 								transfer_state = PREV
# 								add_state_core = PREV
# 							}
# 							MIN = {
# 								remove_state_core = PREV
# 								add_state_claim = PREV
# 							}
# 						}
# 					}
# 					OVERLORD = {
# 							set_autonomy = {
# 								target = MIN
# 								autonomy_state = autonomy_free
# 							}
# 					}
# 					white_peace = CAL
# 				}
# 			}
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 261 }
# 				261 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 391 }
# 				391 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 392 }
# 				392 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1358 }
# 				1358 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 393 }
# 				393 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 394 }
# 				394 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 395 }
# 				395 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 396 }
# 				396 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIN = { transfer_state = PREV }
# 					add_core_of = MIN
# 				}
# 			}
# 			USA_character_abraham_lincoln = {
# 				add_field_marshal_role = {
# 					skill = 1
# 					attack_skill = 1
# 					defense_skill = 1
# 					planning_skill = 2
# 					logistics_skill = 1
# 				}
# 				set_nationality = MIN
# 			}
# 			MIN = {
# 				add_ideas = MIN_atlantic_states_tariffs
# 				add_ideas = MIN_ga_contested_lake_control_level_2
# 				hidden_effect = {
# 					set_variable = { var = MIN.NA_B_idea_working_class_exploitation_score_var@MIN value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = MIN.NA_B_idea_working_class_organization_score_var@MIN value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = centrism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					fundamentalism = 2
# 					anarchism = 5
# 					traditional_conservatism = 18
# 					centrism = 58
# 					social_egalitarianism = 17
# 				}
# 				if = {
# 					limit = { country_exists = CSA }
# 					CSA = {
# 						set_variable = { rival_country = MIN.id }
# 					}
# 					MIN = {
# 						set_variable = { rival_country = CSA.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = MIO }
# 					MIN = {
# 						set_variable = { rival_country = MIO.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = KTY }
# 					KTY = {
# 						set_variable = { most_favoured_country = MIN.id }
# 					}
# 					MIN = {
# 						set_variable = { most_favoured_country = KTY.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = WVG }
# 					WVG = {
# 						set_variable = { most_favoured_country = MIN.id }
# 					}
# 					MIN = {
# 						set_variable = { most_favoured_country = WVG.id }
# 					}
# 				}
# 				retire_ideology_leader = ideology_social_liberalism
# 				add_country_leader_role = {
# 					character = USA_character_abraham_lincoln
# 					promote_leader = yes
# 					country_leader = {
# 						desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 						expire = "1947.1.1"
# 						ideology = ideology_sub_social_liberal
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			MIN = { change_tag_from = ROOT }
# 		}
# 	}
# }

# Missouri (usa.135)
# country_event = {
# 	id = acw_generic.71
# 	title = acw_generic.71.t
# 	desc = acw_generic.71.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 373
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 373 }
# 				373 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MIO = { transfer_state = PREV }
# 					add_core_of = MIO
# 				}
# 			}
# 			MIO = {
# 				hidden_effect = {
# 					set_variable = { var = MIO.NA_B_idea_working_class_exploitation_score_var@MIO value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = MIO.NA_B_idea_working_class_organization_score_var@MIO value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = traditional_conservatism
# 					elections_allowed = yes
# 					election_frequency = 48
# 				}
# 				set_popularities = {
# 					fundamentalism = 5
# 					traditional_conservatism = 56
# 					centrism = 36
# 					social_egalitarianism = 3
# 				}
# 				if = {
# 					limit = { country_exists = DAK }
# 					DAK = {
# 						set_variable = { rival_country = MIO.id }
# 					}
# 					MIO = {
# 						set_variable = { rival_country = DAK.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = KNS }
# 					KNS = {
# 						set_variable = { rival_country = MIO.id }
# 					}
# 					MIO = {
# 						set_variable = { rival_country = KNS.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = CSA }
# 					CSA = {
# 						set_variable = { most_favoured_country = MIO.id }
# 					}
# 					MIO = {
# 						set_variable = { most_favoured_country = CSA.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			MIO = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Kentucky (usa.136)
# country_event = {
# 	id = acw_generic.72
# 	title = acw_generic.72.t
# 	desc = acw_generic.72.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 369
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 369 }
# 				369 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					KTY = { transfer_state = PREV }
# 					add_core_of = KTY
# 				}
# 			}
# 			USA_character_john_breckinridge = {
# 				add_field_marshal_role = {
# 					skill = 1
# 					attack_skill = 1
# 					defense_skill = 2
# 					planning_skill = 1
# 					logistics_skill = 1
# 				}
# 				set_nationality = KTY
# 			}
# 			CSA = {
# 				add_corps_commander_role = {
# 					character = CSA_character_john_bell_hood
# 					traits = {}
# 					skill = 2
# 					attack_skill = 3
# 					defense_skill = 2
# 					planning_skill = 1
# 					logistics_skill = 1
# 				}
# 				CSA_character_john_bell_hood = {
# 					set_nationality = KTY
# 				}
# 			}
# 			KTY = {
# 				hidden_effect = {
# 					set_variable = { var = KTY.NA_B_idea_working_class_exploitation_score_var@KTY value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = KTY.NA_B_idea_working_class_organization_score_var@KTY value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				USA_character_john_breckinridge = {
# 					add_country_leader_role = {
# 						country_leader = {
# 							desc = "USA_character_john_breckinridge_desc"
# 							expire = "1885.10.29"
# 							ideology = reactionary
# 							traits = { hawk }
# 						}
# 					}
# 				}
# 				retire_ideology_leader = radical_democracy
# 				USA_character_john_breckinridge = {
# 					promote_character = yes
# 					promote_character = reactionary
# 				}
# 				set_politics = {
# 					ruling_party = radical_democracy
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					fundamentalism = 2
# 					radical_democracy = 58
# 					centrism = 32
# 					social_egalitarianism = 7
# 					anarchism = 1
# 				}
# 				if = {
# 					limit = { country_exists = MIN }
# 					MIN = {
# 						set_variable = { most_favoured_country = KTY.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = KNS }
# 					MIN = {
# 						set_variable = { most_favoured_country = KNS.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = NEG }
# 					MIN = {
# 						set_variable = { most_favoured_country = NEG.id }
# 					}
# 					NEG = {
# 						set_variable = { most_favoured_country = MIN.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			MIO = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # West Virginia
# country_event = {
# 	id = acw_generic.73
# 	title = acw_generic.73.t
# 	desc = acw_generic.73.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 746
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 746 }
# 				746 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					WVG = { transfer_state = PREV }
# 					add_core_of = WVG
# 				}
# 			}
# 			WVG = {
# 				hidden_effect = {
# 					set_variable = { var = WVG.NA_B_idea_working_class_exploitation_score_var@WVG value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = WVG.NA_B_idea_working_class_organization_score_var@WVG value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = centrism
# 					elections_allowed = yes
# 					election_frequency = 96
# 				}
# 				set_popularities = {
# 					fundamentalism = 8
# 					traditional_conservatism = 23
# 					centrism = 51
# 					social_egalitarianism = 14
# 					anarchism = 4
# 				}
# 				if = {
# 					limit = { country_exists = KTY }
# 					KTY = {
# 						set_variable = { most_favoured_country = WVG.id }
# 					}
# 					WVG = {
# 						set_variable = { most_favoured_country = KTY.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = DAK }
# 					DAK = {
# 						set_variable = { rival_country = KTY.id }
# 					}
# 					KTY = {
# 						set_variable = { rival_country = DAK.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			WVG = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Manhattan Commune Randomization
# country_event = {
# 	id = acw_generic.74

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	hidden = yes

# 	immediate = {
# 		random_list = {
# 			85 = {
# 				country_event = { id = acw_generic.75 }
# 			}
# 			15 = {
# 				# Nothing happens, Manhattan stays with USA
# 			}
# 		}
# 	}
# }

# # Manhattan Commune (usa.139)
# country_event = {
# 	id = acw_generic.75
# 	title = acw_generic.75.t
# 	desc = acw_generic.75.d
# 	picture = GFX_report_event_worker_protests

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 358
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 358 }
# 				358 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					MHC = { transfer_state = PREV }
# 					add_core_of = MHC
# 				}
# 			}
# 			MHC = {
# 				hidden_effect = {
# 					set_variable = { var = MHC.NA_B_idea_working_class_exploitation_score_var@MHC value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = MHC.NA_B_idea_working_class_organization_score_var@MHC value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				set_politics = {
# 					ruling_party = anarchism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					anarchism = 16
# 					ideology_radical_socialism = 17
# 					social_egalitarianism = 31
# 					centrism = 16
#					ideology_social_liberalism = 5
# 					traditional_conservatism = 13
# 					radical_democracy = 0
# 					chauvinist_populism = 0
# 					autocracy = 0
# 					fundamentalism = 2
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			MHC = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # New England (usa.138)
# country_event = {
# 	id = acw_generic.76
# 	title = acw_generic.76.t
# 	desc = acw_generic.76.d
# 	picture = GFX_news_event_south_carolina

# 	is_triggered_only = yes
# 	fire_only_once = yes
# 	trigger = {
# 		OR = {
# 			owns_state = 357
# 			owns_state = 465
# 			owns_state = 958
# 			owns_state = 959
# 			owns_state = 960
# 			owns_state = 961
# 			owns_state = 1031
# 		}
# 	}

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 357 }
# 				357 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 465 }
# 				465 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 958 }
# 				958 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 959 }
# 				959 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 960 }
# 				960 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 961 }
# 				961 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			if = {
# 				limit = { owns_state = 1031 }
# 				1031 = {
# 					remove_core_of = USA
# 					add_claim_by = USA
# 					NEG = { transfer_state = PREV }
# 					add_core_of = NEG
# 				}
# 			}
# 			USA_character_hannibal_hamlin = {
# 				add_field_marshal_role = {
# 					skill = 1
# 					attack_skill = 1
# 					defense_skill = 1
# 					planning_skill = 1
# 					logistics_skill = 2
# 				}
# 				set_nationality = NEG
# 			}
# 			NEG = {
# 				hidden_effect = {
# 					set_variable = { var = NEG.NA_B_idea_working_class_exploitation_score_var@NEG value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 					set_variable = { var = NEG.NA_B_idea_working_class_organization_score_var@NEG value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 					country_event = { id = balkanized_usa.10 }
# 				}
# 				country_event = { id = balkanized_usa.6 days = 2 }
# 				USA_character_hannibal_hamlin = {
# 					add_country_leader_role = {
# 						country_leader = {
# 							desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
# 							expire = "1947.1.1"
# 							ideology = liberal_social
# 						}
# 					}
# 				}
# 				retire_ideology_leader = social_egalitarianism
# 				USA_character_hannibal_hamlin = {
# 					promote_character = yes
# 					promote_character = liberal_social
# 				}
# 				set_politics = {
# 					ruling_party = social_egalitarianism
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					traditional_conservatism = 16
# 					centrism = 24
# 					social_egalitarianism = 35
# 					anarchism = 11
# 					radical_democracy = 14
# 				}
# 				if = {
# 					limit = { country_exists = CSA }
# 					NEG = {
# 						set_variable = { rival_country = CSA.id }
# 					}
# 					CSA = {
# 						set_variable = { rival_country = NEG.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = MHC }
# 					NEG = {
# 						set_variable = { rival_country = MHC.id }
# 					}
# 					MHC = {
# 						set_variable = { rival_country = NEG.id }
# 					}
# 				}
# 				if = {
# 					limit = { CAN = { is_subject = no } }
# 					NEG = {
# 						set_variable = { rival_country = CAN.id }
# 					}
# 					CAN = {
# 						set_variable = { rival_country = NEG.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = WVG }
# 					NEG = {
# 						set_variable = { most_favoured_country = WVG.id }
# 					}
# 					WVG = {
# 						set_variable = { most_favoured_country = NEG.id }
# 					}
# 				}
# 				if = {
# 					limit = { country_exists = MIN }
# 					NEG = {
# 						set_variable = { most_favoured_country = MIN.id }
# 					}
# 					MIN = {
# 						set_variable = { most_favoured_country = NEG.id }
# 					}
# 				}
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.62.a
# 		custom_effect_tooltip = 01_ACW_GENERIC_tt
# 	}
# 	option = {
# 		name = acw_generic.62.b
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 45_ACW_GENERIC_tt
# 		hidden_effect = {
# 			NEG = { change_tag_from = ROOT }
# 		}
# 	}
# }

# # Atlantic States (usa.141)
# country_event = {
# 	id = acw_generic.78
# 	title = acw_generic.78.t
# 	desc = acw_generic.78.d
# 	picture = fall_of_washington_ACW

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			if = {
# 				limit = { has_war_with = CAL }
# 				every_owned_state = {
# 					if = {
# 						limit = { is_controlled_by = CAL }
# 						CAL = {
# 							transfer_state = PREV
# 							add_state_core = PREV
# 						}
# 						USA = {
# 							remove_state_core = PREV
# 							add_state_claim = PREV
# 						}
# 					}
# 				}
# 			}
# 			every_owned_state = {
# 				if = {
# 					limit = { is_capital = no }
# 					ASA = { transfer_state = PREV }
# 					if = {
# 						limit = { THIS = { is_core_of = USA } }
# 						remove_core_of = USA
# 						add_claim_by = USA
# 						add_core_of = ASA
# 					}
# 					else = {
# 						add_claim_by = USA
# 						add_claim_by = ASA
# 					}
# 				}
# 			}
# 			USA_character_george_b_mcclellan = {
# 				set_character_flag = mcclellan_character_flag
# 				add_field_marshal_role = {
# 					traits = { expert_administrator aversion_to_offense inflexible_strategist career_officer trait_cautious organizer logistics_wizard }
# 					skill = 4
# 					attack_skill = 2
# 					defense_skill = 3
# 					planning_skill = 4
# 					logistics_skill = 4
# 				}
# 				add_advisor_role = {
# 					advisor = {
# 						name = "George B. McClellan"
# 						slot = army_chief
# 						idea_token = USA_george_b_mcclellan
# 						traits = {
# 							army_chief_morale_2
# 						}
# 						cost = 100
# 					}
# 				}
# 				set_nationality = ASA
# 			}
# 			USA_character_george_meade = {
# 				add_corps_commander_role = {
# 					traits = { urban_assault_specialist hill_fighter }
# 					skill = 3
# 					attack_skill = 2
# 					defense_skill = 4
# 					planning_skill = 3
# 					logistics_skill = 3
# 				}
# 				set_nationality = ASA
# 			}
# 			USA_character_henry_halleck = {
# 				add_corps_commander_role = {
# 					traits = { urban_assault_specialist hill_fighter }
# 					skill = 3
# 					attack_skill = 2
# 					defense_skill = 4
# 					planning_skill = 3
# 					logistics_skill = 3
# 				}
# 				set_nationality = ASA
# 			}
# 			USA_character_irvin_mcdowell = {
# 				add_corps_commander_role = {
# 					traits = {  }
# 					skill = 2
# 					attack_skill = 3
# 					defense_skill = 3
# 					planning_skill = 2
# 					logistics_skill = 3
# 				}
# 				set_nationality = ASA
# 			}
# 			USA_character_philip_sheridan = {
# 				add_corps_commander_role = {
# 					traits = { cavalry_officer career_officer }
# 					skill = 3
# 					attack_skill = 4
# 					defense_skill = 3
# 					planning_skill = 4
# 					logistics_skill = 3
# 				}
# 				set_nationality = ASA
# 			}
# 			USA_character_edward_ord = {
# 				add_corps_commander_role = {
# 					traits = { bearer_of_artillery artillery_officer artillery_leader }
# 					skill = 3
# 					attack_skill = 3
# 					defense_skill = 3
# 					planning_skill = 2
# 					logistics_skill = 3
# 				}
# 				set_nationality = ASA
# 			}
# 			USA_character_john_g_parke = {
# 				add_corps_commander_role = {
# 					traits = {  }
# 					skill = 3
# 					attack_skill = 3
# 					defense_skill = 4
# 					planning_skill = 3
# 					logistics_skill = 4
# 				}
# 				set_nationality = ASA
# 			}
# 		}
# 	}

# 	option = {
# 		name = acw_generic.78.a
# 		trigger = { is_ai = no }
# 		custom_effect_tooltip = 46_ACW_GENERIC_tt
# 		set_global_flag = ACW_Great_Collapse
# 		hidden_effect = {
# 			country_event = { id = acw_generic.79 days = 2 }
# 			ASA = { change_tag_from = ROOT }
# 			ASA = { country_event = { id = balkanized_usa.6 } }
# 		}
# 	}
# 	option = {
# 		name = acw_generic.78.a
# 		set_global_flag = ACW_Great_Collapse
# 		trigger = { is_ai = yes }
# 		country_event = { id = acw_generic.79 days = 2 }
# 		ASA = { country_event = { id = balkanized_usa.6 } }
# 	}
# }

# country_event = {
# 	id = acw_generic.79
# 	hidden = yes

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		USA = {
# 			every_owned_state = {
# 				add_core_of = ASA
# 				ASA = { transfer_state = PREV }
# 			}
# 		}
# 		ASA = {
# 			add_ideas = ASA_ga_contested_lake_control_level_2
# 			hidden_effect = {
# 				set_variable = { var = ASA.NA_B_idea_working_class_exploitation_score_var@ASA value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
# 				set_variable = { var = ASA.NA_B_idea_working_class_organization_score_var@ASA value = USA.NA_B_idea_working_class_organization_score_var@USA }
# 				country_event = { id = balkanized_usa.10 }
# 			}
# 			USA_character_george_b_mcclellan = {
# 				add_country_leader_role = {
# 					country_leader = { # Military McClellan
# 						desc = "ASA_character_george_b_mcclellan_desc"
# 						ideology = military_goverment
# 						expire = "1885.10.29"
# 						traits = { eoanb_trait_military_leader war_veteran }
# 					}
# 				}
# 			}
# 			retire_ideology_leader = radical_democracy
# 			USA_character_george_b_mcclellan = {
# 				promote_character = yes
# 				promote_character = military_goverment
# 			}
# 			USA_character_george_b_mcclellan = {
# 				add_country_leader_role = {
# 					country_leader = {
# 						desc = "ASA_character_george_b_mcclellan_desc"
# 						ideology = federal
# 						expire = "1885.10.29"
# 						traits = { traditional_conservative war_veteran }
# 					}
# 				}
# 			}
# 			retire_ideology_leader = traditional_conservatism
# 			USA_character_george_b_mcclellan = {
# 				promote_character = yes
# 				promote_character = federal
# 			}
# 			set_politics = {
# 				ruling_party = social_egalitarianism
# 				elections_allowed = no
# 			}
# 			country_event = { id = asa.212 days = 14 }
# 			ASA = {
# 				set_variable = { rival_country = CSA.id }
# 			}
# 			CSA = {
# 				set_variable = { rival_country = ASA.id }
# 			}
# 			MHC = {
# 				set_variable = { rival_country = ASA.id }
# 			}
# 			if = {
# 				limit = { country_exists = WVG }
# 				ASA = {
# 					set_variable = { most_favoured_country = WVG.id }
# 				}
# 			}
# 			setup_initial_coalitions = yes
# 			set_initial_weights = yes
# 			compute_seats = yes
# 			draw_seats = yes
# 			set_generic_party_issues = yes
# 		}
# 		every_country = {
# 			if = {
# 				limit = { is_ai = no }
# 			}
# 			set_variable = { super_event_displayed = 10 }
# 		}
# 	}
# }

############################ BRECKINRIDGE ###########################

# Breckinridge Victory Speech
country_event = {
	id = acw_generic.80
	title = acw_generic.80.t
	desc = acw_generic.80.d
	picture = placeholder

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 3 }
			USA_Slavery_Debate_Tension_Modify = yes
			country_event = { id = acw_generic.83 days = 15 }
		}
	}

	option = {
		name = acw_generic.80.a
		custom_effect_tooltip = 06_ACW_GENERIC_tt
		ai_chance = {
			factor = 75
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			set_country_flag = USA_Breckinridge_Moderate_Appeal
			country_event = { id = acw_generic.81 days = 4 }
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 3 }
			USA_Slavery_Debate_Tension_Modify = yes
		}
	}
	option = {
		name = acw_generic.80.b
		custom_effect_tooltip = 04_ACW_GENERIC_tt
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			set_country_flag = USA_Breckinridge_No_Moderate_Appeal
			country_event = { id = acw_generic.82 days = 4 }
			set_temp_variable = { USA_Slavery_Debate_Tension_Change = 5 }
			USA_Slavery_Debate_Tension_Modify = yes
		}
	}
}

# Response to Breckinridge's speech for unity
country_event = {
	id = acw_generic.81
	title = acw_generic.81.t
	desc = acw_generic.81.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 10 }
		USA_Slavery_Debate_Leaning_Modify = yes
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = -2 }
		USA_Slavery_Debate_Tension_Modify = yes
	}

	option = {
		name = acw_generic.81.a
		custom_effect_tooltip = 05_ACW_GENERIC_tt
		add_popularity = {
			ideology = radical_democracy
			popularity = 0.02
		}
	}
}

# Response to Breckinridge's speech for slavery expansion
country_event = {
	id = acw_generic.82
	title = acw_generic.82.t
	desc = acw_generic.82.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Leaning_Change = -10 }
		USA_Slavery_Debate_Leaning_Modify = yes
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 8 }
		USA_Slavery_Debate_Tension_Modify = yes
	}

	option = {
		name = acw_generic.82.a
		add_popularity = {
			ideology = radical_democracy
			popularity = 0.01
		}
	}
}

# John Bell shows support
country_event = {
	id = acw_generic.83
	title = acw_generic.83.t
	desc = acw_generic.83.d
	picture = GFX_news_event_lincoln_douglas

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = acw_generic.83.a
		custom_effect_tooltip = 03_ACW_GENERIC_tt
		custom_effect_tooltip = 06_ACW_GENERIC_tt
		add_political_power = 50
		add_popularity = {
			ideology = social_egalitarianism
			popularity = -0.03
		}
		add_popularity = {
			ideology = ideology_social_liberalism
			popularity = 0.01
		}
		add_popularity = {
			ideology = radical_democracy
			popularity = 0.02
		}
		hidden_effect = {
			country_event = { id = acw_generic.85 days = 65 }
			country_event = { id = acw_generic.84 days = 80 }
		}
	}
}

# Breckinridge Inaguration (usa.11)
country_event = {
	id = acw_generic.84
	title = acw_generic.84.t
	desc = acw_generic.84.d
	picture = GFX_news_event_lincoln_elected_1

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 15 }
		USA_Slavery_Debate_Tension_Modify = yes
		hidden_effect = {
			country_event = {
				id = acw_generic.89
				days = 20
			}
		}
	}
	option = {
		name = acw_generic.84.a
		retire_ideology_leader = radical_democracy
		set_politics = {
			ruling_party = radical_democracy
			elections_allowed = no
		}
		USA_character_john_breckinridge = {
			add_country_leader_role = {
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
					expire = "1875.3.17"
					ideology = reactionary
					traits = { controversial_figure determined_expansionist }
				}
			}
		}
		every_character = {
			limit = {
				is_character_slot = political_advisor
				has_character_flag = usa_cabinet_member_flag
			}
			remove_advisor_role = {
				slot = political_advisor
			}
		}
		USA_character_joseph_lane = {
			set_character_flag = usa_cabinet_member_flag
			add_advisor_role = {
				advisor = {
					slot = political_advisor
					idea_token = USA_advisor_joseph_lane
					traits = { trait_vice_president }
					ai_will_do = { factor = 0 }
				}
				activate = yes
			}
		}
		USA_character_robert_hunter = {
			set_character_flag = usa_cabinet_member_flag
			add_advisor_role = {
				advisor = {
					slot = political_advisor
					idea_token = USA_advisor_robert_hunter
					traits = { trait_secretary_of_state }
					ai_will_do = { factor = 0 }
				}
				activate = yes
			}
		}
		USA_character_george_trenholm = {
			set_character_flag = usa_cabinet_member_flag
			add_advisor_role = {
				advisor = {
					slot = political_advisor
					idea_token = USA_advisor_george_trenholm
					traits = { trait_secretary_of_the_treasury }
					ai_will_do = { factor = 0 }
				}
				activate = yes
			}
		}
		USA_character_stephen_mallory = {
			set_character_flag = usa_cabinet_member_flag
			add_advisor_role = {
				advisor = {
					slot = political_advisor
					idea_token = USA_advisor_stephen_mallory
					traits = { trait_secretary_of_the_navy }
					ai_will_do = { factor = 0 }
				}
				activate = yes
			}
		}
		USA_character_judah_p_benjamin = {
			set_character_flag = usa_cabinet_member_flag
			add_advisor_role = {
				advisor = {
					slot = political_advisor
					idea_token = USA_advisor_judah_p_benjamin
					traits = { trait_attorney_general }
					ai_will_do = { factor = 0 }
				}
				activate = yes
			}
		}
		USA_character_jefferson_davis = {
			set_character_flag = usa_cabinet_member_flag
			add_advisor_role = {
				advisor = {
					slot = political_advisor
					idea_token = USA_advisor_jefferson_davis
					traits = { trait_secretary_of_war }
					ai_will_do = { factor = 0 }
				}
				activate = yes
			}
		}
	}
}

country_event = {
	id = acw_generic.85
	title = acw_generic.85.t
	desc = acw_generic.85.d
	picture = GFX_news_event_lincoln_elected_1

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		set_temp_variable = { USA_Slavery_Debate_Leaning_Change = 6 }
		USA_Slavery_Debate_Leaning_Modify = yes
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 5 }
		USA_Slavery_Debate_Tension_Modify = yes
	}
	option = {
		name = acw_generic.85.a
	}
}



# Union denounces demands. Start ACW
country_event = {
	id = acw_generic.86
	title = acw_generic.86.t
	desc = acw_generic.86.d
	picture = GFX_report_event_election_vote

	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = acw_generic.86.a
		hidden_effect = {
			362 = { set_demilitarized_zone = no }
			363 = { set_demilitarized_zone = no }
			368 = { set_demilitarized_zone = no }
			369 = { set_demilitarized_zone = no }
			372 = { set_demilitarized_zone = no }
			373 = { set_demilitarized_zone = no }
			374 = { set_demilitarized_zone = no }
			746 = { set_demilitarized_zone = no }

			USA = {
				add_war_support = 0.3
				add_stability = 0.3
				add_popularity = {
					ideology = traditional_conservatism
					popularity = -0.31
				}
				CSA = {
					transfer_state = 362
					add_state_core = 362
					transfer_state = 363
					add_state_core = 363
					transfer_state = 368
					add_state_core = 368
					transfer_state = 372
					add_state_core = 372
					add_popularity = {
						ideology = radical_democracy
						popularity = 0.09
					}
				}
				remove_state_core = 362
				add_state_core = 362
				remove_state_core = 363
				add_state_core = 363
				remove_state_core = 368
				add_state_core = 368
				remove_state_core = 372
				add_state_claim = 372

				set_global_flag = ACW_American_Civil_War
				country_event = { hours = 1 id = acw_generic.87 } #end union mobilization
				country_event = { days = 4 id = acw.5 } #end south generals leave
				country_event = { days = 7 id = acw.6 } #end acw starts
				country_event = { id = usa.312 days = 1 }
			}
			CSA = {
				add_stability = 0.3
				add_war_support = 0.3

				country_event = { hours = 1 id = csa.10 } #end
				country_event = { days = 7 id = acw_generic.11 } #end
			}
			country_event = { id = acw_first_nations.7 days = 3 } #end natives slow raids
		USA = { country_event = { id = acw_generic.135 days = 10 } } #End support for the ACS in Liberia?
			news_event = { id = acw_generic.125 }
			declare_war_on = {
				target = USA
				type = acw_civil_war_wargoal
			}
		}
	}
}

# FSA Stevens Revolt
country_event = {
	id = acw_generic.88
	title = acw_generic.88.t
	desc = acw_generic.88.d

	picture = GFX_report_event_american_hunger_march

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = usa_acw_northern_revolt
			set_global_flag = ACW_Free_States_Rebelled
			country_event = { id = acw_generic.99 days = 30 }
			if = {
				limit = {
					is_ai = no
				}
				set_variable = { super_event_displayed = 9 }
			}
			start_civil_war = {
				ruling_party = ROOT
				ideology = social_egalitarianism
				size = 0.0
				capital = 360
				states = { 961 960 959 357 1031 958 358 359 360 261 393 1358 394 396 395 }
			}
			USA = {
				add_ideas = USA_Spirit_West_Point_Napoleonic_Thought1
				add_ideas = Generic_National_Riot_1
				add_ideas = USA_Spirit_American_Civil_War_Army_Incompetency1
				complete_national_focus = USA_Focus_ACW_The_North
				set_autonomy = {
					target = OKL
					autonomy_state = autonomy_first_nations_reservation
				}
			}
			CSA = {
				add_field_marshal_role = {
					traits = { brilliant_strategist unyielding_defender guerilla_fighter }
					skill = 4
					attack_skill = 5
					defense_skill = 5
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_robert_e_lee = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = { brilliant_strategist infantry_leader }
					skill = 3
					id = 5021
					attack_skill = 6
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_stonewall_jackson = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = {}
					skill = 3
					id = 5022
					attack_skill = 3
					defense_skill = 4
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_edmund_kirby_smith = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = { politically_connected }
					skill = 1
					id = 5023
					attack_skill = 3
					defense_skill = 4
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_leonidas_polk = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = {}
					skill = 3
					attack_skill = 4
					defense_skill = 4
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_william_j_hardee = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = {}
					skill = 2
					attack_skill = 3
					defense_skill = 2
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_john_bell_hood = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = { desert_fox }
					skill = 3
					attack_skill = 4
					defense_skill = 4
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_albert_sidney_johnson = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = { old_guard hill_fighter }
					skill = 2
					attack_skill = 3
					defense_skill = 3
					planning_skill = 1
					logistics_skill = 1
				}
				CSA_character_braxton_bragg = {
					set_nationality = USA
				}
				add_corps_commander_role = {
					traits = { urban_assault_specialist old_guard }
					skill = 3
					attack_skill = 2
					defense_skill = 3
					planning_skill = 4
					logistics_skill = 3
				}
				CSA_character_joseph_e_jonston = {
					set_nationality = USA
				}
			}
			357 = {
				owner = {
					set_country_flag = acw_the_free_states_of_america
					save_global_event_target_as = acw_the_free_states_of_america
					set_variable = { rival_country = USA.id }
					inherit_technology = USA
					add_popularity = { ideology = social_egalitarianism popularity = 0.35 }
					load_focus_tree = fsa_reconstruction
					set_cosmetic_tag = USA_free_states_of_america
					load_oob = "FSA_1861"
					inherit_technology = USA
					set_stability = 0.5
					set_war_support = 0.8
					add_popularity = {
						ideology = ideology_social_liberalism
						popularity = 0.35
					}
					add_popularity = {
						ideology = fundamentalism
						popularity = 0.01
					}
					add_popularity = {
						ideology = ideology_radical_socialism
						popularity = 0.01
					}
					add_popularity = {
						ideology = traditional_conservatism
						popularity = 0.10
					}
					set_politics = {
						ruling_party = social_egalitarianism
						elections_allowed = no
					}
					generate_character = {
						token_base = USA_thaddeus_stevens_temp
						name = USA_thaddeus_stevens_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_thaddeus_stevens"
							}
						}
					}
					USA_thaddeus_stevens_temp = {
						add_corps_commander_role = {
							skill = 1
							attack_skill = 1
							defense_skill = 1
							planning_skill = 1
							logistics_skill = 1
						}
						add_country_leader_role = {
							promote_leader = yes
							country_leader = {
								desc = "POLITICS_FRANKLIN_DELANO_ROOSEVELT_DESC"
								expire = "1868.8.11"
								ideology = liberal_social
							}
						}
						set_leader_portrait = "GFX_portrait_USA_thaddeus_stevens"
						remove_unit_leader_role = yes
					}
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = 2500
						producer = USA
					}
					add_equipment_to_stockpile = {
						type = uniform_equipment
						amount = 2500
						producer = USA
					}
					add_equipment_to_stockpile = {
						type = cavalry_equipment
						amount = 1000
						producer = USA
					}
					add_ideas = {
						#hos_is_leader
						victorian_era
						doctrine_victorian_army_1
						industrializing
						#non_monarchical_system
						#presidential_republic

						civilian_economy
						export_focus
						army_spending_level_2
						normal_taxes
						cl_restricted
						#twelve_hour_work_day

						#stagnation_growth
						border_control
						volunteer_only
						racial_laws
						universal_male_suffrage

						#constitution_adopted
						free_elections

						privileged_education
						state_religion
						#religion_protestant

						FSA_new_union_0
						FSA_catholic_discrimination
						FSA_napoleonic_thought_1
						USA_Spirit_American_Civil_War_Army_Incompetency1
					}
					set_global_flag = NEG_NA_B_idea_working_class_exploitation_score_var_set_flag
					set_variable = { var = NEG.NA_B_idea_working_class_exploitation_score_var@NEG value = USA.NA_B_idea_working_class_exploitation_score_var@USA }
					set_variable = { var = NEG.NA_B_idea_working_class_organization_score_var@NEG value = USA.NA_B_idea_working_class_organization_score_var@USA }
					country_event = balkanized_usa.10
					country_event = { id = fsa.2 days = 1 }

					generate_character = {
						token_base = USA_ulysses_s_grant_temp_token
						name = USA_ulysses_s_grant_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_FSA_ulysses_s_grant"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_ulysses_s_grant_temp_token
						traits = { old_guard ranger butcher brilliant_strategist }
						skill = 6
						attack_skill = 6
						defense_skill = 4
						planning_skill = 5
						logistics_skill = 4
					}
					generate_character = {
						token_base = USA_william_t_sherman_temp_token
						name = USA_william_t_sherman_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_william_t_sherman"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_william_t_sherman_temp_token
						traits = { trickster swamp_fox commando brilliant_strategist }
						skill = 5
						attack_skill = 6
						defense_skill = 4
						planning_skill = 4
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_george_meade_temp_token
						name = USA_george_meade_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_george_meade"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_george_meade_temp_token
						traits = { urban_assault_specialist hill_fighter }
						skill = 3
						attack_skill = 2
						defense_skill = 4
						planning_skill = 3
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_irvin_mcdowell_temp_token
						name = USA_irvin_mcdowell_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_irvin_mcdowell"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_irvin_mcdowell_temp_token
						traits = {  }
						skill = 2
						attack_skill = 3
						defense_skill = 3
						planning_skill = 2
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_philip_sheridan_temp_token
						name = USA_philip_sheridan_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_philip_sheridan"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_philip_sheridan_temp_token
						traits = { cavalry_officer career_officer }
						skill = 3
						attack_skill = 4
						defense_skill = 3
						planning_skill = 4
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_edward_ord_temp_token
						name = USA_edward_ord_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_edward_ord"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_edward_ord_temp_token
						traits = { bearer_of_artillery artillery_officer artillery_leader }
						skill = 3
						attack_skill = 3
						defense_skill = 3
						planning_skill = 2
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_john_g_parke_temp_token
						name = USA_john_g_parke_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_john_g_parke"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_john_g_parke_temp_token
						traits = {  }
						skill = 3
						attack_skill = 3
						defense_skill = 4
						planning_skill = 3
						logistics_skill = 4
					}
					generate_character = {
						token_base = USA_ambrose_e_burnside_temp_token
						name = USA_ambrose_e_burnside_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_ambrose_e_burnside"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_ambrose_e_burnside_temp_token
						traits = { guerilla_fighter trait_mountaineer }
						skill = 2
						attack_skill = 2
						defense_skill = 4
						planning_skill = 2
						logistics_skill = 4
					}
					generate_character = {
						token_base = USA_joseph_hooker_temp_token
						name = USA_joseph_hooker_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_joseph_hooker"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_joseph_hooker_temp_token
						traits = { aversion_to_offense }
						skill = 2
						attack_skill = 2
						defense_skill = 3
						planning_skill = 3
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_james_b_mcpherson_temp_token
						name = USA_james_b_mcpherson_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_james_b_mcpherson"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_james_b_mcpherson_temp_token
						traits = {	}
						skill = 3
						attack_skill = 4
						defense_skill = 3
						planning_skill = 4
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_john_a_logan_temp_token
						name = USA_john_a_logan_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_john_a_logan"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_john_a_logan_temp_token
						traits = {	}
						skill = 2
						attack_skill = 2
						defense_skill = 2
						planning_skill = 2
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_oliver_o_howard_temp_token
						name = USA_oliver_o_howard_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_john_a_logan"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_oliver_o_howard_temp_token
						traits = {	}
						skill = 3
						attack_skill = 3
						defense_skill = 3
						planning_skill = 4
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_benjamin_f_butler_temp_token
						name = USA_benjamin_f_butler_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_benjamin_f_butler"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_benjamin_f_butler_temp_token
						traits = { naval_invader }
						skill = 2
						attack_skill = 2
						defense_skill = 3
						planning_skill = 3
						logistics_skill = 4
					}
					generate_character = {
						token_base = USA_nathaniel_p_banks_temp_token
						name = USA_nathaniel_p_banks_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_nathaniel_p_banks"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_nathaniel_p_banks_temp_token
						traits = {	}
						skill = 1
						attack_skill = 2
						defense_skill = 1
						planning_skill = 2
						logistics_skill = 2
					}
					generate_character = {
						token_base = USA_john_pope_temp_token
						name = USA_john_pope_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_john_pope"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_john_pope_temp_token
						traits = { aversion_to_offense }
						skill = 2
						attack_skill = 3
						defense_skill = 2
						planning_skill = 2
						logistics_skill = 3
					}
					generate_character = {
						token_base = USA_william_s_rosecrans_temp_token
						name = USA_william_s_rosecrans_temp
						portraits = {
							civilian = {
								large = "GFX_portrait_USA_william_s_rosecrans"
							}
						}
					}
					add_corps_commander_role = {
						character = USA_william_s_rosecrans_temp_token
						traits = {	}
						skill = 2
						attack_skill = 3
						defense_skill = 3
						planning_skill = 2
						logistics_skill = 4
					}
				}
			}
			if = {
				limit = {	OR = { tag = USA tag = CAL tag = NEG tag = CSA } }
				add_ideas = USA_Spirit_American_Civil_War_Player_Nerf
			}

			if = {
				limit = { tag = USA }
				add_stability = 0.15
				add_war_support = 0.10

				country_event = { id = acw_first_nations.7 days = 10 }
				country_event = { id = acw_generic.135 days = 17 } #End support for the ACS in Liberia?
				country_event = { id = usa.312 days = 1 }
				
				clr_global_flag = ACW_American_Civil_War_Start
				set_global_flag = ACW_American_Civil_War

				add_ideas = USA_Spirit_American_Civil_War_Historical_Buff

				set_temp_variable = { acw_weapons_count_change = 30 }
				ACW_Weapons_Count_Get = yes
				set_temp_variable = { acw_draft_count_change = 22 }
				ACW_Draft_Count_Get = yes
				USA_Slavery_Debate_Remove = yes

				activate_decision = eoanb_decision_acw_reform_west_point1
			}
			if = {
				limit = {
				USA = {
						has_country_flag = USA_Breckinridge_No_Moderate_Appeal
					}
				}
				USA = {
					load_oob = "USA_FSA_revolt_non_moderate"
				}
				357 = {
					owner = {
						transfer_state = 391
						add_state_core = 391
						transfer_state = 392
						add_state_core = 392
						transfer_state = 383
						add_state_core = 383
						transfer_state = 384
						add_state_core = 384
						load_oob = "FSA_acw_start_non_moderate"
					}
				}
				if = {
					limit = {
						USA = { owns_state = 1045 }
					}
					357 = {
						OWNER = {
							transfer_state = 1045
							add_state_core = 1045
						}
					}
				}
			}
			if = {
				limit = {
					USA = {
						has_country_flag = USA_Breckinridge_Moderate_Appeal
					}
				}
				USA = {
					load_oob = "USA_FSA_revolt_moderate"
				}
				357 = {
					owner = {
						load_oob = "FSA_acw_start_moderate"
					}
				}
			}
			event_target:acw_the_free_states_of_america = {
				every_owned_state = {
					set_state_flag = ACW_free_state_flag
				}
			}
		}
	}
	option = {
		name = acw_generic.88.a
		hidden_effect = {
			every_state = {
				limit = {
					is_owned_by = USA
				}
				set_demilitarized_zone = no
			}
			if = {
				limit = {
					NOT = {
						USA = {
							has_idea = USA_Spirit_Civil_War_Initial_Disorganize
						}
					}
				}
				USA = { country_event = { id = acw_generic.11 } }
			}
			if = {
				limit = {
					has_global_flag = ACW_Norton_Marked
				}
				country_event = { id = acw.52 days = 1 }
			}
			else_if = {
				limit = {
					has_global_flag = ACW_Manhattan_Marked
				}
				country_event = { id = acw.53 days = 1 }
			}
			else = {
				country_event = { id = acw.46 days = 4 }
			}
			event_target:acw_the_free_states_of_america = {
				every_owned_state = {
					set_state_flag = ACW_free_state_flag
				}
			}
		}
	}
	option = {
		name = acw_generic.88.b
		trigger = { is_ai = no }
		357 = {
			owner = {
				change_tag_from = USA
			}
		}
		hidden_effect = {
			if = {
				limit = {
					has_global_flag = ACW_Norton_Marked
				}
				country_event = { id = acw.52 days = 1 }
			}
			else_if = {
				limit = {
					has_global_flag= ACW_Manhattan_Marked
				}
				country_event = { id = acw.53 days = 1 }
			}
			else = {
				country_event = { id = acw.46 days = 4 }
			}
			event_target:acw_the_free_states_of_america = {
				every_owned_state = {
					set_state_flag = ACW_free_state_flag
				}
			}
		}
	}
}

country_event = { # Boston Protests, Dec 18 1860
	id = acw_generic.89
	title = acw_generic.89.t
	desc = acw_generic.89.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = {
				id = acw_generic.90
				days = 11
			}
		}
	}

	option = {
		name = acw_generic.89.a
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 1 }
		USA_Slavery_Debate_Tension_Modify = yes
	}
}

country_event = { # Philadelphia Riots, Jan 8 1861
	id = acw_generic.90
	title = acw_generic.90.t
	desc = acw_generic.90.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = { # Jan 9
				id = acw_generic.91
				days = 1
			}
		}
	}

	option = {
		name = acw_generic.90.a
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 2 }
		USA_Slavery_Debate_Tension_Modify = yes
	}
}

country_event = { # Lincoln slams Breckinridge's slavery policy, Jan 9 1861
	id = acw_generic.91
	title = acw_generic.91.t
	desc = acw_generic.91.desc

	is_triggered_only = yes

	immediate =	{
		hidden_effect = {
			country_event = {
				id = acw_generic.92
				days = 9
			}
		}
	}

	option = {
		name = acw_generic.91.a
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 2 }
		USA_Slavery_Debate_Tension_Modify = yes
	}
}

country_event = { # Douglas offers compromise amendment (Ensure half slave half free states, doesn't amount to anything), Jan 14 1861
	id = acw_generic.92
	title = acw_generic.92.t
	desc = acw_generic.92.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = {
				id = acw_generic.93
				days = 4
			}
		}
	}

	option = {
		name = acw_generic.92.a
	}
}

country_event = { # Slavery expansion executive order leaked # Jan 18
	id = acw_generic.93
	title = acw_generic.93.t
	desc = acw_generic.93.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = {
				id = acw_generic.94
				days = 3
			}
		}
	}

	option = {
		name = acw_generic.93.a
		add_political_power = -50
	}
}

country_event = { # Stevens resigns from Congress, Jan 21
	id = acw_generic.94
	title = acw_generic.94.t
	desc = acw_generic.94.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			country_event = {
				id = acw_generic.95
				days = 5
			}
		}
	}

	option = {
		name = acw_generic.94.a
		add_stability = -0.01
		add_political_power = -5
	}
}

country_event = { # Leaked executive order proven real, Jan 26
	id = acw_generic.95
	title = acw_generic.95.t
	desc = acw_generic.95.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			news_event = { id = usa_slavery_debate.63 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.64 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.65 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.66 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.67 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.68 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.69 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.70 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.71 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.72 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.73 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.74 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.78 days = 1 random_days = 29 }
			news_event = { id = usa_slavery_debate.79 days = 1 random_days = 29 }
			country_event = { id = acw_generic.96 days = 18 }
			country_event = { id = acw_generic.88 days = 35 }
			if = {
				limit = {
					USA = {
						has_country_flag = USA_Breckinridge_No_Moderate_Appeal
					}
				}
				news_event = { id = usa_slavery_debate.75 days = 1 random_days = 29 }
				news_event = { id = usa_slavery_debate.76 days = 1 random_days = 29 }
				news_event = { id = usa_slavery_debate.80 days = 1 random_days = 29 }
				news_event = { id = usa_slavery_debate.81 days = 1 random_days = 29 }
			}
			add_timed_idea = {
				idea = USA_Spirit_Northern_Secession_Crisis
				days = 30
			}
		}
	}

	option = {
		name = acw_generic.95.a
		add_political_power = -25
	}
}

country_event = { # Free African-Americans being kidnapped at higher rates # Feb 1
	id = acw_generic.96
	title = acw_generic.96.t
	desc = acw_generic.96.desc

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			news_event = {
				id = acw_generic.97
				days = 17
			}
			NEG = {
				news_event = {
					id = acw_generic.97
					days = 17
				}
			}
		}
	}

	option = {
		name = acw_generic.96.a
	}
}

news_event = { # Boston Harbor Incident (ACW Starts!)
	id = acw_generic.97
	title = acw_generic.97.t
	desc = acw_generic.97.desc

	is_triggered_only = yes

	immediate = { 
		hidden_effect = {
			if = {
				limit = { tag = USA }
				set_global_flag = ACW_American_Civil_War
				country_event = { id = acw_generic.5 days = 14 }
				activate_mission = eoanb_decision_acw_brewing
				add_ideas = {
					USA_Spirit_American_Civil_War
				}
				every_other_country = {
					news_event = acw_generic.1
				}
			}
			else_if = {
				limit = { tag = NEG }
				activate_mission = eoanb_decision_acw_brewing
				add_ideas = {
					USA_Spirit_American_Civil_War
				}
			}
			if = {
				limit = {
					NOT = {
						USA = {
							has_country_flag = USA_Breckinridge_Moderate_Appeal
						}
					}
				}
				USA = {
					country_event = {
						id = usa_slavery_debate.77
						days = 7
					}
				}
			}
			NEG = {
				country_event = fsa.1
			}
			USA = {
				country_event = {
					id = acw_generic.98
					days = 1
				}
			}
		}
	}

	option = {
		name = acw_generic.97.a
		trigger = { tag = NEG }
		add_war_support = 0.05
		add_political_power = 35
		hidden_effect = { news_event = { id = acw_generic.2 days = 5 } }
	}

	option = {
		name = acw_generic.97.b
		trigger = { tag = USA }
		add_war_support = 0.05
		add_political_power = 35
	}
	option = {
		name = acw_generic.97.c
		trigger = { NOT = { tag = USA tag = NEG } }
	}
}

country_event = { # Winfield Scott and John Wool retire
	id = acw_generic.98
	title = acw_generic.98.t
	desc = acw_generic.98.desc

	is_triggered_only = yes

	option = {
		name = acw_generic.98.a
		retire_character = USA_character_winfield_scott
		retire_character = USA_character_john_e_wool
	}
}

country_event = { # The War Goes On / The War Is Over
	id = acw_generic.99
	title = acw_generic.99.t
	desc = acw_generic.99.desc
	is_triggered_only = yes

	option = {
		name = acw_generic.99.a
		if = {
			limit = {
				has_civil_war = no
			}
			set_global_flag = ACW_American_Civil_War_Happened
			USAROD_Reconstruction_Setup = yes
		}
		else = {
			hidden_effect = {
				country_event = { id = acw_generic.99 days = 30 }
			}
		}
	}
}

################################# Buchanan ##############################
#copy Breckenridge stuff basically


################################# BELL #################################

country_event = {
	id = acw_generic.100
	title = acw_generic.100.t
	desc = acw_generic.100.d

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = acw_generic.100.a
	}
}

############################ TEXAN CIVIL WAR ##########################

# Houston Revolt #
#country_event = {
#	id = acw_generic.101
#	title = acw_generic.101.t
#	desc = acw_generic.101.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = {
#		name = acw_generic.101.a
#		hidden_effect = { TEX_civil_war_acw_setup = yes }
#		}
#	option = {
#		name = acw_generic.101.b
#		hidden_effect = { TEX_civil_war_acw_setup = yes }
#		TEX = { change_tag_from = USA }
#	}
#}

# Houston Wins the Texan Civil War
#country_event = {
#	id = acw_generic.102
#	title = acw_generic.102.t
#	desc = acw_generic.102.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #We shall rejoin the United States!
#		name = acw_generic.102.a
#		set_country_flag = TEX_CIVWAR_rejoin_union
#		ai_chance = {
#			base = 10
#			modifier = {
#				factor = 1000
#				CSA = { exists = no }
#				has_country_leader = {
#					name = "Sam Houston"
#					ruling_only = yes
#				}
#			}
#		}
#		hidden_effect = {
#			every_owned_state = {
#				remove_core_of = event_target:TEX_CIVWAR_CSA_target
#			}
#		}
#		}
#	option = { # We must be independent, they cannot act!
#		name = acw_generic.102.b
#		trigger = {
#			USA = { has_war_with = CSA }
#		}
#		set_country_flag = TEX_CIVWAR_acw_neutrality
#		ai_chance = {
#			base = 100
#			modifier = {
#				factor = 0.5
#				NOT = {
#					has_country_leader = {
#						name = "Sam Houston"
#						ruling_only = yes
#					}
#				}
#			}
#		}
#		hidden_effect = {
#			every_owned_state = {
#				remove_core_of = event_target:TEX_CIVWAR_CSA_target
#			}
#		}
#	}
#	option = { # We must be independent!
#		name = acw_generic.102.c
#		set_country_flag = TEX_CIVWAR_independence
#		ai_chance = {
#			base = 100
#			modifier = {
#				factor = 0
#				has_country_leader = {
#					name = "Sam Houston"
#					ruling_only = yes
#				}
#			}
#		}
#		hidden_effect = {
#			every_owned_state = {
#				remove_core_of = event_target:TEX_CIVWAR_CSA_target
#			}
#		}
#	}
#}
#
# Edward Clark Wins the Texan Civil War
#country_event = {
#	id = acw_generic.103
#	title = acw_generic.103.t
#	desc = acw_generic.103.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #We shall join the Confederate States!
#		name = acw_generic.103.a
#		trigger = {
#			CSA = { exists = yes }
#		}
#		set_country_flag = TEX_CIVWAR_join_confederacy
#		drop_cosmetic_tag = yes
#		set_cosmetic_tag = TEX_CSA_state
#		}
#	option = { # We must be independent!
#		name = acw_generic.103.b
#		trigger = {
#			CSA = { exists = no }
#		}
#		set_country_flag = TEX_CIVWAR_independence
#	}
#}
#
# CSA loses the Civil War, Confederate Texans broken
#country_event = {
#	id = acw_generic.104
#	title = acw_generic.104.t
#	desc = acw_generic.104.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	trigger = {
#		CSA = { exists = no }
#		original_tag = TEX
#		has_government = traditional_conservatism
#		has_civil_war = yes
#		has_global_flag = TEX_Civil_War_USA_CSA
#	}
#
#	fire_only_once = yes
#
#	option = { #Fuck
#		name = acw_generic.104.a
#		add_ideas = fall_of_confederacy_TEX_CIVWAR
#		}
#}
#
# Sam Houston dies during TCW
#country_event = {
#	id = acw_generic.105
#	title = acw_generic.105.t
#	desc = acw_generic.105.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	trigger = {
#		original_tag = TEX
#		has_government = centrism
#		has_civil_war = yes
#		has_global_flag = TEX_Civil_War_USA_CSA
#		has_country_leader = {
#			name = "Sam Houston"
#			ruling_only = yes
#		}
#		date > 1863.7.1
#	}
#
#	fire_only_once = yes
#
#	option = { #Fuck
#		name = acw_generic.105.a
#		retire_character = TEX_character_sam_houston
#		TEX_character_thomas_mckinney = {
##				country_leader = {
#					desc = ""
#					expire = "2100.1.1"
#					ideology = market_liberal
#					traits = { }
#				}
#			}
#		}
#		remove_ideas = houston_revolt
#		add_ideas = death_of_houston_TEX_CIVWAR
#			set_politics = {
#				ruling_party = centrism
#				elections_allowed = yes
#				last_election = 1859.11.4
#			}
#		}
#}
#
# Texas Petitions to Rejoin the Union!
#country_event = {
#	id = acw_generic.106
#	title = acw_generic.106.t
#	desc = acw_generic.106.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #Hell yea brother
#		name = acw_generic.106.a
#		if = {
#			limit = {
#				USA = { has_war_with = CSA }
#			}
#			annex_country = {
#				target = TEX
#				transfer_troops = yes
#			}
#		}
#		else = {
#			annex_country = {
#				target = TEX
#				transfer_troops = no
#			}
#		}
#		ai_chance = {
#			base = 100
#		}
#		}
#		option = { #No #Why would you pick this???
#		name = acw_generic.106.b
#		add_stability = -0.1
#		set_country_flag = TEX_USA_CSA_refused_annexation
#		ai_chance = {
#			base = 0
#		}
#	}
#}
#
# Texas Petitions to join the Confederacy!
#country_event = {
#	id = acw_generic.107
#	title = acw_generic.107.t
#	desc = acw_generic.107.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #Well I Wish...
#		name = acw_generic.107.a
#		if = {
#			limit = {
#				CSA = { has_war_with = USA }
#			}
#			annex_country = {
#				target = event_target:TEX_CIVWAR_CSA_target
#				transfer_troops = yes
#			}
#		}
#		else = {
#			annex_country = {
#				target = event_target:TEX_CIVWAR_CSA_target
#				transfer_troops = no
#			}
#		}
#		event_target:TEX_CIVWAR_CSA_target = {
#				every_unit_leader = {
#				limit = {
#					OR = {
#						has_id = 5025
#						has_id = 5026
#					}
#				}
#				set_nationality = CSA
#			}
#		}
#		hidden_effect = {
#			event_target:TEX_CIVWAR_CSA_target = {
#				every_owned_state = {
#					remove_core_of = event_target:TEX_CIVWAR_CSA_target
#				}
#			}
#		}
#		ai_chance = {
#			base = 100
#		}
#		}
#		option = { #No
#		name = acw_generic.107.b
#		add_stability = -0.1
#		set_country_flag = TEX_USA_CSA_refused_annexation
#		ai_chance = {
#			base = 0
#		}
#		}
#}
# They refused!
#country_event = {
#	id = acw_generic.108
#	title = acw_generic.108.t
#	desc = acw_generic.108.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #Fuck
#		name = acw_generic.108.a
#		add_stability = -0.3
#		set_country_flag = TEX_CIVWAR_independence
#		clr_country_flag = TEX_CIVWAR_rejoin_union
#		}
#}
# We declare independence!
#country_event = {
#	id = acw_generic.109
#	title = acw_generic.109.t
#	desc = acw_generic.109.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #YEEEEEEEEEEEHAAAAAWWWWWWWWWWW
#		name = acw_generic.109.a
#		add_stability = 0.1
#		if = {
#			limit = {
#				USA = { exists = yes }
#			}
#			USA = { country_event = { id = acw_generic.110 } }
#		if = {
#			limit = {
#				has_government = traditional_conservatism
#			}
#			set_politics = {
#				ruling_party = traditional_conservatism
#				last_election = 1859.11.4
#			}
#		}
#		}
#}
# Texas declares independence!
#country_event = {
#	id = acw_generic.110
#	title = acw_generic.110.t
#	desc = acw_generic.110.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #Ok
#		name = acw_generic.110.a
#		}
#		option = { #Demand that they reintegrate!
#		name = acw_generic.110.b
#		trigger = {
#			NOT = { has_country_flag = TEX_USA_CSA_refused_annexation }
#			tag = USA
#		}
#		TEX = { country_event = { id = acw_generic.112 days = 1 } }
#		ai_chance = {
#			base = 2
#			modifier = {
#				factor = 0.5
#				USA = { has_government = social_egalitarianism }
#			}
#			modifier = {
#				factor = 0.25
#				USA = { has_government = traditional_conservatism }
#			}
#			modifier = {
#				factor = 10
#				USA = { has_government = centrism }
#			}
#			modifier = {
#				factor = 0
#				USA = { has_war_with = CSA }
#			}
#		}
#	}
#}
# USA decides to either demand Texas to rejoin the Union or not after the ACW
#country_event = {
#	id = acw_generic.111
#	title = acw_generic.111.t
#	desc = acw_generic.111.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	fire_only_once = yes
#
#	trigger = {
#		tag = USA
#		TEX = {
#			exists = yes
#			has_civil_war = no
#			OR = {
#				has_country_flag = TEX_CIVWAR_independence
#				has_country_flag = TEX_CIVWAR_acw_neutrality
#			}
#		}
#		CSA = { exists = no }
#	}
#
#	mean_time_to_happen = { days = 10 }
#
#	option = { #Demand reannexation!
#		name = acw_generic.111.a
#		TEX = { country_event = { id = acw_generic.112 days = 1 } }
#		ai_chance = {
#			base = 2
#			modifier = {
#				factor = 0.5
#				USA = { has_government = social_egalitarianism }
#			}
#			modifier = {
#				factor = 0.25
#				USA = { has_government = traditional_conservatism }
#			}
#			modifier = {
#				factor = 10
#				USA = { has_government = centrism }
#			}
#		}
#		}
#		option = { #Leave them alone
#		name = acw_generic.111.b
#		}
#}
# USA demands Texan reintegration!
#country_event = {
#	id = acw_generic.112
#	title = acw_generic.112.t
#	desc = acw_generic.112.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #Join
#		name = acw_generic.112.a
#		USA = {
#			annex_country = {
#				target = TEX
#				transfer_troops = no
#			}
#		}
#		ai_chance = {
#			base = 2
#			modifier = {
#				factor = 10000
#				TEX = {
#					has_country_leader = {
#						name = "Sam Houston"
#						ruling_only = yes
#					}
#				}
#			}
#		}
#	}
#		option = { #Die
#		name = acw_generic.112.b
#		ai_chance = {
#			base = 1
#			modifier = {
#				factor = 10000
#				TEX = { has_government = traditional_conservatism }
#			}
#		}
#		}
#}
# Texas refuses!
#country_event = {
#	id = acw_generic.113
#	title = acw_generic.113.t
#	desc = acw_generic.113.d
#	picture = GFX_report_event_german_reichstag_gathering
#
#	is_triggered_only = yes
#
#	option = { #Kill
#		name = acw_generic.113.a
#		declare_war_on = {
#			target = TEX
#			type = annex_everything
#		}
#		ai_chance = {
#			base = 100
#		}
#		}
#		option = { #Nevermind
#		name = acw_generic.113.b
#		add_stability = -0.05
#		ai_chance = {
#			base = 0
#		}
#	}
#}
# Houston dies not during TCW
#country_event = {
#	id = acw_generic.114
#	title = acw_generic.114.t
#	desc = acw_generic.114.d
#	picture = GFX_report_event_german_reichstag_gathering
#	
#	trigger = {
#		original_tag = TEX
#		has_government = centrism
#		has_civil_war = no
#		has_country_leader = {
#			name = "Sam Houston"
#			ruling_only = yes
#		}
#		date > 1863.7.1
#	}
#
#	fire_only_once = yes
#
#	option = { #F
#		name = acw_generic.114.a
#		retire_character = TEX_character_sam_houston
#		TEX_character_thomas_mckinney = {
#			add_country_leader_role = {
#				country_leader = {
#					desc = ""
#					expire = "2100.1.1"
#					ideology = market_liberal
#					traits = { }
#				}
#			}
#		}
#		set_politics = {
#			ruling_party = centrism
#			elections_allowed = yes
#			last_election = 1859.11.4
#		}
#	}
#}

############################# NORTON REBELS ###########################

# Lunatic Norton (usa.43)
country_event = {
	id = acw_generic.115
	title = acw_generic.115.t
	desc = acw_generic.115.d
	picture = GFX_report_event_royal_visit

	is_triggered_only = yes
	trigger = {
		OR = {
			has_government = ideology_social_liberalism
			has_government = traditional_conservatism
			has_government = radical_democracy
			has_government = social_egalitarianism
			has_government = anarchism
		}
		OR = {
			owns_state = 1343
		}
	}

	option = {
		name = acw_generic.115.a
		ai_chance = {
			base = 70
		}
		add_political_power = -10
		add_popularity = {
			ideology = autocracy
			popularity = 0.03
		}
		hidden_effect = {
			random_list = {
				5 = {
					ROOT = { country_event = { id = acw_generic.116 days = 60 random_days = 30 } }
				}
				95 = {
					add_popularity = {
						ideology = anarchism
						popularity = 0.01
					}
				}
			}
		}
	}

	option = {
		name = acw_generic.115.b
		ai_chance = {
			base = 30
		}
		add_political_power = -40
		add_popularity = {
			ideology = autocracy
			popularity = 0.01
		}
		hidden_effect = {
			add_timed_idea = {
				idea = Generic_Martial_law_1
				days = 100
			}
			if = {
				limit = { is_ai = yes }
				random_list = {
					85 = {
						country_event = { id = acw_generic.116 days = 60 random_days = 30 }
					}
					15 = {
						add_popularity = {
							ideology = anarchism
							popularity = 0.02
						}
					}
				}
			}
			else = {
				country_event = { id = acw_generic.116 days = 60 random_days = 30 }
			}
		}
	}
}

# Mutanies? (usa.70)
country_event = {
	id = acw_generic.116
	title = acw_generic.116.t
	desc = acw_generic.116.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		add_manpower = -1200
		hidden_effect = {
			remove_ideas = Generic_Martial_law_1
		}
	}
	option = {
		name = acw_generic.116.a
		ai_chance = {
			base = 50
		}
		hidden_effect = {
			random_list = {
				85 = {
					ROOT = { country_event = { id = acw_generic.118 days = 20 random_days = 20 } }
				}
				15 = {
					ROOT = { country_event = { id = acw_generic.117 days = 20 random_days = 20 } }
					add_popularity = {
						ideology = radical_democracy
						popularity = 0.01
					}
				}
			}
		}
	}
	option = {
		name = acw_generic.116.b
		ai_chance = {
			base = 50
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
		hidden_effect = {
			random_list = {
				20 = {
					ROOT = { country_event = { id = acw_generic.118 days = 20 random_days = 20 } }
				}
				80 = {
					ROOT = { country_event = { id = acw_generic.117 days = 20 random_days = 20 } }
					add_popularity = {
						ideology = radical_democracy
						popularity = 0.01
					}
				}
			}
		}
	}
}

# Norton Arrested
country_event = {
	id = acw_generic.117
	title = acw_generic.117.t
	desc = {
		text = acw_generic.117.d
		trigger = { NOT = { has_country_flag = USA_Norton_Mutiny } }
	}
	desc = {
		text = acw_generic.117.d_mutiny
		trigger = { has_country_flag = USA_Norton_Mutiny }
	}

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = acw_generic.117.a
		add_political_power = 50
		add_popularity = {
			ideology = ideology_social_liberalism
			popularity = 0.05
		}
		add_popularity = {
			ideology = traditional_conservatism
			popularity = 0.03
		}
		if = {
			limit = { has_country_flag = USA_Norton_Mutiny }
			add_manpower = 650
		}
		hidden_effect = {
			clr_country_flag = USA_Norton_Mutiny
		}
	}
}

# Mutany! (usa.71)
country_event = {
	id = acw_generic.118
	title = acw_generic.118.t
	desc = acw_generic.118.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		add_manpower = -3000
		hidden_effect = {
			set_country_flag = USA_Norton_Mutiny
			add_timed_idea = {
				idea = Generic_National_Riot_1
				days = 120
			}
		}
	}

	option = {
		name = acw_generic.118.a
		ai_chance = {
			base = 65
			modifier = {
				is_historical_focus_on = yes
				factor = 0
			}
		}
		add_political_power = -65
		#hidden_effect = {
		#	if = {
		#		limit = {
		#			OR = {
		#				is_historical_focus_on = no
		#				is_ai = no
		#			}
		#		}
		#		country_event = { id = acw_generic.120 days = 10 random_days = 5 }
		#	}
		#}
	}
	option = {
		name = acw_generic.118.b
		ai_chance = {
			base = 35
		}
		add_political_power = -20
		hidden_effect = {
			country_event = { id = acw_generic.119 days = 5 random_days = 10 }
		}
	}
}

# Norton Grows Powerful (usa.77)
country_event = {
	id = acw_generic.119
	title = acw_generic.119.t
	desc = acw_generic.119.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes

	option = {
		name = acw_generic.119.a
		#hidden_effect = {
		#	if = {
		#		limit = {
		#			OR = {
		#				is_historical_focus_on = no
		#				is_ai = no
		#			}
		#		}
		#		country_event = { id = acw_generic.120 days = 10 random_days = 5 }
		#	}
		#}
	}
}

# Norton seizes San Francisco
# country_event = {
# 	id = acw_generic.120
# 	title = acw_generic.120.t
# 	desc = acw_generic.120.d
# 	picture = GFX_report_event_chinese_soldiers_city_ruin

# 	immediate = {
# 		hidden_effect = {
# 			USA = {
# 				remove_state_core = 1343
# 				add_state_claim = 1343
# 			}
# 			CAL = {
# 				inherit_technology = USA
# 				add_state_core = 1342
# 				add_state_core = 1343
# 				add_state_core = 378
# 				set_politics = {
# 					ruling_party = autocracy
# 					elections_allowed = no
# 				}
# 				set_popularities = {
# 					autocracy = 21
# 					ideology_social_liberalism = 31
# 					ideology_social_liberalism = 10
# 					radical_democracy = 15
# 					traditional_conservatism = 12
# 					anarchism = 6
# 					social_egalitarianism = 2
# 					ideology_radical_socialism = 3
# 				}
# 				add_manpower = 5000
# 				add_political_power = 100
# 				add_stability = -0.1
# 			}
# 		}
# 	}

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	option = {
# 		name = acw_generic.120.a
# 		hidden_effect = {

# 			1342 = { set_demilitarized_zone = yes }
# 			1343 = { set_demilitarized_zone = yes }
# 			country_event = { id = acw_generic.121 days = 14 }
# 		}
# 	}
# 	option = {
# 		name = acw_generic.120.b
# 		hidden_effect = {
# 			country_event = { id = acw_generic.122 days = 20 }
# 		}
# 	}
# }

# San Francisco overthrows Norton
# country_event = {
# 	id = acw_generic.121
# 	title = acw_generic.121.t
# 	desc = acw_generic.121.d

# 	is_triggered_only = yes
# 	fire_only_once = yes

# 	immediate = {
# 		hidden_effect = {
# 			1342 = { set_demilitarized_zone = no }
# 			1343 = { set_demilitarized_zone = no }
# 		}
# 	}

# 	option = {
# 		name = acw_generic.121.a
# 	}
# 	option = {
# 		name = acw_generic.121.b
# 		set_global_flag = ACW_NORTON_IMPRISONED
# 	}
# }

# More Mutanies
country_event = {
	id = acw_generic.122
	title = acw_generic.122.t
	desc = acw_generic.122.d
	picture = GFX_report_event_german_reichstag_gathering

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			1342 = { set_demilitarized_zone = no }
			1343 = { set_demilitarized_zone = no }
			remove_state_core = 1342
			remove_state_core = 1343
			remove_state_core = 378
			if = {
				limit = { owns_state = 1342 }
				add_state_claim = 1342
				CAL = { transfer_state = 1342 }
			}
			if = {
				limit = { owns_state = 1343 }
				add_state_claim = 1343
				CAL = { transfer_state = 1343 }
			}
			if = {
				limit = { owns_state = 378 }
				add_state_claim = 378
				CAL = { transfer_state = 378 }
			}
			CAL = {
				add_manpower = 30000
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_0
					amount = 7000
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = cannon_equipment_0
					amount = 700
					producer = USA
				}
				add_equipment_to_stockpile={
					type = uniform_equipment_0
					amount = 8000
					producer = USA
				}
				load_oob = CAL_1859
				# every_owned_state = {
				# 	create_unit = {division = "name = \"[THIS.GetName] Militia\" division_template = \"National Guard\" start_experience_factor = 0.1 start_equipment_factor = 0.6" owner = CAL }
				# 	create_unit = {division = "name = \"[THIS.GetName] Militia\" division_template = \"National Guard\" start_experience_factor = 0.1 start_equipment_factor = 0.6" owner = CAL }
				# }
				country_event = { id = acw_generic.123 days = 10 }
			}
		}
	}

	option = {
		name = acw_generic.122.a
		add_political_power = 100
	}

	option = {
		name = acw_generic.122.b
		trigger = { is_ai = no }
		custom_effect_tooltip = 45_ACW_GENERIC_tt
		hidden_effect = {
			CAL = { change_tag_from = ROOT }
		}
	}
}

############################ PEACE TREATIES ###########################

# USA > CSA
news_event = {
	id = acw_peace_deal.1
	title = acw_peace_deal.1.t
	desc = acw_peace_deal.1.d
	picture = GFX_news_event_appomattox_acw

	is_triggered_only = yes
	major = yes

	immediate = {
		hidden_effect = {
			# Clean up ACW flags if not a radical coup
			if = {
				limit = { NOT = { has_global_flag = ACW_Radical_Coup } }
				clr_global_flag = ACW_American_Civil_War
				set_global_flag = ACW_American_Civil_War_Happened
				
				# Clear PRS weapon deal flags
				PRS = {
					clr_country_flag = PRS_weapons_deal_successful
					clr_country_flag = PRS_USA_sell_guns_rejected_flag
					clr_country_flag = PRS_CSA_sell_guns_rejected_flag
				}
			}
			
			# Set CSA defeat flag
			set_global_flag = ACW_CSA_Lost
			
			# USA-specific immediate effects
			if = {
				limit = { tag = USA }
				country_event = { id = acw_generic.39 days = 4 random_days = 5 }
				country_event = { id = usa.310 days = 100 random_days = 200 }
				country_event = { id = usa.68 days = 1 }
			}
		}
	}

	# USA Victory Option
	option = {
		name = acw_peace_deal.1.a
		trigger = { tag = USA }
		
		custom_effect_tooltip = 04_ACW_PEACEDEAL_tt
		
		hidden_effect = {
			# Only execute if civil war actually happened
			if = {
				limit = { has_global_flag = ACW_American_Civil_War_Happened }
				
				# Clean up USA military templates
				delete_unit_template_and_units = { division_template = "Union Militia Battalion" }
				delete_unit_template_and_units = { division_template = "Union Infantry Regiment" }
				delete_unit_template_and_units = { division_template = "Union Cavalry" }
				delete_unit_template_and_units = { division_template = "Union Army" }
				delete_unit_template_and_units = { division_template = "South American Union Volunteers" }
				delete_unit_template_and_units = { division_template = "Union Regimental" }
				
				# Unlock peacetime templates
				set_division_template_lock = {
					division_template = "American Infantry Regiment"
					is_locked = no
				}
				set_division_template_lock = {
					division_template = "American Infantry Brigade"
					is_locked = no
				}
				set_division_template_lock = {
					division_template = "American Infantry Brigade with Support"
					is_locked = no
				}
				set_division_template_lock = {
					division_template = "American National Guard"
					is_locked = no
				}
				set_division_template_lock = {
					division_template = "National Guard"
					is_locked = no
				}
				
				# Handle CSA occupation
				CSA = {
					# Clean up CSA military templates
					delete_unit_template_and_units = { division_template = "Confederate Militia Battalion" }
					delete_unit_template_and_units = { division_template = "Confederate Infantry Regiment" }
					delete_unit_template_and_units = { division_template = "Confederate Cavalry" }
					delete_unit_template_and_units = { division_template = "Confederate Army" }
					delete_unit_template_and_units = { division_template = "South American Confederate Volunteers" }
					
					# Set up occupation government
					set_autonomy = {
						target = CSA
						autonomous_state = autonomy_unintegrated_seceded_state
					}
					set_politics = {
						ruling_party = radical_democracy
						elections_allowed = no
					}
					set_popularities = {
						radical_democracy = 100
					}
					set_party_name = {
						ideology = radical_democracy
						name = USAROD_military_party
						long_name = USAROD_Military_party_long
					}
					set_cosmetic_tag = USA_Occupied_CSA_Cosmetic
				}
				
				# Assign military governor based on focus choice
				if = {
					limit = { has_completed_focus = USA_Focus_ACW_Grant_Commands }
					USA_character_ulysses_s_grant = {
						set_nationality = CSA
						add_country_leader_role = {
							country_leader = {
								desc = ""
								expire = "1900.7.1"
								ideology = military_goverment
								traits = { }
							}
						}
					}
				}
				else_if = {
					limit = { has_completed_focus = USA_Focus_ACW_Welles_Commands }
					USA_character_gideon_welles = {
						set_nationality = CSA
						add_country_leader_role = {
							country_leader = {
								desc = ""
								expire = "1900.7.1"
								ideology = military_goverment
								traits = { }
							}
						}
					}
				}
				else_if = {
					limit = { has_completed_focus = USA_Focus_ACW_Meade_Commands }
					USA_character_george_meade = {
						set_nationality = CSA
						add_country_leader_role = {
							country_leader = {
								desc = ""
								expire = "1900.7.1"
								ideology = military_goverment
								traits = { }
							}
						}
					}
				}
			}
			
			# Handle foreign intervention cleanup
			every_country = {
				limit = { 
					has_war_together_with = CSA 
					has_war_with = USA 
				}
				
				# Handle specific territorial returns
				if = {
					limit = {
						OR = { tag = ENG tag = CAN }
						USA = {
							OR = {
								owns_state = 426
								owns_state = 740
							}
						}
					}
					USA = {
						transfer_state = 426
						transfer_state = 740
					}
				}
				else_if = {
					limit = {
						tag = FRA
						USA = { owns_state = 730 }
					}
					USA = { transfer_state = 730 }
				}
				
				# Make peace with subjects first, then main country
				for_each_scope_loop = {
					array = subjects
					white_peace = USA
				}
				white_peace = USA
			}
			
			# Replace civil war spirit with recovery spirit
			swap_ideas = {
				remove_idea = USA_Spirit_American_Civil_War
				add_idea = USA_recovery
			}
			
			# Make peace with CSA
			white_peace = CSA
			
			# Fire follow-up events
			news_event = { id = acw_generic.131 days = 1 }
			country_event = { id = usa.314 days = 30 }
		}
	}

	# International Reaction Option
	option = {
		name = acw_peace_deal.1.b
		trigger = { NOT = { tag = USA } }
		
		# Conditional tooltips based on territorial situation
		if = {
			limit = {
				OR = { tag = ENG tag = CAN }
				USA = {
					OR = {
						owns_state = 426
						owns_state = 740
					}
				}
			}
			custom_effect_tooltip = 04_ACW_PEACEDEAL_VAL_tt
		}
		else_if = {
			limit = {
				tag = FRA
				USA = { owns_state = 730 }
			}
			custom_effect_tooltip = 05_ACW_PEACEDEAL_VAL_tt
		}
		else_if = {
			limit = {
				tag = RUS
				USA = { owns_state = 463 }
			}
			custom_effect_tooltip = 06_ACW_PEACEDEAL_VAL_tt
		}
		else_if = {
			limit = {
				USA = {
					OR = {
						owns_state = 426
						owns_state = 463
						owns_state = 730
						owns_state = 740
					}
				}
			}
			custom_effect_tooltip = 07_ACW_PEACEDEAL_VAL_tt
		}
		else = {
			custom_effect_tooltip = 08_ACW_PEACEDEAL_VAL_tt
		}
	}
}

# USA < CSA
news_event = {
	id = acw_peace_deal.2
	title = acw_peace_deal.2.t
	desc = acw_peace_deal.2.d

	picture = GFX_news_event_appomattox_acw


	major = yes
	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = { NOT = { has_global_flag = ACW_Radical_Coup } }
				clr_global_flag = ACW_American_Civil_War
				set_global_flag = ACW_American_Civil_War_Happened
				PRS = {
							clr_country_flag = PRS_USA_sell_guns_flag
							clr_country_flag = PRS_CSA_sell_guns_flag
							clr_country_flag = PRS_USA_sell_guns_rejected_flag
							clr_country_flag = PRS_CSA_sell_guns_rejected_flag
				}
			}
			set_global_flag = ACW_CSA_Independence
			CSA = {
				white_peace = USA
				if = {
					limit = { NOT = { CSA = { owns_state = 746 } } }
					transfer_state = 746
					add_state_core = 746
				}
				transfer_state = 369
				add_state_core = 369
				transfer_state = 373
				add_state_core = 373
				transfer_state = 1285
				add_state_claim = 1285
				transfer_state = 377
				add_state_claim = 377
				transfer_state = 1297
				add_state_claim = 1297
				transfer_state = 374
				add_state_core = 374
				every_owned_state = {
					remove_core_of = USA
					add_claim_by = USA
				}
			}
			USA = {
				if = {
					limit = {
						USA = { has_war_with = ENG }
						USA = { owns_state = 961 }
					}
					if = {
						limit = { country_exists = BRK }
						BRK = { transfer_state = 961 }
					}
					else = {
						CAN = { transfer_state = 961 }
					}
					white_peace = ENG
				}
				every_country = {
					limit = { has_war_together_with = CSA has_war_with = USA }
					white_peace = USA
				}
			}
			if = {
				limit = {
					USA = {
						owns_state = 483
					}
				}
				CSA = {
					transfer_state = 483
				}
			}
			if = {
				limit = {
					USA = {
						owns_state = 482
					}
				}
				CSA = {
					transfer_state = 482
				}
			}
			WVG = {
				remove_state_core = 746
			}
		}
	}
	option = {
		name = acw_peace_deal.2.a
		trigger = { tag = USA }
		hidden_effect = {
			if = {
				limit = { has_global_flag = ACW_American_Civil_War_Happened }
				USA = {
					add_manpower = 100000
					# delete_unit_template_and_units = { division_template = "Union Militia Battalion" }
					# delete_unit_template_and_units = { division_template = "Union Infantry Regiment" }
					# delete_unit_template_and_units = { division_template = "Union Cavalry" }
					delete_unit_template_and_units = { division_template = "Union Army" }
					delete_unit_template_and_units = { division_template = "South American Union Volunteers" }
				}
				CSA = {
					delete_unit_template_and_units = { division_template = "Confederate Militia Battalion" }
					delete_unit_template_and_units = { division_template = "Confederate Infantry Regiment" }
					delete_unit_template_and_units = { division_template = "Confederate Cavalry" }
					delete_unit_template_and_units = { division_template = "Confederate Army" }
					delete_unit_template_and_units = { division_template = "South American Confederate Volunteers" }
				}
			}
		}
	}
	option = {
		name = acw_peace_deal.2.b
		trigger = { tag = CSA }
		hidden_effect = {
			if = {
				limit = { has_global_flag = ACW_American_Civil_War_Happened }
				USA = {
					delete_unit_template_and_units = { division_template = "Union Militia Battalion" }
					delete_unit_template_and_units = { division_template = "Union Infantry Regiment" }
					delete_unit_template_and_units = { division_template = "Union Cavalry" }
					delete_unit_template_and_units = { division_template = "Union Army" }
					delete_unit_template_and_units = { division_template = "South American Union Volunteers" }
				}
				CSA = {
					delete_unit_template_and_units = { division_template = "Confederate Militia Battalion" }
					delete_unit_template_and_units = { division_template = "Confederate Infantry Regiment" }
					delete_unit_template_and_units = { division_template = "Confederate Cavalry" }
					delete_unit_template_and_units = { division_template = "Confederate Army" }
					delete_unit_template_and_units = { division_template = "South American Confederate Volunteers" }
				}
			}
		}
	}
	option = {
		name = acw_peace_deal.2.c
		trigger = { NOT = { tag = USA tag = CSA } }
	}
}

# USA > NEG
news_event = {
	id = acw_peace_deal.3
	title = acw_peace_deal.3.t
	desc = acw_peace_deal.3.d

	picture = GFX_report_event_royal_visit

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		if = {
			limit = { tag = USA }
			annex_country = {
				target = NEG
				transfer_troops = no
			}
		}
	}

	option = {
		name = acw_peace_deal.3.a
		trigger = { tag = USA }
	}
	option = {
		name = acw_peace_deal.3.b
		trigger = { tag = CSA }
	}
	option = {
		name = acw_peace_deal.3.c
		trigger = { tag = CAN }
	}
	option = {
		name = acw_peace_deal.3.d
		trigger = {
			NOT = {
				tag = USA
				tag = CSA
				tag = CAN
			}
		}
	}
}

# USA < NEG
news_event = {
	id = acw_peace_deal.4
	title = acw_peace_deal.4.t
	desc = acw_peace_deal.4.d

	picture = GFX_report_event_royal_visit

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			set_global_flag = ACW_American_Civil_War_Happened
			if = {
				limit = { tag = NEG }
				annex_country = {
					target = USA
					transfer_troops = yes
				}
			}
		}
		
	}

	option = {
		name = acw_peace_deal.4.a
		trigger = { tag = USA }
	}
	option = {
		name = acw_peace_deal.4.b
		trigger = { tag = CSA }
	}
	option = {
		name = acw_peace_deal.3.c
		trigger = { tag = CAN }
	}
	option = {
		name = acw_peace_deal.3.d
		trigger = {
			NOT = {
				tag = USA
				tag = CSA
				tag = CAN
			}
		}
	}
}

# USA > CAL
country_event = {
	id = acw_peace_deal.5
	title = acw_peace_deal.5.t
	desc = {
		text = acw_peace_deal.5.d
		trigger = { tag = CAL }
	}
	desc = {
		text = acw_peace_deal.5.d_usa
		trigger = { tag = USA }
	}
	picture = GFX_report_event_csa_davis_elected

	is_triggered_only = yes

	option = {
		name = acw_peace_deal.5.a
		trigger = { tag = USA }
		ai_chance = { base = 1 }
		hidden_effect = {
			CAL = {
				retire_country_leader = yes
				set_politics = {
					ruling_party = social_egalitarianism
					elections_allowed = no
				}
				every_owned_state = {
					remove_core_of = CAL
					add_core_of = USA
				}
			}
			every_other_country = {
				news_event = acw_peace_deal.6
			}
		}
		annex_country = {
			target = CAL
		}
	}
	option = {
		name = acw_peace_deal.5.b
		trigger = { tag = USA }
		ai_chance = { base = 1 }
		set_global_flag = ACW_Norton_Imprisoned
		hidden_effect = {
			CAL = {
				every_owned_state = {
					remove_core_of = CAL
					add_core_of = USA
				}
			}
			every_other_country = {
				news_event = acw_peace_deal.6
			}
		}
		annex_country = {
			target = CAL
		}
	}
	option = {
		name = acw_peace_deal.5.c
		trigger = { tag = CAL }
		ai_chance = { base = 1 }
		custom_effect_tooltip = acw_peace_deal.5.c_tt
		hidden_effect = {
			USA = { country_event = acw_peace_deal.5 }
		}
		clr_global_flag = ACW_Norton_War
		drop_cosmetic_tag = yes
		remove_ideas = EOANBSYS_spirit_war_total_war
	}
}

# USA > CAL
news_event = {
	id = acw_peace_deal.6
	title = acw_peace_deal.5.t
	desc = acw_peace_deal.6.d
	picture = GFX_news_event_usa_election_of_1864

	is_triggered_only = yes

	option = {
		name = acw_peace_deal.6.a
		if = {
			limit = { has_government = autocracy NOT = { has_variable = has_afr_empire_mechanic_system } }
			add_popularity = {
				ideology = traditional_conservatism
				popularity = 0.01
			}
		}
	}
}

# USA < CAL
news_event = {
	id = acw_peace_deal.7
	title = acw_peace_deal.7.t
	desc = {
		trigger = { USA = { OR = { has_war_with = NEG has_war_with = CSA } } }
		text = acw_peace_deal.7.d_acw
	}
	desc = {
		trigger = { always = yes }
		text = acw_peace_deal.7.d
	}
	picture = GFX_news_event_006

	is_triggered_only = yes

	option = {
		name = acw_peace_deal.7.a
		trigger = { tag = CAL }
		set_cosmetic_tag = USA_imperial_states_of_america
		clr_global_flag = ACW_Norton_War
		set_global_flag = ACW_Norton_Win
		hidden_effect = {
			every_country = {
				limit = { is_subject_of = USA }
				every_owned_state = {
					limit = { is_controlled_by = CAL }
					remove_core_of = OWNER
					add_core_of = CAL
					CAL = { transfer_state = PREV }
				}
				if = {
					limit = { check_variable = { num_owned_states < 1 } }
					drop_cosmetic_tag = yes
					USA = {
						annex_country = {
							target = PREV
							transfer_troops = yes
						}
					}
				}
				white_peace = CAL
			}
		}
		USA = {
			hidden_effect = {
				add_to_variable = { usa_state_count = -1 }
				USA = { USA_Slavery_Debate_StateF_Count_Modify2 = yes }
			}
			every_owned_state = {
				limit = { is_controlled_by = CAL }
				if = {
					limit = {
						is_core_of = USA
						NOT = { has_state_flag = NA_B_Disregardable_State }
					}
					add_to_variable = { usa_state_count = -1 }
					remove_core_of = USA
					add_claim_by = USA
					if = {
						limit = {
							OR = {
								state = 375
								state = 372
								state = 383
								state = 373
								state = 370
								state = 367
								state = 366
								state = 365
								state = 364
								state = 363
								state = 362
								state = 367
								state = 369
							}
						}
						USA = { USA_Slavery_Debate_StateS_Count_Modify2 = yes }
					}
					else = {
						USA = { USA_Slavery_Debate_StateF_Count_Modify2 = yes }
					}
				}
				add_core_of = CAL
				CAL = { transfer_state = PREV }
			}
			white_peace = CAL
		}
		#swap_ideas = {
		#	remove_idea = non_monarchical_system
		#	add_idea = no_heir
		#}
		#swap_ideas = {
		#	remove_idea = presidential_republic
		#	add_idea = absolute_monarchy
		#}
		#swap_ideas = {
		#	remove_idea = constitution_adopted
		#	add_idea = human_rights
		#}
		swap_ideas = {
			remove_idea = free_elections
			add_idea = no_elections
		}
		swap_ideas = {
			remove_idea = cl_legal
			add_idea = cl_restricted
		}
		#swap_ideas = {
		#	remove_idea = stagnation_growth
		#	add_idea = encouraged_growth
		#}
		swap_ideas = {
			remove_idea = pp_ban_extremist_parties
			add_idea = pp_limited_party_freedom
		}
		swap_ideas = {
			remove_idea = law_spending_level_5
			add_idea = law_spending_level_3
		}
	}
	option = {
		name = acw_peace_deal.7.b
		trigger = { tag = USA }
		set_temp_variable = { USA_Slavery_Debate_Tension_Change = 10 }
		USA_Slavery_Debate_Tension_Modify = yes
		add_stability = -0.2
		add_popularity = {
			ideology = chauvinist_populism
			popularity = 0.10
		}
	}
	option = {
		name = acw_peace_deal.6.a
		trigger = { NOT = { tag = USA tag = CAL } }
	}
}

####################### News Events #######################

# Beginning of the Confederacy
news_event = {
	id = acw_generic.124
	title = acw_generic.124.t
	desc = {
		text = acw_generic.124.d_beckenridge
		trigger = { USA = { has_country_flag = USA_BreckinridgeElected } }
	}
	desc = {
		text = acw_generic.124.d_douglas
		trigger = { USA = { has_country_flag = USA_DouglasElected } }
	}
	desc = {
		text = acw_generic.124.d
		trigger = {
			AND = {
				NOT = { USA = { has_country_flag = USA_BreckinridgeElected } }
				NOT = { USA = { has_country_flag = USA_DouglasElected } }
			}
		}
	}

	major = yes
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		trigger = { tag = USA	}
		name = acw_generic.124.a
	}
	option = {
		trigger = { tag = CSA }
		name = acw_generic.124.b
	}
	option = {
		trigger = {
			NOT = { tag = USA }
			NOT = { tag = CSA }
			NOT = { has_government = autocracy }
		}
		name = acw_generic.124.c
	}
	option = {
		trigger = {
			NOT = { tag = USA }
			NOT = { tag = CSA }
		}
		name = acw_generic.124.d
	}
}

# Fort Sumter
news_event = {
	id = acw_generic.125
	title = acw_generic.125.t
	desc = acw_generic.125.d
	picture = GFX_news_event_fort_sumter

	major = yes

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		trigger = {
			NOT = { tag = USA }
			NOT = { tag = CSA }
		}
		name = acw_generic.125.a
	}
	option = {
		trigger = { tag = USA }
		name = acw_generic.125.b
	}
	option = {
		trigger = { tag = CSA }
		name = acw_generic.125.c
	}
}

news_event = {
	id = acw_generic.126
	title = acw_generic.126.t
	desc = acw_generic.126.d
	picture = GFX_report_event_generic_battle

	major = yes

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		trigger = {
			NOT = { tag = USA }
			NOT = { tag = CSA }
		}
		name = acw_generic.126.a
	}
	option = {
		trigger = {
			OR = {
				tag = USA
				tag = CSA
			}
		}
		name = acw_generic.126.b
	}
}

################ News
# # The Fall of Washington
# news_event = {
#	 id = acw_generic.127
#	 title = acw_generic.127.t
#	 desc = acw_generic.127.d
#	 picture = GFX_news_event_fall_of_washington_acw

#	 trigger = {
# 		tag = USA
# 		has_global_flag = ACW_American_Civil_War
# 		1091 = {
# 			is_owned_by = USA
# 			OR = {
# 				is_controlled_by = ENG
# 				is_controlled_by = CAN
# 				is_controlled_by = CSA
# 				is_controlled_by = NEG
# 				is_controlled_by = CAL
# 				is_controlled_by = FRA
# 			}
# 		}
#	 }

#	 mean_time_to_happen = { days = 2 }

#	 option = {
#		 name = acw_generic.127.a
#		 trigger = {
#			 NOT = {
#				 TAG = CSA
#				 TAG = USA
#			 }
#		 }
#	 }
#	 option = {
#		 name = acw_generic.127.b
#		 trigger = { TAG = USA }
# 		hidden_effect = {
# 			every_other_country = {
# 				news_event = acw_generic.127
# 			}
# 		}
#	 }
#	 option = {
#		 name = acw_generic.127.c
#		 trigger = { TAG = CSA }
#	 }
# }
# # The Fall of New York
# news_event = {
#	 id = acw_generic.128
#	 title = acw_generic.128.t
#	 desc = acw_generic.128.d
#	 picture = GFX_news_event_fall_of_nyc_acw

#	 major = yes

#	 trigger = {
# 		tag = USA
# 		has_global_flag = ACW_American_Civil_War
# 		358 = {
# 			is_owned_by = USA
# 			OR = {
# 				is_controlled_by = ENG
# 				is_controlled_by = CAN
# 				is_controlled_by = CSA
# 				is_controlled_by = NEG
# 				is_controlled_by = CAL
# 				is_controlled_by = FRA
# 			}
# 		}
#	 }

#	 mean_time_to_happen = { days = 2 }
	

#	 option = {
#		 name = acw_generic.128.a
#		 trigger = {
#			 NOT = {
#				 TAG = CSA
#				 TAG = USA
#			 }
#		 }
#	 }
#	 option = {
#		 name = acw_generic.128.b
#		 trigger = { TAG = USA }
#	 }
#	 option = {
#		 name = acw_generic.128.c
#		 trigger = { TAG = CSA }
#	 }
# }
# # The Fall of New Orleans
# news_event = {
#	 id = acw_generic.129
#	 title = acw_generic.129.t
#	 desc = acw_generic.129.d
#	 picture = GFX_news_event_fall_of_new_orleans_acw

#	 major = yes

#	 trigger = {
#		 371 = { is_controlled_by = USA }
#		 371 = { is_owned_by = CSA }
#		 USA = { has_war_with = CSA }
#		 NOT = { has_global_flag = fall_of_new_orleans_ACW }
#	 }

#	 immediate = {
#		 set_global_flag = fall_of_new_orleans_ACW
#	 }

#	 mean_time_to_happen = {
#		 days = 2
#	 }

#	 option = {
#		 name = acw_generic.129.a
#		 trigger = {
#			 NOT = {
#				 TAG = CSA
#				 TAG = USA
#			 }
#		 }
#	 }
#	 option = {
#		 name = acw_generic.129.b
#		 trigger = { TAG = USA }
#	 }
#	 option = {
#		 name = acw_generic.129.c
#		 trigger = { TAG = CSA }
#	 }
# }
# # The Fall of Charleston
# news_event = {
#	 id = acw_generic.130
#	 title = acw_generic.130.t
#	 desc = acw_generic.130.d
#	 picture = GFX_news_event_fall_of_charleston_acw

#	 major = yes

#	 trigger = {
#		 364 = { is_controlled_by = USA }
#		 364 = { is_owned_by = CSA }
#		 USA = { has_war_with = CSA }
#		 NOT = { has_global_flag = fall_of_richmond_ACW }
#	 }

#	 immediate = {
#		 set_global_flag = fall_of_richmond_ACW
#	 }

#	 mean_time_to_happen = {
#		 days = 2
#	 }

#	 option = {
#		 name = acw_generic.130.a
#		 trigger = {
#			 NOT = {
#				 TAG = CSA
#				 TAG = USA
#			 }
#		 }
#	 }
#	 option = {
#		 name = acw_generic.130.b
#		 trigger = { TAG = USA }
#	 }
#	 option = {
#		 name = acw_generic.130.c
#		 trigger = { TAG = CSA }
#	 }
# }
# # Appottomax Surrender
# news_event = {
#	 id = acw_generic.131
#	 title = acw_generic.131.t
#	 desc = acw_generic.131.d
#	 picture = GFX_news_event_appomattox_acw

#	 major = yes

#	 is_triggered_only = yes

#	 option = {
#		 trigger = {
#			 NOT = { TAG = USA }
#		 }
#		 name = acw_generic.131.a
#	 }
#	 option = {
#		 trigger = {
#			 TAG = USA
#		 }
#		 name = acw_generic.131.b
#	 }
# }
# # Chicago Surrender
# news_event = {
#	 id = acw_generic.132
#	 title = acw_generic.132.t
#	 desc = acw_generic.132.d

#	 picture = GFX_news_event_chicago_surrender_acw

#	 major = yes

#	 is_triggered_only = yes

#	 option = {
#		 trigger = {
#			 NOT = { TAG = USA }
#			 NOT = { TAG = CSA }
#		 }
#		 name = acw_generic.132.a
#	 }
#	 option = {
#		 trigger = {
#			 TAG = USA
#		 }
#		 name = acw_generic.132.b
#	 }
#	 option = {
#		 trigger = {
#			 TAG = CSA
#		 }
#		 name = acw_generic.132.c
#	 }
# }
# # Trent Affair
# news_event = {
#	 id = acw_generic.133
#	 title = acw_generic.133.t
#	 desc = acw_generic.133.d

#	 picture = GFX_news_event_trent_affair

#	 major = yes

#	 is_triggered_only = yes

#	 option = {
#		 trigger = {
#			 NOT = { TAG = USA }
#			 NOT = { TAG = CSA }
#		 }
#		 name = acw_generic.133.a
#	 }
#	 option = {
#		 trigger = {
#			 TAG = USA
#		 }
#		 name = acw_generic.133.b
#	 }
#	 option = {
#		 trigger = {
#			 TAG = CSA
#		 }
#		 name = acw_generic.133.c
#	 }
#	 option = {
#		 trigger = {
#			 OR = {
#				 TAG = FRA
#				 TAG = ENG
#			 }
#		 }
#		 name = acw_generic.133.e
#	 }
# }
# # Trent Affair Calm
# news_event = {
#	 id = acw_generic.134
#	 title = acw_generic.134.t
#	 desc = {
#		 text = acw_generic.134.d
#		 trigger = { NOT = { has_global_flag = Trent_Affair_ENG_Yes } }
#	 }
#	 desc = {
#		 text = acw_generic.134.d_a
#		 trigger = { NOT = { has_global_flag = Trent_Affair_USA_Firm } }
#	 }
#	 desc = {
#		 text = acw_generic.134.d_b
#		 trigger = { has_global_flag = Trent_Affair_USA_Firm }
#	 }
#	 picture = GFX_news_event_trent_affair_calm

#	 major = yes

#	 is_triggered_only = yes

#	 option = {
#		 trigger = {
#			 NOT = { TAG = USA }
#			 NOT = { TAG = CSA }
#		 }
#		 name = acw_generic.134.a
#	 }
#	 option = {
#		 trigger = {
#			 TAG = USA
#		 }
#		 name = acw_generic.134.b
#	 }
#	 option = {
#		 trigger = {
#			 TAG = CSA
#		 }
#		 name = acw_generic.134.c
#	 }
# }
# # Trent Affair Escalation
# news_event = {
#	 id = acw_generic.139
#	 title = acw_generic.139.t
#	 desc = {
#		 text = acw_generic.139.d
#		 trigger = { has_global_flag = Trent_Affair_FRA_Yes }
#	 }
#	 desc =	{
#		 text = acw_generic.139.d_a
#		 trigger = { NOT = { has_global_flag = Trent_Affair_FRA_Yes } }
#	 }
#	 picture = GFX_news_event_trent_affair_escalation

#	 major = yes

#	 is_triggered_only = yes

#	 option = {
#		 trigger = {
#			 NOT = { TAG = USA }
#			 NOT = { TAG = CSA }
#			 NOT = { TAG = ENG }
#			 NOT = { TAG = FRA }
#		 }
#		 name = acw_generic.139.a
#	 }
#	 option = {
#		 trigger = {
#			 TAG = USA
#		 }
#		 name = acw_generic.139.b
#	 }
#	 option = {
#		 trigger = {
#			 TAG = CSA
#		 }
#		 name = acw_generic.139.c
#	 }
#	 option = {
#		 trigger = {
#			 TAG = ENG
#		 }
#		 name = acw_generic.139.e
#	 }
#	 option = {
#		 trigger = {
#			 has_global_flag = Trent_Affair_FRA_Yes
#			 TAG = FRA
#		 }
#		 name = acw_generic.139.f
#	 }
# }

############################## RECONSTRUCTION #############################

state_event = {
	id = acw_reconstruction.1
	title = acw_reconstruction.1.t
	desc = acw_reconstruction.1.d
	picture = GFX_report_event_election_vote

	is_triggered_only = yes

	immediate = {
		custom_effect_tooltip = 01_ACW_RECON_tt
		hidden_effect = {
			set_state_flag = USAROD_constitution_signed
		}
	}

	option = {
		name = acw_reconstruction.1.a
	}
}

state_event = {
	id = acw_reconstruction.2
	title = acw_reconstruction.2.t
	desc = acw_reconstruction.2.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.2.a
	}
}

state_event = {
	id = acw_reconstruction.3
	title = acw_reconstruction.3.t
	desc = acw_reconstruction.3.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.3.a
	}
}

state_event = {
	id = acw_reconstruction.4
	title = acw_reconstruction.4.t
	desc = acw_reconstruction.4.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.4.a
	}
}

state_event = {
	id = acw_reconstruction.5
	title = acw_reconstruction.5.t
	desc = acw_reconstruction.5.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.5.a
	}
}

state_event = {
	id = acw_reconstruction.6
	title = acw_reconstruction.6.t
	desc = acw_reconstruction.6.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.6.a
	}
}

state_event = {
	id = acw_reconstruction.7
	title = acw_reconstruction.7.t
	desc = acw_reconstruction.7.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.7.a
	}
}

state_event = {
	id = acw_reconstruction.8
	title = acw_reconstruction.8.t
	desc = acw_reconstruction.8.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.8.a
	}
}

state_event = {
	id = acw_reconstruction.9
	title = acw_reconstruction.9.t
	desc = acw_reconstruction.9.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.9.a
	}
}

state_event = {
	id = acw_reconstruction.10
	title = acw_reconstruction.10.t
	desc = acw_reconstruction.10.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.10.a
	}
}

state_event = {
	id = acw_reconstruction.11
	title = acw_reconstruction.11.t
	desc = acw_reconstruction.11.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction_progress11.a
	}
}

state_event = {
	id = acw_reconstruction.12
	title = acw_reconstruction.12.t
	desc = acw_reconstruction.12.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.12.a
	}
}

state_event = {
	id = acw_reconstruction.13
	title = acw_reconstruction.13.t
	desc = acw_reconstruction.13.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.13.a
	}
}

state_event = {
	id = acw_reconstruction.14
	title = acw_reconstruction.14.t
	desc = acw_reconstruction.14.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	option = {
		name = acw_reconstruction.14.a
	}
}

# Reconstruction Management
state_event = {
	id = acw_reconstruction.15
	hidden = yes
	title = acw_reconstruction.15.t
	# desc = acw_reconstruction.15.d
	# picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	immediate = {
		FROM = { country_event = { id = acw_reconstruction.16 } }
	}
}

country_event = {
	id = acw_reconstruction.16
	title = acw_reconstruction.16.t
	desc = acw_reconstruction.16.d
	picture = GFX_report_event_worker_protests

	is_triggered_only = yes

	immediate = {
		randomize_temp_variable = {
			var = acw_reconstruction2tempvar
			min = 0
			max = 100
		}
	}

	option = {
		name = acw_reconstruction.16.a
		ai_chance = { base = 100 }
		trigger = {
			has_variable = FROM.reconstruction_integration_progress
			check_variable = { var = FROM.reconstruction_integration_progress value = 0.6 compare = less_than }
			command_power > 35
		}
		add_command_power = -35
		FROM = { USAROD_reconstruction_progress_plus_3 = yes }
	}
	option = {
		name = acw_reconstruction.16.b
		ai_chance = { base = 100 }
		trigger = {
			has_variable = FROM.reconstruction_integration_progress
			check_variable = { var = FROM.reconstruction_integration_progress value =	1 compare = less_than }
			has_political_power > 15
		}
		add_political_power = -15
		FROM = { USAROD_reconstruction_progress_plus_5 = yes }
	}
	option = {
		name = acw_reconstruction.16.c
		ai_chance = { base = 1000 }
		trigger = {
			check_variable = { var = FROM.reconstruction_integration_progress value = 0.59 compare = greater_than }
			check_variable = { var = FROM.reconstruction_integration_progress value = 1 compare = greater_than_or_equals }
			FROM = { NOT = { has_state_flag = USAROD_constitution_signed } }
		}
		add_political_power = -20
		FROM = {
			set_state_flag = USAROD_constitution_signed
			USAROD_reconstruction_progress_plus_10 = yes
		}
	}
	option = {
		name = acw_reconstruction.16.e
		ai_chance = { base = 1000 }
		trigger = { 
			check_variable = { var = FROM.reconstruction_integration_progress value = 1 compare = greater_than_or_equals }
			FROM = { has_state_flag = USAROD_constitution_signed }
		}
		add_political_power = -25
		FROM = { USAROD_reconstruction_progress_admit = yes }
	}
	option = {
		ai_chance = {
			base = 0
			modifier = {
				AND = {
					has_political_power < 15
					command_power < 51
				}
				add = 1
			}
		}
		name = acw_reconstruction.16.f
		custom_effect_tooltip = acw_reconstruction.16.f_tt
		clr_country_flag = USAROD_Reconstruction_Decision_Taken
	}
}

country_event = {
	id = acw_reconstruction.17
	hidden = yes
	
	is_triggered_only = yes

	option = {
		activate_decision = eoanb_decision_usarod_reconstruction
	}
}

country_event = {
	id = acw_reconstruction.18
	hidden = yes
	
	is_triggered_only = yes

	option = {
		CSA = {
			transfer_state = 362
			transfer_state = 363
			transfer_state = 364
			transfer_state = 365
			transfer_state = 366
			transfer_state = 367
			transfer_state = 368
			transfer_state = 370
			transfer_state = 371
			transfer_state = 372
			transfer_state = 375
		}
	}
}
country_event = {
	id = acw_reconstruction.19
	hidden = yes
	
	is_triggered_only = yes

	option = {
		puppet = CSA
		hidden_effect = {
			USAROD_Reconstruction_Zone_Setup = yes
		}
	}
}

### First Nations

country_event = {
	id = acw_first_nations.7
	hidden = yes

	is_triggered_only = yes
	fire_only_once = yes
	
	trigger = {
		NOT = { has_global_flag = acw_first_nations_trigger_1_flag_global }
	}

		immediate = {
		hidden_effect = {
			set_global_flag = acw_first_nations_trigger_1_flag_global
			if = {
				limit = {
					has_global_flag = ACW_American_Civil_War
				}
				every_country = {
					limit = {
						exists = yes
						OR = {
							TAG = NEZ
							TAG = BFT
							TAG = SIX
							TAG = APA
							TAG = NAV
							TAG = OKL
						}
					}
					country_event = { id = acw_first_nations.1 days = 7 }
				}
			}
		}
	}
}

country_event = {
	id = acw_first_nations.1 
	title = acw_first_nations.1.t
	desc = acw_first_nations.1.d
	picture = GFX_report_event_russian_protests

	is_triggered_only = yes
	
	trigger = {
		ROOT = { exists = yes }
		NOT = { has_country_flag = acw_first_nations_trigger_1_flag_country }
	}
	
	immediate = {
		hidden_effect = { ROOT = { set_country_flag = acw_first_nations_trigger_1_flag_country } }
	}

	option = { 
		name = acw_first_nations.1.a
		ai_chance = {
			factor = 50
		}
		add_war_support = 0.07
		ROOT = { country_event = { id = acw_first_nations.2 days = 3 } }
		custom_effect_tooltip = acw_first_nations_choose_early_tooltip
	}
	
	option = { 
			name = acw_first_nations.1.b
		ai_chance = {
			factor = 35
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		add_war_support = 0.07
		ROOT = { country_event = { id = acw_first_nations.3 months = 1 } }
		custom_effect_tooltip = acw_first_nations_choose_later_tooltip
	}
	
	option = { 
			name = acw_first_nations.1.c
		ai_chance = {
			factor = 15
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		add_war_support = 0.07
		ROOT = { country_event = { id = acw_first_nations.4 months = 2 } }
		custom_effect_tooltip = acw_first_nations_choose_latest_tooltip
	}
}

country_event = {
	id = acw_first_nations.2 
	title = acw_first_nations.2.t
	desc = acw_first_nations.2.d
	picture = GFX_report_event_russian_protests

	is_triggered_only = yes
	
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

		option = {
			name = acw_first_nations.2.a
		ai_chance = {
			factor = 50
		}
		custom_effect_tooltip = acw_first_nations_choose_USA_tooltip
		hidden_effect = { 
			USA = { country_event = { id = acw_first_nations.5 days = 5 random = 5 } } 
			set_country_flag = acw_first_nations_choose_USA_early_flag 
			ROOT = { add_ideas = FN_T_american_civil_war_usa }
		}
	}
	
	option = { 
			name = acw_first_nations.2.b
		ai_chance = {
			factor = 50
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		custom_effect_tooltip = acw_first_nations_choose_CSA_tooltip
		hidden_effect = { 
			CSA = { country_event = { id = acw_first_nations.6 days = 5 random = 5 } }
			set_country_flag = acw_first_nations_choose_CSA_early_flag 
			ROOT = { add_ideas = FN_T_american_civil_war_csa }
		}
	}
	
	option = { 
			name = acw_first_nations.2.c
		ai_chance = {
			factor = 0
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		ROOT = { country_event = { id = acw_first_nations.3 months = 1 } }
		custom_effect_tooltip = acw_first_nations_choose_later_tooltip
	}
}

country_event = {
	id = acw_first_nations.3 
	title = acw_first_nations.3.t
	desc = acw_first_nations.3.d
	picture = GFX_report_event_russian_protests

	is_triggered_only = yes
	
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

		option = {
			name = acw_first_nations.3.a
		ai_chance = {
			factor = 50
		}
		custom_effect_tooltip = acw_first_nations_choose_USA_tooltip
		hidden_effect = { 
			USA = { country_event = { id = acw_first_nations.5 days = 5 random = 5 } } 
			set_country_flag = acw_first_nations_choose_USA_later_flag 
			ROOT = { add_ideas = FN_T_american_civil_war_usa }
		}
	}
	
	option = { 
			name = acw_first_nations.3.b
		ai_chance = {
			factor = 50
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		custom_effect_tooltip = acw_first_nations_choose_CSA_tooltip
		hidden_effect = { 
			CSA = { country_event = { id = acw_first_nations.6 days = 5 random = 5 } }
			set_country_flag = acw_first_nations_choose_CSA_later_flag 
			ROOT = { add_ideas = FN_T_american_civil_war_csa }
		}
	}
	
	option = { 
			name = acw_first_nations.3.c
		ai_chance = {
			factor = 0
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		ROOT = { country_event = { id = acw_first_nations.4 months = 1 } }
		custom_effect_tooltip = acw_first_nations_choose_latest_tooltip
	}
}

country_event = {
	id = acw_first_nations.4 
	title = acw_first_nations.4.t
	desc = acw_first_nations.4.d
	picture = GFX_report_event_russian_protests

	is_triggered_only = yes
	
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

		option = {
			name = acw_first_nations.4.a
		ai_chance = {
			factor = 50
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		custom_effect_tooltip = acw_first_nations_choose_USA_tooltip
		hidden_effect = { 
			USA = { country_event = { id = acw_first_nations.5 days = 5 random = 5 } } 
			set_country_flag = acw_first_nations_choose_USA_latest_flag 
			ROOT = { add_ideas = FN_T_american_civil_war_usa }
		}
	}
	
	option = { 
			name = acw_first_nations.4.b
		ai_chance = {
			factor = 50
		}
		trigger = {
			NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
			NOT = { has_autonomy_state = autonomy_first_nations_reservation }
			NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
		}
		custom_effect_tooltip = acw_first_nations_choose_CSA_tooltip
		hidden_effect = { 
			CSA = { country_event = { id = acw_first_nations.6 days = 5 random = 5 } }
			set_country_flag = acw_first_nations_choose_CSA_latest_flag 
			ROOT = { add_ideas = FN_T_american_civil_war_csa }
		}
	}
}

country_event = {
	id = acw_first_nations.5 
	title = acw_first_nations.5.t
	desc = acw_first_nations.5.d
	picture = GFX_report_event_russian_protests

	is_triggered_only = yes
	
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

		option = {
			name = acw_first_nations.5.a
		trigger = {
			FROM = { has_country_flag = acw_first_nations_choose_USA_early_flag }
		}
		if = {
			limit = {
				NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
				NOT = { has_autonomy_state = autonomy_first_nations_reservation }
				NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
			}
			diplomatic_relation = {
				country = FROM
				relation = non_aggression_pact
				active = yes
			}
			diplomatic_relation = {
				country = FROM
				relation = military_access
				active = yes
			}
		}
		hidden_effect = {
			add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_USA_strong_opinion_modifier }
			CSA = { add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_USA_negative_opinion_modifier } }
			set_variable = { var = FROM.acw_has_special_diplomacy@CSA value = 1 }
		}
	}
	
	option = {
			name = acw_first_nations.5.b
		trigger = {
			FROM = { has_country_flag = acw_first_nations_choose_USA_later_flag }
		}
		if = {
			limit = {
				NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
				NOT = { has_autonomy_state = autonomy_first_nations_reservation }
				NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
			}
			diplomatic_relation = {
				country = FROM
				relation = non_aggression_pact
				active = yes
			}
			diplomatic_relation = {
				country = FROM
				relation = military_access
				active = yes
			}
		}
		hidden_effect = {
			add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_USA_normal_opinion_modifier }
			CSA = { add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_USA_negative_opinion_modifier } }
			set_variable = { var = FROM.acw_has_special_diplomacy@CSA value = 1 }
		}
	}
	
	option = {
			name = acw_first_nations.5.c
		trigger = {
			FROM = { has_country_flag = acw_first_nations_choose_USA_latest_flag }
		}
		if = {
			limit = {
				NOT = { has_autonomy_state = autonomy_organized_incorporated_territory }
				NOT = { has_autonomy_state = autonomy_first_nations_reservation }
				NOT = { has_autonomy_state = autonomy_organized_unincorporated_territory }
			}
			diplomatic_relation = {
				country = FROM
				relation = non_aggression_pact
				active = yes
			}
			diplomatic_relation = {
				country = FROM
				relation = military_access
				active = yes
			}
		}
		hidden_effect = {
			add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_USA_weak_opinion_modifier }
			CSA = { add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_USA_negative_opinion_modifier } }
			set_variable = { var = FROM.acw_has_special_diplomacy@CSA value = 1 }
		}
	}
}

country_event = {
	id = acw_first_nations.6 
	title = acw_first_nations.6.t
	desc = acw_first_nations.6.d
	picture = GFX_report_event_russian_protests

	is_triggered_only = yes
	
	trigger = {
		has_global_flag = ACW_American_Civil_War
	}

		option = {
		name = acw_first_nations.6.a
		trigger = {
			FROM = { has_country_flag = acw_first_nations_choose_CSA_early_flag }
		}
		diplomatic_relation = {
			country = FROM
			relation = non_aggression_pact
			active = yes
		}
		diplomatic_relation = {
			country = FROM
			relation = military_access
			active = yes
		}
		hidden_effect = {
			add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_CSA_strong_opinion_modifier }
			USA = { add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_CSA_negative_opinion_modifier } }
			set_variable = { var = FROM.acw_has_special_diplomacy@USA value = 1 }
		}
	}
	
	option = {
			name = acw_first_nations.6.b
		trigger = {
			FROM = { has_country_flag = acw_first_nations_choose_CSA_later_flag }
		}
		diplomatic_relation = {
			country = FROM
			relation = non_aggression_pact
			active = yes
		}
		diplomatic_relation = {
			country = FROM
			relation = military_access
			active = yes
		}
		hidden_effect = {
			add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_CSA_normal_opinion_modifier }
			USA = { add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_CSA_negative_opinion_modifier } }
			set_variable = { var = FROM.acw_has_special_diplomacy@USA value = 1 }
		}
	}
	
	option = {
			name = acw_first_nations.6.c
		trigger = {
			FROM = { has_country_flag = acw_first_nations_choose_CSA_latest_flag }
		}
		diplomatic_relation = {
			country = FROM
			relation = non_aggression_pact
			active = yes
		}
		diplomatic_relation = {
			country = FROM
			relation = military_access
			active = yes
		}
		hidden_effect = {
			add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_CSA_weak_opinion_modifier }
			USA = { add_opinion_modifier = { target = FROM modifier = acw_first_nations_choose_CSA_negative_opinion_modifier } }
			set_variable = { var = FROM.acw_has_special_diplomacy@USA value = 1 }
		}
	}
}



# Liberia

country_event = {
	id = acw_generic.135
	title = acw_generic.135.t
	desc = acw_generic.135.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = {
		name = acw_generic.135.a
		ai_chance = { 
			factor = 10
			modifier = {
				factor = 9
				LIB = { NOT = { has_country_flag = LIB_adopted_ACS_policy_flag } }
			}
			modifier = {
				factor = 8
				LIB = { has_country_flag = LIB_adopted_ACS_policy_flag }
			}
		}
		country_event = { id = acw_generic.136 days = 7 }
	}
	
	option = {
		name = acw_generic.135.b
		ai_chance = { 
			factor = 10
			modifier = {
				factor = 2
				LIB = { has_country_flag = LIB_adopted_ACS_policy_flag }
			}
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		country_event = { id = acw_generic.137 days = 7 }
	}
}

country_event = {
	id = acw_generic.136
	title = acw_generic.136.t
	desc = acw_generic.136.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = {
		name = acw_generic.136.a
		ai_chance = { factor = 100 }
		clr_country_flag = USA_LIB_investment_flag
	}
}

country_event = {
	id = acw_generic.137
	title = acw_generic.137.t
	desc = acw_generic.137.d
	picture = GFX_report_event_soviet_finnish_pact

	is_triggered_only = yes

	option = {
		name = acw_generic.137.a
		ai_chance = { factor = 100 }
	}
}