add_namespace = par

country_event = {
		id = par.1
		title = par.1.t
		desc = par.1.d
		picture = GFX_report_event_generic_coffin_death
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			tag = PAR
			has_government = traditional_conservatism
			#date > 1862.9.10
		}
		
		option = {
			name = par.1.a
			custom_effect_tooltip = PAR_custom_effect_paraguay
			hidden_effect = {
			kill_country_leader = yes
			set_politics = {
				ruling_party = chauvinist_populism
			}
			add_popularity = {
				ideology = chauvinist_populism
				popularity = 0.35
			}
			#swap_ideas = {
			#	add_idea = totalitarian_dictatorship 
			#	remove_idea = semi_presidential_republic 
			#}
			swap_ideas = {
				add_idea = no_elections  
				remove_idea = limited_elections  
			}
			#swap_ideas = {
			#	add_idea = has_heir   
			#	remove_idea = no_heir 
			#}
			mark_focus_tree_layout_dirty = yes
		}
			
	}

}


	country_event = {
		id = par.2
		title = par.2.t
		desc = par.2.d
		picture = GFX_report_event_par_militarisation
		
		is_triggered_only = yes
		
		trigger = {
			AND = {
				date > 1863.1.1
				tag = PAR
				has_government = chauvinist_populism
				OR = {
					ARG = {
						has_government = centrism
					}
					date > 1864.1.1
				}
			}
			NOT = { has_global_flag = par_2_event_triggered_flag }
		}
		
		immediate = { set_global_flag = par_2_event_triggered_flag }
		
		option = {
			
			name = par.2.a
			custom_effect_tooltip = PAR_custom_effect_paraguay2
			hidden_effect = { 
				add_ideas = PAR_militarization
	 		}
		}
	}

	country_event = {
		id = par.3
		title = par.3.t
		desc = par.3.d
		picture = GFX_report_event_par_agriculture
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			AND = { 
				tag = PAR
				has_government = chauvinist_populism
				#date > 1863.5.3
			}
		}
		
		option = {
			name = par.3.a
			add_ideas = PAR_agrarian_reforms
		}
			
	}

	country_event = {
		id = par.4
		title = par.4.t
		desc = par.4.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			AND = {
				TAG = PAR
				has_government = chauvinist_populism
				ARG = { has_government = centrism }
				OR = {
					BRA = { has_completed_focus	 =  BRA_uruguayan_intervention }
					BRA = { has_completed_focus = BRA_reclaim_the_cisplatine_province }
				}
			}
		}
		
		option = {
			name = par.4.a
			custom_effect_tooltip = PAR_custom_effect_paraguay3
			hidden_effect = {
				load_oob = PAR_reinforcements
			}
		}
}
		
country_event = {
	id = par.5
	title = par.5.t
	desc = par.5.d
	picture = GFX_report_event_par_government

	fire_only_once = yes
	is_triggered_only = yes
		
	trigger = {
		AND = {
			TAG = PAR
			has_government = chauvinist_populism
            OR = {
				BRA = { has_completed_focus	 =  BRA_challenge_the_blanco_government }
				BRA = { has_completed_focus = BRA_artigas_border_crisis }
			}	
		}
	}
		
	option = {
		name = par.5.a
		trigger = {
			tag = PAR
		}
		custom_effect_tooltip = PAR_custom_effect_paraguay4
		hidden_effect = {
			load_oob = PAR_reinforcements2
			add_state_claim = 301
			add_state_claim = 1072
			add_war_support = 0.05
			add_opinion_modifier = {
			    target = BRA
			    modifier = protest_action_strong
			}
			BRA = { country_event = { id = par.55 } }
		}
	}
 }
 
 country_event = {
	id = par.55
	title = par.5.t
	desc = par.5.d
	picture = GFX_report_event_par_government

	fire_only_once = yes
	is_triggered_only = yes
		
	trigger = {
		AND = {
			TAG = BRA
			PAR = {has_government = chauvinist_populism}
            OR = {
				BRA = { has_completed_focus	 =  BRA_challenge_the_blanco_government }
				BRA = { has_completed_focus = BRA_artigas_border_crisis }
			}	
		}
	}
	option = {
		name = par.5.b
		trigger = {
			tag = BRA
		}
		add_war_support = 0.02
		add_opinion_modifier = {
		    target = PAR
		    modifier = protest_action_strong
		}
	}
 }
 
 country_event = {
	id = par.6
	title = par.6.t
	desc = par.6.d

	fire_only_once = yes
	is_triggered_only = yes
		
	trigger = {
		tag = PAR
		has_government = chauvinist_populism
		BRA = { has_completed_focus	 =  BRA_direct_intervention }
		URG = { surrender_progress > 0.2 }
		has_war = no	
	}
		
	option = {
		name = par.6.a
		declare_war_on = {
			target = BRA
		    type = annex_everything
		}
		declare_war_on = {
			target = URC
		    type = annex_everything
		}
		hidden_effect = {
			add_timed_idea = {
				idea = PAR_disorganized_attack
				days = 500
			}
			add_ideas = PAR_not_one_step_back
			news_event = { id = par_news.1 }
			create_faction_from_template = faction_template_paraguayan_legion
			add_to_faction = URG
			URG = {
				add_to_war = { 
					targeted_alliance = PAR
					enemy = BRA
					hostility_reason = asked_to_join
				}
			}
		}
		set_country_flag = Paraguayan_War
		BRA = { 
			country_event = { id = par.7 } 
			set_country_flag = Paraguayan_War
			activate_mission = Paraguayan_War_Peace_Treaty_Mission
		}
		ARG = {
			set_country_flag = Paraguayan_War
		}
		URC = {
			set_country_flag = Paraguayan_War
		}
		URG = {
			set_country_flag = Paraguayan_War
		}
		activate_mission = Paraguayan_War_Peace_Treaty_Mission
	}
}
 

