#New peace conferences for the allies (the previous Yalta conference didn't trigger 95% of the times)

add_namespace = confer

#Germany dissolves after losing the war
country_event = {
	id = confer.1
	title = confer.1.t
	desc = confer.1.d
	picture = GFX_report_event_generic_sign_treaty2	

	fire_only_once = yes

	trigger = {
		tag = GER
		is_subject = yes
		#NOT = { country_exists = DDR }
		#NOT = { country_exists = WRG }
		NOT = { has_government = fascism }
	}

	mean_time_to_happen = {
		days = 1
	}

	#If allies released either DDR or WGR during the peace conference
	option = {
		name = confer.1.a
		trigger = {
			OR = { 
				country_exists = DDR
				country_exists = WRG 
			}
		}
		every_state = {
			if = {
				limit = { is_core_of = GER }
				remove_core_of = GER
			}
		}
		every_state = {	remove_claim_by = GER }
		WGR = {
			add_state_core = 42
			add_state_core = 50
			add_state_core = 51
			add_state_core = 52
			add_state_core = 53
			add_state_core = 54
			add_state_core = 55
			add_state_core = 56
			add_state_core = 57
			add_state_core = 58
			add_state_core = 909
			add_state_core = 59
			add_state_core = 978
		}
		DDR = {
			add_state_core = 60
			add_state_core = 61
			add_state_core = 62
			add_state_core = 64
			add_state_core = 65
		}
		POL = {
			add_state_core = 66
			add_state_core = 67
			add_state_core = 68
			add_state_core = 63
			add_state_core = 5
		}
		release = WGR
		release = DDR
		release = POL
		release = CZE
		release = AUS
		release = FRA
		release = BEL
		release = HOL
		release = LUX
		if = {
			limit = { country_exists = YUG }
			release = YUG
		}
		if = {
			limit = { NOT = { country_exists = YUG } }
			release = SLV
			release = MAC
			release = CRO
			release = BOS
			release = SER
			release = MNT		
		}
		if = {
			limit = { 
				owns_state =  763 
				NOT = { country_exists = LIT }
			}
			SOV = { transfer_state = 763 }
		}
		if = {
			limit = { 
				owns_state =  763 
				country_exists = LIT
			}
			POL = { transfer_state = 763 }
		}
		if = {
			limit = { 
				owns_state =  188 
				NOT = { country_exists = LIT }
			}
			SOV = { transfer_state = 188 }
		}
		if = {
			limit = { 
				owns_state =  188 
				country_exists = LIT
			}
			release = LIT
		}
	}

	#If no West Germany or East Germany was formed during peace conference
	option = {
		name = confer.1.b
		trigger = {
			NOT = { country_exists = DDR }
			NOT = { country_exists = WRG }
		}
		every_state = {
			if = {
				limit = { is_core_of = GER }
				remove_core_of = GER
			}
		}
		every_state = {	remove_claim_by = GER }
		GER = {
			add_state_core = 42
			add_state_core = 50
			add_state_core = 51
			add_state_core = 52
			add_state_core = 53
			add_state_core = 54
			add_state_core = 55
			add_state_core = 56
			add_state_core = 57
			add_state_core = 58
			add_state_core = 909
			add_state_core = 59
			add_state_core = 60
			add_state_core = 61
			add_state_core = 62
			add_state_core = 64
			add_state_core = 65
		}
		POL = {
			add_state_core = 66
			add_state_core = 67
			add_state_core = 68
			add_state_core = 63
			add_state_core = 5
		}
		release = POL
		release = CZE
		release = AUS
		release = FRA
		release = BEL
		release = HOL
		release = LUX
		if = {
			limit = { country_exists = YUG }
			release = YUG
		}
		if = {
			limit = { NOT = { country_exists = YUG } }
			release = SLV
			release = MAC
			release = CRO
			release = BOS
			release = SER
			release = MNT		
		}
		if = {
			limit = { 
				owns_state =  763 
				NOT = { country_exists = LIT }
			}
			SOV = { transfer_state = 763 }
		}
		if = {
			limit = { 
				owns_state =  763 
				country_exists = LIT
			}
			POL = { transfer_state = 763 }
		}
		if = {
			limit = { 
				owns_state =  188 
				NOT = { country_exists = LIT }
			}
			SOV = { transfer_state = 188 }
		}
		if = {
			limit = { 
				owns_state =  188 
				country_exists = LIT
			}
			release = LIT
		}
	}
}


############# FUTURE SECTION - NEEDS TO BE EXPANDED AND DEBUGGED
#country_event = {
#	id = confer.2
#
#	trigger = {
#		tag = ITA
#		is_subject = yes
#		NOT = { has_government = fascism }
#	}
#
#	fire_only_once = yes
#
#	mean_time_to_happen = {
#		days = 2
#	}
#
#	hidden = yes
#
#	immediate = {
#		transfer_state = 160
#		transfer_state = 39
#		if = {
#			limit = {
#				country_exists = FRA
#			}
#			FRA = { 
#				transfer_state = 735
#				transfer_state = 32
#				transfer_state = 21
#			}
#		}
#	}
#}

### Made so that Germany releases Austria after the war
#country_event = {
#	id = confer.3
#
#	trigger = {
#		tag = WGR
#		is_ai = yes #player may still keep Austria
#		OR = {
#			owns_state = 4 #Lower Austria
#			owns_state = 152 #Tyrol
#			owns_state = 153 #Upper Austria
#		}
#	}
#
#	fire_only_once = yes #if it's released and reconquered again then it's alright
#
#	mean_time_to_happen = {
#		days = 2
#	}
#
#	hidden = yes
#
#	immediate = {
#		if = {
#			limit = {
#				AUS = { is_ai = yes }
#			}
#			AUS = {
#				set_politics = {
#					ruling_party = democratic
#					elections_allowed = yes
#				}
#				leave_faction = yes
#				set_popularities = {
#					democratic = 50
#					neutrality = 15
#					fascism = 0
#					communism = 35
#				}
#			}
#		}
#	}
#}

