﻿add_namespace = usa_state_event
add_namespace = afr_tribal_raid
add_namespace = balkanized_state_border_skirmish
add_namespace = first_nations_tribal_raid

country_event = {
	id = usa_state_event.11
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		ROOT = { clr_country_flag = State_Militia_Raised_Due_To_Border_War }
	}
}

country_event = {
	id = first_nations_tribal_raid.1
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		FROM = { clr_country_flag = first_nations_tribe_recently_raided_flag }
		ROOT = {
			if = {
				limit = { has_variable = FNT_raid_likelihood_var@FROM }
				random_list = {
					25 = {
						if = {
							limit = {
								FROM = {  }
								ROOT = { NOT = {  } }
							}
							FROM = { country_event = { id = first_nations_tribal_raid.2 days = 370 } }
						}
						else = { FROM = { country_event = { id = first_nations_tribal_raid.2 days = 135 } } }
						modifier = {
							add = 15
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 5 compare = less_than }
								}
								always = yes
							}
							else = { always = no }
						}
						modifier = {
							add = -5
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 5 compare = less_than }
								}
								always = no
							}
							else = { always = yes }
						}
					}
					25 = {
						if = {
							limit = {
								FROM = {  }
								ROOT = { NOT = {  } }
							}
							FROM = { country_event = { id = first_nations_tribal_raid.2 days = 185 } }
						}
						else = { FROM = { country_event = { id = first_nations_tribal_raid.2 days = 105 } } }
						modifier = {
							add = 15
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 5 compare = greater_than_or_equals }
									check_variable = { var = FNT_raid_likelihood_var value = 10 compare = less_than }
								}
								always = yes
							}
							else = { always = no }
						}
						modifier = {
							add = -5
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 5 compare = greater_than_or_equals }
									check_variable = { var = FNT_raid_likelihood_var value = 10 compare = less_than }
								}
								always = no
							}
							else = { always = yes }
						}
					}
					25 = {
						if = {
							limit = {
								FROM = {  }
								ROOT = { NOT = {  } }
							}
							FROM = { country_event = { id = first_nations_tribal_raid.2 days = 95 } }
						}
						else = { FROM = { country_event = { id = first_nations_tribal_raid.2 days = 75 } } }
						modifier = {
							add = 15
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 10 compare = greater_than_or_equals }
									check_variable = { var = FNT_raid_likelihood_var value = 15 compare = less_than }
								}
								always = yes
							}
							else = { always = no }
						}
						modifier = {
							add = -5
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 10 compare = greater_than_or_equals }
									check_variable = { var = FNT_raid_likelihood_var value = 15 compare = less_than }
								}
								always = no
							}
							else = { always = yes }
						}
					}
					25 = {
						FROM = { clear_variable = FNT_recently_raided@ROOT }
						modifier = {
							add = 15
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 15 compare = greater_than_or_equals }
								}
								always = yes
							}
							else = { always = no }
						}
						modifier = {
							add = -5
							if = {
								limit = { 
									check_variable = { var = FNT_raid_likelihood_var value = 15 compare = greater_than_or_equals }
								}
								always = no
							}
							else = { always = yes }
						}
					}
				}
			}
			else = {
				FROM = { clear_variable = FNT_recently_raided@ROOT }
			}
		}
	}
}

country_event = {
	id = first_nations_tribal_raid.2
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		ROOT = { clear_variable = FNT_recently_raided@FROM }
	}
}

country_event = {###post war, lower state militia again
	id = usa_state_event.12
	hidden = yes
	
	trigger={
		has_template = "State Militia"
		any_neighbor_country = {
			if = {
				limit = { 
					
					has_border_war_with = ROOT
				}
				always = no
			}
			else = {
				always = yes 
			}
		}
		NOT = { has_country_flag = State_Militia_Raised_Due_To_Border_War }
	}
	
	mean_time_to_happen = {
		days = 20
	}
	
	immediate = {
		hidden_effect = {
			ROOT = {
				USA_dismiss_state_militia_units = yes
			}
		}
	}
}

country_event = {###post war, lower colonial militia again
	id = afr_tribal_raid.8
	hidden = yes
	
	trigger={
		has_template = "Colonial Militia"
		any_neighbor_country = {
			if = {
				limit = { 
					
					has_border_war_with = ROOT
				}
				always = no
			}
			else = {
				always = yes 
			}
		}
		NOT = { has_country_flag = State_Militia_Raised_Due_To_Border_War }
	}
	
	mean_time_to_happen = {
		days = 20
	}
	
	immediate = {
		hidden_effect = {
			ROOT = {
				AFR_dismiss_colonial_militia_units = yes
			}
		}
	}
}