country_event = {
	id = par.7
	title = par.7.t
	desc = par.7.d
	picture = GFX_report_event_paraguayan_war

	fire_only_once = yes

	is_triggered_only = yes
		
	option = {
		name = par.7.a
		add_ideas = BRA_not_prepared_paraguay
	}
			
}

country_event = { #Ask Argentina for Access
	id = par.8
	title = par.8.t
	desc = par.8.d
	picture = GFX_report_event_paraguayan_war
	
	is_triggered_only = yes

	trigger = {
		AND = {
			#date > 1865.01.10
			ARG = { has_war = no }
			ARG = { exists = yes }
			ARG = { is_puppet = no }
			PAR = { has_war_with = BRA }
		}
	}
		
	option = {
		name = par.8.a
		trigger = {
			tag = PAR
		}
		ARG = { country_event = { id = par.9 days = 10 } }
		hidden_effect = { BRA = { country_event = { id = par.8 } } }
	}
	option = {
		name = par.8.b
		trigger = {
			tag = BRA
		}
	}
}

country_event = { #Argentina's Response
	id = par.9
	title = par.9.t
	desc = par.9.d
	picture = GFX_report_event_paraguayan_war

	fire_only_once = yes

	is_triggered_only = yes
		
	option = {
		name = par.9.a
		ai_chance = {
			factor = 50
			modifier = {
				add = 50
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			PAR = { country_event = { id = par.10 days = 20 } }
		}
	}
	option = {
		name = par.9.b
		ai_chance = {
			factor = 0
			modifier = {
				add = 50
				has_government = centrism
				NOT = {
					is_historical_focus_on = yes
				}
			}
		}
		ARG = { give_military_access = BRA }
		hidden_effect = {
			PAR = { country_event = { id = par.10 days = 10 } }
		}
	}
	option = {
		name = par.9.c
		ai_chance = {
			factor = 0
			modifier = {
				add = 50
				has_government = traditional_conservatism
			}
			modifier = {
				add = 20
				NOT = {
					is_historical_focus_on = yes
				}
			}
			modifier = {
				add = 30
				BRA = { has_completed_focus = BRA_the_second_cisplatine_war }
			}
		}
		ARG = { give_military_access = PAR }
		hidden_effect = {
			BRA = { country_event = { id = par.11 days = 10 } }
		}
	}	
}

country_event = { #Paraguay Responds to Denial
	id = par.10
	title = par.10.t
	desc = {
		text = par.10.d
		trigger = {
			NOT = {
				ARG = { gives_military_access_to = BRA }
			}
		}
	}
	desc = {
		text = par.10.d_access
		trigger = {
			ARG = { gives_military_access_to = BRA }
		}
	}
	picture = GFX_report_event_paraguayan_war
	
	fire_only_once = yes

	is_triggered_only = yes
		
	option = {
		name = par.10.a
		declare_war_on = {
			target = ARG
			type = annex_everything
		}
		ai_chance = {
			factor = 90
		}
		remove_ideas = PAR_disorganized_attack
		load_oob = PAR_reinforcements3
		hidden_effect = {
			BRA = { 
				remove_ideas = BRA_not_prepared_paraguay
				country_event = {id = par.12}
			}
		}
	}
	option = {
		name = par.10.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						ARG = { gives_military_access_to = BRA }
					}
				}
				BRA = { country_event = { id = par.11 } }
			}
		}
		add_political_power = -25
	}
}
	country_event = { #Brazil Responds to Denial
		id = par.11
		title = par.11.t
		desc = {
			text = par.11.d
			trigger = {
				NOT = {
					ARG = { gives_military_access_to = PAR }
				}
			}
		}
		desc = {
			text = par.11.d_access
			trigger = {
				ARG = { gives_military_access_to = PAR }
			}
		}
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes

		is_triggered_only = yes
		
		option = {
			name = par.10.a
			add_state_claim = 1062
			declare_war_on = {
				target = ARG
				type = take_claimed_state
			}
			ai_chance = {
				factor = 50
				modifier = {
					add = 40
					ARG = { gives_military_access_to = PAR }
				}
				modifier = {
					add = 10
					BRA = {has_completed_focus = BRA_the_second_cisplatine_war}
				}
			}
			hidden_effect = {
				PAR={
					remove_ideas = PAR_disorganized_attack
					country_event = {id = par.13}
				}
			}
			remove_ideas = BRA_not_prepared_paraguay
		}
		option = {
			name = par.10.b
			ai_chance = {
				factor = 50
				modifier = {
					add = -40
					ARG = { gives_military_access_to = PAR }
				}
				modifier = {
					add = 10
					BRA = { has_completed_focus = BRA_direct_intervention }
				}
			}
			add_political_power = -25
		}
	}
	country_event = { #Formation of the Triple Alliance
		id = par.12
		title = par.12.t
		desc = par.12.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes
		is_triggered_only = yes

		trigger = {
			tag = BRA
			has_war_with = PAR
			ARG = { has_war_with = PAR }
			BRA = { is_in_faction = no }
			OR = {
				AND={
					URC = {
						has_war_with = PAR
						is_in_faction = no 
					}
				}
			}
		}
		#immediate = {
		#	ARG = {country_event = {id = par.120}}
		#}
		option = {
			name = par.12.a
			trigger = {
				BRA = { has_completed_focus = BRA_direct_intervention }
			}
			create_faction_from_template = faction_template_triple_alliance
			add_to_faction = ARG
			add_to_faction = URC
			hidden_effect = {
				news_event = { id = par_news.2 }
			}
			set_global_flag = Triple_Alliance_Faction
		}
		option = {
			name = par.12.b
			trigger = {
				BRA = { has_completed_focus = BRA_the_second_cisplatine_war }
			}
			create_faction_from_template = faction_template_triple_alliance
			add_to_faction = ARG
			hidden_effect = {
				news_event = { id = par_news.2 }
			}
			set_global_flag = Triple_Alliance_Faction
		}
	}
	
	#country_event = {
	#	id = par.120
	#	title = par.120.t
	#	desc = {
	#		trigger = {
	#			ARG = {has_war_with = PAR}
	#		}
	#		text = par.120.d1
	#	}
	#	desc = {
	#		trigger = {
	#			ARG = {has_war_with = BRA}
	#		}
	#		text = par.120.d2
	#	}
	#	picture = GFX_report_event_paraguayan_war
	#	fire_only_once = yes
	#	is_triggered_only = yes
	#	option = {
	#		name = par.120.a
	#		trigger = {
	#			ARG = {has_war_with = PAR}
	#		}
	#		ARG = {set_country_flag = {argentina_accept_brazilian_alliance}}
	#		ai_chance = {
	#			factor = 50
	#			modifier = {
	#				add = 10
	#				is_historical_focus_on = yes
	#			}
	#			modifier = {
	#				add = 20
	#				BRA = {has_completed_focus = BRA_direct_intervention}
	#			}
	#			modifier = {
	#				add = -20
	#				BRA = {has_completed_focus = BRA_the_second_cisplatine_war}
	#			}
	#			modifier = {
	#				add = -20
	#				ARG = {has_government = traditional_conservatism}
	#			}
	#			modifier = {
	#				add = 20
	#				ARG = {has_government = centrism}
	#			}
	#		}
	#	}
	#	option = {
	#		name = par.120.b
	#		trigger = {
	#			ARG = {has_war_with = BRA}
	#		}
	#		ARG = {set_country_flag = {argentina_accept_paraguayan_alliance}}
	#		ai_chance = {
	#			factor = 30
	#			modifier = {
	#				add = 10
	#				is_historical_focus_on = no
	#			}
	#			modifier = {
	#				add = 20
	#				BRA = {has_completed_focus = BRA_the_second_cisplatine_war}
	#			}
	#			modifier = {
	#				add = -20
	#				BRA = {has_completed_focus = BRA_direct_intervention}
	#			}
	#			modifier = {
	#				add = 20
	#				ARG = {has_government = traditional_conservatism}
	#			}
	#			modifier = {
	#				add = -20
	#				ARG = {has_government = centrism}
	#			}
	#		}
	#	}
	#	option = {
	#		trigger = {
	#			OR = {
	#				ARG = {has_war_with = BRA}
	#				ARG = {has_war_with = PAR}
	#			}
	#		}
	#		ARG = {set_country_flag = {argentina_reject_alliance}}
	#		ai_chance = {
	#			factor = 20
	#			modifier = {
	#				add = 10
	#				is_historical_focus_on = no
	#			}
	#			modifier = {
	#				add = 20
	#				BRA = {has_completed_focus = BRA_the_second_cisplatine_war}
	#			}
	#			modifier = {
	#				add = 30
	#				ARG = {has_government = traditional_conservatism}
	#			}
	#			modifier = {
	#				add = -10
	#				ARG = {has_government = centrism}
	#			}
	#		}
	#	}
	#}
	
	