#country_event = {
#	id = confer.4
#
#	trigger = {
#		tag = DDR
#		is_ai = yes
#		OR = {
#			owns_state = 4 #Lower Austria
#			owns_state = 152 #Tyrol
#			owns_state = 153 #Upper Austria
#		}
#	}
#
#	fire_only_once = yes
#
#	mean_time_to_happen = {
#		days = 2
#	}
#
#	hidden = yes
#
#	immediate = {
#		release = AUS
#		if = {
#			limit = {
#				AUS = { is_ai = yes }
#			}
#			AUS = {
#				set_politics = {
#					ruling_party = democratic
#					elections_allowed = yes
#				}
#				leave_faction = yes
#				set_popularities = {
#					democratic = 50
#					neutrality = 15
#					fascism = 0
#					communism = 35
#				}
#			}
#		}
#	}
#}

### Meant to fix the bug where the Czechoslovakia stays Czech Republic after the war - shouldn't be fixed here
#country_event = {
#	id = confer.5
#
#	trigger = {
#		tag = CZE
#		is_puppet = yes
#	}
#
#	mean_time_to_happen = {
#		days = 2
#	}
#
#	fire_only_once = yes
#
#	hidden = yes
#
#	immediate = {
#		drop_cosmetic_tag = yes
#	}
#}

#Soviets release/puppet friendly Poland
#country_event = {
#	id = confer.6
#	title = confer.6.t
#	desc = confer.6.d
#	picture = GFX_report_event_generic_sign_treaty2	
#
#	fire_only_once = yes
#
#	trigger = {
#		tag = SOV
#		is_subject = no
#		#NOT = { country_exists = DDR }
#		#NOT = { country_exists = WRG }
#		controls_state = 10
#		OR = { 
#			NOT = { country_exists = POL }
#			AND = { 
#				country_exists = POL
#				NOT = { POL = { is_subject_of = GER } }
#			}
#		}
#	}
#
#	mean_time_to_happen = {
#		days = 1
#	}
#
#	#If Poland doesn't exist
#	option = {
#		name = confer.6.a
#		ai_chance = { factor = 100 }
#		trigger = {
#			NOT = { country_exists = POL }
#		}
#		784 = { add_core_of = SOV }
#		96 = { add_core_of = SOV }
#		95 = { add_core_of = SOV }
#		94 = { add_core_of = SOV }
#		93 = { add_core_of = SOV }
#		91 = { add_core_of = SOV }
#		89 = { add_core_of = SOV }
#		97 = { remove_core_of = SOV }
#		784 = { remove_core_of = POL }
#		96 = { remove_core_of = POL }
#		95 = { remove_core_of = POL }
#		94 = { remove_core_of = POL }
#		93 = { remove_core_of = POL }
#		91 = { remove_core_of = POL }
#		89 = { remove_core_of = POL }
#		97 = { add_core_of = POL }
#		release_puppet = POL
#		SOV = {
#			if = {
#				limit = { POL = { owns_state = 784 } }
#				transfer_state = 784
#			}
#			if = {
#				limit = { POL = { owns_state = 96 } }
#				transfer_state = 96
#			}
#			if = {
#				limit = { POL = { owns_state = 95 } }
#				transfer_state = 95
#			}
#			if = {
#				limit = { POL = { owns_state = 94 } }
#				transfer_state = 94
#			}
#			if = {
#				limit = { POL = { owns_state = 93 } }
#				transfer_state = 93
#			}
#			if = {
#				limit = { POL = { owns_state = 91 } }
#				transfer_state = 91
#			}
#			if = {
#				limit = { POL = { owns_state = 89 } }
#				transfer_state = 89
#			}
#		}
#		POL = {
#			if = {
#				limit = { SOV = { owns_state = 97 } }
#				transfer_state = 97
#			}
#			if = {
#				limit = { SOV = { owns_state = 5 } }
#				transfer_state = 5
#			}
#			if = {
#				limit = { SOV = { owns_state = 63 } }
#				transfer_state = 63
#			}
#			if = {
#				limit = { SOV = { owns_state = 68 } }
#				transfer_state = 68
#			}
#			if = {
#				limit = { SOV = { owns_state = 66 } }
#				transfer_state = 66
#			}
#			if = {
#				limit = { SOV = { owns_state = 67 } }
#				transfer_state = 67
#			}
#			if = {
#				limit = { SOV = { owns_state = 762 } }
#				transfer_state = 762
#			}
#		}
#		if = {
#			limit = { has_war_with = GER }
#			POL = { 
#				if = {
#					limit = { GER = { owns_state = 5 } }
#					POL = { transfer_state = 5 }
#				}
#				if = {
#					limit = { GER = { owns_state = 63 } }
#					POL = { transfer_state = 63 }
#				}
#				if = {
#					limit = { GER = { owns_state = 68 } }
#					POL = { transfer_state = 68 }
#				}
#				if = {
#					limit = { GER = { owns_state = 66 } }
#					POL = { transfer_state = 66 }
#				}
#				if = {
#					limit = { GER = { owns_state = 67 } }
#					POL = { transfer_state = 67 }
#				}
#			}
#		}
#	}
#
#	#Poland exists
#	option = {
#		name = confer.6.b
#		ai_chance = { factor = 100 }
#		trigger = {
#			AND = { 
#				country_exists = POL
#				NOT = { POL = { is_subject_of = GER } }
#			}
#		}
#		puppet = POL
#		POL = { 
#			set_popularities = {
#				democratic = 0
#				neutrality = 0
#				fascism = 0
#				communism = 100
#			}
#		}
#		POL = {
#			set_politics = {
#				ruling_party = communism
#				elections_allowed = no
#			}
#		}
#		784 = { add_core_of = SOV }
#		96 = { add_core_of = SOV }
#		95 = { add_core_of = SOV }
#		94 = { add_core_of = SOV }
#		93 = { add_core_of = SOV }
#		91 = { add_core_of = SOV }
#		89 = { add_core_of = SOV }
#		97 = { remove_core_of = SOV }
#		784 = { remove_core_of = POL }
#		96 = { remove_core_of = POL }
#		95 = { remove_core_of = POL }
#		94 = { remove_core_of = POL }
#		93 = { remove_core_of = POL }
#		91 = { remove_core_of = POL }
#		89 = { remove_core_of = POL }
#		97 = { add_core_of = POL }
#		SOV = {
#			if = {
#				limit = { POL = { owns_state = 784 } }
#				transfer_state = 784
#			}
#			if = {
#				limit = { POL = { owns_state = 96 } }
#				transfer_state = 96
#			}
#			if = {
#				limit = { POL = { owns_state = 95 } }
#				transfer_state = 95
#			}
#			if = {
#				limit = { POL = { owns_state = 94 } }
#				transfer_state = 94
#			}
#			if = {
#				limit = { POL = { owns_state = 93 } }
#				transfer_state = 93
#			}
#			if = {
#				limit = { POL = { owns_state = 91 } }
#				transfer_state = 91
#			}
#			if = {
#				limit = { POL = { owns_state = 89 } }
#				transfer_state = 89
#			}
#		}
#		POL = {
#			if = {
#				limit = { SOV = { owns_state = 97 } }
#				transfer_state = 97
#			}
#			if = {
#				limit = { SOV = { owns_state = 5 } }
#				transfer_state = 5
#			}
#			if = {
#				limit = { SOV = { owns_state = 63 } }
#				transfer_state = 63
#			}
#			if = {
#				limit = { SOV = { owns_state = 68 } }
#				transfer_state = 68
#			}
#			if = {
#				limit = { SOV = { owns_state = 66 } }
#				transfer_state = 66
#			}
#			if = {
#				limit = { SOV = { owns_state = 67 } }
#				transfer_state = 67
#			}
#			if = {
#				limit = { SOV = { owns_state = 762 } }
#				transfer_state = 762
#			}
#		}
#		if = {
#			limit = { has_war_with = GER }
#			POL = { 
#				if = {
#					limit = { GER = { owns_state = 5 } }
#					POL = { transfer_state = 5 }
#				}
#				if = {
#					limit = { GER = { owns_state = 63 } }
#					POL = { transfer_state = 63 }
#				}
#				if = {
#					limit = { GER = { owns_state = 68 } }
#					POL = { transfer_state = 68 }
#				}
#				if = {
#					limit = { GER = { owns_state = 66 } }
#					POL = { transfer_state = 66 }
#				}
#				if = {
#					limit = { GER = { owns_state = 67 } }
#					POL = { transfer_state = 67 }
#				}
#			}
#		}
#	}
#
#	#do nothing - the player can decide to keep Polish lands for himself
#	option = {
#		name = confer.6.c
#		ai_chance = { factor = 0 }
#	}
#}