news_event = {
	id = usa_state_event.9
	title = usa_state_event.9.t
	desc = usa_state_event.9.d
	picture = GFX_news_event_usa_election_of_1864
	
	major = yes
	
	is_triggered_only = yes
	
	option = {
		name = usa_state_event.9.a
		trigger = {
			has_country_flag = is_successor_state_of_usa_flag
			is_former_usa_state = yes
		}
	}

	option = {
		name = usa_state_event.9.b
		trigger = {
			NOT = { has_country_flag = is_successor_state_of_usa_flag }
			is_former_usa_state = yes
		}
	}
	
	option = {
		name = usa_state_event.9.c
		trigger = {
			NOT = { is_former_usa_state = yes }
		}
		
	}
}

country_event = {
	id = usa_state_event.8
	title = usa_state_event.8.t
	desc = usa_state_event.8.d
	picture = GFX_report_event_election_vote
	
	is_triggered_only = yes

	option = {
		name = usa_state_event.8.a
		trigger = { 
			NOT = { 
				TAG = CSA
				TAG = LIB
			}
		}
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = { 
					TAG = UTA
					TAG = CSA
					TAG = TEX
					TAG = MHC
					has_cosmetic_tag = ORE_cascadia
				}
			}
			modifier = {
				factor = 2
				OR = { 
					TAG = NEG
					TAG = CAL
				}
			}
		}
		set_country_flag = is_successor_state_of_usa_flag
		set_country_flag = has_ambitions_for_mantle_flag
		hidden_effect = {
			every_owned_state = {
				ROOT = { add_to_variable = { var = ROOT.NA_B_mantle_of_the_states_score_var@ROOT value = PREV.NA_B_mantle_of_the_state_points@PREV } }
			}
			country_event = { id = balkanized_usa.41 }
		}
	}
	
	option = {
		name = usa_state_event.8.b
		trigger = {
			NOT = {
				TAG = MIN
				TAG = ASA
			}
		}
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = { 
					TAG = MIN
					TAG = ASA
				}
			}
		}
		set_country_flag = not_successor_state_of_usa_flag
		set_country_flag = has_no_ambitions_for_mantle_tooltip
		if = {
			limit = { TAG = LIB }
			if = {
				limit = { has_country_flag = USA_LIB_investment_flag }
				hidden_effect = { clr_country_flag = USA_LIB_investment_flag }
			}
			custom_effect_tooltip = USA_LIB_investment_flag_removed_tooltip
		}
	}
}

country_event = {
	id = usa_state_event.10
	hidden = yes
	is_triggered_only = yes
	fire_only_once = yes
	
	
	immediate = {
		hidden_effect = {
			every_country = {
				limit = { has_country_flag = is_successor_state_of_usa_flag }
				every_country = {
					limit = { has_country_flag = is_successor_state_of_usa_flag }
					add_opinion_modifier = {
						target = PREV
						modifier = NA_B_embargo_successor_state_trade
					}
					add_opinion_modifier = {
						target = PREV
						modifier = NA_B_embargo_successor_state_opinion
					}
					add_opinion_modifier = {
						target = PREV
						modifier = NA_B_rival_successor_state_trade
					}
					add_opinion_modifier = {
						target = PREV
						modifier = NA_B_rival_successor_state_opinion
					}
					set_variable = { ROOT.NA_B_successor_has_embargo@PREV = 1 }
				}
			}
		}
	}
}

country_event = {
	id = first_nations_tribal_raid.32
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		ROOT = { clr_country_flag = Tribal_Army_Raised_Due_To_Border_War }
	}
}

country_event = {
	id = first_nations_tribal_raid.31
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { ROOT = { has_country_flag = set_border_war_data_first_nations_tribal_raid_neighbor_flag } }
			ROOT = { clr_country_flag = set_border_war_data_first_nations_tribal_raid_neighbor_flag }
		}
		if = {
			limit = { ROOT = { has_country_flag = set_border_war_data_first_nations_tribal_raid_colonial_neighbor_flag } }
			ROOT = { clr_country_flag = set_border_war_data_first_nations_tribal_raid_colonial_neighbor_flag }
		}
		if = {
			limit = { ROOT = { has_country_flag = set_border_war_data_first_nations_tribal_border_war_enemy_flag } }
			ROOT = { clr_country_flag = set_border_war_data_first_nations_tribal_border_war_enemy_flag }
		}
		if = {
			limit = { ROOT = { has_country_flag = set_border_war_data_afr_tribal_raid_colonial_neighbor_flag } }
			ROOT = { clr_country_flag = set_border_war_data_afr_tribal_raid_colonial_neighbor_flag }
		}
	}
}

