#historical events for hearts of iron 4 - initially created by CSRZ for 1.7.1 Hydra/Man the Guns
#Democratic USA gets rid of fascist and communist leaders in Americas to prepare the game for United Nations events

add_namespace = americas

country_event = {
	id = americas.1
	title = americas.1.t
	desc = americas.1.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_puppet = no
		has_government = democratic
		date > 1939.01.01
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.1.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action in later events
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		set_global_flag = american_diplo_offensive
	}

	option = {
		name = americas.1.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.2
	title = americas.2.t
	desc = americas.2.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		DOM = { is_subject = no }
		country_exists = DOM
		DOM = { has_government = fascism }
		DOM = { is_in_faction = no }
		has_government = democratic
		date > 1939.03.03
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.2.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		DOM = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.2.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.3
	title = americas.3.t
	desc = americas.3.d
	picture = GFX_report_latin_america_1936
	
	is_triggered_only = yes
	
	option = { # Accept
		name = americas.3.a
		ai_chance = { 
			factor = 90
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}
		set_politics = {
			ruling_party = democratic
			elections_allowed = yes
		}
		hidden_effect = {
			set_popularities = {
				democratic = 90
				neutrality = 5
				fascism = 0
				communism = 5
			}
		}
		remove_ideas = collectivist_ethos_focus
		remove_ideas = nationalism
		remove_ideas = internationalism
		add_timed_idea = {
			idea = democratic_influence_custom
			days = 720
		}
	}
	option = { # Refuse
		name = americas.3.b
		ai_chance = { 
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

country_event = {
	id = americas.4
	title = americas.4.t
	desc = americas.4.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		ELS = { is_subject = no }
		country_exists = ELS
		ELS = { has_government = fascism }
		ELS = { is_in_faction = no }
		has_government = democratic
		date > 1939.06.06
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.4.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		ELS = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.4.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.6
	title = americas.6.t
	desc = americas.6.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		GUA = { is_subject = no }
		country_exists = GUA
		GUA = { has_government = neutrality }
		GUA = { is_in_faction = no }
		has_government = democratic
		date > 1939.09.09
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.6.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		GUA = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.6.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.8
	title = americas.8.t
	desc = americas.8.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		NIC = { is_subject = no }
		country_exists = NIC
		NIC = { has_government = neutrality }
		NIC = { is_in_faction = no }
		has_government = democratic
		date > 1939.12.12
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.8.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		NIC = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.8.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.10
	title = americas.10.t
	desc = americas.10.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		PRU = { is_subject = no }
		country_exists = PRU
		PRU = { has_government = fascism }
		PRU = { is_in_faction = no }
		has_government = democratic
		date > 1940.03.03
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.10.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		PRU = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.10.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.12
	title = americas.12.t
	desc = americas.12.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		VEN = { is_subject = no }
		country_exists = VEN
		VEN = { has_government = fascism }
		VEN = { is_in_faction = no }
		has_government = democratic
		date > 1940.06.06
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.12.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		VEN = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.12.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

country_event = {
	id = americas.14
	title = americas.14.t
	desc = americas.14.d
	picture = GFX_report_latin_america_1936

	fire_only_once = yes

	trigger = {
		tag = USA
		is_subject = no
		BOL = { is_subject = no }
		country_exists = BOL
		BOL = { has_government = neutrality }
		BOL = { is_in_faction = no }
		has_government = democratic
		date > 1940.09.09
		has_global_flag = american_diplo_offensive
	}

	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = americas.14.a
		ai_chance = { 
			factor = 100 #the nations themselves will have a choice of action
			modifier = {
				factor = 100
				is_historical_focus_on = yes
			}
		}		
		BOL = { 
			country_event = {
    				id = americas.3
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = americas.14.b
		ai_chance = { 
			factor = 0
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}	
}

#country_event = {
#	id = americas.16
#	title = americas.16.t
#	desc = americas.16.d
#	picture = GFX_report_latin_america_1936
#
#	fire_only_once = yes
#
#	trigger = {
#		tag = USA
#		is_subject = no
#		PAR = { is_subject = no }
#		country_exists = PAR
#		PAR = { has_government = communism }
#		PAR = { is_in_faction = no }
#		has_government = democratic
#		date > 1940.12.12
#		has_global_flag = american_diplo_offensive
#	}
#
#	mean_time_to_happen = {
#		days = 2
#	}
#	
#	option = {
#		name = americas.16.a
#		ai_chance = { 
#			factor = 100 #the nations themselves will have a choice of action
#			modifier = {
#				factor = 100
#				is_historical_focus_on = yes
#			}
#		}		
#		PAR = { 
#			country_event = {
#   				id = americas.3
#				days = 2
#				random = 2
#			}
#		}
#	}
#
#	option = {
#		name = americas.16.b
#		ai_chance = { 
#			factor = 0
#			modifier = {
#				factor = 0
#				is_historical_focus_on = yes
#			}
#		}
#	}	
#}

#country_event = {
#	id = americas.18
#	title = americas.18.t
#	desc = americas.18.d
#	picture = GFX_report_latin_america_1936
#
#	fire_only_once = yes
#
#	trigger = {
#		tag = USA
#		is_subject = no
#		has_government = democratic
#		ARG = { is_subject = no }
#		country_exists = ARG
#		ARG = { has_government = neutrality }
#		ARG = { is_in_faction = no }
#		date > 1944.12.12
#		has_global_flag = american_diplo_offensive
#		NOT = { has_global_flag = argentina_joins_axis } #parallel to German diplomatic offensive
#	}
#
#	mean_time_to_happen = {
#		days = 2
#	}
#	
#	option = {
#		name = americas.18.a
#		ai_chance = { 
#			factor = 100 #the nations themselves will have a choice of action
#			modifier = {
#				factor = 100
#				is_historical_focus_on = yes
#			}
#		}		
#		ARG = { 
#			country_event = {
#   				id = americas.3
#				days = 2
#				random = 2
#			}
#		}
#	}
#
#	option = {
#		name = americas.18.b
#		ai_chance = { 
#			factor = 0
#			modifier = {
#				factor = 0
#				is_historical_focus_on = yes
#			}
#		}
#	}	
#}