add_namespace = mtg_britain 

# Abdication Crisis Edward VIII
country_event = {
	id = mtg_britain.1
	title = mtg_britain.1.t
	desc = mtg_britain.1.d
	picture = GFX_report_event_eng_edward_and_wallis

	trigger = {
		tag = ENG
		has_country_flag = ENG_king_died
		date > 1936.6.1
		NOT = { has_country_flag = ENG_edward_abdicating }
		has_dlc = "Man the Guns"
	}
	
	fire_only_once = yes

	mean_time_to_happen = { days = 14 }

	# Reject
	option = {
		name = mtg_britain.1.c
		ai_chance = {
			factor = 70
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = NEUTRALITY
					}
					has_country_flag = ENG_AI_RANDOM_NEUTRALITY
				}
			}
		}
		add_stability = 0.05
		set_country_flag = ENG_edward_abdicating
		country_event = { id = mtg_britain.14 days = 5 random_days = 5 }
	}

	# Accept - Morganatic marriage
	option = {
		name = mtg_britain.1.b
		trigger = {
			NOT = {
				OR = {
					has_completed_focus = ENG_organize_the_blackshirts
					has_completed_focus = ENG_concessions_to_the_trade_unions
					has_completed_focus = ENG_steady_as_she_goes
					has_completed_focus = ENG_workers_revolution
				}
			}
		}
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				ENG_is_on_historical_plan_trigger = yes
			}
			modifier = {
				factor = 0
				has_completed_focus = ENG_steady_as_she_goes
			}
			modifier = {
				factor = 0
				has_completed_focus = ENG_organize_the_blackshirts
			}
			modifier = {
				factor = 0
				has_completed_focus = ENG_concessions_to_the_trade_unions
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = DEMOCRATIC_HISTORICAL
					}
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = DEMOCRATIC_ALTERNATE
					}
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = COMMUNIST
					}
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = FASCIST
					}
					has_country_flag = ENG_AI_RANDOM_FASCIST
					has_country_flag = ENG_AI_RANDOM_COMMUNIST
					has_country_flag = ENG_AI_RANDOM_DEMOCRATIC_ALTERNATE
					has_country_flag = ENG_AI_DEMOCRATIC_HISTORICAL
				}
			}
		}
		add_stability = -0.05
		add_popularity = { ideology = neutrality popularity = 0.05 }
		custom_effect_tooltip = mtg_britain.1_tt
		activate_mission = ENG_abdication_crisis
		hidden_effect = { 
			country_event = { id = mtg_britain.2 days = 50 }
			country_event = { id = mtg_britain.6 days = 15 random_days = 10 }
		}
		set_country_flag = ENG_abdication_crisis_morganatic_marriage
		set_country_flag = edward_viii_refused_to_abdicate_flag
		hidden_effect = {
			CAN = { country_event = { id = mtg_britain.15 } }
			SAF = { country_event = { id = mtg_britain.15 } }
			RAJ = { country_event = { id = mtg_britain.15 } }
			AST = { country_event = { id = mtg_britain.15 } }
			NZL = { country_event = { id = mtg_britain.15 } }
			BRM = { country_event = { id = mtg_britain.15 } }

		}
	}

	# Accept - Normal marriage
	option = {
		name = mtg_britain.1.a
		trigger = {
			NOT = {
				OR = {
					has_completed_focus = ENG_organize_the_blackshirts
					has_completed_focus = ENG_concessions_to_the_trade_unions
					has_completed_focus = ENG_steady_as_she_goes
					has_completed_focus = ENG_workers_revolution
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				ENG_is_on_historical_plan_trigger = yes
			}
			modifier = {
				factor = 0
				has_completed_focus = ENG_steady_as_she_goes
			}
			modifier = {
				factor = 0
				has_completed_focus = ENG_organize_the_blackshirts
			}
			modifier = {
				factor = 0
				has_completed_focus = ENG_concessions_to_the_trade_unions
			}
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = DEMOCRATIC_HISTORICAL
					}
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = DEMOCRATIC_ALTERNATE
					}
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = COMMUNIST
					}
					has_game_rule = {
						rule = ENG_ai_behavior 
						option = FASCIST
					}
					has_country_flag = ENG_AI_RANDOM_FASCIST
					has_country_flag = ENG_AI_RANDOM_COMMUNIST
					has_country_flag = ENG_AI_RANDOM_DEMOCRATIC_ALTERNATE
					has_country_flag = ENG_AI_DEMOCRATIC_HISTORICAL
				}
			}
		}
		add_stability = -0.15
		add_popularity = { ideology = neutrality popularity = 0.1 }
		add_political_power = -25
		custom_effect_tooltip = mtg_britain.1_tt
		activate_mission = ENG_abdication_crisis
		hidden_effect = { 
			country_event = { id = mtg_britain.2 days = 50 }
			country_event = { id = mtg_britain.6 days = 15 random_days = 10 }
		}
		set_country_flag = ENG_abdication_crisis_normal_marriage
		set_country_flag = edward_viii_refused_to_abdicate_flag
		hidden_effect = {
			CAN = { country_event = { id = mtg_britain.15 } }
			SAF = { country_event = { id = mtg_britain.15 } }
			RAJ = { country_event = { id = mtg_britain.15 } }
			AST = { country_event = { id = mtg_britain.15 } }
			NZL = { country_event = { id = mtg_britain.15 } }
			BRM = { country_event = { id = mtg_britain.15 } }
		}
	}
}

# Abdication Crisis Edward VIII - King's support coalesces
country_event = {
	id = mtg_britain.2
	title = mtg_britain.2.t
	desc = mtg_britain.2.d
	picture = GFX_report_event_generic_rally

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.2.a
		add_popularity = { ideology = neutrality popularity = 0.1 }
		add_political_power = 100
		add_timed_idea = { idea = ENG_support_for_the_king_idea days = 150 }
		custom_effect_tooltip = mtg_britain.2_tt
		hidden_effect = { country_event = { id = mtg_britain.3 days = 50 } }
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
	}
}