country_event = {
	id = usa_state_event.7
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { ROOT = { has_country_flag = set_border_war_data_former_usa_state_neighbor_flag } }
			ROOT = { clr_country_flag = set_border_war_data_former_usa_state_neighbor_flag }
		}
	}
}




##################################################
#First Nations vs First Nations Border War Events#
##################################################
country_event = {
	id = first_nations_tribal_raid.23
	title = first_nations_tribal_raid.23.t
	desc = first_nations_tribal_raid.23.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.23.a
		ai_chance = {
			factor = 0
		}
		custom_effect_tooltip = set_border_war_data_first_nations_tribal_raid_neighbor_combat_width_tooltip
	}
	
	option = {
		name = first_nations_tribal_raid.23.b
		ai_chance = {
			factor = 100
		}
		trigger = {
			ROOT = { NOT = { has_country_flag = Tribal_Army_Raised } }
			ROOT = {  }
		}
		custom_effect_tooltip = set_border_war_data_first_nations_tribal_raid_neighbor_combat_width_tooltip
		if = {
			limit = { 
				NOT = { has_country_flag = Tribal_Army_Raised } 
				OR = {
					check_variable = { Tribal_army_num > 999 }
					check_variable = { Tribal_horse_army_num > 999 }
					check_variable = { Tribal_horse_pistoleer_army_num > 999 }
					check_variable = { Tribal_camel_army_num > 999 }
				}
			}
			hidden_effect = {
				set_country_flag = Tribal_Army_Raised_Due_To_Border_War
				ROOT = { country_event = { id = first_nations_tribal_raid.22 days = 35 } }
				set_country_flag = Tribal_Army_Raised
				
			}
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.4
	title = first_nations_tribal_raid.4.t
	desc = first_nations_tribal_raid.4.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
	}
	
	option = {
		name = first_nations_tribal_raid.4.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_neighbor_flag } }
		}
		army_experience = 10
	}
}
country_event = {
	id = first_nations_tribal_raid.5
	title = first_nations_tribal_raid.5.t
	desc = first_nations_tribal_raid.5.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.5.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_neighbor_flag } }
		}
		army_experience = 5
		custom_effect_tooltip = afr_war_exhaustion_value_add_1
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 1
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.6
	title = first_nations_tribal_raid.6.t
	desc = first_nations_tribal_raid.6.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.6.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_neighbor_flag } }
		}
		army_experience = 5
	}
}

country_event = {
	id = first_nations_tribal_raid.7
	title = first_nations_tribal_raid.7.t
	desc = first_nations_tribal_raid.7.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.7.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_neighbor_flag } }
		}
		army_experience = 10
	}
}
country_event = {
	id = first_nations_tribal_raid.8
	title = first_nations_tribal_raid.8.t
	desc = first_nations_tribal_raid.8.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
	}
	
	option = {
		name = first_nations_tribal_raid.8.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_neighbor_flag } }
		}
		army_experience = 5
		custom_effect_tooltip = afr_war_exhaustion_value_add_1
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 1
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.9
	title = first_nations_tribal_raid.9.t
	desc = first_nations_tribal_raid.9.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.9.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_neighbor_flag } }
		}
		army_experience = 5
	}
}
####################################################
#First Nations vs Colonial Forces Border War Events#
####################################################
country_event = {
	id = first_nations_tribal_raid.24
	title = first_nations_tribal_raid.24.t
	desc = first_nations_tribal_raid.24.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.24.a
		ai_chance = {
			factor = 100
		}
		custom_effect_tooltip = set_border_war_data_first_nations_tribal_raid_colonial_neighbor_combat_width_tooltip
	}
}
country_event = {
	id = first_nations_tribal_raid.10
	title = first_nations_tribal_raid.10.t
	desc = first_nations_tribal_raid.10.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
	}
	
	option = {
		name = first_nations_tribal_raid.10.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 20
		custom_effect_tooltip = afr_war_exhaustion_value_add_1
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 1
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.11
	title = first_nations_tribal_raid.11.t
	desc = first_nations_tribal_raid.11.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.11.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 5
		custom_effect_tooltip = afr_war_exhaustion_value_add_3
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 3
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.12
	title = first_nations_tribal_raid.12.t
	desc = first_nations_tribal_raid.12.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.12.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 10
	}
}