country_event = { #Formation of the Paraguayan Legion
		id = par.13
		title = par.13.t
		desc = par.13.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes
		is_triggered_only = yes

		trigger = {
			tag = PAR
			has_war_with = BRA
			ARG = { has_war_with = BRA }
			BRA = { is_in_faction = no }
			ARG = { is_in_faction = no }
			
		}
		
		option = {
			name = par.13.a
			add_to_faction = ARG
			set_global_flag = Paraguayan_Legion_Faction
			hidden_effect = {
				news_event = { id = par_news.2 }
				BRA = {
					create_faction_from_template = faction_template_imperial_alliance
					set_global_flag = Imperial_Alliance_Faction
					if = {
						limit = { BRA = { has_completed_focus = BRA_the_second_cisplatine_war } }
					}
					else_if = {
						limit = { BRA = { has_completed_focus = BRA_direct_intervention } }
						add_to_faction = URC
						URC = {
							add_to_war = {
								targeted_alliance = BRA
								enemy = PAR
							}
						}
					}
				}
			}
		}
	}
	country_event = { #Dismantle the Triple Alliance
		id = par.14
		title = par.14.t
		desc = par.14.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes
		is_triggered_only = yes

		trigger = {
			tag = BRA
			OR = {
				has_global_flag = Triple_Alliance_Faction
				has_global_flag = Imperial_Alliance_Faction
			}
			is_in_faction = yes
			#is_in_faction_with = ARG
			is_faction_leader = yes
			has_war = no
		}
		
		option = {
			name = par.14.a
			dismantle_faction = yes
			if = {
				limit = { has_global_flag = Triple_Alliance_Faction }
				clr_global_flag = Triple_Alliance_Faction
			}
			else_if = {
				limit = { has_global_flag = Imperial_Alliance_Faction }
				clr_global_flag = Imperial_Alliance_Faction
			}
		}
	}
	
	country_event = { #Dismantle Paraguayan Legion
		id = par.141
		title = par.141.t
		desc = par.141.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes
		is_triggered_only = yes

		trigger = {
			tag = PAR
			has_global_flag = Paraguayan_Legion_Faction
			is_in_faction = yes
			#is_in_faction_with = ARG
			is_faction_leader = yes
			has_war = no
		}
		
		option = {
			name = par.141.a
			dismantle_faction = yes
			clr_global_flag = Paraguayan_Legion_Faction
		}
	}
	
	country_event = { #Paraguay Loses the War AUTOMATED
		id = par.15
		title = par.15.t
		desc = par.15.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes

		is_triggered_only = yes
		
		option = {
			name = par.15.a
			#trigger = {
			#	NOT = {
			#		CSA = { exists = yes }
			#	}
			#}
			#clr_country_flag = Paraguayan_War
			#ARG = { clr_country_flag = Paraguayan_War }
			#BRA = { clr_country_flag = Paraguayan_War }
			#URC = { clr_country_flag = Paraguayan_War }
			#URG = { clr_country_flag = Paraguayan_War }
			#if = {
			#	limit{
			#		CIS = {exists = yes}
			#	}
			#	CIS = { clr_country_flag =  Paraguayan_War }
			#}
			#set_global_flag = Paraguay_Loses_War
			#BRA = {
			#	transfer_state = 1065
			#	puppet = PAR
			#}
			#if = {
			#	limit = {
			#		ARG = { is_in_faction_with = BRA }
			#	}
			#	ARG = {
			#		transfer_state = 1066
			#	}
			#}
			#else_if = {
			#	limit = {
			#		ARG = { is_in_faction_with = PAR }
			#	}
			#	ARG = {
			#		add_ideas = ARG_devastated_economy
			#	}
			#	BRA = {
			#		transfer_state = 1062
			#	}
			#}
			#
			#if = {
			#	limit = {
			#		BRA = { has_completed_focus = BRA_direct_intervention }
			#	}
			#	URC = {
			#		annex_country = {
			#			target = URG
			#			transfer_troops = no 
			#		}
			#	}
			#}
			#else_if = {
			#	limit = {
			#		BRA = { has_completed_focus = BRA_the_second_cisplatine_war }
			#	}
			#	CIS = {
			#		annex_country = {
			#			target = URG
			#			transfer_troops = no
			#		}
			#		annex_country = {
			#			target = URC
			#			transfer_troops = no
			#		}
			#		every_unit_leader = {
			#			set_nationality = BRA
			#		}
			#	}
			#	BRA = {
			#		annex_country = {
			#			target = CIS
			#			transfer_troops = yes
			#		}
			#	}
			#}
			#remove_ideas = PAR_not_one_step_back
			#add_ideas = PAR_brazil_occupation
			#add_timed_idea = {
			#	idea = PAR_land_of_women
			#	days = 22500
			#}
			#kill_country_leader = yes
			#every_owned_state = {
			#	add_manpower = -20000
			#}
			#1068 = {
			#	add_manpower = -20000
			#}
			#1138 = {
			#	add_manpower = -20000
			#}
			#1139 = {
			#	add_manpower = -20000
			#}
			hidden_effect = {
				news_event = { id = par_news.3 }
			#	remove_ideas = PAR_disorganized_attack
			#	BRA = {
			#		remove_ideas = BRA_not_prepared_paraguay
			#	}
			}
		}
	}
	country_event = { #Paraguay Wins the War AUTOMATED
		id = par.16
		title = par.16.t
		desc = par.16.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes

		is_triggered_only = yes
		
		option = {
			name = par.16.a
			#clr_country_flag = Paraguayan_War
			#ARG = { clr_country_flag = Paraguayan_War }
			#BRA = { clr_country_flag = Paraguayan_War }
			#URC = { clr_country_flag = Paraguayan_War }
			#URG = { clr_country_flag = Paraguayan_War }
			#if = {
			#	limit{
			#		CIS = {exists = yes}
			#	}
			#	CIS = { clr_country_flag =  Paraguayan_War }
			#}
			#set_global_flag = Paraguay_Wins_War
			#transfer_state = 301#1036
			#transfer_state = 1072#503
			#transfer_state = 502
			#create_faction = "Paraguayan Legion"
			#PAR = { add_to_faction = URG }
			#URG = { 
			#	annex_country = {
			#		target = URC 
			#		transfer_troops = no 
			#	}
			#	if = {
			#		limit = {
			#			CIS = {exists = yes}
			#		}
			#		annex_country = {
			#			target = CIS
			#			transfer_troops = no
			#		}
			#	}
			#	give_military_access = PAR 
			#}
			
			#if = {
			#	limit = {
			#		ARG = { is_in_faction_with = PAR }
			#	}
			#	ARG = {
			#		transfer_state = 1064
			#	}
			#}
			#else_if = {
			#	limit = {
			#		ARG = { is_in_faction_with = BRA }
			#	}
			#	transfer_state = 1062
			#	transfer_state = 1064
			#	transfer_state = 1099
			#	puppet = ETR
			#	ETR = { transfer_state = 1058 }
		    #   ARG = { add_ideas = ARG_devastating_defeat }	
			#}
			#else = {
				#limit = {
				#	ARG = {is_in_faction_with = URC}
				#}
			#	transfer_state = 1064
			#}
			#remove_ideas = PAR_not_one_step_back
			hidden_effect = {
				news_event = { id = par_news.3 }
			}
		}
	}
	country_event = { #Paraguay stops being a puppet
		id = par.17
		title = par.17.t
		desc = par.17.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes
		is_triggered_only = yes

		trigger = {
			tag = BRA
			PAR = {
				is_puppet_of = BRA
				has_idea = PAR_brazil_occupation
			}
			#date > 1876.1.1
		}
		
		option = {
			name = par.17.a
			ai_chance = {
				factor = 99
			}
			release_puppet = PAR
			PAR = {
				remove_ideas = PAR_brazil_occupation
			}
			#every_state = {
			#	limit = {
			#		is_core_of = BRA
			#		OR = {
			#			is_claimed_by = PAR
			#			is_core_of = PAR
			#		}
			#	}
			#	remove_claim_by = PAR
			#	remove_core_of = PAR
			#}
		}
		option = {
			name = par.17.b
			ai_chance = {
				factor = 1
				modifier = {
					factor = 0
					is_historical_focus_on = yes
				}
			}
			add_political_power = -100
			add_stability = -0.05
			add_war_support = -0.05
			PAR = {
				remove_ideas = PAR_brazil_occupation
			}
		}
	}

	country_event = {
		id = par.18
		title = par.18.t
		desc = par.18.d
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			AND = {
				tag = PAR
				has_government = chauvinist_populism
				BRA = {
					has_completed_focus = BRA_the_second_cisplatine_war
				}
				URG = {
					surrender_progress > 0.2
				}
				has_war = no
			}
		}
		
		option = {
			name = par.18.a
			declare_war_on = {
				target = BRA
				type = annex_everything
			}
			declare_war_on = {
				target = URC
				type = annex_everything
			}
			hidden_effect = {
				add_timed_idea = {
					idea = PAR_disorganized_attack
					days = 500
				}
				add_ideas = PAR_not_one_step_back
				news_event = { id = par_news.1 }
			}
			set_country_flag = Paraguayan_War
			BRA = { 
				country_event = { id = par.7 } 
				set_country_flag = Paraguayan_War
				activate_mission = Paraguayan_War_Peace_Treaty_Mission
			}
			ARG = {
				set_country_flag = Paraguayan_War
			}
			URC = {
				set_country_flag = Paraguayan_War
			}
			URG = {
				set_country_flag = Paraguayan_War
			}
			activate_mission = Paraguayan_War_Peace_Treaty_Mission
		}
	}
	
	country_event = {
		id = par.19
		title = par.19.t
		desc = par.19.d
		picture = GFX_report_event_paraguayan_war

		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			AND = {
				tag = PAR
				has_war_with = BRA
			}
		}
		
		option = {
			name = par.19.a
			BOL = { country_event = { id = par.20 days = 5 } }
		}
	}
	