# Abdication Crisis Edward VIII - Government falls
country_event = {
	id = mtg_britain.3
	title = mtg_britain.3.t
	desc = mtg_britain.3.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = ENG_abdication_crisis_changed_mind } }
	
	# Ok
	option = {
		name = mtg_britain.3.a
		add_stability = -0.15
		add_political_power = -150
		create_country_leader = {
			name = "Fallen Government"
			desc = "POLITICS_FALLEN_GOVERNMENT_DESC"
			picture = GFX_portrait_Fallen_Government
			expire = "1965.1.1"
			ideology = conservatism
			traits = {
				cabinet_crisis
			}
		}
		custom_effect_tooltip = mtg_britain.2_tt
		set_country_flag = ENG_abdication_crisis_government_fell
		hidden_effect = { country_event = { id = mtg_britain.4 days = 50 } }
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Dominions threaten to break away
country_event = {
	id = mtg_britain.4
	title = mtg_britain.4.t
	desc = mtg_britain.4.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = ENG_abdication_crisis_changed_mind } }
	
	# Ok
	option = {
		name = mtg_britain.4.a
		add_stability = -0.15
		add_political_power = -100
		if = {
			limit = {
				CAN = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				RAJ = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				AST = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				BRM = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
			}
			dismantle_faction = yes
		}
		remove_from_tech_sharing_group = commonwealth_research
		effect_tooltip = {
			if = {
				limit = {
					CAN = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				set_autonomy = { target = CAN autonomy_state = autonomy_free }
			}
			if = {
				limit = {
					SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				set_autonomy = { target = SAF autonomy_state = autonomy_free }
			}
			if = {
				limit = {
					RAJ = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				if = {
					limit = { NOT = { has_dlc = "Graveyard of Empires" } }
					set_autonomy = { target = RAJ autonomy_state = autonomy_free }
					RAJ = {
						drop_cosmetic_tag = yes
						retire_country_leader = yes
						remove_from_tech_sharing_group = commonwealth_research
					}
				}
				else = {
					if = {
						limit = {
							RAJ = {
								is_subject_of = ENG
							}
						}
						#retire_country_leader = yes
						RAJ = { 
							country_event = { id = GOE_RAJ.30 hours = 2 } 
							remove_from_tech_sharing_group = commonwealth_research
							effect_tooltip = {
								add_ideas = idea_RAJ_the_long_goodbye
							}

							if = {
								limit = {
									NOT = {
										has_autonomy_state = autonomy_dominion
									}
								}

								set_autonomy = {
									target=RAJ
									autonomy_state = autonomy_dominion
									freedom_level = 0 # 0-1 
									end_wars  = no # default yes. will not cancel non civil wars if set to no
									end_civil_wars = no # default yes. will not cancel civil wars if set to no
								}
							}
						} 
						custom_effect_tooltip =  GOE_RAJ.30_we_are_leaving_tt
						
					}
				}

			}
			if = {
				limit = {
					AST = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				set_autonomy = { target = AST autonomy_state = autonomy_free }
			}
			if = {
				limit = {
					NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				set_autonomy = { target = NZL autonomy_state = autonomy_free }
			}
			if = {
				limit = {
					CAN = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				CAN = {
					create_faction = "ENG_commonwealth_of_nations"
					if = {
						limit = {
							SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
						}
						add_to_faction = SAF
					}
					if = {
						limit = {
							AST = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
						}
						add_to_faction = AST
					}
					if = {
						limit = {
							NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
						}
						add_to_faction = NZL
					}
				}
			}
			else_if = {
				limit = {
					SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				SAF = {
					create_faction = "ENG_commonwealth_of_nations"
					if = {
						limit = {
							SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
						}
						add_to_faction = SAF
					}
					if = {
						limit = {
							NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
						}
						add_to_faction = NZL
					}
				}
			}
			else_if = {
				limit = {
					AST = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				AST = {
					create_faction = "ENG_commonwealth_of_nations"
					if = {
						limit = {
							NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
						}
						add_to_faction = NZL
					}
				}
			}
		}
		custom_effect_tooltip = mtg_britain.2_tt
		hidden_effect = {
			if = {
				limit = {
					CAN = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				CAN = {
					country_event = { id = mtg_britain.16 }
					add_ai_strategy = {
						type = alliance
						id = ENG
						value = -200
					}
				}
			}
			if = {
				limit = {
					SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				SAF = {
					country_event = { id = mtg_britain.16 }
					add_ai_strategy = {
						type = alliance
						id = ENG
						value = -200
					}
				}
			}
			if = {
				limit = {
					RAJ = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
					NOT ={
						has_completed_focus = RAJ_great_depression_price_controls
					}
				}

				RAJ = {
					country_event = { id = mtg_britain.16 }
					add_ai_strategy = {
						type = alliance
						id = ENG
						value = -200
					}
				}
			}
			if = {
				limit = {
					AST = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				AST = {
					country_event = { id = mtg_britain.16 }
					add_ai_strategy = {
						type = alliance
						id = ENG
						value = -200
					}
				}
			}
			if = {
				limit = {
					NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				NZL = {
					country_event = { id = mtg_britain.16 }
					add_ai_strategy = {
						type = alliance
						id = ENG
						value = -200
					}
				}
			}

			if = {
				limit = {
					BRM = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				BRM = {
					country_event = { id = mtg_britain.16 }
					add_ai_strategy = {
						type = alliance
						id = ENG
						value = -200
					}
				}
			}
		}
		hidden_effect = { news_event = { id = mtg_news.62 days = 1 } }
	}
}

# Abdication Crisis Edward VIII - Marriage happens
country_event = {
	id = mtg_britain.5
	title = mtg_britain.5.t
	desc = mtg_britain.5.d
	picture = GFX_report_event_royal_parade

	is_triggered_only = yes

	trigger = { NOT = { has_country_flag = ENG_abdication_crisis_changed_mind } }

	immediate = {
		hidden_effect = {
			set_country_flag = edward_viii_married_wallis_simpson
		}
	}
	
	# Ok
	option = {
		name = mtg_britain.5.a
		add_popularity = { ideology = neutrality popularity = 0.05 }
		add_stability = 0.05
		add_political_power = 50
	}
}

# Abdication Crisis Edward VIII - random event generator
country_event = {
	id = mtg_britain.6
	
	is_triggered_only = yes

	hidden = yes

	immediate = {
		random_list = {
			20 = { # Newspapers in favor of marriage
				modifier = {
					factor = 1.5
					has_country_flag = ENG_abdication_crisis_morganatic_marriage
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_newspapers_in_favor
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_newspapers_against
				}
				country_event = { id = mtg_britain.7 }
			}
			20 = { # Newspapers against marriage
				country_event = { id = mtg_britain.8 } 
			}
			20 = { # Prime Minister keeps King on tight leash
				modifier = {
					factor = 0
					has_country_flag = ENG_abdication_crisis_government_fell
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_newspapers_in_favor
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_newspapers_against
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_abdication_crisis_held_radio_speech
				}
				country_event = { id = mtg_britain.9 } 
			}
			20 = { # Parliament Opposition
				modifier = {
					factor = 0.8
					has_idea = ENG_support_for_the_king_idea 
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_abdication_crisis_government_fell
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_parliament_opposition
				}
				country_event = { id = mtg_britain.10 } 
			}
			20 = { # Upper classes oppose marriage
				modifier = {
					factor = 0
					has_country_flag = ENG_upper_classes_oppose_marriage
				}
				country_event = { id = mtg_britain.11 } 
			}
			20 = { # Working class people support marriage
				modifier = {
					factor = 1.5
					has_country_flag = ENG_abdication_crisis_morganatic_marriage
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_upper_classes_support_marriage
				}
				country_event = { id = mtg_britain.12 } 
			}
			200 = { # King gets permission to make radio broadcast for 'his side of the story'
				modifier = {
					factor = 0
					NOT = { has_idea = ENG_support_for_the_king_idea } 
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_abdication_crisis_tight_leash 
				}
				modifier = {
					factor = 0
					has_country_flag = ENG_abdication_crisis_held_radio_speech
				}
				country_event = { id = mtg_britain.13 }
			}
		}
	}
}

# Abdication Crisis Edward VIII - Newspapers in favor of marriage
country_event = {
	id = mtg_britain.7
	title = mtg_britain.7.t
	desc = mtg_britain.7.d
	picture = GFX_report_event_journalists_speech

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}
	
	# Ok
	option = {
		name = mtg_britain.7.a
		add_popularity = { ideology = neutrality popularity = 0.02 }
		add_stability = 0.05
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
		clr_country_flag = ENG_newspapers_against
		clr_country_flag = ENG_prime_minister_tight_leash
		clr_country_flag = ENG_parliament_opposition
		clr_country_flag = ENG_upper_classes_oppose_marriage
		clr_country_flag = ENG_working_classes_support_marriage
		set_country_flag = ENG_newspapers_in_favor
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Newspapers against marriage
country_event = {
	id = mtg_britain.8
	title = mtg_britain.8.t
	desc = mtg_britain.8.d
	picture = GFX_report_event_journalists_speech

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}
	
	# Ok
	option = {
		name = mtg_britain.8.a
		add_popularity = { ideology = neutrality popularity = -0.02 }
		add_stability = -0.05
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
		clr_country_flag = ENG_newspapers_in_favor
		clr_country_flag = ENG_prime_minister_tight_leash
		clr_country_flag = ENG_parliament_opposition
		clr_country_flag = ENG_upper_classes_oppose_marriage
		clr_country_flag = ENG_working_classes_support_marriage
		set_country_flag = ENG_newspapers_against
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Prime Minister keeps King on tight leash
country_event = {
	id = mtg_britain.9
	title = mtg_britain.9.t
	desc = mtg_britain.9.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}
	
	# Ok
	option = {
		name = mtg_britain.9.a
		add_political_power = -50
		set_country_flag = { flag = ENG_abdication_crisis_tight_leash value = 1 days = 31 }
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
		clr_country_flag = ENG_newspapers_in_favor
		clr_country_flag = ENG_newspapers_against
		clr_country_flag = ENG_parliament_opposition
		clr_country_flag = ENG_upper_classes_oppose_marriage
		clr_country_flag = ENG_working_classes_support_marriage
		set_country_flag = ENG_prime_minister_tight_leash
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Parliament opposition
country_event = {
	id = mtg_britain.10
	title = mtg_britain.10.t
	desc = mtg_britain.10.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}	
	# Ok
	option = {
		name = mtg_britain.10.a
		add_political_power = -75
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
		clr_country_flag = ENG_newspapers_in_favor
		clr_country_flag = ENG_newspapers_against
		clr_country_flag = ENG_prime_minister_tight_leash
		clr_country_flag = ENG_upper_classes_oppose_marriage
		clr_country_flag = ENG_working_classes_support_marriage
		set_country_flag = ENG_parliament_opposition
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Upper classes oppose marriage
country_event = {
	id = mtg_britain.11
	title = mtg_britain.11.t
	desc = mtg_britain.11.d
	picture = GFX_report_event_generic_rally_3

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}	
	# Ok
	option = {
		name = mtg_britain.11.a
		add_popularity = { ideology = neutrality popularity = -0.02 }
		add_stability = -0.05
		add_political_power = -25
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
		clr_country_flag = ENG_newspapers_in_favor
		clr_country_flag = ENG_newspapers_against
		clr_country_flag = ENG_prime_minister_tight_leash
		clr_country_flag = ENG_parliament_opposition
		clr_country_flag = ENG_working_classes_support_marriage
		set_country_flag = ENG_upper_classes_oppose_marriage
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Working classes support marriage
country_event = {
	id = mtg_britain.12
	title = mtg_britain.12.t
	desc = mtg_britain.12.d
	picture = GFX_report_event_generic_rally

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}	
	# Ok
	option = {
		name = mtg_britain.12.a
		add_popularity = { ideology = neutrality popularity = 0.02 }
		add_stability = 0.05
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
		clr_country_flag = ENG_newspapers_in_favor
		clr_country_flag = ENG_newspapers_against
		clr_country_flag = ENG_prime_minister_tight_leash
		clr_country_flag = ENG_parliament_opposition
		clr_country_flag = ENG_upper_classes_oppose_marriage
		set_country_flag = ENG_working_classes_support_marriage
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# Abdication Crisis Edward VIII - Radio speech
country_event = {
	id = mtg_britain.13
	title = mtg_britain.13.t
	desc = mtg_britain.13.d
	picture = GFX_report_event_journalists_speech

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_flag = ENG_abdication_crisis_changed_mind }
		NOT = { has_country_flag = edward_viii_married_wallis_simpson }
	}
	
	# Ok
	option = {
		name = mtg_britain.13.a
		add_popularity = { ideology = neutrality popularity = 0.05 }
		add_stability = 0.1
		add_political_power = 50
		set_country_flag = ENG_abdication_crisis_held_radio_speech
		hidden_effect = { country_event = { id = mtg_britain.6 days = 20 random_days = 10 } }
	}

	# On second thought, maybe we shouldn't
	option = {
		name = mtg_britain.2.b
		trigger = {
			NOT = { has_country_flag = ENG_abdication_crisis_government_fell }
		}
		ai_chance = {
			factor = 0
		}
		country_event = { id = mtg_britain.14 days = 40 random_days = 10 }
		set_country_flag = ENG_abdication_crisis_changed_mind
		if = {
			limit = {
				has_idea = ENG_support_for_the_king_idea
			}
			remove_ideas = ENG_support_for_the_king_idea
		}
	}
}

# King abdicates - Man the Guns version
country_event = {
	id = mtg_britain.14
	title = britain.17.t
	desc = britain.17.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			remove_ideas = ENG_king_edward
			add_ideas = ENG_george_vi
			set_country_flag = ENG_edward_viii_abdicated
		}
	}

	option = {
		name = britain.17.a
		effect_tooltip = {
			remove_ideas = ENG_king_edward
			add_ideas = ENG_george_vi		
		}
	}
}

# Abdication Crisis Edward VIII - Asking Dominions what they want to do if the King goes through with it
country_event = {
	id = mtg_britain.15
	title = mtg_britain.15.t
	desc = mtg_britain.15.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	# If he goes through with it, we're out
	option = {
		name = mtg_britain.15.a
		custom_effect_tooltip = mtg_britain.15_tt
		set_country_flag = ENG_abdication_crisis_dominion_will_leave
	}

	# We will support him whatever he decides
	option = {
		name = mtg_britain.15.b
		ai_chance = {
			factor = 0
		}
		custom_effect_tooltip = mtg_britain.15_tt_2
		set_country_flag = ENG_abdication_crisis_dominion_will_stay
		if = {
			limit = {
				has_dlc = "Together for Victory"
			}
			custom_effect_tooltip = ENG_staying_loyal_tt
			if = {
				limit = {
					tag = CAN
				}
				CAN_enforce_loyalty = yes
			}
			if = {
				limit = {
					tag = SAF
				}
				SAF_enforce_loyalty = yes
			}
			if = {
				limit = {
					tag = RAJ
				}
				RAJ_enforce_loyalty = yes
			}
			if = {
				limit = {
					tag = AST
				}
				AST_enforce_loyalty = yes
			}
			if = {
				limit = {
					tag = NZL
				}
				NZL_enforce_loyalty = yes
			}

			if = {
				limit = {
					tag = BRM
				}
				NZL_enforce_loyalty = yes
			}
		}
	}
}

# Abdication Crisis Edward VIII - Notification event for the Dominions that they are leaving the Allies
country_event = {
	id = mtg_britain.16
	title = mtg_britain.16.t
	desc = mtg_britain.16.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.16.a
		if = {
			limit = {
				tag = CAN
			}
			FROM = { set_autonomy = { target = CAN autonomy_state = autonomy_free } }
			drop_cosmetic_tag = yes
			create_faction = "ENG_commonwealth_of_nations"
			if = {
				limit = {
					SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				add_to_faction = SAF
			}
			if = {
				limit = {
					AST = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				add_to_faction = AST
			}
			if = {
				limit = {
					NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
				}
				add_to_faction = NZL
			}
			hidden_effect = {
				every_other_country = {
					limit = {
						NOT = { tag = SAF }
						NOT = { tag = AST }
						NOT = { tag = NZL }
					}
					ROOT = {
						add_ai_strategy = {
							type = alliance
							id = PREV
							value = -200
						}
					}
				}
			}
		}

		if = {
			limit = {
				tag = SAF
			}
			FROM = { set_autonomy = { target = SAF autonomy_state = autonomy_free } }
			if = {
				limit = {
					CAN = { NOT = { has_country_flag = ENG_abdication_crisis_dominion_will_leave } }
					AST = { NOT = { has_country_flag = ENG_abdication_crisis_dominion_will_leave } }
				}
				create_faction = "ENG_commonwealth_of_nations"
				if = {
					limit = {
						NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
					}
					add_to_faction = NZL
				}
				hidden_effect = {
					every_other_country = {
						limit = {
							NOT = { tag = NZL }
						}
						ROOT = {
							add_ai_strategy = {
								type = alliance
								id = PREV
								value = -200
							}
						}
					}
				}
			}
		}

		if = {
			limit = {
				tag = BRM
			}
			FROM = { set_autonomy = { target = BRM autonomy_state = autonomy_free } }
			drop_cosmetic_tag = yes
			if = {
				limit = {
					CAN = { NOT = { has_country_flag = ENG_abdication_crisis_dominion_will_leave } }
					AST = { NOT = { has_country_flag = ENG_abdication_crisis_dominion_will_leave } }
				}
				create_faction = "ENG_commonwealth_of_nations"
				if = {
					limit = {
						NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
					}
					add_to_faction = NZL
				}
				hidden_effect = {
					every_other_country = {
						limit = {
							NOT = { tag = NZL }
						}
						ROOT = {
							add_ai_strategy = {
								type = alliance
								id = PREV
								value = -200
							}
						}
					}
				}
			}
		}
		if = {
			limit = {
				tag = RAJ
				
			}
			if = {
				limit = {
					NOT = { has_dlc = "Graveyard of Empires" }

				}

				FROM = { set_autonomy = { target = RAJ autonomy_state = autonomy_free } }
				ENG = { remove_from_faction = RAJ }
				RAJ = {
					drop_cosmetic_tag = yes
					retire_country_leader = yes
					remove_from_tech_sharing_group = commonwealth_research
				}
			}
			else = {
				RAJ = {
					country_event = {
						id = GOE_RAJ.30 hours = 2
					}
				}
				custom_effect_tooltip = GOE_RAJ.30_we_are_leaving_tt
			}
		}

		if = {
			limit = {
				tag = AST
			}
			FROM = { set_autonomy = { target = AST autonomy_state = autonomy_free } }
			if = {
				limit = {
					CAN = { NOT = { has_country_flag = ENG_abdication_crisis_dominion_will_leave } }
				}
				create_faction = "ENG_commonwealth_of_nations"
				if = {
					limit = {
						SAF = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
					}
					add_to_faction = SAF
				}
				if = {
					limit = {
						NZL = { has_country_flag = ENG_abdication_crisis_dominion_will_leave }
					}
					add_to_faction = NZL
				}
				hidden_effect = {
					every_other_country = {
						limit = {
							NOT = { tag = SAF }
							NOT = { tag = NZL }
						}
						ROOT = {
							add_ai_strategy = {
								type = alliance
								id = PREV
								value = -200
							}
						}
					}
				}
			}
		}
		if = {
			limit = {
				tag = NZL
			}
			FROM = { set_autonomy = { target = NZL autonomy_state = autonomy_free } }
		}
	}
}

### END ABDICATION CRISIS ###

# Guide the Colonies notification event
country_event = {
	id = mtg_britain.17
	title = mtg_britain.17.t
	desc = mtg_britain.17.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.17.a
		if = {
			limit = {
				tag = CAN
			}
			effect_tooltip = {
				add_stability = 0.05
				add_opinion_modifier = { target = ENG modifier = ENG_guiding_the_colonies }
				add_ideas = ENG_guided_by_britain_1
			}
		}
		if = {
			limit = {
				tag = AST
			}
			effect_tooltip = {
				add_stability = 0.05
				add_opinion_modifier = { target = ENG modifier = ENG_guiding_the_colonies }
				add_ideas = ENG_guided_by_britain_1
			}
		}
		if = {
			limit = {
				tag = NZL
			}
			effect_tooltip = {
				add_stability = 0.05
				add_opinion_modifier = { target = ENG modifier = ENG_guiding_the_colonies }
				add_ideas = ENG_guided_by_britain_1
			}
		}
		if = {
			limit = {
				tag = SAF
			}
			effect_tooltip = {
				add_stability = 0.05
				add_opinion_modifier = { target = ENG modifier = ENG_guiding_the_colonies }
				add_ideas = ENG_guided_by_britain_1
			}
		}
	}
}

# Towards Dominion Independence notification event
country_event = {
	id = mtg_britain.18
	title = mtg_britain.18.t
	desc = mtg_britain.18.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.18.a
		if = {
			limit = {
				tag = CAN
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = ENG_guided_by_britain_1
					add_idea = ENG_guided_by_britain_2
				}
			}
		}
		if = {
			limit = {
				tag = AST
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = ENG_guided_by_britain_1
					add_idea = ENG_guided_by_britain_2
				}
			}
		}
		if = {
			limit = {
				tag = NZL
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = ENG_guided_by_britain_1
					add_idea = ENG_guided_by_britain_2
				}
			}
		}
		if = {
			limit = {
				tag = SAF
			}
			effect_tooltip = {
				swap_ideas = {
					remove_idea = ENG_guided_by_britain_1
					add_idea = ENG_guided_by_britain_2
				}
			}
		}
	}
}

# Foundations for an Indian State notification event
country_event = {
	id = mtg_britain.19
	title = mtg_britain.19.t
	desc = mtg_britain.19.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.17.a
		effect_tooltip = {
			add_stability = 0.05
			add_opinion_modifier = { target = ENG modifier = ENG_guiding_the_colonies }
			add_ideas = ENG_guided_by_britain_raj_1
		}
	}
}

# Three-Nation Solution notification event
country_event = {
	id = mtg_britain.20
	title = mtg_britain.20.t
	desc = mtg_britain.20.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.20.a
		add_opinion_modifier = { target = ENG modifier = ENG_three_nation_solution }
		release = BAN
		ENG = { set_autonomy = { target = BAN autonomy_state = autonomy_colony } }
		BAN = {
			add_ideas = ENG_guided_by_britain_raj_1
		}
		release = PAK
		ENG = { set_autonomy = { target = PAK autonomy_state = autonomy_colony } }
		PAK = {
			add_ideas = ENG_guided_by_britain_raj_1
		}
		if = {
			limit = {
				has_idea = RAJ_marginalized_muslim_community_angry
			}
			swap_ideas = {
				add_idea = RAJ_marginalized_muslim_community_happy
				remove_idea = RAJ_marginalized_muslim_community_angry
			}
		}
		if = {
			limit = {
				has_idea = RAJ_marginalized_muslim_community
			}
			swap_ideas = {
				add_idea = RAJ_marginalized_muslim_community_happy
				remove_idea = RAJ_marginalized_muslim_community
			}
		}
	}
}

# Towards Indian Independence notification event
country_event = {
	id = mtg_britain.21
	title = mtg_britain.21.t
	desc = mtg_britain.18.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.18.a
		effect_tooltip = {
			swap_ideas = {
				remove_idea = ENG_guided_by_britain_RAJ_1
				add_idea = ENG_guided_by_britain_RAJ_2
			}
			if = {
				limit = {
					tag = RAJ
					NOT = { is_subject = no }
					NOT = { has_autonomy_state = autonomy_dominion }
					has_dlc = "Together for Victory"
				}
				set_autonomy = { target = RAJ autonomy_state = autonomy_dominion }
			}	
			if = {
				limit = {
					tag = PAK
					NOT = { is_subject = no }
					NOT = { has_autonomy_state = autonomy_dominion }
					has_dlc = "Together for Victory"
				}
				set_autonomy = { target = RAJ autonomy_state = autonomy_dominion }
			}
			if = {
				limit = {
					tag = BAN
					NOT = { is_subject = no }
					NOT = { has_autonomy_state = autonomy_dominion }
					has_dlc = "Together for Victory"
				}
				set_autonomy = { target = RAJ autonomy_state = autonomy_dominion }
			}
			if = {
				limit = {
					NOT = { has_dlc = "Graveyard of Empires" }
				}
				retire_country_leader = yes
			}
		}
		if = {
			limit = {
				has_dlc = "Graveyard of Empires"
			}

			if = {
				limit = {
					has_country_leader = {
						character = RAJ_lord_linlithgow
					}

					has_country_leader_with_trait = aloof_authority
				}

				remove_country_leader_trait = {
					 trait = aloof_authority 
				}
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = RAJ_freeman_freeman_thomas
					}

					has_country_leader_with_trait = staunch_imperialist
				}
				remove_country_leader_trait = {
					trait = staunch_imperialist 
				}

			}
		}	
	}
}

# Motion of No Confidence event
country_event = {
	id = mtg_britain.22
	title = mtg_britain.22.t
	desc = mtg_britain.22.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.22.a
		retire_country_leader = yes
		create_country_leader = {
			name = "Winston Churchill"
			desc = "POLITICS_WINSTON_CHURCHILL_DESC"
			picture = GFX_portrait_Winston_Churchill
			expire = "1965.1.1"
			ideology = conservatism
			traits = {
				british_bulldog
			}
		}
	}

	# Hold on, we should call for an election
	option = {
		name = mtg_britain.22.b
		country_event = {
			id = ukrework.1
			days = 7
		}
		custom_effect_tooltip = generic_skip_one_line_tt
		custom_effect_tooltip = ENG_labour_will_win_warning_tt
	}
}

# Isolate the Mediterranean Threat event
country_event = {
	id = mtg_britain.23
	title = mtg_britain.23.t
	desc = mtg_britain.23.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# We will drop the Italians
	option = {
		name = mtg_britain.23.a
		if = {
			limit = {
				ITA = { is_in_faction_with = GER }
				ITA = { has_war = no }
				has_war = no
			}
			GER = { remove_from_faction = ITA }
		}
		FROM = { country_event = { id = mtg_britain.24 hours = 6 } }
		ITA = { country_event = { id = mtg_britain.25 hours = 6 } }
		hidden_effect = {
			GER = {
				add_ai_strategy = {
					type = befriend
					id = ITA
					value = -200
				}
				add_ai_strategy = {
					type = protect
					id = ITA
					value = -200
				}
				add_ai_strategy = {
					type = send_volunteers_desire
					id = ITA
					value = -200
				}
				add_ai_strategy = {
					type = support
					id = ITA
					value = -200
				}
				add_ai_strategy = {
					type = alliance
					id = ITA
					value = -200
				}
			}
			set_country_flag = ENG_ditched_the_italians_flag
			ITA = { set_country_flag = ENG_ditched_by_the_germans_flag }
		}
	}

	# We will stick by the Italians
	option = {
		name = mtg_britain.23.b
		ai_chance = {
			factor = 0
		}
		FROM = { country_event = { id = mtg_britain.26 hours = 6 } }
	}
}

# Isolate the Mediterranean Threat notification event for Britain - Germany accepts
country_event = {
	id = mtg_britain.24
	title = mtg_britain.24.t
	desc = mtg_britain.24.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.24.a
		hidden_effect = { news_event = { id = mtg_news.20 days = 1 } }
	}
}

# Isolate the Mediterranean Threat notification event for Italy - Germany dumps them
country_event = {
	id = mtg_britain.25
	title = mtg_britain.25.t
	desc = mtg_britain.25.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.25.a
		hidden_effect = {
			add_ai_strategy = {
				type = befriend
				id = GER
				value = -200
			}
			add_ai_strategy = {
				type = protect
				id = GER
				value = -200
			}
			add_ai_strategy = {
				type = send_volunteers_desire
				id = GER
				value = -200
			}
			add_ai_strategy = {
				type = support
				id = GER
				value = -200
			}
			add_ai_strategy = {
				type = alliance
				id = GER
				value = -200
			}
			add_ai_strategy = {
				type = antagonize
				id = GER
				value = 200
			}
		}
	}
}

# Isolate the Mediterranean Threat notification event for Britain - Germany rejects
country_event = {
	id = mtg_britain.26
	title = mtg_britain.26.t
	desc = mtg_britain.26.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.26.a
		set_country_flag = ENG_germany_rejected_isolate_the_italian_threat
	}
}

# Alliance with Germany event
country_event = {
	id = mtg_britain.27
	title = mtg_britain.27.t
	desc = mtg_britain.27.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.27.a
		effect_tooltip = {
			add_to_faction = FROM
		}
		if = {
			limit = {
				NOT = { is_in_faction = yes }
			}
			create_faction = GER_central_powers_faction
		}
		FROM = { country_event = { id = mtg_britain.28 hours = 6 } }
	}
	# Reject
	option = {
		name = mtg_britain.27.b
		ai_chance = {
			factor = 0
		}
		FROM = { country_event = { id = mtg_britain.29 hours = 6 } }
	}
}