#####
#	SUPERFLAG TRIGGER - this event enables all of the below events
#####

country_event = {
	id = confer.9

	fire_only_once = yes

	trigger = {
		tag = USA
		USA = { has_war_with = GER }
		USA = { has_war_with = ITA }
		ENG = { has_war_with = GER }
		ENG = { has_war_with = ITA }
		SOV = { has_war_with = GER }
		SOV = { has_war_with = ITA }
		USA = { is_in_faction_with = ENG }
		USA = { is_subject = no }
		ENG = { is_subject = no }
		SOV = { is_subject = no }
		NOT = { has_global_flag = disable_peace_conference_in_europe }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = the_cold_war_battle_for_capitals
		news_event = {
			id = confer.10
			hours = 3
		}
	}
}

news_event = {
	id = confer.10
	title = confer.10.t
	desc = confer.10.d
	picture = GFX_news_event_united_nations
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.10.a
	}
}


#####
#	TIRANA CAPTURED
#####

#Allies capture Tirana
country_event = {
	id = confer.11

	#fire_only_once = yes

	trigger = {
		tag = USA
		44 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 44
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = tirana_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = tirana_captured_allies
		news_event = {
			id = confer.12
			hours = 3
		}
		clr_global_flag = tirana_captured_soviets
	}
}

news_event = {
	id = confer.12
	title = confer.12.t
	desc = confer.12.d
	picture = GFX_news_event_hiep_tirana_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.12.a
	}
}

#Soviets capture Tirana
country_event = {
	id = confer.13

	#fire_only_once = yes

	trigger = {
		tag = SOV
		44 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 44
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = tirana_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = tirana_captured_soviets
		news_event = {
			id = confer.14
			hours = 3
		}
		clr_global_flag = tirana_captured_allies
	}
}

news_event = {
	id = confer.14
	title = confer.14.t
	desc = confer.14.d
	picture = GFX_news_event_hiep_tirana_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.14.a
	}
}

#####
#	SOFIA CAPTURED
#####

#Allies capture Sofia
country_event = {
	id = confer.21

	#fire_only_once = yes

	trigger = {
		tag = USA
		48 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 48
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = sofia_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = sofia_captured_allies
		news_event = {
			id = confer.22
			hours = 3
		}
		clr_global_flag = sofia_captured_soviets
	}
}

news_event = {
	id = confer.22
	title = confer.22.t
	desc = confer.22.d
	picture = GFX_news_event_hiep_sofia_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.22.a
	}
}

#Soviets capture Sofia
country_event = {
	id = confer.23

	#fire_only_once = yes

	trigger = {
		tag = SOV
		48 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 48
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = sofia_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = sofia_captured_soviets
		news_event = {
			id = confer.24
			hours = 3
		}
		clr_global_flag = sofia_captured_allies
	}
}