country_event = {
	id = first_nations_tribal_raid.13
	title = first_nations_tribal_raid.13.t
	desc = first_nations_tribal_raid.13.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.13.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 1
		if = {
			limit = {
				AND = {
					ROOT = {
						tag = USA
					}
					USA = {
						has_completed_focus = USA_FN_passive1
					}
				}
			}
			add_political_power = 30
		}
		else = {
			add_political_power = 15
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.14
	title = first_nations_tribal_raid.14.t
	desc = first_nations_tribal_raid.14.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	# immediate = {
	# 	hidden_effect = { ROOT = { first_nations_tribal_raid_colonial_neighbor_penalty_random_list = yes } }
	# }
	
	option = {
		name = first_nations_tribal_raid.14.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_colonial_neighbor_flag } }
		}
		if = {
			limit = {
				AND = {
					tag = USA
					USA = {
						has_completed_focus = USA_FN_passive2
					}
				}
			}
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.15
	title = first_nations_tribal_raid.15.t
	desc = first_nations_tribal_raid.15.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.15.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_raid_colonial_neighbor_flag } }
		}
	}
}

####################################################
#First Nations vs ACW Side War Events#
####################################################
country_event = {
	id = first_nations_tribal_raid.25
	title = first_nations_tribal_raid.25.t
	desc = first_nations_tribal_raid.25.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.25.a
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0
				ROOT = {  }
			}
		}
		custom_effect_tooltip = set_border_war_data_first_nations_tribal_border_war_enemy_combat_width_tooltip
	}
	
	option = {
		name = first_nations_tribal_raid.25.b
		ai_chance = {
			factor = 100
		}
		trigger = {
			ROOT = { NOT = { has_country_flag = Tribal_Army_Raised } }
			ROOT = {  }
		}
		custom_effect_tooltip = set_border_war_data_first_nations_tribal_border_war_enemy_combat_width_tooltip
		if = {
			limit = { 
				NOT = { has_country_flag = Tribal_Army_Raised } 
				OR = {
					check_variable = { Tribal_army_num > 999 }
					check_variable = { Tribal_horse_army_num > 999 }
					check_variable = { Tribal_horse_pistoleer_army_num > 999 }
					check_variable = { Tribal_camel_army_num > 999 }
				}
			}
			hidden_effect = {
				set_country_flag = Tribal_Army_Raised_Due_To_Border_War
				ROOT = { country_event = { id = first_nations_tribal_raid.22 days = 32 } }
				set_country_flag = Tribal_Army_Raised
				
			}
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.16
	title = first_nations_tribal_raid.16.t
	desc = first_nations_tribal_raid.16.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
	}
	
	option = {
		name = first_nations_tribal_raid.16.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_border_war_enemy_flag } }
		}
		army_experience = 20
		if = {
			limit = { any_state = { check_variable = { first_nations_acw_border_claim@ROOT = 1 } } }
			every_state = {
				limit = { check_variable = { first_nations_acw_border_claim@ROOT = 1 } }
				custom_effect_tooltip = first_nations_acw_border_claim_remove_tooltip
				clear_variable = first_nations_acw_border_claim@ROOT
			}
		}
		custom_effect_tooltip = afr_war_exhaustion_value_add_1
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 1
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.17
	title = first_nations_tribal_raid.17.t
	desc = first_nations_tribal_raid.17.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.17.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_border_war_enemy_flag } }
		}
		army_experience = 5
		if = {
			limit = { any_state = { check_variable = { first_nations_acw_border_claim@ROOT = 1 } } }
			every_state = {
				limit = { check_variable = { first_nations_acw_border_claim@ROOT = 1 } }
				custom_effect_tooltip = first_nations_acw_border_claim_remove_tooltip
				clear_variable = first_nations_acw_border_claim@ROOT
			}
		}
		custom_effect_tooltip = afr_war_exhaustion_value_add_3
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 3
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.18
	title = first_nations_tribal_raid.18.t
	desc = first_nations_tribal_raid.18.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.18.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_border_war_enemy_flag } }
		}
		army_experience = 10
		if = {
			limit = { any_state = { check_variable = { first_nations_acw_border_claim@ROOT = 1 } } }
			every_state = {
				limit = { check_variable = { first_nations_acw_border_claim@ROOT = 1 } }
				custom_effect_tooltip = first_nations_acw_border_claim_remove_tooltip
				clear_variable = first_nations_acw_border_claim@ROOT
			}
		}
	}
}