# Alliance with Germany notification event - Germany accepts
country_event = {
	id = mtg_britain.28
	title = mtg_britain.28.t
	desc = mtg_britain.28.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = excellent
		FROM = { 
			add_to_faction = ROOT
			hidden_effect = {
				add_ai_strategy = {
					type = alliance
					id = ROOT
					value = 200
				}
				add_ai_strategy = {
					type = befriend
					id = ROOT
					value = 200
				}
				add_ai_strategy = {
					type = antagonize
					id = ROOT
					value = -200
				}
			}
		}
		hidden_effect = {
			add_ai_strategy = {
				type = alliance
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = befriend
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = antagonize
				id = FROM
				value = -200
			}
			news_event = { id = mtg_news.21 days = 1 }
		}
	}
}

# Alliance with Germany notification event - Germany rejects
country_event = {
	id = mtg_britain.29
	title = mtg_britain.29.t
	desc = mtg_britain.29.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = unfortunate
	}
}

# Non-Interference Treaty with Germany event
country_event = {
	id = mtg_britain.30
	title = mtg_britain.30.t
	desc = mtg_britain.30.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.30.a
		GER = {
			add_opinion_modifier = { target = ENG modifier = ENG_non_interference_treaty }
			reverse_add_opinion_modifier = { target = ENG modifier = ENG_non_interference_treaty }
		}
		effect_tooltip = {
			diplomatic_relation = {
			    country = ENG
			    relation = non_aggression_pact
			    active = yes
			}
		}
		FROM = { country_event = { id = mtg_britain.31 hours = 6 } }
	}

	# Reject
	option = {
		name = mtg_britain.30.b
		ai_chance = {
			factor = 0
		}
		FROM = { country_event = { id = mtg_britain.32 hours = 6 } }
	}
}

# Non-Interference Treaty with Germany notification event - Germany accepts
country_event = {
	id = mtg_britain.31
	title = mtg_britain.31.t
	desc = mtg_britain.31.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = excellent
		diplomatic_relation = {
		    country = GER
		    relation = non_aggression_pact
		    active = yes
		}
		hidden_effect = {
			FROM = {
				add_ai_strategy = {
					type = antagonize
					id = ROOT
					value = -200
				}
			}
			add_ai_strategy = {
				type = antagonize
				id = FROM
				value = -200
			}
			news_event = { id = mtg_news.22 days = 1 }
		}
	}
}

# Non-Interference Treaty with Germany notification event - Germany rejects
country_event = {
	id = mtg_britain.32
	title = mtg_britain.32.t
	desc = mtg_britain.32.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = unfortunate
	}
}

# Organize the Blackshirts civil war event
country_event = {
	id = mtg_britain.33
	title = mtg_britain.33.t
	desc = mtg_britain.33.d
	picture = GFX_report_event_ger_civil_war

	fire_only_once = yes

	trigger = {
		tag = ENG
		has_completed_focus = ENG_organize_the_blackshirts
		NOT = { has_government = fascism }
		has_stability < 0.5
	}
	
	mean_time_to_happen = {
		days = 2
	}

	immediate = {
		hidden_effect = {
			was_raj_a_subject = yes  
			add_stability = 30
			every_state = {
				limit = {
					is_owned_by = ENG
					NOT = { has_state_flag = ENG_has_blackshirt_support }
				}
				set_state_flag = ENG_has_no_blackshirt_support
			}
			random_owned_state = {
				limit = {
					has_state_flag = ENG_has_blackshirt_support
				}
				ENG = { set_capital = { state = PREV } }
			}
			start_civil_war = {
				ruling_party = fascism
				ideology = democratic
				size = 0.5
				states = all
				states_filter = {
					has_state_flag = ENG_has_no_blackshirt_support
				}
			}
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.51
			}
			add_popularity = {
				ideology = communism
				popularity = 0.05
			}
			add_popularity = {
				ideology = democratic
				popularity = 0.15
			}
			random_other_country = {
				limit = {
					original_tag = ENG
					has_government = democratic
				}
				save_event_target_as = democratic_uk_civil_war
				every_unit_leader = {
					limit = {
						OR = {
							has_id = 999
						}
					}
					set_nationality = ENG
				}
				ENG = {
					transfer_navy = { target = PREV }
					hidden_effect = {
						every_unit_leader = {
							limit = {
								OR = {
									has_id = 983
									has_id = 984
									has_id = 985
									has_id = 986
									has_id = 987
									has_id = 988
									has_id = 989
									has_id = 990
									has_id = 991
									has_id = 992
								}
							}
							set_nationality = event_target:democratic_uk_civil_war
						}
					}
				}
			}
			event_target:democratic_uk_civil_war = {
				if = {
					limit = {
						has_full_control_of_state = 126
					}
					set_capital = { state = 126 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 132
					}
					set_capital = { state = 132 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 128
					}
					set_capital = { state = 128 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 127
					}
					set_capital = { state = 127 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 132
					}
					set_capital = { state = 132 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 130
					}
					set_capital = { state = 130 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 121
					}
					set_capital = { state = 121 }
				}
				else_if = {
					limit = {
						has_full_control_of_state = 133
					}
					set_capital = { state = 133 }
				}
				else = {
					random_owned_state = {
						limit = {
							is_on_continent = europe
						}
						event_target:democratic_uk_civil_war = { set_capital = { state = PREV } }
					}
				}
			}
			event_target:democratic_uk_civil_war = {
				division_template = {
					name = "Loyalist Brigade"
					priority = 1
					division_names_group = ENG_DEM_01
					is_locked = yes
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
					}
				}
				every_owned_state = {
					limit = {
						is_on_continent = europe
					}
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0 start_equipment_factor = 1"
						owner = PREV
					}
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0 start_equipment_factor = 1"
						owner = PREV
					}
				}
			}
		}
	}
	
	# Ok
	option = {
		name = mtg_britain.33.a
		custom_effect_tooltip = ENG_democratic_civil_war_tt
		hidden_effect = {
			if = {
				limit = {
					NOT = { 
						has_dlc = "Graveyard of Empires"
					}
				}
				RAJ = { retire_country_leader = yes }
			}
		}
		hidden_effect = { news_event = { id = mtg_news.41 days = 1 } }
		division_template = {
			name = "Blackshirt Brigade"
			priority = 1
			division_names_group = ENG_FAS_01
			is_locked = yes
			regiments = {
				infantry = { x = 0 y = 0 }
				infantry = { x = 0 y = 1 }
				infantry = { x = 0 y = 2 }
			}
		}
		every_owned_state = {
			limit = {
				is_on_continent = europe
			}
			create_unit = {
				division = "division_template = \"Blackshirt Brigade\" start_experience_factor = 0 start_equipment_factor = 1"
				owner = ROOT
			}
			create_unit = {
				division = "division_template = \"Blackshirt Brigade\" start_experience_factor = 0 start_equipment_factor = 1"
				owner = ROOT
			}
		}
	}
}

# End of British Fascist Civil War event
country_event = {
	id = mtg_britain.34
	title = mtg_britain.34.t
	desc = mtg_britain.34.d
	picture = GFX_report_event_fascist_speech

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.34.a
		add_ideas = ENG_george_vi
		hidden_effect = {
			if = {	
				limit = {
					has_dlc = "Graveyard of Empires"
				}
				RAJ = {
					country_event = {
						id = GOE_RAJ.30
						hours = 2
					}
				}
				raj_was_a_subject_reset_party_ideology_after_independence = yes #Resets the status of the political parties 
			}
			else = {
				RAJ = {
					leave_faction = yes
					drop_cosmetic_tag = yes
					retire_country_leader = yes
				}
			}
			
			MAL = {
				drop_cosmetic_tag = yes
				retire_country_leader = yes
			}
			CAN = {
				if = {
					limit = {
						has_completed_focus = CAN_strengthen_the_commonwealth_ties
					}
					set_faction_name = "ENG_commonwealth_of_nations"
					every_other_country = {
						limit = {
							NOT = { tag = SAF }
							NOT = { tag = AST }
							NOT = { tag = NZL }
						}
						CAN = {
							add_ai_strategy = {
								type = alliance
								id = PREV
								value = -200
							}
						}
					}
				}
			}
		}
		custom_effect_tooltip = mtg_britain.34_tt
		hidden_effect = { news_event = { id = mtg_news.42 days = 1 } }
		delete_unit_template_and_units = { division_template = "Blackshirt Brigade" }
	}
}

# March on Downing Street event
country_event = {
	id = mtg_britain.35
	title = mtg_britain.35.t
	desc = mtg_britain.35.d
	picture = GFX_report_event_eng_mosley_march_on_downing_street

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.35.a
		set_politics = { ruling_party = fascism elections_allowed = no }
		add_timed_idea = { idea = ENG_restoring_public_order days = 365 }
	}
}

# Secure the Italian Alliance event for Italy
country_event = {
	id = mtg_britain.36
	title = mtg_britain.36.t
	desc = mtg_britain.36.d
	picture = GFX_report_event_eng_mosley_mussolini

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.36.a

		ai_chance = {
			base = 0
			modifier = {
				add = 1
				OR = {
					ITA_is_historical_ai = yes #Historical ITA has 50%-50% chances of accepting
					ITA_is_alt_fascist_balbo_ai = yes
					ITA_is_alt_fascist_grandi_ai = yes
					ITA_is_monarchist_ai = yes
				}
			}
		}

		FROM = {
			if = {
				limit = {
					is_in_faction = no
				}
				create_faction = anglo_italian_pact
			}
			add_to_faction = ROOT
			country_event = { id = mtg_britain.37 hours = 6 }
			hidden_effect = {
				add_ai_strategy = {
					type = alliance
					id = ROOT
					value = 200
				}
				add_ai_strategy = {
					type = befriend
					id = ROOT
					value = 200
				}
				add_ai_strategy = {
					type = antagonize
					id = ROOT
					value = -200
				}
			}
		}
		#Italian subjects join the faction
		every_subject_country = {
			FROM = {
				add_to_faction = PREV
			}
		}
		hidden_effect = {
			add_ai_strategy = {
				type = alliance
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = befriend
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = antagonize
				id = FROM
				value = -200
			}
		}
	}

	# Reject
	option = {
		name = mtg_britain.36.b

		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				OR = {
					ITA_is_alt_fascist_balbo_ai = yes
					ITA_is_alt_fascist_grandi_ai = yes
					ITA_is_monarchist_ai = yes
				}
			}
		}

		FROM = { country_event = { id = mtg_britain.38 hours = 6 } }
	}
}

# Secure the Italian Alliance acceptance event for Britain
country_event = {
	id = mtg_britain.37
	title = mtg_britain.37.t
	desc = mtg_britain.37.d
	picture = GFX_report_event_eng_mosley_mussolini

	is_triggered_only = yes
	
	# Ok
	option = {
		name = excellent
		FRA = { country_event = { id = mtg_britain.39 hours = 6 } }
		effect_tooltip = {
			add_to_faction = FROM
		}
		hidden_effect = { news_event = { id = mtg_news.24 days = 1 } }
	}
}

# Secure the Italian Alliance rejection event for Britain
country_event = {
	id = mtg_britain.38
	title = mtg_britain.38.t
	desc = mtg_britain.38.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = unfortunate
	}
}

# Secure the Italian Alliance event telling France they're out
country_event = {
	id = mtg_britain.39
	title = mtg_britain.39.t
	desc = mtg_britain.39.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.39.a
		effect_tooltip = { ENG = { remove_from_faction = ROOT } }
	}
}

# Gibraltar for Spanish Support event for Spain
country_event = {
	id = mtg_britain.40
	title = mtg_britain.40.t
	desc = mtg_britain.40.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.40.a
		transfer_state = 118
		FROM = {
			add_to_faction = ROOT
			country_event = { id = mtg_britain.36 hours = 6 }
			hidden_effect = {
				add_ai_strategy = {
					type = alliance
					id = ROOT
					value = 200
				}
				add_ai_strategy = {
					type = befriend
					id = ROOT
					value = 200
				}
				add_ai_strategy = {
					type = antagonize
					id = ROOT
					value = -200
				}
			}
		}
		hidden_effect = {
			add_ai_strategy = {
				type = alliance
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = befriend
				id = FROM
				value = 200
			}
			add_ai_strategy = {
				type = antagonize
				id = FROM
				value = -200
			}
		}
	}

	# Reject
	option = {
		name = mtg_britain.40.b
		ai_chance = {
			factor = 0
		}
		FROM = { country_event = { id = mtg_britain.37 hours = 6 } }
	}
}

# Gibraltar for Spanish Support acceptance event for Britain
country_event = {
	id = mtg_britain.41
	title = mtg_britain.41.t
	desc = mtg_britain.41.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = excellent
		effect_tooltip = {
			FROM = { transfer_state = 118 }
			add_to_faction = FROM
		}
		hidden_effect = { news_event = { id = mtg_news.25 days = 1 } }
	}
}

# Gibraltar for Spanish Support rejection event for Britain
country_event = {
	id = mtg_britain.42
	title = mtg_britain.42.t
	desc = mtg_britain.42.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = unfortunate
	}
}

# The Fate of the Royal Family event
country_event = {
	id = mtg_britain.43
	title = mtg_britain.43.t
	desc = mtg_britain.43.d
	picture = GFX_report_event_eng_royal_family

	is_triggered_only = yes
	
	# Banish them to Canada
	option = {
		name = mtg_britain.43.a
		ai_chance = {
			factor = 75
		}
		trigger = {
			CAN = {
				NOT = {
					has_government = communism
				}
			}
		}
		add_timed_idea = { idea = ENG_confiscated_royal_wealth days = 365 }
		remove_ideas = ENG_george_vi
		CAN = {
			country_event = { id = mtg_britain.44 }
			effect_tooltip = {
				add_ideas = ENG_exiled_royal_family
			}
		}
		set_country_flag = ENG_monarchy_exiled_to_canada_flag
	}

	# Execute them all
	option = {
		name = mtg_britain.43.b
		ai_chance = {
			factor = 25
		}
		add_timed_idea = { idea = ENG_confiscated_royal_wealth days = 365 }
		add_stability = -0.1
		remove_ideas = ENG_george_vi
		hidden_effect = { news_event = { id = mtg_news.35 days = 1 } }
		set_country_flag = ENG_monarchy_executed_flag
	}
}

