﻿#potential WW3 fun scenarios
#3) Sunni vs Shia
#4) India vs Pakistan
#6) Recreate WW1
#6) Recreate WW2
#7) Kurdistan vs Iran vs Turkey
#8) Balkan Wars 4 
#9) Arabs vs Israel 
#10) North Korea vs South Korea
#11) Macidonia vs Greece
#13) Orthodox vs Catholics
#14) Argintena vs Britain 
#15) China vs West

add_namespace = worldwar

#US vs Russia
country_event = {
	id = worldwar.1
	title = worldwar.1.t
	desc = worldwar.1.d
	
	is_triggered_only = yes
	
	immediate = {
		USA = {
			if = {
				limit = { is_in_faction = yes }
				dismantle_faction = yes
			}
			create_faction = "American Alliance"
		}
		SOV = {
			if = {
				limit = { is_in_faction = yes }
				dismantle_faction = yes
			}
			create_faction = "Russian Alliance"
		}
		random_list = {
			50 = {
				USA = {
					declare_war_on = {
						target = SOV
						type = puppet_wargoal_focus
					}
				}
			}
			50 = {
				SOV = {
					declare_war_on = {
						target = USA
						type = puppet_wargoal_focus
					}
				}
			}
		}
		every_country = {
			if = {
				limit = {
					NOT = { tag = USA }
					NOT = { tag = SOV }
					NOT = { tag = CHI }
					has_war = no
				}
				if = {
					limit = {
						is_in_faction = yes
					}
					dismantle_faction = yes
				}
				random_list = {
					40 = {
						add_to_war = { 
							targeted_alliance = USA 
							enemy = SOV 
						}
					}
					40 = {
						add_to_war = { 
							targeted_alliance = SOV 
							enemy = USA 
						}
					}
					20 = { }
				}
			}
		}
		
	}
	
	option = {
		name = worldwar.1.a
		log = "[GetDateText]: [This.GetName]: worldwar.1.a executed"
	}
}

#Crusades
country_event = {
	id = worldwar.2
	title = worldwar.2.t
	desc = worldwar.2.d
	
	is_triggered_only = yes
	
	immediate = {
		ITA = {
			if = {
				limit = { is_in_faction = yes }
				dismantle_faction = yes
			}
			create_faction = "The Crusades"
		}
		ISI = {
			if = {
				limit = { is_in_faction = yes }
				dismantle_faction = yes
			}
			create_faction = "The Caliphate"
		}
		ITA = {
			declare_war_on = {
				target = ISI
				type = puppet_wargoal_focus
			}
		}
		every_country = {
			if = {
				limit = {
					NOT = { tag = ITA }
					NOT = { tag = ISI }
				}
				if = {
					limit = { has_war_with = ISI }
					white_peace = ISI
				}
				if = {
					limit = { has_idea = christian }
					if = {
						limit = { is_in_faction = yes }
						dismantle_faction = yes
					}
					add_to_war = { 
						targeted_alliance = ITA 
						enemy = ISI 
					}
				}
				if = {
					limit = { has_idea = sunni }
					if = {
						limit = { is_in_faction = yes }
						dismantle_faction = yes
					}
					add_to_war = { 
						targeted_alliance = ISI 
						enemy = ITA 
					}
				}
			}
		}
	}
	
	option = {
		name = worldwar.2.a
		log = "[GetDateText]: [This.GetName]: worldwar.2.a executed"
	}
}