country_event = {
	id = first_nations_tribal_raid.19
	title = first_nations_tribal_raid.19.t
	desc = first_nations_tribal_raid.19.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.19.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_border_war_enemy_flag } }
		}
		army_experience = 1
		add_political_power = 15
	}
}
country_event = {
	id = first_nations_tribal_raid.20
	title = first_nations_tribal_raid.20.t
	desc = first_nations_tribal_raid.20.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	# immediate = {
	# 	hidden_effect = { ROOT = { first_nations_tribal_raid_colonial_neighbor_penalty_random_list = yes } }
	# }
	
	option = {
		name = first_nations_tribal_raid.20.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_border_war_enemy_flag } }
		}
	}
}
country_event = {
	id = first_nations_tribal_raid.21
	title = first_nations_tribal_raid.21.t
	desc = first_nations_tribal_raid.21.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.21.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = first_nations_tribal_border_war_enemy_flag } }
		}
	}
}

####################################################
#Former State vs Former State Border War Events#
####################################################
country_event = {
	id = balkanized_state_border_skirmish.8
	title = balkanized_state_border_skirmish.8.t
	desc = balkanized_state_border_skirmish.8.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = balkanized_state_border_skirmish.8.a
		ai_chance = {
			factor = 100
		}
		custom_effect_tooltip = set_border_war_data_balkanized_state_border_skirmish_neighbor_combat_width_tooltip
	}
}
country_event = {
	id = balkanized_state_border_skirmish.1
	title = balkanized_state_border_skirmish.1.t
	desc = balkanized_state_border_skirmish.1.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
		#hidden_effect = { ROOT = { balkanized_state_border_skirmish_neighbor_reward_random_list = yes } }
	}
	
	option = {
		name = balkanized_state_border_skirmish.1.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = balkanized_state_border_skirmish_neighbor_flag } }
		}
		army_experience = 10
		#balkanized_state_border_skirmish_neighbor_reward = yes
	}
}
country_event = {
	id = balkanized_state_border_skirmish.2
	title = balkanized_state_border_skirmish.2.t
	desc = balkanized_state_border_skirmish.2.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = balkanized_state_border_skirmish.2.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = balkanized_state_border_skirmish_neighbor_flag } }
		}
		army_experience = 5
	}
}
country_event = {
	id = balkanized_state_border_skirmish.3
	title = balkanized_state_border_skirmish.3.t
	desc = balkanized_state_border_skirmish.3.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = balkanized_state_border_skirmish.3.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = balkanized_state_border_skirmish_neighbor_flag } }
		}
		army_experience = 5
	}
}

country_event = {
	id = balkanized_state_border_skirmish.5
	title = balkanized_state_border_skirmish.5.t
	desc = balkanized_state_border_skirmish.5.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = balkanized_state_border_skirmish.5.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = balkanized_state_border_skirmish_neighbor_flag } }
		}
		army_experience = 10
	}
}
country_event = {
	id = balkanized_state_border_skirmish.6
	title = balkanized_state_border_skirmish.6.t
	desc = balkanized_state_border_skirmish.6.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
		#hidden_effect = { ROOT = { balkanized_state_border_skirmish_neighbor_penalty_random_list = yes } }
	}
	
	option = {
		name = balkanized_state_border_skirmish.6.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = balkanized_state_border_skirmish_neighbor_flag } }
		}
		#balkanized_state_border_skirmish_neighbor_penalty = yes
		army_experience = 5
	}
}
country_event = {
	id = balkanized_state_border_skirmish.7
	title = balkanized_state_border_skirmish.7.t
	desc = balkanized_state_border_skirmish.7.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = balkanized_state_border_skirmish.7.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = balkanized_state_border_skirmish_neighbor_flag } }
		}
		army_experience = 5
	}
}