# The Fate of the Royal Family event - notification event for exiled Royal Family for Canada
country_event = {
	id = mtg_britain.44
	title = mtg_britain.44.t
	desc = mtg_britain.44.d
	picture = GFX_report_event_eng_royal_family

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.44.a
		add_ideas = ENG_exiled_royal_family
		hidden_effect = { news_event = { id = mtg_news.34 days = 1 } }
		set_cosmetic_tag = CAN_MONARCHIST
	}
}

# Eliminate the Upper Class event
country_event = {
	id = mtg_britain.45
	title = mtg_britain.45.t
	desc = mtg_britain.45.d
	picture = GFX_report_event_journalists_speech

	is_triggered_only = yes
	
	# Get rid of them all
	option = {
		name = mtg_britain.45.a
		
		retire_character = ENG_alan_brooke
		retire_character = ENG_bernard_montgomery
		retire_character = ENG_harold_alexander
		retire_character = ENG_john_vereker
		retire_character = ENG_oliver_leese
		retire_character = ENG_archibald_wavell
		retire_character = ENG_james_fownes_somerville
		retire_character = ENG_henry_harwood
		retire_character = ENG_john_tovey
		retire_character = ENG_bernard_rawlings

		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
				is_core_of = ROOT
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
			set_state_flag = ENG_upper_classes_2IC
		}
		random_owned_controlled_state = {
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 1
					include_locked = yes
				}
				is_core_of = ROOT
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
			set_state_flag = ENG_upper_classes_2IC
		}
		random_owned_controlled_state = {
			limit = {
				is_in_home_area = yes
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
			set_state_flag = ENG_upper_classes_2AF
		}
		random_owned_controlled_state = {
			limit = {
				is_in_home_area = yes
				free_building_slots = {
					building = arms_factory
					size > 1
					include_locked = yes
				}
			}
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = arms_factory
				level = 2
				instant_build = yes
			}
			set_state_flag = ENG_upper_classes_2AF
		}
	}
}

# Enforce Decolonization event - release or else!!!!
country_event = {
	id = mtg_britain.46
	title = mtg_britain.46.t
	desc = mtg_britain.46.d
	picture = GFX_report_event_communist_leader

	is_triggered_only = yes
	
	# Accept - We will release
	option = {
		name = mtg_britain.46.a
		ai_chance = {
			factor = 34
			modifier = {
				factor = 1.5
				strength_ratio = {
					tag = ENG
					ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio < 0.3
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio < 0.2
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio < 0.1
				}
			}
			modifier = {
				factor = 0
				strength_ratio = {
					tag = ENG
					ratio > 1.6
				}
			}
		}
		if = {
			limit = {
				NOT = { original_tag = PUE }
				owns_state = 686
				has_full_control_of_state = 686
			}
			release = PUE
		}
		if = {
			limit = {
				PUE = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = PUE autonomy_state = autonomy_free }
			PUE = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = "PAN" }
				owns_state = 685
				has_full_control_of_state = 685
			}
			"PAN" = { transfer_state = 685 }
		}
		if = {
			limit = {
				"PHI" = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = PHI autonomy_state = autonomy_free }
			"PHI" = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CRC }
				owns_state = 695
				has_full_control_of_state = 695
			}
			release = CRC
		}
		if = {
			limit = {
				CRC = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CRC autonomy_state = autonomy_free }
			CRC = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = SUR }
				owns_state = 309
				has_full_control_of_state = 309
			}
			release = SUR
		}
		if = {
			limit = {
				SUR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = SUR autonomy_state = autonomy_free }
			SUR = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = SUR }
				owns_state = 309
				has_full_control_of_state = 309
			}
			release = SUR
		}
		if = {
			limit = {
				INS = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = INS autonomy_state = autonomy_free }
			INS = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = INS }
				owns_state = 335
				has_full_control_of_state = 335
				owns_state = 672
				has_full_control_of_state = 672
				owns_state = 334
				has_full_control_of_state = 334
				owns_state = 673
				has_full_control_of_state = 673
				owns_state = 667
				has_full_control_of_state = 667
				owns_state = 309
				has_full_control_of_state = 309
				owns_state = 668
				has_full_control_of_state = 668
				owns_state = 738
				has_full_control_of_state = 738
				owns_state = 669
				has_full_control_of_state = 669
			}
			release = INS
		}
		if = {
			limit = {
				NOT = { original_tag = COG }
				owns_state = 295
				has_full_control_of_state = 295
				owns_state = 538
				has_full_control_of_state = 538
				owns_state = 718
				has_full_control_of_state = 718
				owns_state = 888
				has_full_control_of_state = 888
				owns_state = 889
				has_full_control_of_state = 889
				owns_state = 890
				has_full_control_of_state = 890
			}
			release = COG
		}
		if = {
			limit = {
				COG = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = COG autonomy_state = autonomy_free }
			COG = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = RWA }
				owns_state = 768
				has_full_control_of_state = 768
			}
			release = RWA
		}
		if = {
			limit = {
				RWA = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = RWA autonomy_state = autonomy_free }
			RWA = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = BRD }
				owns_state = 769
				has_full_control_of_state = 769
			}
			release = BRD
		}
		if = {
			limit = {
				BRD = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = BRD autonomy_state = autonomy_free }
			BRD = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = GDL }
				owns_state = 694
				has_full_control_of_state = 694
			}
			release = GDL
		}
		if = {
			limit = {
				GDL = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = GDL autonomy_state = autonomy_free }
			GDL = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CAY }
				owns_state = 310
				has_full_control_of_state = 310
			}
			release = CAY
		}
		if = {
			limit = {
				CAY = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CAY autonomy_state = autonomy_free }
			CAY = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = SYR }
				owns_state = 677
				has_full_control_of_state = 677
				owns_state = 680
				has_full_control_of_state = 680
				owns_state = 554
				has_full_control_of_state = 554
			}
			release = SYR
		}
		if = {
			limit = {
				SYR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = SYR autonomy_state = autonomy_free }
			SYR = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = LEB }
				owns_state = 553
				has_full_control_of_state = 553
			}
			release = LEB
		}
		if = {
			limit = {
				LEB = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = LEB autonomy_state = autonomy_free }
			LEB = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = MAD }
				owns_state = 543
				has_full_control_of_state = 543
			}
			release = MAD
		}
		if = {
			limit = {
				MAD = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = MAD autonomy_state = autonomy_free }
			MAD = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = MOR }
				owns_state = 461
				has_full_control_of_state = 461
				owns_state = 462
				has_full_control_of_state = 462
			}
			release = MOR
		}
		if = {
			limit = {
				MOR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = MOR autonomy_state = autonomy_free }
			MOR = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = ALG }
				owns_state = 459
				has_full_control_of_state = 459
				owns_state = 513
				has_full_control_of_state = 513
				owns_state = 460
				has_full_control_of_state = 460
				owns_state = 514
				has_full_control_of_state = 514
			}
			release = ALG
		}
		if = {
			limit = {
				ALG = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = ALG autonomy_state = autonomy_free }
			ALG = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = TUN }
				owns_state = 458
				has_full_control_of_state = 458
				owns_state = 665
				has_full_control_of_state = 665
			}
			release = TUN
		}
		if = {
			limit = {
				TUN = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = TUN autonomy_state = autonomy_free }
			TUN = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = DJI }
				owns_state = 268
				has_full_control_of_state = 268
			}
			release = DJI
		}
		if = {
			limit = {
				DJI = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = DJI autonomy_state = autonomy_free }
			DJI = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = RCG }
				owns_state = 772
				has_full_control_of_state = 772
			}
			release = RCG
		}
		if = {
			limit = {
				RCG = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = RCG autonomy_state = autonomy_free }
			RCG = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = GAB }
				owns_state = 539
				has_full_control_of_state = 539
			}
			release = GAB
		}
		if = {
			limit = {
				GAB = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = GAB autonomy_state = autonomy_free }
			GAB = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CMR }
				owns_state = 773
				has_full_control_of_state = 773
			}
			release = CMR
		}
		if = {
			limit = {
				CMR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CMR autonomy_state = autonomy_free }
			CMR = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CAR }
				owns_state = 660
				has_full_control_of_state = 660
			}
			release = CAR
		}
		if = {
			limit = {
				CAR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CAR autonomy_state = autonomy_free }
			CAR = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CHA }
				owns_state = 774
				has_full_control_of_state = 774
				owns_state = 775
				has_full_control_of_state = 775
			}
			release = CHA
		}
		if = {
			limit = {
				CHA = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CHA autonomy_state = autonomy_free }
			CHA = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = NGR }
				owns_state = 515
				has_full_control_of_state = 515
				owns_state = 781
				has_full_control_of_state = 781
			}
			release = NGR
		}
		if = {
			limit = {
				NGR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = NGR autonomy_state = autonomy_free }
			NGR = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = DAH }
				owns_state = 776
				has_full_control_of_state = 776
			}
			release = DAH
		}
		if = {
			limit = {
				DAH = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = DAH autonomy_state = autonomy_free }
			DAH = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = TOG }
				owns_state = 777
				has_full_control_of_state = 777
			}
			release = TOG
		}
		if = {
			limit = {
				TOG = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = TOG autonomy_state = autonomy_free }
			TOG = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = VOL }
				owns_state = 778
				has_full_control_of_state = 778
			}
			release = VOL
		}
		if = {
			limit = {
				VOL = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = VOL autonomy_state = autonomy_free }
			VOL = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = IVO }
				owns_state = 779
				has_full_control_of_state = 779
			}
			release = IVO
		}
		if = {
			limit = {
				IVO = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = IVO autonomy_state = autonomy_free }
			IVO = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = MLI }
				owns_state = 556
				has_full_control_of_state = 556
				owns_state = 782
				has_full_control_of_state = 782
			}
			release = MLI
		}
		if = {
			limit = {
				MLI = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = MLI autonomy_state = autonomy_free }
			MLI = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = SEN }
				owns_state = 272
				has_full_control_of_state = 272
			}
			release = SEN
		}
		if = {
			limit = {
				SEN = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = SEN autonomy_state = autonomy_free }
			SEN = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CAY }
				owns_state = 310
				has_full_control_of_state = 310
			}
			release = CAY
		}
		if = {
			limit = {
				CAY = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CAY autonomy_state = autonomy_free }
			CAY = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = GNA }
				owns_state = 780
				has_full_control_of_state = 780
			}
			release = GNA
		}
		if = {
			limit = {
				GNA = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = GNA autonomy_state = autonomy_free }
			GNA = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = LAO }
				owns_state = 670
				has_full_control_of_state = 670
			}
			release = LAO
		}
		if = {
			limit = {
				LAO = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = LAO autonomy_state = autonomy_free }
			LAO = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = CAM }
				owns_state = 741
				has_full_control_of_state = 741
			}
			release = CAM
		}
		if = {
			limit = {
				CAM = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = CAM autonomy_state = autonomy_free }
			CAM = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = VIN }
				owns_state = 671
				has_full_control_of_state = 671
				owns_state = 286
				has_full_control_of_state = 286
			}
			release = VIN
		}
		if = {
			limit = {
				VIN = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = VIN autonomy_state = autonomy_free }
			VIN = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = event_target:WTT_current_china_leader }
				owns_state = 728
				has_full_control_of_state = 728
			}
			event_target:WTT_current_china_leader = { transfer_state = 728 }
		}
		if = {
			limit = {
				NOT = { original_tag = ANG }
				owns_state = 540
				has_full_control_of_state = 540
				owns_state = 891
				has_full_control_of_state = 891
				owns_state = 892
				has_full_control_of_state = 892
			}
			release = ANG
		}
		if = {
			limit = {
				ANG = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = ANG autonomy_state = autonomy_free }
			ANG = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = GNB }
				owns_state = 296
				has_full_control_of_state = 296
			}
			release = GNB
		}
		if = {
			limit = {
				GNB = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = GNB autonomy_state = autonomy_free }
			GNB = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = MZB }
				owns_state = 544
				has_full_control_of_state = 544
				owns_state = 896
				has_full_control_of_state = 896
				owns_state = 897
				has_full_control_of_state = 897
			}
			release = MZB
		}
		if = {
			limit = {
				MZB = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = MZB autonomy_state = autonomy_free }
			MZB = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = event_target:WTT_current_china_leader }
				owns_state = 729
				has_full_control_of_state = 729
			}
			event_target:WTT_current_china_leader = { transfer_state = 729 }
		}
		if = {
			limit = {
				NOT = { original_tag = INS }
				owns_state = 721
				has_full_control_of_state = 721
			}
			INS = { transfer_state = 721 }
		}
		if = {
			limit = {
				NOT = { original_tag = EQG }
				owns_state = 297
				has_full_control_of_state = 297
			}
			release = EQG
		}
		if = {
			limit = {
				EQG = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = EQG autonomy_state = autonomy_free }
			EQG = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = WES }
				owns_state = 699
				has_full_control_of_state = 699
			}
			release = WES
		}
		if = {
			limit = {
				WES = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = WES autonomy_state = autonomy_free }
			WES = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = MOR }
				owns_state = 290
				has_full_control_of_state = 290
			}
			MOR = { transfer_state = 290 }
		}
		if = {
			limit = {
				NOT = { original_tag = MOR }
				owns_state = 783
				has_full_control_of_state = 783
			}
			MOR = { transfer_state = 783 }
		}
		if = {
			limit = {
				NOT = { original_tag = LBA }
				owns_state = 448
				has_full_control_of_state = 448
				owns_state = 661
				has_full_control_of_state = 661
				owns_state = 449
				has_full_control_of_state = 449
				owns_state = 662
				has_full_control_of_state = 662
				owns_state = 450
				has_full_control_of_state = 450
				owns_state = 451
				has_full_control_of_state = 451
				owns_state = 663
				has_full_control_of_state = 663
				owns_state = 273
				has_full_control_of_state = 273
			}
			release = LBA
		}
		if = {
			limit = {
				LBA = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = LBA autonomy_state = autonomy_free }
			LBA = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = ERI }
				owns_state = 550
				has_full_control_of_state = 550
			}
			release = ERI
		}
		if = {
			limit = {
				ERI = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = ERI autonomy_state = autonomy_free }
			ERI = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = SOM }
				owns_state = 559
				has_full_control_of_state = 559
			}
			release = SOM
		}
		if = {
			limit = {
				SOM = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = SOM autonomy_state = autonomy_free }
			SOM = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = ETH }
				owns_state = 271
				has_full_control_of_state = 271
			}
			release = ETH
		}
		if = {
			limit = {
				ETH = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = ETH autonomy_state = autonomy_free }
			ETH = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = KOR }
				owns_state = 527
				has_full_control_of_state = 527
				owns_state = 525
				has_full_control_of_state = 525
			}
			release = KOR
		}
		if = {
			limit = {
				KOR = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = KOR autonomy_state = autonomy_free }
			KOR = { leave_faction = yes }
		}
		if = {
			limit = {
				MAN = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = MAN autonomy_state = autonomy_free }
			MAN = { leave_faction = yes }
		}
		if = {
			limit = {
				MEN = {
					is_subject_of = ROOT
				}
			}
			set_autonomy = { target = MEN autonomy_state = autonomy_free }
			MEN = { leave_faction = yes }
		}
		if = {
			limit = {
				NOT = { original_tag = event_target:WTT_current_china_leader }
				owns_state = 609
				has_full_control_of_state = 609
			}
			event_target:WTT_current_china_leader = { transfer_state = 609 }
		}
		if = {
			limit = {
				NOT = { original_tag = event_target:WTT_current_china_leader }
				owns_state = 745
				has_full_control_of_state = 745
			}
			event_target:WTT_current_china_leader = { transfer_state = 745 }
		}
		if = {
			limit = {
				NOT = { original_tag = event_target:WTT_current_china_leader }
				owns_state = 524
				has_full_control_of_state = 524
			}
			event_target:WTT_current_china_leader = { transfer_state = 524 }
		}
		FROM = { country_event = { id = mtg_britain.47 hours = 6 } }
	}

	# Reject - We will NOT release
	option = {
		name = mtg_britain.46.b
		ai_chance = {
			factor = 66
			modifier = {
				factor = 1.5
				strength_ratio = {
					tag = ENG
					ratio > 0.7
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 0.85
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 1.2
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 1.4
				}
			}
		}
		FROM = { country_event = { id = mtg_britain.48 hours = 6 } }
		effect_tooltip = {
			FROM = { 
				create_wargoal = {
					type = puppet_wargoal_focus
					target = ROOT
				}
			}
		}
	}
}

