#historical events for hearts of iron 4 - initially created by CSRZ for 1.7.1 Hydra/Man the Guns

add_namespace = allexp

#Minor nations join up to destroy Germany at historical dates
#NEPAL
country_event = {
	id = allexp.1
	title = allexp.1.t
	desc = allexp.1.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes

	trigger = {
		tag = ENG
		#date > 1939.01.01
		is_subject = no
		is_in_faction = yes
		is_faction_leader = yes
		#has_government = democratic
		OR = {
			NEP = { is_puppet = no }
			NEP = { is_subject_of = ENG }
		}
		country_exists = NEP
		NEP = { is_in_faction = no }
		#has_government = democratic
		RAJ = { has_war_with = GER }
		RAJ = { is_in_faction_with = ENG }
	}
	
	option = {
		name = allexp.1.a
		ai_chance = { factor = 100 }
		NEP = { 
			country_event = {
    				id = allexp.2
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = allexp.1.b
	}	
}

country_event = {
	id = allexp.2
	title = allexp.2.t
	desc = allexp.2.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = afradd.2.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = NEP }
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = ENG
				enemy = GER 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = afradd.2.b
	}	
}

#OMAN
country_event = {
	id = allexp.3
	title = allexp.3.t
	desc = allexp.3.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes

	trigger = {
		tag = ENG
		#date > 1939.01.01
		is_subject = no
		is_in_faction = yes
		is_faction_leader = yes
		#has_government = democratic
		OR = {
			OMA = { is_puppet = no }
			OMA = { is_subject_of = ENG }
		}
		country_exists = OMA
		OMA = { is_in_faction = no }
		#has_government = democratic
		RAJ = { has_war_with = GER }
		RAJ = { is_in_faction_with = ENG }
	}
	
	option = {
		name = allexp.3.a
		ai_chance = { factor = 100 }
		OMA = { 
			country_event = {
    				id = allexp.4
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = allexp.3.b
	}	
}

country_event = {
	id = allexp.4
	title = allexp.4.t
	desc = allexp.4.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = afradd.4.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = OMA }
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = ENG
				enemy = GER 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = afradd.4.b
	}	
}

#TURKEY
country_event = {
	id = allexp.5
	title = allexp.5.t
	desc = allexp.5.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes

	trigger = {
		tag = ENG
		date > 1945.1.1
		is_subject = no
		is_in_faction = yes
		#has_government = democratic
		OR = {
			TUR = { is_puppet = no }
			TUR = { is_subject_of = ENG }
		}
		country_exists = TUR
		TUR = { is_in_faction = no }
		#has_government = democratic
		#USA = { has_war_with = GER }
		USA = { is_in_faction_with = ENG }
	}
	
	option = {
		name = allexp.5.a
		ai_chance = { factor = 100 }
		TUR = { 
			country_event = {
    				id = allexp.6
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = allexp.5.b
	}	
}

country_event = {
	id = allexp.6
	title = allexp.6.t
	desc = allexp.6.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = afradd.6.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = TUR }
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = ENG
				enemy = GER 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = afradd.6.b
	}	
}

#SAUDIS
country_event = {
	id = allexp.7
	title = allexp.7.t
	desc = allexp.7.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes

	trigger = {
		tag = ENG
		date > 1945.1.1
		is_subject = no
		is_in_faction = yes
		#has_government = democratic
		OR = {
			SAU = { is_puppet = no }
			SAU = { is_subject_of = ENG }
		}
		country_exists = SAU
		SAU = { is_in_faction = no }
		#has_government = democratic
		#USA = { has_war_with = GER }
		USA = { is_in_faction_with = ENG }
	}
	
	option = {
		name = allexp.7.a
		ai_chance = { factor = 100 }
		SAU = { 
			country_event = {
    				id = allexp.8
				days = 2
				random = 2
			}
		}
	}

	option = {
		name = allexp.7.b
	}	
}

country_event = {
	id = allexp.8
	title = allexp.8.t
	desc = allexp.8.d
	picture = GFX_report_asia_1936
	
	fire_only_once = yes
	
	is_triggered_only = yes
	
	option = {
		name = afradd.8.a
		ai_chance = { factor = 100 }
		ENG = { add_to_faction = SAU }
		if = {
			limit = { 
				ENG = { has_war_with = GER }
			}
			add_to_war = { 
				targeted_alliance = ENG
				enemy = GER 
				hostility_reason = asked_to_join
			}
		}
	}

	option = {
		name = afradd.8.b
	}	
}