####################################################
#African Tribes vs Colonial Forces Border War Events#
####################################################
country_event = {
	id = afr_tribal_raid.7
	title = afr_tribal_raid.7.t
	desc = afr_tribal_raid.7.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = afr_tribal_raid.7.a
		ai_chance = {
			factor = 100
		}
		custom_effect_tooltip = set_border_war_data_afr_tribal_raid_colonial_neighbor_combat_width_tooltip
		if = {
			limit = { 
				
				NOT = { has_country_flag = Tribal_Army_Raised } 
				OR = {
					check_variable = { Tribal_army_num > 999 }
					check_variable = { Tribal_horse_army_num > 999 }
					check_variable = { Tribal_horse_pistoleer_army_num > 999 }
					check_variable = { Tribal_camel_army_num > 999 }
				}
			}
			hidden_effect = {
				set_country_flag = Tribal_Army_Raised_Due_To_Border_War
				ROOT = { country_event = { id = first_nations_tribal_raid.22 days = 35 } }
				set_country_flag = Tribal_Army_Raised
				
			}
		}
	}
}
country_event = {
	id = afr_tribal_raid.1
	title = afr_tribal_raid.1.t
	desc = afr_tribal_raid.1.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
	}
	
	option = {
		name = afr_tribal_raid.1.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = afr_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 20
	}
}
country_event = {
	id = afr_tribal_raid.2
	title = afr_tribal_raid.2.t
	desc = afr_tribal_raid.2.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = afr_tribal_raid.2.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = afr_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 5
		custom_effect_tooltip = afr_war_exhaustion_value_add_1
		add_to_variable = {
			var = afr_war_exhaustion_value
			value = 1
		}
	}
}
country_event = {
	id = afr_tribal_raid.3
	title = afr_tribal_raid.3.t
	desc = afr_tribal_raid.3.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = afr_tribal_raid.3.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = afr_tribal_raid_colonial_neighbor_flag } }
		}
		army_experience = 10
	}
}

country_event = {
	id = afr_tribal_raid.4
	title = afr_tribal_raid.4.t
	desc = afr_tribal_raid.4.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = afr_tribal_raid.4.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = afr_tribal_raid_colonial_neighbor_flag } }
		}
		if = {
			limit = { check_variable = { var = afr_border_war_defender_flag value = 1 compare = greater_than_or_equals } }
			hidden_effect = { subtract_from_variable = { afr_border_war_defender_flag = 1 } }
		}
		army_experience = 3
		add_political_power = 20
	}
}
country_event = {
	id = afr_tribal_raid.5
	title = afr_tribal_raid.5.t
	desc = afr_tribal_raid.5.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	immediate = {
	}
	
	option = {
		name = afr_tribal_raid.5.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = afr_tribal_raid_colonial_neighbor_flag } }
		}
		if = {
			limit = { check_variable = { var = afr_border_war_defender_flag value = 1 compare = greater_than_or_equals } }
			hidden_effect = { subtract_from_variable = { afr_border_war_defender_flag = 1 } }
		}
	}
}
country_event = {
	id = afr_tribal_raid.6
	title = afr_tribal_raid.6.t
	desc = afr_tribal_raid.6.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = afr_tribal_raid.6.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = afr_tribal_raid_colonial_neighbor_flag } }
		}
		if = {
			limit = { check_variable = { var = afr_border_war_defender_flag value = 1 compare = greater_than_or_equals } }
			hidden_effect = { subtract_from_variable = { afr_border_war_defender_flag = 1 } }
		}
	}
}


####################################
#Dynamic Attacker Border War Events#
####################################
country_event = {
	id = usa_state_event.1
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		#link border_war event here
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.4 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.10 } }
		}
		if = {
			limit = { has_country_flag = afr_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = afr_tribal_raid.1 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_border_war_enemy_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.16 } }
		}
		if = {
			limit = { has_country_flag = balkanized_state_border_skirmish_neighbor_flag }
			ROOT = { country_event = { id = balkanized_state_border_skirmish.1 } }
		}
		if = {
			limit = { has_country_flag = afr_raid_christian_neighbor_flag }
			ROOT = { country_event = { id = ethiopia.81 } }
		}
	}
}

country_event = {
	id = usa_state_event.2
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		#link border_war event here
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.5 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.11 } }
		}
		if = {
			limit = { has_country_flag = afr_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = afr_tribal_raid.2 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_border_war_enemy_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.17 } }
		}
		if = {
			limit = { has_country_flag = balkanized_state_border_skirmish_neighbor_flag }
			ROOT = { country_event = { id = balkanized_state_border_skirmish.2 } }
		}
		if = {
			limit = { has_country_flag = afr_raid_christian_neighbor_flag }
			ROOT = { country_event = { id = ethiopia.82 } }
		}
	}
}