# Enforce Decolonization event - FROM has released
country_event = {
	id = mtg_britain.47
	title = mtg_britain.47.t
	desc = mtg_britain.47.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.47.a
	}
}

# Enforce Decolonization event - FROM has refused to release!
country_event = {
	id = mtg_britain.48
	title = mtg_britain.48.t
	desc = mtg_britain.48.d
	picture = GFX_report_event_british_inspect_troops

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.48.a
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
	}
}

# Soviet Cooperation - event for SOV - Wanna gang up on GER?
country_event = {
	id = mtg_britain.49
	title = mtg_britain.49.t
	desc = mtg_britain.49.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Sounds great!
	option = {
		name = mtg_britain.49.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_war = yes
				surrender_progress > 0.01
			}
		}
		FROM = { country_event = { id = mtg_britain.50 hours = 6 } }
		effect_tooltip = {
			FROM = {
				create_wargoal = {
					type = puppet_wargoal_focus
					target = GER
				}
			}
			create_wargoal = {
				type = puppet_wargoal_focus
				target = GER
			}
		}
	}

	# Nah ty
	option = {
		name = mtg_britain.49.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_war = no
			}
		}
		FROM = { country_event = { id = mtg_britain.51 hours = 6 } }
	}
}

# Soviet Cooperation - event for ENG - SOV accepted
country_event = {
	id = mtg_britain.50
	title = mtg_britain.50.t
	desc = mtg_britain.50.d
	picture = GFX_report_event_generic_handshake

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.50.a
		create_wargoal = {
			type = puppet_wargoal_focus
			target = GER
		}
		FROM = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = GER
			}
		}
	}
}

# Soviet Cooperation - event for ENG - SOV rejected
country_event = {
	id = mtg_britain.51
	title = mtg_britain.51.t
	desc = mtg_britain.51.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.51.a
		create_wargoal = {
			type = puppet_wargoal_focus
			target = GER
		}
	}
}

# Follow Moscow - event for SOV - Wanna have ENG in your faction?
country_event = {
	id = mtg_britain.52
	title = mtg_britain.52.t
	desc = mtg_britain.52.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Sounds great!
	option = {
		name = mtg_britain.52.a
		FROM = { country_event = { id = mtg_britain.53 hours = 6 } }
		effect_tooltip = {
			add_to_faction = ENG
		}
	}

	# Nah ty
	option = {
		name = mtg_britain.52.b
		ai_chance = {
			factor = 0
		}
		FROM = { country_event = { id = mtg_britain.54 hours = 6 } }
	}
}

# Follow Moscow - event for ENG - SOV accepts
country_event = {
	id = mtg_britain.53
	title = mtg_britain.53.t
	desc = mtg_britain.53.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = excellent
		FROM = { add_to_faction = ENG }
	}
}

# Follow Moscow - event for ENG - SOV rejects
country_event = {
	id = mtg_britain.54
	title = mtg_britain.54.t
	desc = mtg_britain.54.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = unfortunate
	}
}

# Communist civil war event
country_event = {
	id = mtg_britain.55
	title = mtg_britain.55.t
	desc = mtg_britain.55.d
	picture = GFX_report_event_ger_civil_war

	# Is now fired through mission failure instead, for clarity to the player

	#trigger = {
	#	tag = ENG
	#	has_completed_focus = ENG_concessions_to_the_trade_unions
	#	NOT = { has_completed_focus = ENG_decolonization }
	#	has_government = communism
	#	has_country_flag = ENG_switched_to_communism_civil_war_flag
	#	NOT = { has_country_flag = ENG_switched_to_communism_civil_war_timer_flag }
	#}
	
	#mean_time_to_happen = {
	#	days = 2
	#}

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					has_country_leader = {
						character = ENG_harry_pollitt
						ruling_only = yes
					}
				}
				set_country_flag = harry_pollitt
			}
			if = {
				limit = {
					has_country_leader = {
						name = "Rajani Palme Dutt"
						ruling_only = yes
					}
				}
				set_country_flag = rajani_palme_dutt
			}
			set_country_flag = ENG_communist_civil_war
			set_variable = {
				var = civil_war_size_var
				value = party_popularity@communism
			}
			if = {
				limit = {
					check_variable = {
						var = civil_war_size_var
						value = 0.5
						compare = less_than
					}
				}
				set_variable = {
					var = civil_war_size_var
					value = 0.5
				}
			}
			start_civil_war = {
				ruling_party = communism
				ideology = communism
				size = civil_war_size_var
			}
			random_other_country = {
				limit = {
					original_tag = ENG
					has_government = communism
				}
				retire_country_leader = yes
				retire_country_leader = yes
				set_cosmetic_tag = ENG_communist_civil_war
				set_country_flag = ENG_communist_civil_war
				civil_war_anti_exploiter_punitive_action = yes
			}
			add_popularity = {
				ideology = communism
				popularity = 0.4
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.1
			}
			add_popularity = {
				ideology = neutrality
				popularity = 0.2
			}
			if = {
				limit = {
					has_country_flag = harry_pollitt
				}
				create_country_leader = {
					name = "Harry Pollitt"
					desc = "POLITICS_HARRY_POLLITT_DESC"
					picture = GFX_portrait_Harry_Pollitt
					expire = "1965.1.1"
					ideology = leninism
					traits = {
						staunch_stalinist
					}
				}
			}
			if = {
				limit = {
					has_country_flag = rajani_palme_dutt
				}
				create_country_leader = {
					name = "Rajani Palme Dutt"
					desc = "POLITICS_PALME_DUTT_DESC"
					picture = GFX_portrait_Rajani_Palme_Dutt
					expire = "1965.1.1"
					ideology = leninism
					traits = {
						comintern_workhorse
					}
				}
			}
		}
	}
	
	# Ok
	option = {
		name = mtg_britain.55.a
		custom_effect_tooltip = ENG_communist_civil_war_tt
		clr_country_flag = ENG_switched_to_communism_civil_war_flag
		hidden_effect = { news_event = { id = mtg_news.43 days = 1 } }
	}
}

# Communist civil war ends
country_event = {
	id = mtg_britain.56
	title = mtg_britain.56.t
	desc = mtg_britain.56.d
	picture = GFX_report_event_communists_cheer

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.56.a
		clr_country_flag = ENG_communist_civil_war
	}
}

# Blackshirt great March in [statenamehere]!
country_event = {
	id = mtg_britain.57
	title = mtg_britain.57.t
	desc = mtg_britain.57.d
	picture = GFX_report_event_eng_good_blackshirt_march

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.57.a
		add_political_power = 25
		if = {
			limit = {
				has_country_flag = ENG_march_temp_northern_ireland
			}
			add_stability = -0.041
			add_popularity = { ideology = fascism popularity = 0.027 }
			119 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_highlands
			}
			add_stability = -0.009
			add_popularity = { ideology = fascism popularity = 0.006 }
			120 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_man
			}
			add_stability = -0.009
			add_popularity = { ideology = fascism popularity = 0.006 }
			120 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_aberdeenshire
			}
			add_stability = -0.026
			add_popularity = { ideology = fascism popularity = 0.017 }
			136 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lanark
			}
			add_stability = -0.077
			add_popularity = { ideology = fascism popularity = 0.051 }
			133 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lothian
			}
			add_stability = -0.048
			add_popularity = { ideology = fascism popularity = 0.032 }
			121 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_northern_england
			}
			add_stability = -0.072
			add_popularity = { ideology = fascism popularity = 0.048 }
			131 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_cumbria
			}
			add_stability = -0.048
			add_popularity = { ideology = fascism popularity = 0.032 }
			121 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_yorkshire
			}
			add_stability = -0.157
			add_popularity = { ideology = fascism popularity = 0.101 }
			130 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lancashire
			}
			add_stability = -0.195
			add_popularity = { ideology = fascism popularity = 0.13 }
			132 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_wales
			}
			add_stability = -0.078
			add_popularity = { ideology = fascism popularity = 0.052 }
			122 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_west_midlands
			}
			add_stability = -0.125
			add_popularity = { ideology = fascism popularity = 0.083 }
			128 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_east_midlands
			}
			add_stability = -0.075
			add_popularity = { ideology = fascism popularity = 0.05 }
			129 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_east_anglia
			}
			add_stability = -0.047
			add_popularity = { ideology = fascism popularity = 0.031 }
			125 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_gloucestershire
			}
			add_stability = -0.062
			add_popularity = { ideology = fascism popularity = 0.041 }
			338 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_london
			}
			add_stability = -0.333
			add_popularity = { ideology = fascism popularity = 0.222 }
			126 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_cornwall
			}
			add_stability = -0.042
			add_popularity = { ideology = fascism popularity = 0.028 }
			123 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_sussex
			}
			add_stability = -0.108
			add_popularity = { ideology = fascism popularity = 0.072 }
			127 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		clr_country_flag = ENG_march_temp_northern_ireland
		clr_country_flag = ENG_march_temp_highlands
		clr_country_flag = ENG_march_temp_man
		clr_country_flag = ENG_march_temp_aberdeenshire
		clr_country_flag = ENG_march_temp_lanark
		clr_country_flag = ENG_march_temp_lothian
		clr_country_flag = ENG_march_temp_cumbria
		clr_country_flag = ENG_march_temp_northern_england
		clr_country_flag = ENG_march_temp_yorkshire
		clr_country_flag = ENG_march_temp_lancashire
		clr_country_flag = ENG_march_temp_wales
		clr_country_flag = ENG_march_temp_west_midlands
		clr_country_flag = ENG_march_temp_east_midlands
		clr_country_flag = ENG_march_temp_east_anglia
		clr_country_flag = ENG_march_temp_gloucestershire
		clr_country_flag = ENG_march_temp_london
		clr_country_flag = ENG_march_temp_cornwall
		clr_country_flag = ENG_march_temp_sussex
		clr_country_flag = ENG_march_timer_flag
		clr_country_flag = ENG_restrained_march_flag
	}
}

# Blackshirt normal March in [statenamehere]!
country_event = {
	id = mtg_britain.58
	title = mtg_britain.58.t
	desc = mtg_britain.58.d
	picture = GFX_report_event_eng_blackshirt_march

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.58.a
		if = {
			limit = {
				has_country_flag = ENG_march_temp_northern_ireland
			}
			add_stability = -0.054
			add_popularity = { ideology = fascism popularity = 0.027 }
			119 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_highlands
			}
			add_stability = -0.012
			add_popularity = { ideology = fascism popularity = 0.006 }
			120 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_man
			}
			add_stability = -0.012
			add_popularity = { ideology = fascism popularity = 0.006 }
			120 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_aberdeenshire
			}
			add_stability = -0.034
			add_popularity = { ideology = fascism popularity = 0.017 }
			136 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lanark
			}
			add_stability = -0.102
			add_popularity = { ideology = fascism popularity = 0.051 }
			133 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lothian
			}
			add_stability = -0.064
			add_popularity = { ideology = fascism popularity = 0.032 }
			121 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_cumbria
			}
			add_stability = -0.064
			add_popularity = { ideology = fascism popularity = 0.032 }
			121 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_northern_england
			}
			add_stability = -0.096
			add_popularity = { ideology = fascism popularity = 0.048 }
			131 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_yorkshire
			}
			add_stability = -0.202
			add_popularity = { ideology = fascism popularity = 0.101 }
			130 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lancashire
			}
			add_stability = -0.26
			add_popularity = { ideology = fascism popularity = 0.13 }
			132 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_wales
			}
			add_stability = -0.104
			add_popularity = { ideology = fascism popularity = 0.052 }
			122 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_west_midlands
			}
			add_stability = -0.166
			add_popularity = { ideology = fascism popularity = 0.083 }
			128 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_east_midlands
			}
			add_stability = -0.1
			add_popularity = { ideology = fascism popularity = 0.05 }
			129 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_east_anglia
			}
			add_stability = -0.062
			add_popularity = { ideology = fascism popularity = 0.031 }
			125 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_gloucestershire
			}
			add_stability = -0.082
			add_popularity = { ideology = fascism popularity = 0.041 }
			338 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_london
			}
			add_stability = -0.444
			add_popularity = { ideology = fascism popularity = 0.222 }
			126 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_cornwall
			}
			add_stability = -0.056
			add_popularity = { ideology = fascism popularity = 0.028 }
			123 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_sussex
			}
			add_stability = -0.144
			add_popularity = { ideology = fascism popularity = 0.072 }
			127 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		clr_country_flag = ENG_march_temp_northern_ireland
		clr_country_flag = ENG_march_temp_highlands
		clr_country_flag = ENG_march_temp_man
		clr_country_flag = ENG_march_temp_aberdeenshire
		clr_country_flag = ENG_march_temp_lanark
		clr_country_flag = ENG_march_temp_lothian
		clr_country_flag = ENG_march_temp_northern_england
		clr_country_flag = ENG_march_temp_yorkshire
		clr_country_flag = ENG_march_temp_lancashire
		clr_country_flag = ENG_march_temp_wales
		clr_country_flag = ENG_march_temp_west_midlands
		clr_country_flag = ENG_march_temp_east_midlands
		clr_country_flag = ENG_march_temp_east_anglia
		clr_country_flag = ENG_march_temp_gloucestershire
		clr_country_flag = ENG_march_temp_london
		clr_country_flag = ENG_march_temp_cornwall
		clr_country_flag = ENG_march_temp_sussex
		clr_country_flag = ENG_march_timer_flag
		clr_country_flag = ENG_restrained_march_flag
	}
}

# Blackshirt disastrous March in [statenamehere]!
country_event = {
	id = mtg_britain.59
	title = mtg_britain.59.t
	desc = mtg_britain.59.d
	picture = GFX_report_event_generic_riot

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.59.a
		if = {
			limit = {
				has_country_flag = ENG_march_temp_northern_ireland
			}
			add_stability = -0.081
			add_popularity = { ideology = fascism popularity = 0.027 }
			119 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_highlands
			}
			add_stability = -0.018
			add_popularity = { ideology = fascism popularity = 0.006 }
			120 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_man
			}
			add_stability = -0.018
			add_popularity = { ideology = fascism popularity = 0.006 }
			120 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_aberdeenshire
			}
			add_stability = -0.051
			add_popularity = { ideology = fascism popularity = 0.017 }
			136 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lanark
			}
			add_stability = -0.153
			add_popularity = { ideology = fascism popularity = 0.051 }
			133 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_cumbria
			}
			add_stability = -0.153
			add_popularity = { ideology = fascism popularity = 0.051 }
			133 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lothian
			}
			add_stability = -0.096
			add_popularity = { ideology = fascism popularity = 0.032 }
			121 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_northern_england
			}
			add_stability = -0.144
			add_popularity = { ideology = fascism popularity = 0.048 }
			131 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_yorkshire
			}
			add_stability = -0.303
			add_popularity = { ideology = fascism popularity = 0.101 }
			130 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_lancashire
			}
			add_stability = -0.39
			add_popularity = { ideology = fascism popularity = 0.13 }
			132 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_wales
			}
			add_stability = -0.156
			add_popularity = { ideology = fascism popularity = 0.052 }
			122 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_west_midlands
			}
			add_stability = -0.249
			add_popularity = { ideology = fascism popularity = 0.083 }
			128 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_east_midlands
			}
			add_stability = -0.15
			add_popularity = { ideology = fascism popularity = 0.05 }
			129 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_east_anglia
			}
			add_stability = -0.093
			add_popularity = { ideology = fascism popularity = 0.031 }
			125 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_gloucestershire
			}
			add_stability = -0.123
			add_popularity = { ideology = fascism popularity = 0.041 }
			338 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_london
			}
			add_stability = -0.666
			add_popularity = { ideology = fascism popularity = 0.222 }
			126 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_cornwall
			}
			add_stability = -0.084
			add_popularity = { ideology = fascism popularity = 0.028 }
			123 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		if = {
			limit = {
				has_country_flag = ENG_march_temp_sussex
			}
			add_stability = -0.216
			add_popularity = { ideology = fascism popularity = 0.072 }
			127 = { set_state_flag = ENG_has_blackshirt_support }
			custom_effect_tooltip = ENG_blackshirt_march_tt
		}
		clr_country_flag = ENG_march_temp_northern_ireland
		clr_country_flag = ENG_march_temp_highlands
		clr_country_flag = ENG_march_temp_man
		clr_country_flag = ENG_march_temp_aberdeenshire
		clr_country_flag = ENG_march_temp_lanark
		clr_country_flag = ENG_march_temp_lothian
		clr_country_flag = ENG_march_temp_cumbria
		clr_country_flag = ENG_march_temp_northern_england
		clr_country_flag = ENG_march_temp_yorkshire
		clr_country_flag = ENG_march_temp_lancashire
		clr_country_flag = ENG_march_temp_wales
		clr_country_flag = ENG_march_temp_west_midlands
		clr_country_flag = ENG_march_temp_east_midlands
		clr_country_flag = ENG_march_temp_east_anglia
		clr_country_flag = ENG_march_temp_gloucestershire
		clr_country_flag = ENG_march_temp_london
		clr_country_flag = ENG_march_temp_cornwall
		clr_country_flag = ENG_march_temp_sussex
		clr_country_flag = ENG_march_timer_flag
		clr_country_flag = ENG_restrained_march_flag
	}
}