country_event = { #Bolivia's Response for Paraguay
	id = par.20
	title = par.20.t
	desc = par.20.d
	picture = GFX_report_event_paraguayan_war

	fire_only_once = yes

	is_triggered_only = yes
		
	option = {
		name = par.20.a
		ai_chance = {
			factor = 50
			modifier = {
				add = 50
				has_government = chauvinist_populism
			}
		}
		give_military_access = PAR
		hidden_effect = {
			PAR = { country_event = { id = par.21 days = 5 } }
			set_country_flag = Paraguayan_War
		}
	}
	option = {
		name = par.9.b
		ai_chance = {
			factor = 50
		}
		hidden_effect = {
			PAR = { country_event = { id = par.21 days = 5 } }
		}
	}
}

country_event = { #Bolivia's Response for Paraguay
	id = par.21
	title = par.21.t
	desc = par.21.d
	picture = GFX_report_event_paraguayan_war

	fire_only_once = yes

	is_triggered_only = yes
		
	option = {
		name = par.21.a
		trigger = {
			NOT = {
				BOL = { gives_military_access_to = PAR }
			}
		}
	}
	option = {
		name = par.21.b
		trigger = {
			BOL = { gives_military_access_to = PAR }
		}
		add_to_faction = BOL
		BOL = {
			add_to_war = {
				targeted_alliance = PAR
				enemy = BRA
			}
		}
	}
}