country_event = {
	id = usa_state_event.3
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		#link border_war event here
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.6 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.12 } }
		}
		if = {
			limit = { has_country_flag = afr_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = afr_tribal_raid.3 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_border_war_enemy_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.18 } }
		}
		if = {
			limit = { has_country_flag = balkanized_state_border_skirmish_neighbor_flag }
			ROOT = { country_event = { id = balkanized_state_border_skirmish.3 } }
		}
		if = {
			limit = { has_country_flag = afr_raid_christian_neighbor_flag }
			ROOT = { country_event = { id = ethiopia.83 } }
		}
	}
}
####################################
#Dynamic Defender Border War Events#
####################################
country_event = {
	id = usa_state_event.4
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		#link border_war event here
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.7 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.13 } }
		}
		if = {
			limit = { has_country_flag = afr_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = afr_tribal_raid.4 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_border_war_enemy_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.19 } }
		}
		if = {
			limit = { has_country_flag = balkanized_state_border_skirmish_neighbor_flag }
			ROOT = { country_event = { id = balkanized_state_border_skirmish.5 } }
		}
		if = {
			limit = { has_country_flag = afr_raid_christian_neighbor_flag }
			ROOT = { country_event = { id = ethiopia.85 } }
		}
	}
}

country_event = {
	id = usa_state_event.5
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		#link border_war event here
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.8 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.14 } }
		}
		if = {
			limit = { has_country_flag = afr_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = afr_tribal_raid.5 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_border_war_enemy_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.20 } }
		}
		if = {
			limit = { has_country_flag = balkanized_state_border_skirmish_neighbor_flag }
			ROOT = { country_event = { id = balkanized_state_border_skirmish.6 } }
		}
		if = {
			limit = { has_country_flag = afr_raid_christian_neighbor_flag }
			ROOT = { country_event = { id = ethiopia.86 } }
		}
	}
}

country_event = {
	id = usa_state_event.6
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		#link border_war event here
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.9 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.15 } }
		}
		if = {
			limit = { has_country_flag = afr_tribal_raid_colonial_neighbor_flag }
			ROOT = { country_event = { id = afr_tribal_raid.6 } }
		}
		if = {
			limit = { has_country_flag = first_nations_tribal_border_war_enemy_flag }
			ROOT = { country_event = { id = first_nations_tribal_raid.21 } }
		}
		if = {
			limit = { has_country_flag = balkanized_state_border_skirmish_neighbor_flag }
			ROOT = { country_event = { id = balkanized_state_border_skirmish.7 } }
		}
		if = {
			limit = { has_country_flag = afr_raid_christian_neighbor_flag }
			ROOT = { country_event = { id = ethiopia.87 } }
		}
	}
}

country_event = {#clears flag for whatever reason
	id = first_nations_tribal_raid.22
	hidden = yes
	is_triggered_only = yes

	immediate = {
		if = {
			limit = { ROOT = { has_country_flag = encroached_by_US_flag } }
			ROOT = { clr_country_flag = encroached_by_US_flag }
		}
	}
}

country_event = {#doesnt do anything really
	id = first_nations_tribal_raid.33
	title = first_nations_tribal_raid.23.t
	desc = first_nations_tribal_raid.23.d
	picture = GFX_report_event_chinese_army_training #get custom gfx
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.23.a
		ai_chance = {
			factor = 100
		}
		custom_effect_tooltip = set_border_war_data_first_nations_tribal_raid_colonial_neighbor_combat_width_tooltip #check this #does nothing
	}
}

country_event = {#potentially useless?
	id = first_nations_tribal_raid.34
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		USA = { clr_country_flag = USA_recently_encroached_flag }
		if = {
			limit = {
				USA = {
					stockpile_ratio = {
						archetype = infantry_equipment
						ratio < 0.1
					}
				}
			}
			FROM = {
				random_list = {
					25 = {
						country_event = {
							id = first_nations_tribal_raid.25
							days = 75
						}
						modifier = {
							add = 20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio < 0.05
							}
						}
						modifier = {
							add = -20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio > -0.05
							}
						}
					}
					25 = {
						country_event = {
							id = first_nations_tribal_raid.25
							days = 50
						}
						modifier = {
							add = 20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio < 0.025
							}
						}
						modifier = {
							add = -20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio > -0.025
							}
						}
					}
					25 = {
						country_event = {
							id = first_nations_tribal_raid.25
							days = 25
						}
						modifier = {
							add = 20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio > 0.025
							}
						}
						modifier = {
							add = -20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio < -0.025
							}
						}
					}
					25 = {
						country_event = first_nations_tribal_raid.25
						modifier = {
							add = 20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio > 0.05
							}
						}
						modifier = {
							add = -20
							stockpile_ratio = {
								archetype = infantry_equipment
								ratio < -0.05
							}
						}
					}
				}
			}
		}
		else = {
			country_event = {
				id = first_nations_tribal_raid.25
				days = 1
			}
		}
	}
}