news_event = {
	id = confer.24
	title = confer.24.t
	desc = confer.24.d
	picture = GFX_news_event_hiep_sofia_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.24.a
	}
}

#####
#	BUCHAREST CAPTURED
#####

#Allies capture Bucharest
country_event = {
	id = confer.31

	#fire_only_once = yes

	trigger = {
		tag = USA
		46 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 46
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = bucharest_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = bucharest_captured_allies
		news_event = {
			id = confer.32
			hours = 3
		}
		clr_global_flag = bucharest_captured_soviets
	}
}

news_event = {
	id = confer.32
	title = confer.32.t
	desc = confer.32.d
	picture = GFX_news_event_hiep_bucharest_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.32.a
	}
}

#Soviets capture Bucharest
country_event = {
	id = confer.33

	#fire_only_once = yes

	trigger = {
		tag = SOV
		46 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 46
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = bucharest_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = bucharest_captured_soviets
		news_event = {
			id = confer.34
			hours = 3
		}
		clr_global_flag = bucharest_captured_allies
	}
}

news_event = {
	id = confer.34
	title = confer.34.t
	desc = confer.34.d
	picture = GFX_news_event_hiep_bucharest_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.34.a
	}
}

#####
#	BUDAPEST CAPTURED
#####

#Allies capture Budapest
country_event = {
	id = confer.41

	#fire_only_once = yes

	trigger = {
		tag = USA
		43 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 43
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = budapest_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = budapest_captured_allies
		news_event = {
			id = confer.42
			hours = 3
		}
		clr_global_flag = budapest_captured_soviets
	}
}

news_event = {
	id = confer.42
	title = confer.42.t
	desc = confer.42.d
	picture = GFX_news_event_hiep_budapest_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.42.a
	}
}

#Soviets capture Budapest
country_event = {
	id = confer.43

	#fire_only_once = yes

	trigger = {
		tag = SOV
		43 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 43
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = budapest_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = budapest_captured_soviets
		news_event = {
			id = confer.44
			hours = 3
		}
		clr_global_flag = budapest_captured_allies
	}
}

news_event = {
	id = confer.44
	title = confer.44.t
	desc = confer.44.d
	picture = GFX_news_event_hiep_budapest_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.44.a
	}
}

#####
#	PRAGUE CAPTURED
#####

#Allies capture Prague
country_event = {
	id = confer.51

	#fire_only_once = yes

	trigger = {
		tag = USA
		9 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 9
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = prague_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = prague_captured_allies
		news_event = {
			id = confer.52
			hours = 3
		}
		clr_global_flag = prague_captured_soviets
	}
}

news_event = {
	id = confer.52
	title = confer.52.t
	desc = confer.52.d
	picture = GFX_news_event_hiep_prague_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.52.a
	}
}

#Soviets capture Prague
country_event = {
	id = confer.53

	#fire_only_once = yes

	trigger = {
		tag = SOV
		9 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 9
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = prague_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = prague_captured_soviets
		news_event = {
			id = confer.54
			hours = 3
		}
		clr_global_flag = prague_captured_allies
	}
}

news_event = {
	id = confer.54
	title = confer.54.t
	desc = confer.54.d
	picture = GFX_news_event_hiep_prague_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.54.a
	}
}

#####
#	WARSAW CAPTURED
#####

#Allies capture Tirana
country_event = {
	id = confer.61

	#fire_only_once = yes

	trigger = {
		tag = USA
		10 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 10
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = warsaw_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = warsaw_captured_allies
		news_event = {
			id = confer.62
			hours = 3
		}
		clr_global_flag = warsaw_captured_soviets
	}
}

news_event = {
	id = confer.62
	title = confer.62.t
	desc = confer.62.d
	picture = GFX_news_event_hiep_warsaw_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.62.a
	}
}

#Soviets capture Warsaw
country_event = {
	id = confer.63

	#fire_only_once = yes

	trigger = {
		tag = SOV
		10 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 10
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = warsaw_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = warsaw_captured_soviets
		news_event = {
			id = confer.64
			hours = 3
		}
		clr_global_flag = warsaw_captured_allies
	}
}

news_event = {
	id = confer.64
	title = confer.64.t
	desc = confer.64.d
	picture = GFX_news_event_hiep_warsaw_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.64.a
	}
}

#####
#	PARIS CAPTURED
#####

#Allies capture Paris
country_event = {
	id = confer.101

	#fire_only_once = yes

	trigger = {
		tag = USA
		16 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 16
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = paris_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = paris_captured_allies
		news_event = {
			id = confer.102
			hours = 3
		}
		clr_global_flag = paris_captured_soviets
	}
}

news_event = {
	id = confer.102
	title = confer.102.t
	desc = confer.102.d
	picture = GFX_news_event_hiep_paris_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.102.a
	}
}

#Soviets capture Paris
country_event = {
	id = confer.103

	#fire_only_once = yes

	trigger = {
		tag = SOV
		16 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 16
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = paris_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = paris_captured_soviets
		news_event = {
			id = confer.104
			hours = 3
		}
		clr_global_flag = paris_captured_allies
	}
}

news_event = {
	id = confer.104
	title = confer.104.t
	desc = confer.104.d
	picture = GFX_news_event_hiep_paris_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.104.a
	}
}

#####
#	Brussels CAPTURED
#####

#Allies capture Brussels
country_event = {
	id = confer.111

	#fire_only_once = yes

	trigger = {
		tag = USA
		6 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 6
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = brussels_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = brussels_captured_allies
		news_event = {
			id = confer.112
			hours = 3
		}
		clr_global_flag = brussels_captured_soviets
	}
}

news_event = {
	id = confer.112
	title = confer.112.t
	desc = confer.112.d
	picture = GFX_news_event_hiep_brussels_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.112.a
	}
}