# Mosley speech against Germany
country_event = {
	id = mtg_britain.60
	title = mtg_britain.60.t
	desc = mtg_britain.60.d
	picture = GFX_report_event_eng_mosley_speech

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.60.a
		GER = { add_opinion_modifier = { target = ENG modifier = ENG_spoke_out_against_us } }
	}
}

# Appeal to Imperial Loyalists event for dominions
country_event = {
	id = mtg_britain.61
	title = mtg_britain.61.t
	desc = mtg_britain.61.d
	picture = GFX_report_event_french_resistance_02

	is_triggered_only = yes
	
	# The British are plotting!
	option = {
		name = mtg_britain.61.a
	}
}

# Move to Secure the Dominions notification event for the dominions
country_event = {
	id = mtg_britain.62
	title = mtg_britain.62.t
	desc = mtg_britain.62.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Watch out! The British are coming!
	option = {
		name = mtg_britain.62.a
	}
}

# Move to Secure the Dominions - Martial Law notification event for the dominions
country_event = {
	id = mtg_britain.63
	title = mtg_britain.63.t
	desc = mtg_britain.63.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.63.a
		custom_effect_tooltip = mtg_britain.62_tt
		hidden_effect = { news_event = { id = mtg_news.31 days = 1 } }
	}
}

# Move to Secure the Dominions - Propaganda notification event for the dominions
country_event = {
	id = mtg_britain.64
	title = mtg_britain.64.t
	desc = mtg_britain.64.d
	picture = GFX_report_event_generic_rally2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.64.a
		effect_tooltip = {
			if = {
				limit = {
					ENG = { has_government = fascism }
				}
				add_timed_idea = { idea = ENG_dominion_fascist_propaganda days = 90 }
			}
			if = {
				limit = {
					ENG = { has_government = communism }
				}
				add_timed_idea = { idea = ENG_dominion_communist_propaganda days = 90 }
			}
		}
		if = {
			limit = {
				ENG = { has_government = communism }
				NOT = { USA = { has_government = communism } }
				tag = CAN
			}
			USA = { country_event = { id = mtg_britain.68 days = 1 } }
		}
	}
}

# Move to Secure the Dominions - Replace Government notification event for the dominions
country_event = {
	id = mtg_britain.65
	title = mtg_britain.65.t
	desc = mtg_britain.65.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.65.a
		effect_tooltip = {
			if = {
				limit = {
					ENG = { has_government = fascism }
				}
				set_politics = { ruling_party = fascism elections_allowed = no }
				add_popularity = { ideology = fascism popularity = 0.2 }
				add_ideas = fascist_influence
			}
			if = {
				limit = {
					ENG = { has_government = communism }
				}
				set_politics = { ruling_party = communism elections_allowed = no }
				add_popularity = { ideology = communism popularity = 0.2 }
				add_ideas = communist_influence
			}
		}
		hidden_effect = { news_event = { id = mtg_news.32 days = 1 } }
	}
}

# Event for Dominions leaving the Allies after UK switches to Fascism or Communism
country_event = {
	id = mtg_britain.66
	title = mtg_britain.66.t
	desc = mtg_britain.66.d
	picture = GFX_report_event_generic_sign_treaty3

	trigger = {
		OR = {
			tag = CAN
			tag = SAF
			tag = RAJ
			tag = AST
			tag = NZL
		}
		is_subject_of = ENG
		OR = {
			ENG = { has_government = fascism }
			ENG = { has_government = communism }
		}
		ENG = { has_civil_war = no }
		NOT = { has_country_flag = ENG_cannot_leave_faction }
		NOT = { ENG = { has_country_flag = ENG_switched_to_fascism_communism_dominions_timer_flag } }
		has_dlc = "Man the Guns"
		NOT = { has_country_flag = ENG_dominions_stayed_with_fascist_britain_flag }
		NOT = { has_country_flag = britain_enforced_our_loyalty }
		NOT = { has_country_flag = ENG_already_left_faction_flag }
	}
	
	fire_only_once = no

	mean_time_to_happen = { days = 30 }
	
	# We will stay
	option = {
		name = mtg_britain.66.a
		ai_chance = {
			factor = 0
		}
		set_country_flag = ENG_dominions_stayed_with_fascist_britain_flag
	}

	# We will leave
	option = {
		name = mtg_britain.66.b
		if = {
			limit = {
				OR = {
					AND = {
						NOT = { original_tag = RAJ }
						has_dlc = "Graveyard of Empires"
					}
					NOT = { has_dlc = "Graveyard of Empires" }
				}
			}
			leave_faction = yes
		}
		
		if = {
			limit = {
				OR = {
					AND = {
						NOT = { original_tag = RAJ }
						has_dlc = "Graveyard of Empires"
					}
					NOT = { has_dlc = "Graveyard of Empires" }
				}
			}
			ENG = {
				set_autonomy = {
			    	target = ROOT
			    	autonomy_state = autonomy_free
				}
			}
		}

		if = {
			limit = {
				has_idea = ENG_guided_by_britain_1
			}
			remove_ideas = ENG_guided_by_britain_1
		}
		if = {
			limit = {
				has_idea = ENG_guided_by_britain_2
			}
			remove_ideas = ENG_guided_by_britain_2
		}
		if = {
			limit = {
				has_idea = ENG_guided_by_britain_raj_1
			}
			remove_ideas = ENG_guided_by_britain_raj_1
		}
		if = {
			limit = {
				has_idea = ENG_guided_by_britain_raj_2
			}
			remove_ideas = ENG_guided_by_britain_raj_2
		}
		if = {
			limit = {
				tag = RAJ
				NOT = {
					has_dlc = "Graveyard of Empires"
				}
			}
			drop_cosmetic_tag = yes
			retire_country_leader = yes
		}

		if = {
			limit = {
				tag = RAJ
				has_dlc = "Graveyard of Empires"
				
			}
			country_event = { id = GOE_RAJ.30 hours = 2 }
		}

		remove_from_tech_sharing_group = commonwealth_research
		set_country_flag = ENG_already_left_faction_flag
		
		if = {
			limit = {
				OR = {
					NOT = { has_dlc = "Graveyard of Empires" }
					NOT = { tag = RAJ }
				}
			}
			ENG = { country_event = { id = mtg_britain.67 } }
		}
		
		
		hidden_effect = { news_event = { id = mtg_news.63 days = 1 } }
	}
}

# Event for Britain notifying that Dominions are leaving
country_event = {
	id = mtg_britain.67
	title = mtg_britain.67.t
	desc = mtg_britain.67.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.67.a
		remove_from_tech_sharing_group = commonwealth_research
		effect_tooltip = {
			FROM = {
				leave_faction = yes
				remove_from_tech_sharing_group = commonwealth_research
				if = {
					limit = {
						has_idea = ENG_guided_by_britain_1
					}
					remove_ideas = ENG_guided_by_britain_1
				}
				if = {
					limit = {
						has_idea = ENG_guided_by_britain_2
					}
					remove_ideas = ENG_guided_by_britain_2
				}
				if = {
					limit = {
						has_idea = ENG_guided_by_britain_raj_1
					}
					remove_ideas = ENG_guided_by_britain_raj_1
				}
				if = {
					limit = {
						has_idea = ENG_guided_by_britain_raj_2
					}
					remove_ideas = ENG_guided_by_britain_raj_2
				}
			}
		}
	}
}

# Event for USA notifying that Britain is forcing through communism in Canada
country_event = {
	id = mtg_britain.68
	title = mtg_britain.68.t
	desc = mtg_britain.68.d
	picture = GFX_report_event_communist_leader

	is_triggered_only = yes
	
	# Object strongly
	option = {
		name = mtg_britain.68.a
		ai_chance = {
			factor = 66
			modifier = {
				factor = 1.5
				strength_ratio = {
					tag = ENG
					ratio > 0.8
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 1
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 1.2
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio > 1.5
				}
			}
		}
		ENG = { country_event = { id = mtg_britain.69 hours = 6 } }
	}

	# That's fine
	option = {
		name = mtg_britain.68.b
		ai_chance = {
			factor = 34
			modifier = {
				factor = 1.5
				strength_ratio = {
					tag = ENG
					ratio < 0.5
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio < 0.35
				}
			}
			modifier = {
				factor = 2
				strength_ratio = {
					tag = ENG
					ratio < 0.2
				}
			}
		}
	}
}

# Event for Britain notifying that USA objects to them forcing through communism in Canada
country_event = {
	id = mtg_britain.69
	title = mtg_britain.69.t
	desc = mtg_britain.69.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Bring it
	option = {
		name = mtg_britain.69.a
		ai_chance = {
			factor = 34
		}
		FROM = { country_event = { id = mtg_britain.70 hours = 6 } }
	}

	# Back down
	option = {
		name = mtg_britain.69.b
		ai_chance = {
			factor = 66
		}
		custom_effect_tooltip = mtg_britain.68_tt
		FROM = { country_event = { id = mtg_britain.71 hours = 6 } }
		remove_decision = ENG_propaganda_campaigns_in_canada
		set_country_flag = ENG_secure_the_dominions_backed_down_against_USA
		CAN = { remove_ideas = ENG_dominion_communist_propaganda }
	}
}

# Event for USA notifying that Britain isn't backing down
country_event = {
	id = mtg_britain.70
	title = mtg_britain.70.t
	desc = mtg_britain.70.d
	picture = GFX_report_event_communist_leader

	is_triggered_only = yes
	
	# We'll see about that
	option = {
		name = mtg_britain.70.a
		create_wargoal = {
			type = topple_government
			target = FROM
		}
	}

	# Back down
	option = {
		name = mtg_britain.70.b
		ai_chance = {
			factor = 0
		}
	}
}

# Event for USA notifying that Britain is backing down
country_event = {
	id = mtg_britain.71
	title = mtg_britain.71.t
	desc = mtg_britain.71.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.71.a
	}
}

# Event for RAJ notifying of impending civil war
country_event = {
	id = mtg_britain.72
	title = mtg_britain.72.t
	desc = mtg_britain.72.d
	picture = GFX_report_event_generic_riot

	trigger = {
		tag = RAJ
		NOT = { country_exists = PAK }
		NOT = { has_country_flag = RAJ_civil_war }
		NOT = {
			OR = {
				ENG = { has_completed_focus = ENG_the_three_nation_solution }
				AND = {
					has_dlc = "Together for Victory"
					has_completed_focus = RAJ_two_nation_theory
				}
			}
		}
		is_subject = no
		has_dlc = "Man the Guns"
		NOT = { has_dlc = "Graveyard of Empires" }
	}

	mean_time_to_happen = { days = 60 }
	
	# Ok
	option = {
		name = mtg_britain.72.a
		set_country_flag = RAJ_civil_war
		hidden_effect = {
			country_event = { id = mtg_britain.73 days = 90 random_days = 180 }
		}
	}
}