country_event = { #Buchanan starts the paraguay expedition
	id = par.22
	title = par.22.t
	desc = par.22.d
	picture = GFX_report_event_par_usa_expedition

	is_triggered_only = yes
		
	option = {
		name = par.22.a
		add_political_power = -50
		PAR = {
			set_country_flag = USA_buchanan_wilde_ride_PAR_small
			country_event = {id = par.23 days = 12}
		}
		
	}
	option = {
		name = par.22.b
		add_political_power = -75
		PAR = {
			set_country_flag = USA_buchanan_wilde_ride_PAR_med
			country_event = {id = par.23 days = 12}
		}
		
	}
	option = {
		name = par.22.c
		add_political_power = -100
		PAR = {
			set_country_flag = USA_buchanan_wilde_ride_PAR_large
			country_event = {id = par.23 days = 12}
		}
		
	}
}

country_event = { #USA invades Paraguay 
	id = par.23
	title = par.23.t
	desc = par.23.d
	picture = GFX_report_event_paraguayan_war

	is_triggered_only = yes
	
	immediate={
		PAR = {set_country_flag = USA_buchanan_wilde_ride_PAR}
	}
		
	option = { #we must prepare
		name = par.23.a
	}
}

	add_namespace = par_news
	news_event = { #Paraguayan War
		id = par_news.1
		title = par_news.1.t
		desc = par_news.1.d
		picture = GFX_news_event_paraguayan_war

		major = yes

		is_triggered_only = yes

		option = {
			name = par_news.1.a
			trigger = {
				NOT = {
					tag = PAR
					tag = BRA
					tag = URC
					tag = URG
				}
			}
		}
		option = {
			name = par_news.1.b
			trigger = {
				OR = {
					tag = PAR
					tag = URG
				}
			}
		}
		option = {
			name = par_news.1.c
			trigger = {
				OR = {
					tag = BRA
					tag = URC
				}
			}
		}
	}
	news_event = { #Triple Alliance
		id = par_news.2
		title = {
			text = par_news.2.t
			trigger = {
				PAR = { has_war_with = BRA }
				NOT = {
					PAR = { is_in_faction_with = ARG }
				}
			}
		}
		title = {
			text = par_news.2.t_par
			trigger = {
				PAR = {
					is_in_faction_with = ARG
					has_war_with = BRA
				}
			}
		}
		desc = {
			text = par_news.2.d
			trigger = {
				PAR = { has_war_with = BRA }
				NOT = {
					PAR = { is_in_faction_with = ARG }
				}
			}
		}
		desc = {
			text = par_news.2.d_par
			trigger = {
				PAR = { 
					is_in_faction_with = ARG
					has_war_with = BRA
				}
			}
		}
		picture = GFX_news_event_par_triple_alliance

		major = yes

		is_triggered_only = yes

		option = {
			name = par_news.2.a
			trigger = {
				NOT = {
					tag = PAR
					tag = BRA
					is_in_faction_with = PAR
					is_in_faction_with = BRA
				}
			}
		}
		option = {
			name = par_news.2.b
			trigger = {
				OR = {
					tag = PAR
					is_in_faction_with = PAR
				}
			}
		}
		option = {
			name = par_news.2.c
			trigger = {
				OR = {
					tag = BRA
					is_in_faction_with = BRA
				}
			}
		}
	}
	news_event = { #End of the Paraguayan War
		id = par_news.3
		title = par_news.3.t
		desc = {
			text = par_news.3.d
			trigger = { has_global_flag = Paraguay_Loses_War }
		}
		desc = {
			text = par_news.3.d_win
			trigger = { has_global_flag = Paraguay_Wins_War }
		}
		picture = GFX_news_event_paraguayan_war

		major = yes

		is_triggered_only = yes

		option = {
			name = par_news.3.a
			trigger = {
				NOT = {
					tag = PAR
					tag = BRA
					tag = URC
					tag = URG
				}
			}
		}
		option = {
			name = par_news.3.b
			trigger = {
				OR = {
					tag = PAR
					tag = BRA
				}
			}
		}
	}