#Soviets capture Brussels
country_event = {
	id = confer.113

	#fire_only_once = yes

	trigger = {
		tag = SOV
		6 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 6
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = brussels_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = brussels_captured_soviets
		news_event = {
			id = confer.114
			hours = 3
		}
		clr_global_flag = brussels_captured_allies
	}
}

news_event = {
	id = confer.114
	title = confer.114.t
	desc = confer.114.d
	picture = GFX_news_event_hiep_brussels_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.114.a
	}
}

#####
#	Amsterdam CAPTURED
#####

#Allies capture Amsterdam
country_event = {
	id = confer.121

	#fire_only_once = yes

	trigger = {
		tag = USA
		7 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 7
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = amsterdam_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = amsterdam_captured_allies
		news_event = {
			id = confer.122
			hours = 3
		}
		clr_global_flag = amsterdam_captured_soviets
	}
}

news_event = {
	id = confer.122
	title = confer.122.t
	desc = confer.122.d
	picture = GFX_news_event_hiep_amsterdam_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.122.a
	}
}

#Soviets capture Amsterdam
country_event = {
	id = confer.123

	#fire_only_once = yes

	trigger = {
		tag = SOV
		7 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 7
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = amsterdam_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = amsterdam_captured_soviets
		news_event = {
			id = confer.124
			hours = 3
		}
		clr_global_flag = amsterdam_captured_allies
	}
}

news_event = {
	id = confer.124
	title = confer.124.t
	desc = confer.124.d
	picture = GFX_news_event_hiep_amsterdam_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.124.a
	}
}

#####
#	LUX CAPTURED
#####

#Allies capture Lux
country_event = {
	id = confer.131

	#fire_only_once = yes

	trigger = {
		tag = USA
		8 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 8
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = luxembourg_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = luxembourg_captured_allies
		news_event = {
			id = confer.132
			hours = 3
		}
		clr_global_flag = luxembourg_captured_soviets
	}
}

news_event = {
	id = confer.132
	title = confer.132.t
	desc = confer.132.d
	picture = GFX_news_event_hiep_luxembourg_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.132.a
	}
}

#Soviets capture Lux
country_event = {
	id = confer.133

	#fire_only_once = yes

	trigger = {
		tag = SOV
		8 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 8
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = luxembourg_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = luxembourg_captured_soviets
		news_event = {
			id = confer.134
			hours = 3
		}
		clr_global_flag = luxembourg_captured_allies
	}
}

news_event = {
	id = confer.134
	title = confer.134.t
	desc = confer.134.d
	picture = GFX_news_event_hiep_luxembourg_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.134.a
	}
}

#####
#	ROME CAPTURED
#####

#Allies capture Rome
country_event = {
	id = confer.141

	#fire_only_once = yes

	trigger = {
		tag = USA
		2 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 2
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = rome_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = rome_captured_allies
		news_event = {
			id = confer.142
			hours = 3
		}
		clr_global_flag = rome_captured_soviets
	}
}

news_event = {
	id = confer.142
	title = confer.142.t
	desc = confer.142.d
	picture = GFX_news_event_hiep_rome_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.142.a
	}
}

#Soviets capture Rome
country_event = {
	id = confer.143

	#fire_only_once = yes

	trigger = {
		tag = SOV
		2 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 2
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = rome_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = rome_captured_soviets
		news_event = {
			id = confer.144
			hours = 3
		}
		clr_global_flag = rome_captured_allies
	}
}

news_event = {
	id = confer.144
	title = confer.144.t
	desc = confer.144.d
	picture = GFX_news_event_hiep_rome_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.144.a
	}
}

#####
#	ATHENS CAPTURED
#####

#Allies capture Athens
country_event = {
	id = confer.181

	#fire_only_once = yes

	trigger = {
		tag = USA
		47 = {
			OR = {
				is_controlled_by = USA
				any_other_country = {
					controls_state = 47
					is_in_faction_with = USA
				}
			}
		}
		USA = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = athens_captured_allies }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = athens_captured_allies
		news_event = {
			id = confer.182
			hours = 3
		}
		clr_global_flag = athens_captured_soviets
	}
}

news_event = {
	id = confer.182
	title = confer.182.t
	desc = confer.182.d
	picture = GFX_news_event_hiep_athens_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.182.a
	}
}

#Soviets capture Athens
country_event = {
	id = confer.183

	#fire_only_once = yes

	trigger = {
		tag = SOV
		47 = {
			OR = {
				is_controlled_by = SOV
				any_other_country = {
					controls_state = 47
					is_in_faction_with = SOV
				}
			}
		}
		SOV = { has_war_with = GER }
		has_global_flag = the_cold_war_battle_for_capitals
		NOT = { has_global_flag = athens_captured_soviets }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		set_global_flag = athens_captured_soviets
		news_event = {
			id = confer.184
			hours = 3
		}
		clr_global_flag = athens_captured_allies
	}
}

news_event = {
	id = confer.184
	title = confer.184.t
	desc = confer.184.d
	picture = GFX_news_event_hiep_athens_captured
	
	major = yes
	
	#fire_only_once = yes

	is_triggered_only =  yes 

	option = {
		name = confer.184.a
	}
}

#If the Soviet Union is no more then erase the superflag
country_event = {
	id = confer.200

	#fire_only_once = yes

	trigger = {
		tag = GER
		OR = { 
			NOT = { country_exists = SOV }
			USA = { is_subject = yes }
			ENG = { is_subject = yes }
			SOV = { is_subject = yes }
		}
		has_global_flag = the_cold_war_battle_for_capitals
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		clr_global_flag = the_cold_war_battle_for_capitals
	}
}