# Event for RAJ starting civil war
country_event = {
	id = mtg_britain.73
	title = mtg_britain.73.t
	desc = mtg_britain.73.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes
	
	# We won't back down!
	option = {
		name = mtg_britain.73.a
		release = PAK
		PAK = {
			declare_war_on = {
				target = ROOT
				type = annex_everything
			}
		}
		hidden_effect = {
			PAK = {
				add_equipment_to_stockpile = {
				    type = infantry_equipment
				    amount = 15000
				    producer = RAJ
				}
				division_template = {
					name = "Pakistani Liberation Army"
					priority = 1
					division_names_group = RAJ_INF_01
					is_locked = yes
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
					}
				}
				# Sind
				443 = {
					create_unit = {
						division = "name = \"1. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"2. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"3. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
				# Punjab
				440 = {
					create_unit = {
						division = "name = \"4. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"5. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"6. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
				# Northern Kashmir
				787 = {
					create_unit = {
						division = "name = \"7. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"8. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"9. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
				# Peshawar
				442 = {
					create_unit = {
						division = "name = \"10. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"11. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
				# Baluchistan
				444 = {
					create_unit = {
						division = "name = \"12. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"13. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
				# Quetta
				445 = {
					create_unit = {
						division = "name = \"14. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"15. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"16. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"17. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"18. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"19. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
				# East Bengal (Bangladesh)
				430 = {
					create_unit = {
						division = "name = \"20. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"21. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"22. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"23. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"24. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"25. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"26. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"27. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"28. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"29. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"30. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"31. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"32. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"33. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
					create_unit = {
						division = "name = \"34. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
						owner = PAK
					}
				}
			}
			hidden_effect = {
				division_template = {
					name = "Hindu Militia"
					priority = 1
					division_names_group = RAJ_INF_01
					is_locked = yes
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
					}
				}
				# Delhi
				439 = {
					create_unit = {
						division = "name = \"1. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"2. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"3. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"4. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"5. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"6. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
				}
				# Rajahsthan
				433 = {
					create_unit = {
						division = "name = \"7. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"8. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"9. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"10. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"11. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"12. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
				}
				# Gujarat
				428 = {
					create_unit = {
						division = "name = \"13. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"14. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"15. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
				}
				# Assam
				432 = {
					create_unit = {
						division = "name = \"16. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"17. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"18. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"19. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
				}
				# West bengal
				431 = {
					create_unit = {
						division = "name = \"20. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"21. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"22. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
					create_unit = {
						division = "name = \"23. Hindu Militia\" division_template = \"Hindu Militia\" start_experience_factor = 0.5" 
						owner = RAJ
					}
				}
			}
			PAK = {
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"35. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"36. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"37. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"38. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"39. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"40. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"41. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"42. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"43. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"44. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"45. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"46. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"47. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"48. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"49. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"50. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"51. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"52. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"53. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"54. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"55. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"56. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
				if = {
					limit = {
						strength_ratio = {
						    tag = RAJ
						    ratio < 0.9
						}
					}
					# East Bengal (Bangladesh)
					430 = {
						create_unit = {
							division = "name = \"57. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
					# Punjab
					440 = {
						create_unit = {
							division = "name = \"58. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
						create_unit = {
							division = "name = \"59. Pakistani Liberation Army\" division_template = \"Pakistani Liberation Army\" start_experience_factor = 0.5" 
							owner = PAK
						}
					}
				}
			}
			if = {
				limit = {
					has_idea = RAJ_marginalized_muslim_community_angry
				}
				swap_ideas = {
					add_idea = RAJ_marginalized_muslim_community_happy
					remove_idea = RAJ_marginalized_muslim_community_angry
				}
			}
			if = {
				limit = {
					has_idea = RAJ_marginalized_muslim_community
				}
				swap_ideas = {
					add_idea = RAJ_marginalized_muslim_community_happy
					remove_idea = RAJ_marginalized_muslim_community
				}
			}
			set_country_flag = RAJ_pakistani_civil_war_flag
			hidden_effect = { country_event = { id = mtg_britain.109 days = 15 random_days = 75 } }
		}
	}
	# Give them their independence
	option = {
		name = mtg_britain.73.b
		ai_chance = {
			factor = 0
		}
		release = PAK
		hidden_effect = { country_event = { id = mtg_britain.109 days = 5 random_days = 5 } }
	}
}

# Event for RAJ ending civil war if Pakistan hasn't been dealt with.
country_event = {
	id = mtg_britain.74
	title = mtg_britain.74.t
	desc = mtg_britain.74.d
	picture = GFX_report_event_generic_sign_treaty2

	trigger = {
		has_war_with = PAK
	}

	trigger = {
		tag = RAJ
		has_war_with = PAK
		has_country_flag = RAJ_pakistani_civil_war_flag
	}
	
	fire_only_once = yes

	mean_time_to_happen = {
		days = 270
		modifier = {
			factor = 0.8
			surrender_progress > 0.2
		}
		modifier = {
			factor = 0.5
			surrender_progress > 0.5
		}
		modifier = {
			factor = 0.2
			surrender_progress > 0.8
		}
		modifier = {
			factor = 0.1
			surrender_progress > 0.9
		}
	}
	
	# Let's make peace
	option = {
		name = mtg_britain.74.a
		every_country = {
			limit = {
				is_in_faction_with = RAJ
				has_war_with = PAK
			}
			white_peace = PAK
		}
		white_peace = PAK
		PAK = { country_event = { id = mtg_britain.75 } }
		effect_tooltip = {
			delete_unit_template_and_units = {
   				division_template = "Hindu Militia"
			}
		}
		clr_country_flag = RAJ_pakistani_civil_war_flag
	}

	# All or nothing - no peace!
	option = {
		name = mtg_britain.74.b
		ai_chance = {
			factor = 0
		}
		add_war_support = -0.1
	}
}

# Event for PAK notifying of white peace
country_event = {
	id = mtg_britain.75
	title = mtg_britain.75.t
	desc = mtg_britain.75.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.75.a
		effect_tooltip = {
			every_country = {
				limit = {
					is_in_faction_with = RAJ
					has_war_with = PAK
				}
				white_peace = PAK
			}
			RAJ = { white_peace = PAK }
		}
		delete_unit_template_and_units = {
   			division_template = "Pakistani Liberation Army"
		}
		hidden_effect = {
			RAJ = {
				delete_unit_template_and_units = {
   					division_template = "Hindu Militia"
				}
			}
		}
	}
}

# Event for PAK starting civil war
country_event = {
	id = mtg_britain.76
	title = mtg_britain.76.t
	desc = mtg_britain.76.d
	picture = GFX_report_event_ger_civil_war

	trigger = {
		tag = PAK
		NOT = { country_exists = BAN }
		NOT = { has_country_flag = PAK_civil_war }
		NOT = { ENG = { has_completed_focus = ENG_the_three_nation_solution } }
		is_subject = no
		has_war = no
		has_dlc = "Man the Guns"
		NOT = { has_dlc = "Graveyard of Empires" }
	}
	
	fire_only_once = yes

	mean_time_to_happen = { days = 180 }
	
	# We won't back down!
	option = {
		name = mtg_britain.76.a
		set_country_flag = PAK_civil_war
		release = BAN
		hidden_effect = {
			BAN = {
				division_template = {
					name = "Bangladeshi Liberation Army"
					priority = 1
					division_names_group = RAJ_INF_01
					is_locked = yes
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
					}
				}
				# East Bengal (Bangladesh)
				430 = {
					create_unit = {
						division = "name = \"1. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"2. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"3. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"4. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"5. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"6. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"7. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"8. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"9. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"10. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"11. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"12. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"13. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"14. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
					create_unit = {
						division = "name = \"15. Bangladeshi Liberation Army\" division_template = \"Bangladeshi Liberation Army\" start_experience_factor = 0.5" 
						owner = BAN
					}
				}
				declare_war_on = {
					target = ROOT
					type = annex_everything
				}
			}
			hidden_effect = { country_event = { id = mtg_britain.77 days = 270 random_days = 95 } }
		}
	}
	# Give them their independence
	option = {
		name = mtg_britain.76.b
		ai_chance = {
			factor = 0
		}
		release = BAN
		set_country_flag = PAK_civil_war
	}
}

# Event for PAK ending civil war if Bangladesh hasn't been dealt with.
country_event = {
	id = mtg_britain.77
	title = mtg_britain.77.t
	desc = mtg_britain.77.d
	picture = GFX_report_event_generic_sign_treaty2

	trigger = {
		has_war_with = BAN
	}

	is_triggered_only = yes
	
	# Let's make peace
	option = {
		name = mtg_britain.77.a
		white_peace = BAN
		BAN = { country_event = { id = mtg_britain.78 } }
	}

	# All or nothing - no peace!
	option = {
		name = mtg_britain.77.b
		ai_chance = {
			factor = 0
		}
		add_war_support = -0.1
	}
}

# Event for BAN notifying of white peace
country_event = {
	id = mtg_britain.78
	title = mtg_britain.78.t
	desc = mtg_britain.78.d
	picture = GFX_report_event_generic_sign_treaty2

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.75.a
		effect_tooltip = { BAN = { white_peace = PAK } }
		delete_unit_template_and_units = {
   			division_template = "Bangladeshi Liberation Army"
		}
	}
}

# Event for Iran/Afghanistan demanding puppet status
country_event = {
	id = mtg_britain.79
	title = mtg_britain.79.t
	desc = mtg_britain.79.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# We have no choice
	option = {
		name = mtg_britain.79.a
		ai_chance = {
			base = 50
			modifier = {
				factor = 0
				strength_ratio = { tag = ENG ratio > 1 }
			}
		}
		effect_tooltip = {
			ENG = {
				puppet = ROOT
			}
		}
		FROM = { country_event = { id = mtg_britain.80 hours = 6 } }
		hidden_effect = { news_event = { id = mtg_news.28 hours = 30 } }
	}

	# Never!
	option = {
		name = mtg_britain.79.b
		ai_chance = {
			base = 50
			modifier = {
				factor = 0.8
				strength_ratio = { tag = ENG ratio < 0.5 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 99 }
			}
			modifier = {
				factor = 0.8
				strength_ratio = { tag = ENG ratio < 0.3 }
			}
			modifier = {
				factor = 0.8
				strength_ratio = { tag = ENG ratio < 0.2 }
			}
			modifier = {
				factor = 0.5
				strength_ratio = { tag = ENG ratio < 0.1 }
			}
			modifier = {
				factor = 0.8
				SOV = { has_completed_focus = SOV_liberation_of_the_european_proletariat }
			}
			modifier = {
				factor = 0
				OR = {
					SOV = {
						focus_progress = { focus = SOV_the_southern_thrust progress > 0 }
						has_completed_focus = SOV_the_southern_thrust
					}
					has_war_with = SOV
				}
			}
		}
		effect_tooltip = {
			if = {
				limit = {
					tag = PER
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = PER
				}
			}
			if = {
				limit = {
					tag = AFG
				}
				create_wargoal = {
					type = puppet_wargoal_focus
					target = AFG
				}
			}
		}
		FROM = { country_event = { id = mtg_britain.81 hours = 6 } }
		hidden_effect = { news_event = { id = mtg_news.29 hours = 30 } }
	}
}

# Event for ENG that PER/AFG accepted puppet status
country_event = {
	id = mtg_britain.80
	title = mtg_britain.80.t
	desc = mtg_britain.80.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.80.a
		puppet = FROM
	}
}

# Event for ENG that PER/AFG rejected puppet status
country_event = {
	id = mtg_britain.81
	title = mtg_britain.81.t
	desc = mtg_britain.81.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.81.a
		create_wargoal = {
			type = puppet_wargoal_focus
			target = FROM
		}
	}
}

# Event for ENG and Dominions notifying of Imperial Conference
country_event = {
	id = mtg_britain.82
	title = mtg_britain.82.t
	desc = mtg_britain.82.d
	picture = GFX_report_event_imperial_conference

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.82.a
		trigger = {
			tag = ENG
		}
		activate_mission = ENG_imperial_conference_decision
		set_country_flag = { flag = ENG_imperial_conference_timer_flag value = 1 days = 60 }
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			add_opinion_modifier = { target = ROOT modifier = ENG_imperial_conference_opinion }
			custom_effect_tooltip = mtg_britain.82_tt
		}
	}

	# Ok
	option = {
		name = mtg_britain.82.b
		trigger = {
			NOT = { tag = ENG }
		}
		effect_tooltip = { add_opinion_modifier = { target = FROM modifier = ENG_imperial_conference_opinion } }
	}
}

# Event for ENG beginning discussions on Imperial Defense
country_event = {
	id = mtg_britain.83
	title = mtg_britain.83.t
	desc = mtg_britain.83.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = ENG_imperial_defense_flag
		}
	}
	
	# Ask them if they want to agree to commit
	option = {
		name = mtg_britain.83.a
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.84 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}

	# Exert diplomatic pressure
	option = {
		name = mtg_britain.83.b
		add_political_power = -25
		set_country_flag = ENG_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.84 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
	# Exert extensive diplomatic pressure
	option = {
		name = mtg_britain.83.c
		add_political_power = -50
		set_country_flag = ENG_extensive_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.84 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
}

# Event for Dominions asking for vote on Imperial Defense
country_event = {
	id = mtg_britain.84
	title = mtg_britain.83.t
	desc = mtg_britain.84.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.84.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 3
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
		}
		add_political_power = -25
		add_timed_idea = { idea = ENG_imperial_conference_defense_dominion days = 365 }
		add_opinion_modifier = {
			target = FROM
			modifier = ENG_imperial_conference_approved_resolution
		}
		FROM = { country_event = { id = mtg_britain.85 } }
		ENG = {
			if = {
				limit = {
					NOT = {
						check_variable = {
							var = ENG_imperial_conference_defense_accepted
							value = 1
							compare = greater_than_or_equals
						}
					}
				}
				set_variable = {
					var = ENG_imperial_conference_defense_accepted
					value = 0
				}
			}
			add_to_variable = {
				var = ENG_imperial_conference_defense_accepted
				value = 1
			}
		}
	}

	# Reject
	option = {
		name = mtg_britain.84.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 0 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 25 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 50 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 75 }
			}
		}
		FROM = { country_event = { id = mtg_britain.86 } }
	}
}

# Event for ENG telling FROM voted yes on Imperial Defense
country_event = {
	id = mtg_britain.85
	title = mtg_britain.85.t
	desc = mtg_britain.85.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.85.a
		effect_tooltip = {
			FROM = {
				add_political_power = -25
				add_timed_idea = { idea = ENG_imperial_conference_defense_dominion days = 365 }
				add_opinion_modifier = {
					target = ROOT
					modifier = ENG_imperial_conference_approved_resolution
				}
			}
		}
		ENG_imperial_conference_defense_level_up = yes
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_defense_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_defense_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_defense_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG telling FROM voted no on Imperial Defense
country_event = {
	id = mtg_britain.86
	title = mtg_britain.86.t
	desc = mtg_britain.86.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.86.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_defense_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_defense_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_defense_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG beginning discussions on Imperial Trade
country_event = {
	id = mtg_britain.87
	title = mtg_britain.87.t
	desc = mtg_britain.87.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = ENG_imperial_trade_flag
		}
	}
	
	# Ask them if they want to agree to commit
	option = {
		name = mtg_britain.83.a
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.88 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}

	# Exert diplomatic pressure
	option = {
		name = mtg_britain.83.b
		add_political_power = -25
		set_country_flag = ENG_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.88 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
	# Exert extensive diplomatic pressure
	option = {
		name = mtg_britain.83.c
		add_political_power = -50
		set_country_flag = ENG_extensive_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.88 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
}

# Event for Dominions asking for vote on Imperial Trade
country_event = {
	id = mtg_britain.88
	title = mtg_britain.87.t
	desc = mtg_britain.88.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.88.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 3
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
		}
		add_ideas = free_trade
		add_opinion_modifier = {
			target = FROM
			modifier = ENG_imperial_conference_approved_resolution
		}
		reverse_add_opinion_modifier = { target = FROM modifier = ENG_imperial_trade }
		FROM = { country_event = { id = mtg_britain.89 } }
	}

	# Reject
	option = {
		name = mtg_britain.88.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 0 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 25 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 50 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 75 }
			}
		}
		FROM = { country_event = { id = mtg_britain.90 } }
	}
}

# Event for ENG telling FROM voted yes on Imperial Trade
country_event = {
	id = mtg_britain.89
	title = mtg_britain.89.t
	desc = mtg_britain.89.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.89.a
		effect_tooltip = {
			FROM = {
				add_ideas = free_trade
				add_opinion_modifier = {
					target = ROOT
					modifier = ENG_imperial_conference_approved_resolution
				}
			}
			add_opinion_modifier = { target = FROM modifier = ENG_imperial_trade }
		}
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_trade_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_trade_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_trade_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG telling FROM voted no on Imperial Trade
country_event = {
	id = mtg_britain.90
	title = mtg_britain.90.t
	desc = mtg_britain.90.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.90.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_trade_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_trade_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_trade_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG beginning discussions on Imperial Economy
country_event = {
	id = mtg_britain.91
	title = mtg_britain.91.t
	desc = mtg_britain.91.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = ENG_imperial_economy_flag
		}
	}
	
	# Ask them if they want to agree to commit
	option = {
		name = mtg_britain.83.a
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.92 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}

	# Exert diplomatic pressure
	option = {
		name = mtg_britain.83.b
		add_political_power = -25
		set_country_flag = ENG_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.92 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
	# Exert extensive diplomatic pressure
	option = {
		name = mtg_britain.83.c
		add_political_power = -50
		set_country_flag = ENG_extensive_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.92 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
}

# Event for Dominions asking for vote on Imperial Economy
country_event = {
	id = mtg_britain.92
	title = mtg_britain.91.t
	desc = mtg_britain.92.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.92.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 3
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
		}
		add_political_power = -25
		add_timed_idea = { idea = ENG_imperial_conference_economy_dominion days = 365 }
		add_opinion_modifier = {
			target = FROM
			modifier = ENG_imperial_conference_approved_resolution
		}
		FROM = { country_event = { id = mtg_britain.93 } }
		ENG = {
			if = {
				limit = {
					NOT = {
						check_variable = {
							var = ENG_imperial_conference_economy_accepted
							value = 1
							compare = greater_than_or_equals
						}
					}
				}
				set_variable = {
					var = ENG_imperial_conference_economy_accepted
					value = 0
				}
			}
			add_to_variable = {
				var = ENG_imperial_conference_economy_accepted
				value = 1
			}
		}
	}

	# Reject
	option = {
		name = mtg_britain.92.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 0 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 25 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 50 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 75 }
			}
		}
		FROM = { country_event = { id = mtg_britain.94 } }
	}
}

# Event for ENG telling FROM voted yes on Imperial Economy
country_event = {
	id = mtg_britain.93
	title = mtg_britain.93.t
	desc = mtg_britain.93.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.93.a
		effect_tooltip = {
			FROM = {
				add_political_power = -25
				add_timed_idea = { idea = ENG_imperial_conference_economy_dominion days = 365 }
				add_opinion_modifier = {
					target = ROOT
					modifier = ENG_imperial_conference_approved_resolution
				}
			}
		}
		ENG_imperial_conference_economy_level_up = yes
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_economy_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_economy_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_economy_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG telling FROM voted no on Imperial Economy
country_event = {
	id = mtg_britain.94
	title = mtg_britain.94.t
	desc = mtg_britain.94.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.94.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_economy_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_economy_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_economy_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG beginning discussions on Appeasement
country_event = {
	id = mtg_britain.95
	title = mtg_britain.95.t
	desc = mtg_britain.95.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = ENG_imperial_appeasement_flag
		}
	}
	
	# Ask them if they want to agree to commit
	option = {
		name = mtg_britain.83.a
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.96 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}

	# Exert diplomatic pressure
	option = {
		name = mtg_britain.83.b
		add_political_power = -25
		set_country_flag = ENG_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.96 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
	# Exert extensive diplomatic pressure
	option = {
		name = mtg_britain.83.c
		add_political_power = -50
		set_country_flag = ENG_extensive_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.96 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
}

# Event for Dominions asking for vote on Appeasement
country_event = {
	id = mtg_britain.96
	title = mtg_britain.95.t
	desc = mtg_britain.96.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.96.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 3
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
		}
		add_political_power = -25
		add_war_support = 0.1
		add_opinion_modifier = {
			target = FROM
			modifier = ENG_imperial_conference_approved_resolution
		}
		effect_tooltip = { FROM = { add_war_support = 0.03 } }
		FROM = { country_event = { id = mtg_britain.97 } }
	}

	# Reject
	option = {
		name = mtg_britain.96.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 0 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 25 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 50 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 75 }
			}
		}
		FROM = { country_event = { id = mtg_britain.98 } }
	}
}