country_event = {
	id = first_nations_tribal_raid.35
	hidden = yes
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = {
				USA = {
					has_variable = USA_recently_encroached@SIX
				}
			}
			USA = { clear_variable = USA_recently_encroached@SIX }
		}
		if = {
			limit = {
				USA = {
					has_variable = USA_recently_encroached@BFT
				}
			}
			USA = { clear_variable = USA_recently_encroached@BFT }
		}
		if = {
			limit = {
				USA = {
					has_variable = USA_recently_encroached@NEZ
				}
			}
			USA = { clear_variable = USA_recently_encroached@NEZ }
		}
		if = {
			limit = {
				USA = {
					has_variable = USA_recently_encroached@APA
				}
			}
			USA = { clear_variable = USA_recently_encroached@APA }
		}
		if = {
			limit = {
				USA = {
					has_variable = USA_recently_encroached@NAV
				}
			}
			USA = { clear_variable = USA_recently_encroached@NAV }
		}
	}
}

country_event = {#US attacks and wins
	id = first_nations_tribal_raid.26
	title = first_nations_tribal_raid.26.t
	desc = first_nations_tribal_raid.26.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = { country_event = first_nations_tribal_raid.24 }
	}
	
	option = {
		name = first_nations_tribal_raid.26.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = US_encroaching_flag_@FROM } }
		}
		army_experience = 6
		add_political_power = 10
		# USA = {
		# 	transfer_state = FROM
		# }
		# FROM = {
		# 	custom_effect_tooltip = afr_war_exhaustion_value_add_3
		# 	add_to_variable = {
		# 	var = afr_war_exhaustion_value
		# 	value = 3
		# 	}
		# }
	}
}

country_event = {#US attacks and loses
	id = first_nations_tribal_raid.27
	title = first_nations_tribal_raid.27.t
	desc = first_nations_tribal_raid.27.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = { country_event = first_nations_tribal_raid.24 }
	}
	
	option = {
		name = first_nations_tribal_raid.27.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = US_encroaching_flag_@FROM } }
		}
		army_experience = 1
		add_political_power = -30
	}
}
country_event = {#US attacks but then goes "nah"
	id = first_nations_tribal_raid.28
	title = first_nations_tribal_raid.28.t
	desc = first_nations_tribal_raid.28.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes

	immediate = {
		hidden_effect = { country_event = first_nations_tribal_raid.24 }
	}
	
	option = {
		name = first_nations_tribal_raid.28.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = US_encroaching_flag_@FROM } }
		}
		army_experience = 3
		add_political_power = -15
	}
}

country_event = {#FN defends and wins
	id = first_nations_tribal_raid.29
	title = first_nations_tribal_raid.29.t
	desc = first_nations_tribal_raid.29.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.29.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = US_encroaching_flag } }
		}
		
		ROOT = {
			custom_effect_tooltip = afr_war_exhaustion_value_add_3
			add_to_variable = {
			var = afr_war_exhaustion_value
			value = 1
			army_experience = 10
			}
		}
	}
}
country_event = {#FN defends but loses, F
	id = first_nations_tribal_raid.30
	title = first_nations_tribal_raid.30.t
	desc = first_nations_tribal_raid.30.d
	picture = GFX_report_event_chinese_army_training
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.30.a
		USA = {
			transfer_state = FROM
		}
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = US_encroaching_flag } }
		}
		ROOT = {
			custom_effect_tooltip = afr_war_exhaustion_value_add_3
			add_to_variable = {
			var = afr_war_exhaustion_value
			value = 3
			}
		}
	}
}
country_event = {#FN defends but then gets confused when the white-man fucks off home
	id = first_nations_tribal_raid.220
	title = first_nations_tribal_raid.220.t
	desc = first_nations_tribal_raid.220.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes
	
	option = {
		name = first_nations_tribal_raid.220.a
		if = { 
			limit = { ROOT = { has_border_war = no } }
			hidden_effect = { ROOT = { clr_country_flag = US_encroaching_flag } }
		}
	}
}