#player can stop the script anyway
country_event = {
	id = confer.201
	title = confer.201.t
	desc = confer.201.d

	fire_only_once = yes

	trigger = {
		is_ai = no
		has_global_flag = the_cold_war_battle_for_capitals
	}

	mean_time_to_happen = {
		days = 2
	}

	option = {
		name = confer.201.a
	}

	option = {
		name = confer.201.b
		clr_global_flag = the_cold_war_battle_for_capitals
	}
}

#LOAD THE SCRIPT
country_event = {
	id = confer.202

	fire_only_once = yes

	trigger = {
		tag = SOV
		has_global_flag = the_cold_war_battle_for_capitals
		OR = { 
			NOT = { country_exists = GER }
			GER = { is_subject = yes }
			NOT = { GER = { has_government = fascism } }
			NOT = { GER = { owns_state = 55 } }
			NOT = { GER = { owns_state = 64 } }
		}
		USA = { is_subject = no }
		ENG = { is_subject = no }
		SOV = { is_subject = no }
		country_exists = USA
		country_exists = ENG
		NOT = {
			SOV = { has_war_with = GER }
			USA = { has_war_with = GER }
			ENG = { has_war_with = GER }
			SOV = { has_war_with = ITA }
			USA = { has_war_with = ITA }
			ENG = { has_war_with = ITA }
		}
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		clr_global_flag = the_cold_war_battle_for_capitals
		#fire_the script
		#Iraq
		if = {
			limit = { 
				IRQ = { 
					is_ai = yes
				}
			}
			ENG = {
				puppet = IRQ
				set_autonomy = {
    					target = IRQ
					autonomy_state = autonomy_supervised_state
				}
				IRQ = { 
					set_popularities = {
						democratic = 40
						neutrality = 50
						fascism = 0
						communism = 10
					}
				}
				IRQ = {
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
				}
				IRQ = {
					transfer_state = 676 #No Kurdistan
				}
			}
		}
		#Syria
		if = {
			limit = { 
				SYR = { 
					is_ai = yes
				}
			}
			FRA = {
				puppet = SYR
				set_autonomy = {
    					target = SYR
					autonomy_state = autonomy_supervised_state
				}
				SYR = { 
					set_popularities = {
						democratic = 40
						neutrality = 50
						fascism = 0
						communism = 10
					}
				}
				SYR = {
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
				}
			}
		}
		#Lebanon
		if = {
			limit = { 
				LEB = { 
					is_ai = yes
				}
			}
			FRA = {
				puppet = LEB
				set_autonomy = {
    					target = LEB
					autonomy_state = autonomy_supervised_state
				}
				LEB = { 
					set_popularities = {
						democratic = 40
						neutrality = 50
						fascism = 0
						communism = 10
					}
				}
				LEB = {
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
				}
			}
		}
		#Libya and East Africa
		ENG = {
			transfer_state = 448
			transfer_state = 449
			transfer_state = 450
			transfer_state = 451
			transfer_state = 663
			transfer_state = 662
			transfer_state = 661
			transfer_state = 273
			transfer_state = 550
			transfer_state = 559
		}
		#West Africa
		#Corsica/South France/Occitania
		FRA = {
			transfer_state = 14
			transfer_state = 28
			transfer_state = 31
			transfer_state = 19
			transfer_state = 25
			transfer_state = 33
			transfer_state = 23
			transfer_state = 26
			transfer_state = 22
			transfer_state = 20
			transfer_state = 21
			transfer_state = 32
			transfer_state = 735
			transfer_state = 1
			transfer_state = 462
			transfer_state = 461
			transfer_state = 460
			transfer_state = 459
			transfer_state = 513
			transfer_state = 268
			transfer_state = 543
			transfer_state = 706
			transfer_state = 708
			transfer_state = 539
			transfer_state = 772
			transfer_state = 773
			transfer_state = 660
			transfer_state = 774
			transfer_state = 775
			transfer_state = 515
			transfer_state = 781
			transfer_state = 776
			transfer_state = 777
			transfer_state = 778
			transfer_state = 556
			transfer_state = 779
			transfer_state = 780
			transfer_state = 272
			transfer_state = 557
			transfer_state = 786
			transfer_state = 782
			transfer_state = 514
			transfer_state = 458
			transfer_state = 665
			transfer_state = 806 #Pyrenees
		}	
		if = {
			limit = { 
				has_global_flag = paris_captured_allies
			}
			USA = {
				#puppet = FRA
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				FRA = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				FRA = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = paris_captured_soviets
			}
			SOV = {
				puppet = FRA
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				FRA = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				FRA = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = amsterdam_captured_allies
			}
			USA = {
				#puppet = HOL
				#set_autonomy = {
    				#	target = HOL
				#	autonomy_state = autonomy_supervised_state
				#}
				HOL = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				HOL = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = amsterdam_captured_soviets
			}
			SOV = {
				puppet = HOL
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				HOL = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				HOL = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = brussels_captured_allies
			}
			USA = {
				#puppet = BEL
				#set_autonomy = {
    				#	target = BEL
				#	autonomy_state = autonomy_supervised_state
				#}
				BEL = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				BEL = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = brussels_captured_soviets
			}
			SOV = {
				puppet = BEL
				#set_autonomy = {
    				#	target = BEL
				#	autonomy_state = autonomy_supervised_state
				#}
				BEL = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				BEL = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = luxembourg_captured_allies
			}
			USA = {
				#puppet = LUX
				#set_autonomy = {
    				#	target = LUX
				#	autonomy_state = autonomy_supervised_state
				#}
				LUX = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				LUX = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = luxembourg_captured_soviets
			}
			SOV = {
				puppet = LUX
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				LUX = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				LUX = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}	
		ITA = {
			transfer_state = 39
			transfer_state = 160
			transfer_state = 159
			transfer_state = 158
			transfer_state = 161
			transfer_state = 162
			transfer_state = 157
			transfer_state = 2
			transfer_state = 117
			transfer_state = 156
			transfer_state = 115
			transfer_state = 114
		}
		if = {
			limit = { 
				has_global_flag = rome_captured_allies
			}
			USA = {
				puppet = ITA
				set_autonomy = {
    					target = ITA
					autonomy_state = autonomy_supervised_state
				}
				ITA = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				ITA = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = rome_captured_soviets
			}
			SOV = {
				puppet = ITA
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				ITA = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				ITA = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}	
		ALB = {
			transfer_state = 44
			transfer_state = 934
			transfer_state = 805
		}
		if = {
			limit = { 
				has_global_flag = tirana_captured_allies
			}
			USA = {
				puppet = ALB
				set_autonomy = {
    					target = ALB
					autonomy_state = autonomy_supervised_state
				}
				ALB = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				ALB = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = tirana_captured_soviets
			}
			SOV = {
				puppet = ALB
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				ALB = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				ALB = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		BUL = {
			transfer_state = 48
			transfer_state = 212
			transfer_state = 211
			transfer_state = 77
		}
		if = {
			limit = { 
				has_global_flag = sofia_captured_allies
			}
			USA = {
				puppet = BUL
				set_autonomy = {
    					target = BUL
					autonomy_state = autonomy_supervised_state
				}
				BUL = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				BUL = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = sofia_captured_soviets
			}
			SOV = {
				puppet = BUL
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				BUL = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				BUL = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		ROM = {
			transfer_state = 46
			transfer_state = 79
			transfer_state = 76
			transfer_state = 84
			transfer_state = 83
			transfer_state = 82
			transfer_state = 81
		}
		if = {
			limit = { 
				has_global_flag = bucharest_captured_allies
			}
			USA = {
				puppet = ROM
				set_autonomy = {
    					target = ROM
					autonomy_state = autonomy_supervised_state
				}
				ROM = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				ROM = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = bucharest_captured_soviets
			}
			SOV = {
				puppet = ROM
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				ROM = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				ROM = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		HUN = {
			transfer_state = 43
			transfer_state = 154
			transfer_state = 155
			transfer_state = 974
			transfer_state = 973
		}
		if = {
			limit = { 
				has_global_flag = budapest_captured_allies
			}
			USA = {
				puppet = HUN
				set_autonomy = {
    					target = HUN
					autonomy_state = autonomy_supervised_state
				}
				HUN = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				HUN = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
				HUN = { load_focus_tree = generic_focus } #to disable the mechanic turining it fascist
			}
		}
		if = {
			limit = { 
				has_global_flag = budapest_captured_soviets
			}
			SOV = {
				puppet = HUN
				#set_autonomy = {
    				#	target = FRA
				#	autonomy_state = autonomy_supervised_state
				#}
				HUN = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				HUN = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
				HUN = { load_focus_tree = generic_focus } #to disable the mechanic turining it fascist
			}
		}
		CZE = {
			transfer_state = 664
			transfer_state = 71
			transfer_state = 70
			transfer_state = 72
			transfer_state = 75
			transfer_state = 74
			transfer_state = 9
			transfer_state = 69
		}
		if = {
			limit = { 
				has_global_flag = prague_captured_allies
			}
			USA = {
				puppet = CZE
				set_autonomy = {
    					target = CZE
					autonomy_state = autonomy_supervised_state
				}
				CZE = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				CZE = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = prague_captured_soviets
			}
			SOV = {
				puppet = CZE
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				CZE = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				CZE = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		CZE = { drop_cosmetic_tag = yes	} #Czech Republic
		HUN = { drop_cosmetic_tag = yes } #Greater Hungary
		SOV = {
			transfer_state = 766
			transfer_state = 78
			transfer_state = 80
			transfer_state = 73
			transfer_state = 89
			transfer_state = 91
			transfer_state = 93
			transfer_state = 94
			transfer_state = 95
			transfer_state = 96
			transfer_state = 784
			transfer_state = 763
		}
		POL = {
			transfer_state = 97
			transfer_state = 92
			transfer_state = 5
			transfer_state = 98
			transfer_state = 88
			transfer_state = 10
			transfer_state = 762
			transfer_state = 90
			transfer_state = 87
			transfer_state = 68
			transfer_state = 66
			transfer_state = 67
			transfer_state = 63
			transfer_state = 85
			transfer_state = 807
			transfer_state = 86
		}
		YUG = {
			annex_country = {
				target = SLV
				transfer_troops = yes
			}
			annex_country = {
				target = CRO
				transfer_troops = yes
			}
			annex_country = {
				target = BOS
				transfer_troops = yes
			}
			annex_country = {
				target = SER
				transfer_troops = yes
			}
			annex_country = {
				target = MNT
				transfer_troops = yes
			}
			annex_country = {
				target = MAC
				transfer_troops = yes
			}
			annex_country = {
				target = HRZ
				transfer_troops = yes
			}
			transfer_state = 45
			transfer_state = 103
			transfer_state = 764
		}	
		AUS = {
			transfer_state = 153
			transfer_state = 152
			transfer_state = 4
			transfer_state = 975
		}	
		if = {
			limit = { 
				has_global_flag = paris_captured_allies
			}
			USA = {
				#puppet = AUS
				#set_autonomy = {
    				#	target = AUS
				#	autonomy_state = autonomy_supervised_state
				#}
				AUS = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				AUS = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
			AUS = { add_ideas = neutrality_idea }
		}
		if = {
			limit = { 
				has_global_flag = paris_captured_soviets
			}
			SOV = {
				puppet = AUS
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				AUS = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				AUS = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = paris_captured_soviets
			}
			SOV = {
				puppet = DEN
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				DEN = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				DEN = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		DDR = {
			transfer_state = 60
			transfer_state = 65
			transfer_state = 64
			transfer_state = 62
			transfer_state = 61
		}	
		if = {
			limit = { 
				has_global_flag = warsaw_captured_allies
			}
			USA = {
				puppet = DDR
				set_autonomy = {
    					target = DDR
					autonomy_state = autonomy_supervised_state
				}
				DDR = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				DDR = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = warsaw_captured_soviets
			}
			SOV = {
				puppet = DDR
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				DDR = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				DDR = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		WGR = {
			transfer_state = 58
			transfer_state = 909
			transfer_state = 59
			transfer_state = 56
			transfer_state = 51
			transfer_state = 42
			transfer_state = 57
			transfer_state = 55
			transfer_state = 54
			transfer_state = 50
			transfer_state = 53
			transfer_state = 52
			transfer_state = 978
		}	
		if = {
			limit = { 
				has_global_flag = paris_captured_allies
			}
			USA = {
				puppet = WGR
				set_autonomy = {
    					target = WGR
					autonomy_state = autonomy_supervised_state
				}
				WGR = { 
					set_popularities = {
						democratic = 90
						neutrality = 0
						fascism = 0
						communism = 10
					}
				}
				WGR = {
					set_politics = {
						ruling_party = democratic
						elections_allowed = yes
					}
				}
			}
		}
		if = {
			limit = { 
				has_global_flag = paris_captured_soviet
			}
			SOV = {
				puppet = WGR
				#set_autonomy = {
    				#	target = WGR
				#	autonomy_state = autonomy_supervised_state
				#}
				WGR = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				WGR = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		POL = {
			transfer_state = 97
			transfer_state = 92
			transfer_state = 5
			transfer_state = 98
			transfer_state = 88
			transfer_state = 10
			transfer_state = 762
			transfer_state = 90
			transfer_state = 87
			transfer_state = 68
			transfer_state = 66
			transfer_state = 67
			transfer_state = 63
			transfer_state = 85
			transfer_state = 807
			transfer_state = 86
		}
		if = {
			limit = { 
				has_global_flag = warsaw_captured_soviets
			}
			SOV = {
				puppet = POL
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				POL = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				POL = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		CZE = {
			transfer_state = 664
			transfer_state = 71
			transfer_state = 70
			transfer_state = 72
			transfer_state = 75
			transfer_state = 74
			transfer_state = 9
			transfer_state = 69
		}
		if = {
			limit = { 
				has_global_flag = prague_captured_soviets
			}
			SOV = {
				puppet = CZE
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				CZE = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				CZE = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		GRE = {
			transfer_state = 187
			transfer_state = 731
			transfer_state = 182
			transfer_state = 185
			transfer_state = 186
			transfer_state = 47
			transfer_state = 184
		}
		if = {
			limit = { 
				has_global_flag = athens_captured_soviets
			}
			SOV = {
				puppet = GRE
				#set_autonomy = {
    				#	target = CZE
				#	autonomy_state = autonomy_supervised_state
				#}
				GRE = { 
					set_popularities = {
						democratic = 10
						neutrality = 0
						fascism = 0
						communism = 90
					}
				}
				GRE = {
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
				}
			}
		}
		YUG = {
			transfer_state = 102
			transfer_state = 103
			transfer_state = 109
			transfer_state = 104
			transfer_state = 804
			transfer_state = 45
			transfer_state = 107
			transfer_state = 105
			transfer_state = 108
			transfer_state = 106
			transfer_state = 764
			transfer_state = 802
			transfer_state = 803
			transfer_state = 163
			transfer_state = 970
			102 = { add_core_of = YUG }
			103 = { add_core_of = YUG }
			109 = { add_core_of = YUG }
			104 = { add_core_of = YUG }
			804 = { add_core_of = YUG } #Herzegowina
			45 = { add_core_of = YUG }
			107 = { add_core_of = YUG }
			105 = { add_core_of = YUG }
			108 = { add_core_of = YUG }
			106 = { add_core_of = YUG }
			764 = { add_core_of = YUG }
			802 = { add_core_of = YUG } #Kosovo
			803 = { add_core_of = YUG } #Southern Sebia
			163 = { add_core_of = YUG } #Zara	
			970 = { add_core_of = YUG } #border with Albania
		}
		ETH = {
			transfer_state = 550
		}
	}
}

#weird bugfix - Germany may grab the western Poland after the war
country_event = {
	id = confer.301

	#fire_only_once = yes

	trigger = {
		tag = GER
		NOT = {
			64 = {
				OR = {
					is_owned_by = GER
					any_other_country = {
						controls_state = 64
						is_in_faction_with = GER
					}
				}
			}
		}
		10 = {
			OR = {
				is_owned_by = GER
				any_other_country = {
					controls_state = 10
					is_in_faction_with = GER
				}
			}
		}
		GER = { is_ai = yes }
		NOT = { SOV = { has_war_with = GER } }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		release = POL
	}
}

#weird bugfix - Germany may grab Slovakia after the war
country_event = {
	id = confer.302

	#fire_only_once = yes

	trigger = {
		tag = GER
		NOT = {
			64 = {
				OR = {
					is_owned_by = GER
					any_other_country = {
						controls_state = 64
						is_in_faction_with = GER
					}
				}
			}
		}
		OR = {
			70 = {
				OR = {
					is_owned_by = GER
					any_other_country = {
						controls_state = 70
						is_in_faction_with = GER
					}
				}
			}
			71 = {
				OR = {
					is_owned_by = GER
					any_other_country = {
						controls_state = 71
						is_in_faction_with = GER
					}
				}
			}
			664 = {
				OR = {
					is_owned_by = GER
					any_other_country = {
						controls_state = 664
						is_in_faction_with = GER
					}
				}
			}
			72 = {
				OR = {
					is_owned_by = GER
					any_other_country = {
						controls_state = 72
						is_in_faction_with = GER
					}
				}
			}
		}
		GER = { is_ai = yes }
		NOT = { SOV = { has_war_with = GER } }
	}

	mean_time_to_happen = {
		days = 2
	}

	hidden = yes

	immediate = {
		release = CZE
	}
}