# Event for ENG telling FROM voted yes on Appeasement
country_event = {
	id = mtg_britain.97
	title = mtg_britain.97.t
	desc = mtg_britain.97.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.97.a
		effect_tooltip = {
			FROM = {
				add_political_power = -25
				add_war_support = 0.1
				add_opinion_modifier = {
					target = ROOT
					modifier = ENG_imperial_conference_approved_resolution
				}
			}
		}
		add_war_support = 0.03
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_appeasement_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_appeasement_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_appeasement_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG telling FROM voted no on Appeasement
country_event = {
	id = mtg_britain.98
	title = mtg_britain.98.t
	desc = mtg_britain.98.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.98.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_appeasement_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_appeasement_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_appeasement_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
	}
}

# Event for ENG beginning discussions on Imperial Federation
country_event = {
	id = mtg_britain.99
	title = mtg_britain.99.t
	desc = mtg_britain.99.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			set_country_flag = ENG_imperial_federation_flag
		}
	}
	
	# Ask them if they want to agree to Federate
	option = {
		name = mtg_britain.83.a
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.100 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}

	# Exert diplomatic pressure
	option = {
		name = mtg_britain.83.b
		add_political_power = -25
		set_country_flag = ENG_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.100 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
	# Exert extensive diplomatic pressure
	option = {
		name = mtg_britain.83.c
		add_political_power = -50
		set_country_flag = ENG_extensive_diplomatic_pressure_flag
		every_country = {
			limit = {
				OR = {
					AND = {
						is_subject_of = ENG
						tag = CAN
					}
					AND = {
						is_subject_of = ENG
						tag = SAF
					}
					AND = {
						is_subject_of = ENG
						tag = RAJ
					}
					AND = {
						is_subject_of = ENG
						tag = AST
					}
					AND = {
						is_subject_of = ENG
						tag = NZL
					}
				}
			}
			country_event = { id = mtg_britain.100 hours = 48 random_hours = 24 }
		}
		ENG_imperial_conference_set_subject_counter = yes
	}
}

# Event for Dominions asking for vote on Imperial Federation
country_event = {
	id = mtg_britain.100
	title = mtg_britain.99.t
	desc = mtg_britain.100.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Accept
	option = {
		name = mtg_britain.100.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 3
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 0
				tag = RAJ
				ENG = {
					AND = {
						NOT = { has_completed_focus = ENG_indian_autonomy } 
						NOT = { has_country_leader_with_trait = viceroy_emeritus }
					}
				}
			}
		}
		custom_effect_tooltip = mtg_britain.100_tt #"If all accept you will get:"
		effect_tooltip = { add_ideas = ENG_federal_integration }
		set_country_flag = ENG_accepted_federation
		FROM = { country_event = { id = mtg_britain.101 } }
	}

	# Reject
	option = {
		name = mtg_britain.100.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 0 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 25 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 50 }
			}
			modifier = {
				factor = 0.8
				has_opinion = { target = ENG value > 75 }
			}
			modifier = {
				factor = 0
				tag = RAJ
				ENG = { 
					OR = {
						has_completed_focus = ENG_indian_autonomy 
						has_country_leader_with_trait = viceroy_emeritus
					}
				}
				has_opinion = { target = ENG value > 99 }
			}
			modifier = {
				factor = 0
				tag = RAJ
				ENG = { 
					OR = {
						has_completed_focus = ENG_indian_autonomy 
						has_country_leader_with_trait = viceroy_emeritus
					}
				}
				has_opinion = { target = ENG value > 89 }
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 0
				tag = RAJ
				ENG = { 
					OR = {
						has_completed_focus = ENG_indian_autonomy 
						has_country_leader_with_trait = viceroy_emeritus
					}
				}
				has_opinion = { target = ENG value > 79 }
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 0
				NOT = { tag = RAJ }
				has_opinion = { target = ENG value > 99 }
			}
			modifier = {
				factor = 0
				NOT = { tag = RAJ }
				has_opinion = { target = ENG value > 89 }
				FROM = { has_country_flag = ENG_diplomatic_pressure_flag }
			}
			modifier = {
				factor = 0
				NOT = { tag = RAJ }
				has_opinion = { target = ENG value > 79 }
				FROM = { has_country_flag = ENG_extensive_diplomatic_pressure_flag }
			}
		}
		set_country_flag = ENG_rejected_federation
		FROM = { country_event = { id = mtg_britain.102 } }
	}
}

# Event for ENG telling FROM voted yes on Imperial Federation
country_event = {
	id = mtg_britain.101
	title = mtg_britain.101.t
	desc = mtg_britain.101.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.101.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_federation_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_federation_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_federation_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
		if = {
			limit = {
				check_variable = { var = ENG_imperial_conference_federation_answers value = ENG_imperial_conference_number_of_subjects compare = equals }
				NOT = {
					any_country = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
						}
						has_country_flag = ENG_rejected_federation
					}
				}
			}
			country_event = { id = mtg_britain.103 hours = 6 }
		}
		if = {
			limit = {
				RAJ = {
					is_subject_of = ENG
					has_country_flag = ENG_rejected_federation
				}
				check_variable = { var = ENG_imperial_conference_federation_answers value = ENG_imperial_conference_number_of_subjects compare = equals }
				NOT = {
					any_country = {
						OR = {
							tag = CAN
							tag = SAF
							tag = AST
							tag = NZL
						}
						has_country_flag = ENG_rejected_federation
					}
				}
			}
			country_event = { id = mtg_britain.104 hours = 6 }
		}
		if = {
			limit = {
				check_variable = { var = ENG_imperial_conference_federation_answers value = ENG_imperial_conference_number_of_subjects compare = equals }
				any_country = {
					OR = {
						tag = CAN
						tag = SAF
						tag = AST
						tag = NZL
					}
					has_country_flag = ENG_rejected_federation
				}
			}
			country_event = { id = mtg_britain.105 hours = 6 }
		}
	}
}

# Event for ENG telling FROM voted no on Imperial Federation
country_event = {
	id = mtg_britain.102
	title = mtg_britain.102.t
	desc = mtg_britain.102.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.102.a
		if = {
			limit = {
				NOT = {
					check_variable = {
						var = ENG_imperial_conference_federation_answers
						value = 1
						compare = greater_than_or_equals
					}
				}
			}
			set_variable = {
				var = ENG_imperial_conference_federation_answers
				value = 0
			}
		}
		add_to_variable = {
			var = ENG_imperial_conference_federation_answers
			value = 1
		}
		ENG_imperial_conference_clear_in_progress_flags = yes
		if = {
			limit = {
				RAJ = {
					is_subject_of = ENG
					has_country_flag = ENG_rejected_federation
				}
				check_variable = { var = ENG_imperial_conference_federation_answers value = ENG_imperial_conference_number_of_subjects compare = equals }
				NOT = {
					any_country = {
						OR = {
							tag = CAN
							tag = SAF
							tag = AST
							tag = NZL
						}
						has_country_flag = ENG_rejected_federation
					}
				}
			}
			country_event = { id = mtg_britain.104 hours = 6 }
		}
		if = {
			limit = {
				check_variable = { var = ENG_imperial_conference_federation_answers value = ENG_imperial_conference_number_of_subjects compare = equals }
				any_country = {
					OR = {
						tag = CAN
						tag = SAF
						tag = AST
						tag = NZL
					}
					has_country_flag = ENG_rejected_federation
				}
			}
			country_event = { id = mtg_britain.105 hours = 6 }
		}
	}
}

# Event for ENG telling all Dominions accepted
country_event = {
	id = mtg_britain.103
	title = mtg_britain.103.t
	desc = mtg_britain.103.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.103.a
		if = {
			limit = {
				OR = {
					has_dlc = "Together for Victory"
					AND = {
						has_dlc = "Death or Dishonor"
						has_government = fascism
					}
				}
			}
			every_country = {
				limit = {
					OR = {
						AND = {
							is_subject_of = ENG
							tag = CAN
						}
						AND = {
							is_subject_of = ENG
							tag = SAF
						}
						AND = {
							is_subject_of = ENG
							tag = RAJ
						}
						AND = {
							is_subject_of = ENG
							tag = AST
						}
						AND = {
							is_subject_of = ENG
							tag = NZL
						}
						AND = {
							is_subject_of = ENG
							tag = MAL
						}
					}
				}
				add_ideas = ENG_federal_integration
			}
		}
		else = {
			every_country = {
				limit = {
					OR = {
						AND = {
							is_subject_of = ENG
							tag = CAN
						}
						AND = {
							is_subject_of = ENG
							tag = SAF
						}
						AND = {
							is_subject_of = ENG
							tag = RAJ
						}
						AND = {
							is_subject_of = ENG
							tag = AST
						}
						AND = {
							is_subject_of = ENG
							tag = NZL
						}
						AND = {
							is_subject_of = ENG
							tag = MAL
						}
					}
				}
				add_ideas = ENG_federal_integration_tfv
			}
		}
		set_country_flag = ENG_dominions_accepted_federation
	}
}

# Event for ENG telling all Dominions except India accepted
country_event = {
	id = mtg_britain.104
	title = mtg_britain.104.t
	desc = mtg_britain.104.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Go through with it anyway - give India independence
	option = {
		name = mtg_britain.104.a
		if = {
			limit = {
				OR = {
					has_dlc = "Together for Victory"
					AND = {
						has_dlc = "Death or Dishonor"
						has_government = fascism
					}
				}
			}
			every_country = {
				limit = {
					OR = {
						AND = {
							is_subject_of = ENG
							tag = CAN
						}
						AND = {
							is_subject_of = ENG
							tag = SAF
						}
						AND = {
							is_subject_of = ENG
							tag = AST
						}
						AND = {
							is_subject_of = ENG
							tag = NZL
						}
						AND = {
							is_subject_of = ENG
							tag = MAL
						}
					}
				}
				add_ideas = ENG_federal_integration
			}
		}
		else = {
			every_country = {
				limit = {
					OR = {
						AND = {
							is_subject_of = ENG
							tag = CAN
						}
						AND = {
							is_subject_of = ENG
							tag = SAF
						}
						AND = {
							is_subject_of = ENG
							tag = AST
						}
						AND = {
							is_subject_of = ENG
							tag = NZL
						}
						AND = {
							is_subject_of = ENG
							tag = MAL
						}
					}
				}
				add_ideas = ENG_federal_integration_tfv
			}
		}
		set_country_flag = ENG_dominions_accepted_federation
		set_autonomy = {
			target = RAJ
			autonomy_state = autonomy_free
		}
		remove_from_faction = RAJ
		RAJ = {
			drop_cosmetic_tag = yes
			retire_country_leader = yes
			remove_from_tech_sharing_group = commonwealth_research
		}
	}

	# We're all in this together - unanimous, or not at all
	option = {
		name = mtg_britain.104.b
	}
}

# Event for ENG telling Federation plans fell through
country_event = {
	id = mtg_britain.105
	title = mtg_britain.105.t
	desc = mtg_britain.105.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.105.a
	}
}

# Event for target saying they are in violation of the Washington Naval Treaty and ENG wants them to scuttle some ships
country_event = {
	id = mtg_britain.106
	title = mtg_britain.106.t
	desc = mtg_britain.106.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.106.a
	}
}

# Event for ENG informing them that the target has scuttled some ships and is now compliant with the treaty
country_event = {
	id = mtg_britain.107
	title = mtg_britain.107.t
	desc = mtg_britain.107.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.107.a
	}
}

# Event for ENG saying target refused to get rid of ships and ENG now has a wargoal
country_event = {
	id = mtg_britain.108
	title = mtg_britain.108.t
	desc = mtg_britain.108.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	# Ok
	option = {
		name = mtg_britain.108.a
		create_wargoal = {
			target = FROM
			type = puppet_wargoal_focus
			expire = 0
		}
	}
}

# Event for RAJ giving BRM independence
country_event = {
	id = mtg_britain.109
	title = mtg_britain.109.t
	desc = mtg_britain.109.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok I guess
	option = {
		name = mtg_britain.109.a
		release = BRM
	}
}

# UK becomes just England
country_event = {
	id = mtg_britain.110
	
	trigger = {
		tag = ENG
		country_exists = NIR
		country_exists = WLS
		country_exists = SCO
		NOT = { has_global_flag = ENG_became_england }
	}

	mean_time_to_happen = { days = 2 }

	hidden = yes

	immediate = {
		set_cosmetic_tag = ENG_england
		set_global_flag = ENG_became_england
	}
}

# UK becomes UK again
country_event = {
	id = mtg_britain.111
	
	trigger = {
		tag = ENG
		NOT = { country_exists = NIR }
		NOT = { country_exists = WLS }
		NOT = { country_exists = SCO }
		owns_state = 120
		owns_state = 119
		owns_state = 136
		owns_state = 133
		owns_state = 121
		has_global_flag = ENG_became_england
	}

	mean_time_to_happen = { days = 2 }

	hidden = yes

	immediate = {
		drop_cosmetic_tag = yes
		clr_global_flag = ENG_became_england
	}
}

# Bounce event for correct FROM scope for localization in the "British Empire Allies Imperial Loyalists" news event
country_event = {
	id = mtg_britain.112
	
	is_triggered_only = yes

	hidden = yes

	immediate = {
		news_event = { id = mtg_news.27 days = 1 }
	}
}

# Event for imperial loyalists winning civil war and requesting 'guidance'
country_event = {
	id = mtg_britain.113
	title = mtg_britain.113.t
	desc = mtg_britain.113.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	# Ok I guess
	option = {
		name = mtg_britain.113.a
		set_autonomy = {
		    target = FROM
		    autonomy_state = autonomy_integrated_puppet
		}
		hidden_effect = {
			if = {
				limit = {
					FROM = { original_tag = CAN }
				}
				FROM = {
					load_focus_tree = { tree = canadian_focus keep_completed = yes }
					CAN_enforce_loyalty = yes
				}
			}
			if = {
				limit = {
					FROM = { original_tag = SAF }
				}
				FROM = {
					load_focus_tree = { tree = south_african_focus keep_completed = yes }
					SAF_enforce_loyalty = yes
				}
			}
			if = {
				limit = {
					FROM = { original_tag = AST }
				}
				FROM = {
					load_focus_tree = { tree = australian_focus keep_completed = yes }
					AST_enforce_loyalty = yes
				}
			}
			if = {
				limit = {
					FROM = { original_tag = NZL }
				}
				FROM = {
					load_focus_tree = { tree = new_zealander_focus keep_completed = yes }
					NZL_enforce_loyalty = yes
				}
			}
		}
	}
}

####

country_event = {
	id = mtg_britain.999
	title = mtg_britain.999.t
	desc = mtg_britain.999.d
	picture = GFX_report_event_europe_funeral

	trigger = {
		tag = ENG
		has_country_flag = ENG_king_died
		has_dlc = "Man the Guns"
		has_country_flag = ENG_abdication_crisis_morganatic_marriage
		has_country_flag = edward_viii_married_wallis_simpson
		126 = {
			is_controlled_by = ENG
			days_since_last_strategic_bombing < 8
		}
	}
	
	fire_only_once = yes

	mean_time_to_happen = { days = 30 }
	
	option = {
		name = mtg_britain.999.a
		kill_country_leader = yes
		create_country_leader = {
			name = "George VI"
			desc = "POLITICS_GEORGE_VI_DESC"
			picture = GFX_portrait_George_VI
			expire = "1965.1.1"
			ideology = despotism
			traits = {
				popular_figurehead stammer humble
			}
		}
		hidden_effect = { news_event = { id = mtg_news.55 days = 1 } }
	}
}

country_event = {
	id = mtg_britain.1000
	title = mtg_britain.1000.t
	desc = mtg_britain.1000.d
	picture = GFX_report_event_generic_funeral

	fire_only_once = yes
	
	trigger = {
		original_tag = ENG
		has_government = neutrality
		date > 1941.1.1
		has_country_leader = { ruling_only = yes name = "George VI" }
	}

	mean_time_to_happen = {
		days = 1460
	}
	
	option = {
		name = mtg_britain.1000.a
		kill_country_leader = yes
		create_country_leader = {
			name = "Elizabeth II"
			desc = "POLITICS_ELIZABETH_II_DESC"
			picture = "GFX_portrait_eng_elizabeth_ii"
			expire = "1965.1.1"
			ideology = despotism
			female = yes
			traits = {
				inexperienced_monarch headstrong popular_queen
			}
		}
		set_party_name = { ideology = neutrality long_name = ENG_neutrality_party_queens_party_long name = ENG_neutrality_party_queens_party }
		hidden_effect = { news_event = { id = mtg_news.59 days = 1 } }
	}
}