add_namespace = ireland

country_event = { # IRA becomes empowered
	id = ireland.1
	title = ireland.1.t
	desc = ireland.1.d
	picture = GFX_report_event_swedish_soldier

	trigger = {
		tag = IRE
		check_variable = {
			var = IRA_loyalty
			value = 13
			compare = greater_than_or_equals
		}
		NOT = { has_idea = IRE_ira_1 }
		NOT = {
			OR = {
				has_country_flag = IRA_revolted
				has_country_flag = IRA_integrated
				has_country_flag = IRA_going_to_revolt
			}
		}
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = ireland.1.a
		if = {
			limit = {
				has_idea =  IRE_ira_2
			}
			swap_ideas = {
				remove_idea = IRE_ira_2
				add_idea = IRE_ira_1
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_3
			}
			swap_ideas = {
				remove_idea = IRE_ira_3
				add_idea = IRE_ira_1
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_4
			}
			swap_ideas = {
				remove_idea = IRE_ira_4
				add_idea = IRE_ira_1
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_5
			}
			swap_ideas = {
				remove_idea = IRE_ira_5
				add_idea = IRE_ira_1
			}
		}
	}
}	
country_event = { # IRA becomes loyal
	id = ireland.2
	title = ireland.2.t
	desc = ireland.2.d
	picture = GFX_report_event_swedish_soldier

	trigger = {
		tag = IRE
		check_variable = {
			var = IRA_loyalty
			value = 13
			compare = less_than
		}
		check_variable = {
			var = IRA_loyalty
			value = 10
			compare = greater_than_or_equals
		}
		NOT = { has_idea = IRE_ira_2 }
		NOT = {
			OR = {
				has_country_flag = IRA_revolted
				has_country_flag = IRA_integrated
				has_country_flag = IRA_going_to_revolt
			}
		}	
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = ireland.2.a
		if = {
			limit = {
				has_idea =  IRE_ira_1
			}
			swap_ideas = {
				remove_idea = IRE_ira_1
				add_idea = IRE_ira_2
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_3
			}
			swap_ideas = {
				remove_idea = IRE_ira_3
				add_idea = IRE_ira_2
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_4
			}
			swap_ideas = {
				remove_idea = IRE_ira_4
				add_idea = IRE_ira_2
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_5
			}
			swap_ideas = {
				remove_idea = IRE_ira_5
				add_idea = IRE_ira_2
			}
		}
	}
}	
country_event = { # IRA becomes appeased
	id = ireland.3
	title = ireland.3.t
	desc = ireland.3.d
	picture = GFX_report_event_swedish_soldier

	trigger = {
		tag = IRE
		check_variable = {
			var = IRA_loyalty
			value = 10
			compare = less_than
		}
		check_variable = {
			var = IRA_loyalty
			value = 7
			compare = greater_than_or_equals
		}
		NOT = { has_idea = IRE_ira_3 }
		NOT = {
			OR = {
				has_country_flag = IRA_revolted
				has_country_flag = IRA_integrated
				has_country_flag = IRA_going_to_revolt
			}
		}	
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = ireland.3.a
		if = {
			limit = {
				has_idea =  IRE_ira_2
			}
			swap_ideas = {
				remove_idea = IRE_ira_2
				add_idea = IRE_ira_3
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_4
			}
			swap_ideas = {
				remove_idea = IRE_ira_4
				add_idea = IRE_ira_3
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_1
			}
			swap_ideas = {
				remove_idea = IRE_ira_1
				add_idea = IRE_ira_3
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_5
			}
			swap_ideas = {
				remove_idea = IRE_ira_5
				add_idea = IRE_ira_3
			}
		}
	}
}
country_event = { # IRA becomes disloyal
	id = ireland.4
	title = ireland.4.t
	desc = ireland.4.d
	picture = GFX_report_event_swedish_soldier

	trigger = {
		tag = IRE
		check_variable = {
			var = IRA_loyalty
			value = 7
			compare = less_than
		}
		check_variable = {
			var = IRA_loyalty
			value = 4
			compare = greater_than_or_equals
		}
		NOT = { has_idea = IRE_ira_4 }
		NOT = {
			OR = {
				has_country_flag = IRA_revolted
				has_country_flag = IRA_integrated
				has_country_flag = IRA_going_to_revolt
			}
		}	
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = ireland.4.a
		if = {
			limit = {
				has_idea =  IRE_ira_3
			}
			swap_ideas = {
				remove_idea = IRE_ira_3
				add_idea = IRE_ira_4
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_5
			}
			swap_ideas = {
				remove_idea = IRE_ira_5
				add_idea = IRE_ira_4
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_2
			}
			swap_ideas = {
				remove_idea = IRE_ira_2
				add_idea = IRE_ira_4
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_1
			}
			swap_ideas = {
				remove_idea = IRE_ira_1
				add_idea = IRE_ira_4
			}
		}
	}
}
country_event = { # IRA becomes hostile
	id = ireland.5
	title = ireland.5.t
	desc = ireland.5.d
	picture = GFX_report_event_swedish_soldier

	trigger = {
		tag = IRE
		check_variable = {
			var = IRA_loyalty
			value = 4
			compare = less_than
		}
		NOT = { has_idea = IRE_ira_5 }
		NOT = {
			OR = {
				has_country_flag = IRA_revolted
				has_country_flag = IRA_integrated
				has_country_flag = IRA_going_to_revolt
			}
		}	
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = ireland.5.a
		if = {
			limit = {
				has_idea =  IRE_ira_4
			}
			swap_ideas = {
				remove_idea = IRE_ira_4
				add_idea = IRE_ira_5
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_3
			}
			swap_ideas = {
				remove_idea = IRE_ira_3
				add_idea = IRE_ira_5
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_2
			}
			swap_ideas = {
				remove_idea = IRE_ira_2
				add_idea = IRE_ira_5
			}
		}
		if = {
			limit = {
				has_idea =  IRE_ira_1
			}
			swap_ideas = {
				remove_idea = IRE_ira_1
				add_idea = IRE_ira_5
			}
		}
	}
}

country_event = { # IEAA event
	id = ireland.6
	title = ireland.6.t
	desc = ireland.6.d
	picture = GFX_report_event_IRE_science

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # focus on construction
		name = ireland.6.a
		add_political_power = -50
		add_ideas = IRE_IEAA_INDUSTRY
	}
	option = { # focus on research
		name = ireland.6.b
		add_political_power = -50
		add_ideas = IRE_IEAA_RND
	}
	option = { # focus on efficiency
		name = ireland.6.c
		add_political_power = -50
		add_ideas = IRE_IEAA_WR
	}
	option = { # focus on elecrics
		name = ireland.6.e
		add_political_power = -50
		add_ideas = IRE_IEAA_ELEC
	}
}

country_event = { # ARD event
	id = ireland.7
	title = ireland.7.t
	desc = ireland.7.d
	picture = GFX_report_event_IRE_farmers

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # small investment
		name = ireland.7.a
		add_political_power = -50
		set_country_flag = IRE_ARD_low
	}
	option = { # medium investment
		name = ireland.7.b
		add_political_power = -100
		set_country_flag = IRE_ARD_med
	}
	option = { # big investment
		name = ireland.7.c
		add_political_power = -250
		set_country_flag = IRE_ARD_high
	}
}

country_event = { # IFI event
	id = ireland.8
	title = ireland.8.t
	desc = ireland.8.d
	picture = GFX_report_event_IRE_industry

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # small investment
		name = ireland.7.a
		add_political_power = -50
		set_country_flag = IRE_IFI_low
	}
	option = { # medium investment
		name = ireland.7.b
		add_political_power = -100
		set_country_flag = IRE_IFI_med
	}
	option = { # big investment
		name = ireland.7.c
		add_political_power = -250
		set_country_flag = IRE_IFI_high
	}
}

# IFI - Saorstát Alcohol Factories
country_event = {
	id = ireland.9
	title = ireland.9.t
	desc = ireland.9.d
	picture = GFX_report_event_IRE_alcplant
	is_triggered_only = yes

	# Choose Where To Build
	option = {
		trigger = {
			owns_state = 119
		}	
		ai_chance = {
			factor = 33
		}
		name = ireland.9.a
		set_country_flag = ire_sa_ulster
		hidden_effect = {
			IRE = {
				country_event = {
					id = ireland.10
					days = 35
				}
			}
		}
	}

	option = {
		name = ireland.9.b
		ai_chance = {
			factor = 33
		}
		set_country_flag = ire_sa_connacht
		hidden_effect = {
			IRE = {
				country_event = {
					id = ireland.10
					days = 35
				}
			}
		}
	}

	option = {
		name = ireland.9.c
		ai_chance = {
			factor = 33
		}
		set_country_flag = ire_sa_munster
		hidden_effect = {
			IRE = {
				country_event = {
					id = ireland.10
					days = 35
				}
			}
		}
	}
}

# IFI - SAF Follow Up
country_event = {
	id = ireland.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event ireland.10" }
	title = ireland.10.t
	desc = ireland.10.d
	picture = GFX_report_event_IRE_alcplant

	is_triggered_only = yes

	fire_only_once = yes

	# Building in Ulster
	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_low
			has_country_flag = ire_sa_ulster
		}
		ai_chance = {
			factor = 90
		}
		name = ireland.10.a
		add_political_power = -10

		119 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}

	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_med
			has_country_flag = ire_sa_ulster
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -25
		119 = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}

	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_high
			has_country_flag = ire_sa_ulster
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -40
		119 = {
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 3
				instant_build = yes
			}
		}
	}

	#Building in Munster
	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_low
			has_country_flag = ire_sa_munster
		}
		ai_chance = {
			factor = 90
		}
		name = ireland.10.a
		add_political_power = -10
		135 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}

	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_medium
			has_country_flag = ire_sa_munster
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -25
		135 = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}

	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_high
			has_country_flag = ire_sa_munster
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -40
		135 = {
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 3
				instant_build = yes
			}
		}
	}


	# Building in Connacht
	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_low
			has_country_flag = ire_sa_connacht
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -10
		134 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}
	}

	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_med
			has_country_flag = ire_sa_connacht
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -25
		134 = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = industrial_complex
				level = 2
				instant_build = yes
			}
		}
	}

	option = {
		trigger = {
			tag = IRE
			has_country_flag = IRE_IFI_high
			has_country_flag = ire_sa_connacht
		}
		name = ireland.10.a
		ai_chance = {
			factor = 90
		}
		add_political_power = -40
		134 = {
			add_extra_state_shared_building_slots = 3
			add_building_construction = {
				type = industrial_complex
				level = 3
				instant_build = yes
			}
		}
	}

	# Pull Out
	option = {
		name = ireland.10.b
		ai_chance = {
			factor = 10
		}
		add_political_power = 25
	}
}

country_event = { # coal-cattle pact
	id = ireland.11
	title = ireland.11.t
	desc = ireland.11.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # approve the pact
		name = ireland.11.a
		ai_chance = {
			factor = 100
		}	
		add_political_power = -25
		add_timed_idea = { idea = IRE_trade_war_cooling days = 100 }
		IRE = {
			country_event = {
				id = ireland.60
				days = 1
			}
		}
	}
	option = { # refuse the pact
		name = ireland.11.b
		ai_chance = {
			factor = 0
		}	
		set_global_flag = ENG_refused_cattle_coal_pact
		IRE = {
			country_event = {
				id = ireland.61
				days = 1
			}
		}
	}
}	
country_event = { # confirmation of agreements act
	id = ireland.12
	title = ireland.12.t
	desc = ireland.12.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # approve the pact
		name = ireland.12.a
		ai_chance = {
			factor = 100
		}	
		add_political_power = 25
		add_timed_idea = { idea = IRE_trade_war_cooling days = 100 }
		remove_opinion_modifier = { target = IRE modifier = embargo }
		IRE = {
			country_event = {
				id = ireland.13
				days = 1
			}
		}
		hidden_effect = {
			news_event = {	
				id = IRE_news.1
				days = 7
			}
		}
	}
	option = { # refuse the pact
		name = ireland.12.b
		ai_chance = {
			factor = 0
		}	
		set_global_flag = ENG_refused_confirmation_of_agreements
		IRE = {
			country_event = {
				id = ireland.62
				days = 1
			}
		}
	}
}	
country_event = { # end of the trade war
	id = ireland.13
	title = ireland.13.t
	desc = ireland.13.d
	picture = GFX_report_event_canada_patriation

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # approve the pact
		name = ireland.13.a
		remove_ideas = IRE_trade_war2
		remove_opinion_modifier = { target = ENG modifier = embargo }	
	}
}	
country_event = { # abdication crisis - move against the governor-general
	id = ireland.14
	title = ireland.14.t
	desc = ireland.14.d
	picture = GFX_report_event_IRE_dail_meeting

	trigger = {
		ENG = {
			OR = {
				has_country_flag = ENG_edward_abdicating
				has_country_flag = edward_viii_refused_to_abdicate_flag
			}
		}
		tag = IRE
	}
	 
	mean_time_to_happen = {
		days = 1
	}
	
	fire_only_once = yes
	

	option = { # get rid of him
		name = ireland.14.a
		add_political_power = -50
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				NOT = { has_completed_focus = IRE_fine_gael }
			}
		}
		swap_ideas ={
			remove_idea = IRE_autonomous_dominion
			add_idea = IRE_autonomous_dominion2
		}
	}
	option = { # not worth the effort
		name = ireland.14.b
		ai_chance = {
			factor = 5
			modifier = {
				factor = 10
				has_completed_focus = IRE_fine_gael
			}
		}
	}
}	
country_event = { # heavy industry priorities
	id = ireland.15
	title = ireland.15.t
	desc = ireland.15.d
	picture = GFX_report_event_IRE_industry

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # focus on tanks
		name = ireland.15.a
		add_ideas = ire_armor_prio
	}
	option = { # focus on infantry Equip
		name = ireland.15.b
		add_ideas = ire_infantry_prio
	}
	option = { # focus on air
		name = ireland.15.c
		add_ideas = ire_airforce_prio
	}
}	
country_event = { # notification for ENG that Ire has joined the commonwealth
	id = ireland.16
	title = ireland.16.t
	desc = ireland.16.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # ok
		name = ireland.16.a
		hidden_effect = {
			news_event = {
				id = IRE_news.2
				days = 3
			}
			IRE = {	
				set_popularities = {
					democratic = 66
					fascism = 20
					communism = 14
				}
			}	
		}
	}
}
country_event = { # IRE seeks to join allies
	id = ireland.17
	title = ireland.17.t
	desc = ireland.17.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # accept
		name = ireland.17.a
		add_to_faction = IRE
		IRE = {
			country_event = {
				id = ireland.18
				days = 1
			}
		}
		hidden_effect = {
			news_event = {
				id = IRE_news.3
				days = 5
			}
		}
	}
	option = { # decline
		name = ireland.17.b
		ai_chance = {
			factor = 0
		}	
		IRE = {
			country_event = {
				id = ireland.19
				days = 1
			}
		}
	}
}
country_event = { # notification for IRE that they joined the allies
	id = ireland.18
	title = ireland.18.t
	desc = ireland.18.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # ok
		name = ireland.18.a
	}
}
country_event = { # notification for IRE that they didnt join the allies
	id = ireland.19
	title = ireland.19.t
	desc = ireland.19.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.19.a
	}
}
country_event = { # IRE seeks to join axis
	id = ireland.20
	title = ireland.20.t
	desc = ireland.20.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # accept
		name = ireland.17.a
		add_to_faction = IRE
		IRE = {
			country_event = {
				id = ireland.21
				days = 1
			}
		}
		hidden_effect = {
			news_event = {
				id = IRE_news.4
				days = 5
			}
		}
	}
	option = { # decline
		name = ireland.17.b
		ai_chance = {
			factor = 0
		}	
		IRE = {
			country_event = {
				id = ireland.22
				days = 1
			}
		}
	}
}
country_event = { # notification for IRE that they joined the axis
	id = ireland.21
	title = ireland.21.t
	desc = ireland.21.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # ok
		name = ireland.18.a
	}
}
country_event = { # notification for IRE that they joined the axis
	id = ireland.22
	title = ireland.22.t
	desc = ireland.22.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.19.a
	}
}
country_event = { # IRE seeks to join comintern
	id = ireland.23
	title = ireland.23.t
	desc = ireland.23.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # accept
		name = ireland.17.a
		add_to_faction = IRE
		IRE = {
			country_event = {
				id = ireland.24
				days = 1
			}
		}
		hidden_effect = {
			news_event = {
				id = IRE_news.5
				days = 5
			}
		}
	}
	option = { # decline
		name = ireland.17.b
		ai_chance = {
			factor = 0
		}	
		IRE = {
			country_event = {
				id = ireland.25
				days = 1
			}
		}
	}
}
country_event = { # notification for IRE that they joined the comintern
	id = ireland.24
	title = ireland.24.t
	desc = ireland.24.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # ok
		name = ireland.18.a
	}
}
country_event = { # notification for IRE that they joined the comintern
	id = ireland.25
	title = ireland.25.t
	desc = ireland.25.d
	picture = GFX_report_event_generic_parliament

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.19.a
	}
}

# ULSTER UNIONIST/NORTHERN CAMPAIGN EVENTS

country_event = { # request transfer of ulster
	id = ireland.26
	title = ireland.26.t
	desc = ireland.26.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # hand over ulster
		name = ireland.26.a
		ai_chance = {
			factor = 30
		}
		IRE = { 
			transfer_state = 119
			country_event = {
				id = ireland.27
				days = 1
			}
		}	
		hidden_effect = {
			news_event = {
				id = IRE_news.6
				days = 5
			}
		}
	}

	option = { # no
		name = ireland.26.b
		ai_chance = {
			factor = 3
		}	
		IRE = {
			country_event = {
				id = ireland.28
				days = 1
			}
		}
	}
}
	
country_event = { # notification for IRE that ENG handed over NIR
	id = ireland.27
	title = ireland.27.t
	desc = ireland.27.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # great
		name = ireland.27.a
		119 = {
			add_dynamic_modifier = { modifier = IRE_transfer_overseen_by_ENG }
		}	
	}
}
	
country_event = { # notification for IRE that ENG refused to hand over NIR
	id = ireland.28
	title = ireland.28.t
	desc = ireland.28.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.28.a
	}
}

	
country_event = { # unionists & protestants challenge IRE
	id = ireland.29
	title = ireland.29.t
	desc = ireland.29.d
	picture = GFX_report_event_fascist_militia

	trigger = {
		tag = IRE
		owns_state = 119
	}

	mean_time_to_happen = {
		days = 14
	}	
	
	fire_only_once = yes
	
	
	immediate = {
		hidden_effect ={
			119 = { add_dynamic_modifier = { modifier = IRE_partial_core } }
			ENG = { set_state_controller = 119 }
			119 = { remove_core_of = IRE  }
			IRE = { set_state_controller = 119 }
		}	
	}

	option = { # bad
		name = ireland.29.a
		119 = {
			remove_core_of = IRE
			add_dynamic_modifier = { modifier = IRE_unionist_tensions }
			add_compliance = 25
			add_resistance = 25
			add_resistance_target  = {
				amount = 40
				tooltip = unionist_campaign.tt
			}
		}
	}
}

country_event = { # IRA (not sponsored by IRE) begin S-Plan - event for Ireland
	id = ireland.30
	title = ireland.30.t
	desc = ireland.30.d
	picture = GFX_report_event_IRE_bombing

	trigger = {
		date > 1939.1.1
		ENG = {
			has_war = yes
		}
		tag = IRE
		NOT = {
			OR = {
				has_global_flag = IRA_s_plan_begin
				IRE = { has_completed_focus = IRE_court_the_ira }
				IRE = { has_idea = IRE_ira_6 } # IRE hasn't defeated the IRA in a civil war
			}	
		}	
	}

	mean_time_to_happen = {
		days = 14
	}	
	
	fire_only_once = yes
	

	option = { # lets hope nothing comes of this
		name = ireland.30.a
		trigger = {
			NOT = { has_war_with = ENG }
		}	
		set_global_flag = IRA_s_plan_begin
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira  }
			}	
			custom_effect_tooltip = IRA_strength_up.tt
		}
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		hidden_effect = {
			ENG = {
				country_event = {
					id = ireland.31
					days = 7
				}
			}
			add_to_variable = {
				var = IRA_strength
				value = 2
			}
		}	
	}
	
	option = { # lets hope nothing comes of this
		name = ireland.30.b
		trigger = {
			has_war_with = ENG
		}	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira  }
			}	
			custom_effect_tooltip = IRA_strength_up.tt
		}
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		set_global_flag = IRA_s_plan_begin
		hidden_effect = {
			ENG = {
				country_event = {
					id = ireland.31
					days = 7
				}
			}
			add_to_variable = {
				var = IRA_strength
				value = 2
			}
		}	
	}
}


country_event = { # IRA (not sponsored by IRE) begin S-Plan - event for Britain
	id = ireland.31
	title = ireland.31.t
	desc = ireland.31.d
	picture = GFX_report_event_IRE_bombing

	is_triggered_only = yes	
	
	fire_only_once = yes
	

	option = { # oh no
		name = ireland.31.a	
	}
}

country_event = { # IRA damages a building in the UK - hidden event - generates random events
	id = ireland.32
	title = ireland.32.t
	desc = ireland.32.d
	picture = GFX_report_event_IRE_bombing

	trigger = {
		tag = ENG
		has_global_flag = IRA_s_plan_begin
		NOT = { has_global_flag = IRA_s_plan_supppressed }
		NOT = {
			IRE = { has_country_flag = moved_against_ira }
		}
	}

	mean_time_to_happen = {
		days = 100
	}
	hidden = yes
	
	immediate = {
		random_list = {
			20 = { # IRA strikes infrastructure
				country_event = { id = ireland.33 }
			}
			20 = { # IRA strike military factories
				country_event = { id = ireland.34 } 
			}
			20 = { # IRA strike civilian factories
				country_event = { id = ireland.35 } 
			}
			20 = { # IRA strike dockyards
				country_event = { id = ireland.36 } 
			}
			20 = { # IRA plot on infrastructure foiled
				country_event = { id = ireland.37 } 
			}
			20 = { # IRA plot on a factory foiled
				country_event = { id = ireland.38 } 
			}
			20 = { # IRA plot on a dockyard foiled
				country_event = { id = ireland.39 }
			}
		}
	}
}

country_event = { # IRA strikes British infrastructure
	id = ireland.33
	title = ireland.33.t
	desc = ireland.33.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes	
	
	immediate = {
		random_owned_state = {
			limit = {
				OR = {
					region = 1
					region = 2
					region = 3
				}
			}
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}
	}	
		

	option = { # oh no
		name = ireland.33.a	
	}
	
	option = { # pressure Ireland
		name = ireland.33.b	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}	
	}
}
country_event = { # IRA strikes British mil factory
	id = ireland.34
	title = ireland.34.t
	desc = ireland.34.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes	
	
	immediate = {
		random_owned_state = {
			limit = {
				OR = {
					region = 1
					region = 2
					region = 3
				}
				 arms_factory > 0
			}
			damage_building = {
				type = arms_factory
				damage = 1
			}
		}
	}	

	option = { # oh no
		name = ireland.33.a	
	}
	
	option = { # pressure Ireland
		name = ireland.33.b	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}
	}
}
country_event = { # IRA strikes British civ factory
	id = ireland.35
	title = ireland.35.t
	desc = ireland.35.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes	
	
	immediate = {
		random_owned_state = {
			limit = {
				OR = {
					region = 1
					region = 2
					region = 3
				}
				 industrial_complex > 0
			}
			damage_building = {
				type = industrial_complex
				damage = 1
			}
		}
	}	

	option = { # oh no
		name = ireland.33.a	
	}
	
	option = { # pressure Ireland
		name = ireland.33.b	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}	
	}
}
country_event = { # IRA strikes British dockyard
	id = ireland.36
	title = ireland.36.t
	desc = ireland.36.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes	
	
	immediate = {
		random_owned_state = {
			limit = {
				OR = {
					region = 1
					region = 2
					region = 3
				}
				 dockyard > 0
			}
			damage_building = {
				type = dockyard
				damage = 1
			}
		}
	}	

	option = { # oh no
		name = ireland.33.a	
	}
	
	option = { # pressure Ireland
		name = ireland.33.b	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}	
	}
}
country_event = { # IRA fails to strike infrastructure
	id = ireland.37
	title = ireland.37.t
	desc = ireland.37.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes		

	option = { # oh no
		name = ireland.37.a	
	}
	
	option = { # pressure Ireland
		name = ireland.37.b	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}	
	}
}
country_event = { # IRA fails to strike factory
	id = ireland.38
	title = ireland.38.t
	desc = ireland.38.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes		

	option = { # oh no
		name = ireland.37.a	
	}
	
	option = { # pressure Ireland
		name = ireland.37.a	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}
	}
}
country_event = { # IRA fails to strike dockyard
	id = ireland.39
	title = ireland.39.t
	desc = ireland.39.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes		

	option = { # oh no
		name = ireland.37.a	
	}
	
	option = { # pressure Ireland
		name = ireland.37.b	
		add_political_power = -100
		IRE = {
			country_event = {
			id = ireland.40
			days = 1
			}
		}
	}
}
country_event = { # Britain pressures Ireland to act against the IRA (s-Plan)
	id = ireland.40
	title = ireland.40.t
	desc = ireland.40.d
	picture = GFX_report_event_IRE_dail_meeting

	is_triggered_only = yes		

	option = { # we are powerless to stop them
		name = ireland.40.a	
		ai_chance = {
			factor = 1
			modifier = { # won't risk a civil war over this
				factor = 10
				check_variable = {
					var = IRA_loyalty
					value = 5
					compare = less_than_or_equals
				}
			}
		}
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = 1
			}
			add_to_variable = {
				var = IRA_strength
				value = 1
			}
			ENG = {
				country_event = {
					id = ireland.46
					days = 1
				}
			}
		}	
	}
	
	option = { # move against them
		name = ireland.40.b	
		add_political_power = -100
		ai_chance = {
			factor = 1
			modifier = { # looks bad
				factor = 2
				has_completed_focus = IRE_strict_neutrality
			}
			modifier = { # won't risk a civil war over this
				factor = 0.5
				check_variable = {
					var = IRA_loyalty
					value = 5
					compare = less_than_or_equals
				}
			}
		}
		if = { 
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_strength_down.tt
		}	
		if = { 
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_courted_strength_down.tt
		}
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -1
			}
			add_to_variable = {
				var = IRA_strength
				value = -1
			}
			ENG = {
				country_event = {
					id = ireland.47
					days = 1
				}
			}
		}	
		set_country_flag = moved_against_ira
	}	
	option = { # suppress s plan completely
		name = ireland.40.c	
		add_political_power = -200
		ai_chance = {
			factor = 1
			modifier = { # won't risk a civil war over this
				factor = 0
				check_variable = {
					var = IRA_loyalty
					value = 6
					compare = less_than_or_equals
				}
			}
			modifier = { # a bit of sympathy for the player
				factor = 1.5
				ENG = { is_ai = no }
			}
			modifier = { # historically wound down in 1940
				factor = 2
				date > 1940.6.6
			}
		}
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_strength_down.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_courted_strength_down.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -3
			}
			add_to_variable = {
				var = IRA_strength
				value = -1
			}
			ENG = {
				country_event = {
					id = ireland.48
					days = 1
				}
			}
		}	
		set_global_flag = IRA_s_plan_supppressed
	}
}

country_event = { # hidden event to clear county flag
	id = ireland.41
	
	hidden = yes
	
	trigger = {
		tag = IRE
		has_country_flag = moved_against_ira
	}

	mean_time_to_happen = {
		days = 120
	}

	immediate = {
		clr_country_flag = moved_against_ira
	}
}	

country_event = { # IRA (not supported by IRE) starts the northern campaign - event for ireland
	id = ireland.42
	title = ireland.42.t
	desc = ireland.42.d
	picture = GFX_report_event_gre_city_siege

	trigger = {
		date > 1941.7.1 # a little earlier than historical
		ENG = {
			has_war = yes
		}
		tag = IRE
		NOT = {
			IRE = {
				owns_state = 119
			}
		}
		NOT = {
			OR = {
				has_global_flag = IRA_northern_campaign
				IRE = { has_completed_focus = IRE_court_the_ira }
				IRE = { 
					OR = {
						has_idea = IRE_ira_6  # IRE hasn't defeated the IRA in a civil war
						has_idea = IRE_ira_0 # IRE doesn't have control of the IRA
					}
				}	
			}	
		}	
	}

	mean_time_to_happen = {
		days = 100 # should happen around early '42, though historically was sept '42
	}	
	
	fire_only_once = yes
	

	option = { # lets hope nothing comes of this
		name = ireland.42.a
		set_global_flag = IRA_northern_campaign
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		trigger = {
			NOT = {
				has_war_with = ENG
			}
		}
		hidden_effect = {
			ENG = {
				country_event = {
					id = ireland.43
					days = 7
				}
			}
			add_to_variable = {
				var = IRA_strength
				value = 4
			}
		}	
	}
	option = { # lets hope nothing comes of this
		name = ireland.42.b
		set_global_flag = IRA_northern_campaign
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		trigger = {
			has_war_with = ENG
		}
		hidden_effect = {
			ENG = {
				country_event = {
					id = ireland.43
					days = 7
				}
			}
			add_to_variable = {
				var = IRA_strength
				value = 4
			}
		}	
	}
}

country_event = { # start of the northern campaign - event for Britain
	id = ireland.43
	title = ireland.43.t
	desc = ireland.43.d
	picture = GFX_report_event_gre_city_siege

	is_triggered_only = yes	
	
	fire_only_once = yes
	
	immediate = {
		hidden_effect ={
			119 = { add_dynamic_modifier = { modifier = IRE_partial_core } }
			IRE = { set_state_controller = 119 }
			119 = { remove_core_of = ENG  }
			ENG = { set_state_controller = 119 }
		}	
	}	
	

	option = { # bad
		name = ireland.43.a
		ai_chance = {
			factor = 1
		}
		119 = {
			remove_core_of = ENG
			add_dynamic_modifier = { modifier = IRE_IRA_agitation }
			add_compliance = 25
			add_resistance = 25
			add_resistance_target  = {
				amount = 45
				tooltip = IRA_campaign.tt
			}	
		}	
	}
	
	option = { # request support from IRE
		name = ireland.43.b
		trigger = {
			NOT = { has_war_with = IRE }
		}	
		ai_chance = {
			factor = 10
		}	
		trigger = {
			NOT = {
				has_war_with = IRE
			}
		}
		add_political_power = -100
		119 = {
			remove_core_of = ENG
			add_dynamic_modifier = { modifier = IRE_IRA_agitation }
			add_compliance = 25
			add_resistance = 25
			add_resistance_target  = {
				amount = 45
				tooltip = IRA_campaign.tt
			}
		}	
		IRE = {
			country_event = {
				id = ireland.45
				days = 1
			}
		}
	}
}

	
country_event = { # support from ulster unionists forms
	id = ireland.44
	title = ireland.44.t
	desc = ireland.44.d
	picture = GFX_report_event_gre_city_siege

	trigger = {
		tag = ENG
		has_global_flag = IRA_northern_campaign
		ENG = {
			owns_state = 119
		}
		NOT = {
			119 = {
				is_core_of = ENG
			}
		}
	}
	
	mean_time_to_happen = {
		days = 7
	}	

	fire_only_once = yes
	
	option = { # good
		name = ireland.44.a
		119 = {
			add_dynamic_modifier = { modifier = IRE_unionist_cooperation }
		}	
	}
}

country_event = { # britain demands support against the IRA in NIR
	id = ireland.45
	title = ireland.45.t
	desc = ireland.45.d
	picture = GFX_report_event_gre_city_siege

	is_triggered_only = yes
	
	option = { # send aid
		name = ireland.45.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 5
				is_in_faction_with = ENG
			}
			modifier = {
				factor = 2
				has_completed_focus = IRE_strict_neutrality
			}	
		}
		add_political_power =  -50
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_strength_down.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_courted_strength_down.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -4
			}
			add_to_variable = {
				var = IRA_strength
				value = -2
			}
			ENG = {
				country_event = {
					id = ireland.49
					days = 1
				}
			}
		}
	}
	
	option = { #we are powerless
		name = ireland.45.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.25
				is_in_faction_with = ENG
			}
			modifier = {
				factor = 10
				has_war_with = ENG
			}
		}
		custom_effect_tooltip = IRE_war_with_ENG_warning.tt
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_strength_up.tt
		}
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = 2
			}
			add_to_variable = {
				var = IRA_strength
				value = 5
			}
			ENG = {
				country_event = {
					id = ireland.50
					days = 1
				}
			}
		}
	}
}
country_event = { # IRE responds that they are unwilling to stop s-Plan
	id = ireland.46
	title = ireland.46.t
	desc = ireland.46.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes		

	option = { # damn them
		name = ireland.46.a	
	}
}
country_event = { # IRE responds that they are working against the IRA
	id = ireland.47
	title = ireland.47.t
	desc = ireland.47.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes		

	option = { # good
		name = ireland.47.a	
	}
}
country_event = { # IRE responds that they have shut down S-Plan
	id = ireland.48
	title = ireland.48.t
	desc = ireland.48.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes		

	option = { # great
		name = ireland.48.a	
	}
}
country_event = { # IRE responds they will help against the IRA in the northern campaign
	id = ireland.49
	title = ireland.49.t
	desc = ireland.49.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes		

	option = { # great
		name = ireland.49.a	
		119 = {
			add_dynamic_modifier = { modifier = IRE_cooperation_with_the_gardai }
		}
	}
}
country_event = { # IRE responds they will not  help against the IRA in the northern campaign
	id = ireland.50
	title = ireland.50.t
	desc = ireland.50.d
	picture = GFX_report_event_generic_conference

	is_triggered_only = yes		

	option = { # damn them!
		name = ireland.50.a	
	}
	option = { # if they are not on our side...
		name = ireland.50.b
		create_wargoal = {
			type = puppet_wargoal_focus
			target = IRE
		}	
	}
}

country_event = { # IRA event generator
	id = ireland.51

	trigger = {
		tag = IRE
		IRE = {
			OR = {
				has_idea = IRE_ira_1
				has_idea = IRE_ira_2
				has_idea = IRE_ira_3
				has_idea = IRE_ira_4
				has_idea = IRE_ira_5
			}
		}
	}

	mean_time_to_happen = {
		days = 150 # just over 2 per year
	}
	hidden = yes
	
	immediate = {
		random_list = {
			20 = { # IRA loyalty goes up
				modifier = {
					factor = 0.1
					IRE = { has_completed_focus = IRE_confirm_ties_to_commonwealth }
				}	
				modifier = {
					factor = 0.5
					IRE = { has_idea = IRE_ira_4 }
				}
				modifier = {
					factor = 0.25
					IRE = { has_idea = IRE_ira_5 }
				}	
				modifier = {
					factor = 0
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_loyalty
						value = 13
						compare = greater_than
					}
				}
				country_event = { id = ireland.52 }
			}
			20 = { # IRA loyalty goes down
				modifier = {
					factor = 1.5
					IRE = { has_idea = IRE_ira_2 }
				}	
				modifier = {
					factor = 1.25
					IRE = { has_completed_focus = IRE_confirm_ties_to_commonwealth }
				}	
				modifier = {
					factor = 0
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_loyalty
						value = 2
						compare = less_than
					}
				}
				country_event = { id = ireland.53 } 
			}
			20 = { # IRA strength goes up
				modifier = {
					factor = 1.25
					IRE = { has_completed_focus = IRE_confirm_ties_to_commonwealth }
				}	
				modifier = {
					factor = 2
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_strength
						value = 28
						compare = greater_than
					}
				}
				modifier = {
					factor = 2
					check_variable = {
						var = IRA_strength
						value = 5
						compare = less_than
					}
				}
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 25
						compare = greater_than
					}
				}
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than
					}
				}
				modifier = {
					factor = 1.5
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				country_event = { id = ireland.54 } 
			}
			20 = { # IRA strength goes down
				modifier = {
					factor = 2
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_strength
						value = 3
						compare = less_than
					}
				}
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 5
						compare = less_than
					}
				}
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				modifier = {
					factor = 1.5
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than
					}
				}
				country_event = { id = ireland.55 } 
			}
			20 = { # IRA strength & loyalty goes up
				country_event = { id = ireland.56 } 
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_strength
						value = 29
						compare = greater_than
					}
				}
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_loyalty
						value = 14
						compare = greater_than
					}
				}
				modifier = {
					factor = 0.75
					IRE = { has_idea = IRE_ira_4 }
				}
				modifier = {
					factor = 0.5
					IRE = { has_idea = IRE_ira_5 }
				}	
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than
					}
				}
				modifier = {
					factor = 1.5
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
					
			}
			20 = { # IRA strength & loyalty goes down
				modifier = {
					factor = 1.5
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_strength
						value = 2
						compare = less_than
					}
				}
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_loyalty
						value = 1
						compare = less_than
					}
				}
				modifier = {
					factor = 0.75
					IRE = { has_idea = IRE_ira_1 }
				}
				modifier = {
					factor = 0.5
					IRE = { has_idea = IRE_ira_2 }
				}	
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than
					}
				}
				modifier = {
					factor = 1.5
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				country_event = { id = ireland.57 } 
			}
			20 = { # IRA loyalty goes up, but strength goes down
				modifier = {
					factor = 0
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_strength
						value = 2
						compare = less_than
					}
				}
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_loyalty
						value = 14
						compare = greater_than
					}
				}
				modifier = {
					factor = 0.75
					IRE = { has_idea = IRE_ira_4 }
				}
				modifier = {
					factor = 0.8
					IRE = { has_idea = IRE_ira_5 }
				}	
				modifier = {
					factor = 0.5
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than
					}
				}
				modifier = {
					factor = 1.5
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				country_event = { id = ireland.58 }
			}
			20 = { # IRA loyalty goes down, but strength goes up
				modifier = {
					factor = 1.5
					IRE = { has_completed_focus = IRE_confirm_ties_to_commonwealth }
				}	
				modifier = {
					factor = 2
					IRE = { has_country_flag = IRA_going_to_revolt }
				}	
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_strength
						value = 29
						compare = greater_than
					}
				}
				modifier = {
					factor = 0
					check_variable = {
						var = IRA_loyalty
						value = 2
						compare = less_than
					}
				}
				modifier = {
					factor = 0.8
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than
					}
				}
				modifier = {
					factor = 0.75
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				country_event = { id = ireland.59 }
			}
		}
	}
}

country_event = { # IRA loyalty goes up
	id = ireland.52
	title = ireland.52.t
	desc = ireland.52.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.52.a	
		custom_effect_tooltip = IRA_loyalty_up.tt
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = 2
			}
		}	
	}
}
country_event = { # IRA loyalty goes down
	id = ireland.53
	title = ireland.53.t
	desc = ireland.53.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.53.a	
		custom_effect_tooltip = IRA_loyalty_down.tt
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -2
			}
		}	
	}
}
country_event = { # IRA strength goes up
	id = ireland.54
	title = ireland.54.t
	desc = ireland.54.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.54.a	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_strength
				value = 2
			}
		}	
	}
}
country_event = { # IRA strength goes down
	id = ireland.55
	title = ireland.55.t
	desc = ireland.55.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.55.a	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_strength_down.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_down.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_strength
				value = -2
			}
		}	
	}
}
country_event = { # IRA strength & loyalty goes up
	id = ireland.56
	title = ireland.56.t
	desc = ireland.56.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.56.a	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = 1
			}
			add_to_variable = {
				var = IRA_strength
				value = 1
			}
		}	
	}
}
country_event = { # IRA strength & loyalty goes down
	id = ireland.57
	title = ireland.57.t
	desc = ireland.57.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.57.a	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira  }
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_strength_down.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_courted_strength_down.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -1
			}
			add_to_variable = {
				var = IRA_strength
				value = -1
			}
		}	
	}
}
country_event = { # IRA loyalty up, strength down
	id = ireland.58
	title = ireland.58.t
	desc = ireland.58.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.58.a	
		if = {
			limit = {	
				NOT = { has_completed_focus = IRE_court_the_ira }
			}			
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_strength_down.tt
		}	
		if = {
			limit = {	
				 has_completed_focus = IRE_court_the_ira 
			}			
			custom_effect_tooltip = IRA_loyalty_up.tt
			custom_effect_tooltip = IRA_courted_strength_down.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = 1
			}
			add_to_variable = {
				var = IRA_strength
				value = -1
			}
		}	
	}
}
country_event = { # IRA loyalty down, strength up
	id = ireland.59
	title = ireland.59.t
	desc = ireland.59.d
	picture = GFX_report_event_nra_march

	is_triggered_only = yes		

	option = { # great
		name = ireland.59.a	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}	
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -1
			}
			add_to_variable = {
				var = IRA_strength
				value = 1
			}
		}	
	}
}

country_event = { # notification  for IRE that ENG accepted coal-cattle
	id = ireland.60
	title = ireland.60.t
	desc = ireland.60.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes		

	option = { # great
		name = ireland.60.a		
			swap_ideas ={
				remove_idea = IRE_trade_war
				add_idea = IRE_trade_war2
			}
	}
}
country_event = { # notification  for IRE that ENG declined coal-cattle
	id = ireland.61
	title = ireland.61.t
	desc = ireland.61.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes		

	option = { # great
		name = ireland.61.a		
	}
}
country_event = { # notification  for IRE that ENG declined confirmation of agreements
	id = ireland.62
	title = ireland.62.t
	desc = ireland.62.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes		

	option = { # great
		name = ireland.61.a		
	}
}

country_event = { # protestants challenge IRE
	id = ireland.63
	title = ireland.63.t
	desc = ireland.63.d
	picture = GFX_report_event_generic_riot

	trigger = {
		tag = IRE
		owns_state = 119
		119  ={
			NOT = { is_core_of = IRE }
		}	
		OR = {	
			has_idea = IRE_catholic_state
			has_idea = IRE_ultracatholic_state
			has_government = fascism
		}
	}

	mean_time_to_happen = {
		days = 30
	}	
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.63.a
		119 = {
			add_dynamic_modifier = { modifier = IRE_protestant_tensions }
		}
	}
}
country_event = { # waring for ENG that they are close to losing NIR to the IRA
	id = ireland.64
	title = ireland.64.t
	desc = ireland.64.d
	picture = GFX_report_event_generic_riot

	trigger = {
		tag = ENG
		119 = {
			is_owned_by = ENG
			NOT = { is_core_of = ENG }
			resistance >50
		}	
	}

	mean_time_to_happen = {
		days = 1
	}	
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.64.a
	}
}
country_event = { # event for ENG that IRA has taken NIR
	id = ireland.65
	title = ireland.65.t
	desc = ireland.65.d
	picture = GFX_report_event_ger_civil_war

	trigger = {
		tag = ENG
		119 = {
			is_owned_by = ENG
			NOT = { is_core_of = ENG }
			resistance > 75
		}	
	}

	mean_time_to_happen = {
		days = 1
	}	
	
	fire_only_once = yes
	
	immediate = {
		IRE = {
			country_event = {
				id = ireland.66
				days = 1
			}
		}
		news_event = {
			id = IRE_news.7
			days = 3
		}
	}

	option = { # bad
		name = ireland.65.a
		IRE = {
			transfer_state = 119
		}
		119 = {
			add_core_of = ENG
		}	
	}
	option = {
		name = ireland.65.b
		create_wargoal = {
			type = take_state_focus
			target = IRE
			expire = 0
			generator = { 119 }
		}
	}	
}
country_event = { # notificatiion for IRE being handed NIR by IRA
	id = ireland.66
	title = ireland.66.t
	desc = ireland.66.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes	
	
	fire_only_once = yes
	
	immediate = {
		119 = { 
			remove_dynamic_modifier = { modifier = IRE_IRA_agitation }
		}
	}

	option = { # bad
		name = ireland.66.a	
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_strength_up.tt
		}
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_loyalty_down.tt
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		
		hidden_effect = {
			add_to_variable = {
				var = IRA_loyalty
				value = -3
			}
			add_to_variable = {
				var = IRA_strength
				value = 10
			}
		}
	}	
}
country_event = { # event for ENG that IRE has siezed the treaty ports
	id = ireland.67
	title = ireland.67.t
	desc = ireland.67.d
	picture = GFX_report_event_gre_militaristic_march

	is_triggered_only = yes	
	
	fire_only_once = yes

	option = { # fait accompili
		name = ireland.67.a
		ai_chance = {
			factor = 50
		}	
	}
	option = { # this means war
		name = ireland.67.b
		ai_chance = {
			factor = 2
		}
		create_wargoal = {
			type = puppet_wargoal_focus
			target = IRE
		}
		add_stability = -0.15
		add_war_support = -0.1
	}
}
country_event = { # IRA revolt - no going back
	id = ireland.68
	title = ireland.68.t
	desc = ireland.68.d
	picture = GFX_report_event_gre_city_siege

	trigger = {
		tag = IRE
		has_idea = IRE_ira_5
	}

	mean_time_to_happen = {
		days = 100
	}
	
	fire_only_once = yes

	option = { # oh no!
		name = ireland.68.a
		set_country_flag = IRA_going_to_revolt
		every_state = {
			limit = {
				is_core_of = IRE
			}
			add_core_of = IRA
		}
	}
}

country_event = { # IRA revolt
	id = ireland.69
	title = ireland.69.t
	desc = ireland.69.d
	picture = GFX_report_event_spr_spanish_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes
	
	immediate = { # this might allow adding units and templates as they exist before being added to
		hidden_effect = {
			IRA = { transfer_state = 134 }
		}
	}	

	option = { # oh no!
		name = ireland.69.a
		clr_country_flag = IRA_going_to_revolt
		hidden_effect = {
			add_popularity = {
				ideology = communism 
				popularity = -0.05
			}
			add_popularity = {
				ideology = fascism
				popularity = -0.15
			}	
			if = {
				limit = {
					date > 1938.8.1
				}	
				IRA = { # Remove democratic country leaders for new IRA tag
					retire_ideology_leader = democratic
					retire_ideology_leader = neutrality
					set_politics = {
						ruling_party = fascism
					}
					add_popularity = {
						ideology = democratic
						popularity = -0.5
					}
					add_popularity = {
						ideology = communism
						popularity = 0.35
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.2
					}
				}
			}
			else = {
				IRA = { # Remove democratic country leaders for new IRA tag
					retire_ideology_leader = democratic
					retire_ideology_leader = neutrality
					set_politics = {
						ruling_party = communism
					}
					add_popularity = {
						ideology = democratic
						popularity = -0.5
					}
					add_popularity = {
						ideology = communism
						popularity = 0.55
					}
					add_popularity = {
						ideology = fascism
						popularity = -0.05
					}
				}
			}	
			# Add Garrison division templates
			division_template = {
				name = "Volunteer Brigade"
				is_locked = yes
				template_counter = 6
				division_names_group = IRE_GAR_02
				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
				}
			}
			#transfer states depending on ira strength
			IRA = { transfer_state = 134} # always have connaught
			if  = {
				limit = {
					IRE = { is_ai = no } # make it a little easier for the ai by removing some strength scaling
				}
				if = { # transfer munster if their strength is particularly high
					limit = {
						check_variable = {
							var = IRA_strength
							value = 25
							compare = greater_than_or_equals
						}
					}
					IRA = { transfer_state = 135 }
				}
			}
			# Split equipment and army/navy depending on strength
			if = { # very strong IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 30
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.6 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.6
					army_ratio = 0.3
					navy_ratio = 0.3
					air_ratio = 0.3
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						NOT = { has_trait = IRA_sympathies }
					}
				}
			}
			else_if = { # strong IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.5 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.5
					army_ratio = 0.25
					navy_ratio = 0.2
					air_ratio = 0.3
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						NOT = { has_trait = IRA_sympathies }
					}
				}
			}
			
			else_if = { # medium IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 15
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.45 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.45
					army_ratio = 0.2
					navy_ratio = 0.1
					air_ratio = 0.3
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						NOT = { has_trait = IRA_sympathies }
					}
				}
			}	
			
			else_if = { # medium-low IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 10
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.35 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.35
					army_ratio = 0.15
					navy_ratio = 0
					air_ratio = 0.2
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						NOT = { has_trait = IRA_sympathies }
					}
				}
			}	
			else_if = { # weak IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.25 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.25
					army_ratio = 0.1
					navy_ratio = 0
					air_ratio = 0
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						NOT = { has_trait = IRA_sympathies }
					}
				}
			}	
			# Spawning Garrisons for IRE
			113 = {
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 11293 # Dublin
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 3342 # Kildare Airfield
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 285 # waterfrord
				}
			}	
			if = { # for some reason the game won't spawn any units if some of them cannot spawn
				limit = {
					IRE = { owns_state = 135 }
				}	
				135 = { # potentially cut-off if IRA holds munster
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 7394 # cork
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 11237 # Wexford
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 11267 # Wexford
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 9284 # Wexford
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 6313 # Wexford
					}
				}	
			}	
			else_if = {
				limit = {
					NOT = { IRE = { owns_state = 135 } }
				}	
				113 = { # potentially cut-off if IRA holds munster
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 303 #
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 369 # Wexford
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 3359 # Wexford
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 303 # Wexford
					}
					create_unit = {
						division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
						owner = IRE
						prioritize_location = 369 # Wexford
					}
				}	
			}	
			# Add IRA garrison divisions
			IRA = {
				division_template = {
					name = "IRA Brigade"
					is_locked = yes
					template_counter = 6
					division_names_group = IRE_GAR_03
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 2 }
					}
				}
			}
		#Spawning Garrisons for the IRA
			134 = { # connaught
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9303 # Galway
				}
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11371 # Silgo
				}
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 3396 # near Galway
				}
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11238 # 
				}
			}
			if = {
				limit = {
					IRA = { owns_state = 135 }
				}	
				135	=  { # munster
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 11334 # Limmerick
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 6289 # Tralee
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 11267 # Tipperary
					}
				}
			}	
			else_if = {
				limit = {
					NOT = { IRA = { owns_state = 135 } }
				}
				134	=  { # munster
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 3396 # Limmerick
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 3396 # Tralee
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 3396 # Tipperary
					}
				}
			}		
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 10
						compare = greater_than_or_equals
					}
				}
				134 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRA
						prioritize_location = 9369 # Longford
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 15
						compare = greater_than_or_equals
					}
				}
				if = {
					limit = {
						IRA = { owns_state = 135 }
					}	
					135 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
							owner = IRA
							prioritize_location = 2984 # Killarney
						}
					}
				}
				else_if = {
					limit = {
						NOT = { IRA = { owns_state = 135 } }
					}	
					134 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
							owner = IRA
							prioritize_location = 9255 # Killarney
						}
					}
				}	
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than_or_equals
					}
				}
				if = {
					limit = {
						IRA = { owns_state = 135 }
					}	
					135 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
							owner = IRA
							prioritize_location = 2984 # Killarney
						}
					}
				}
				else_if = {
					limit = {
						NOT = { IRA = { owns_state = 135 } }
					}	
					134 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
							owner = IRA
							prioritize_location = 9255 # Killarney
						}
					}
				}	
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 25
						compare = greater_than_or_equals
					}
				}
				134 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.5" 
						owner = IRA
						prioritize_location = 9303 # Galway
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.5" 
						owner = IRA
						prioritize_location = 11371 # Cavan
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 30
						compare = greater_than_or_equals
					}
				}
				134 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
						owner = IRA
						prioritize_location = 9303 # Galway
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
						owner = IRA
						prioritize_location = 9303 # Galway
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
						owner = IRA
						prioritize_location = 9303 # Galway
					}
				}
			}					
		
			# Switch leaders who do have Ira sympathies to the Rebels
			every_unit_leader = {
				limit = {
					has_trait = IRA_sympathies
				}
				set_nationality = IRA
			}
			# Trigger war between the sides - necessary because the next effects spawn units on contested provinces and this requires both sides to be at war
			IRE = {
				declare_war_on = {
					target = IRA
					type = civil_war
				}
					add_civil_war_target = IRA
			}
			if = {
				limit = {
					date > 1938.8.1
				}	
				IRA = {
					add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
					set_party_name = { ideology = fascism long_name = IRA_fasicm_military_junta_party_long name = IRA_fasicm_military_junta_party }
						create_country_leader = {
							name = "Gearóid Ó Cuinneagáin"
							desc = "POLITICS_GEAROID_O_CUINNEAGAIN_DESC"
							picture = "gfx/leaders/IRE/Portrait_Ireland_Gearoid_O_Cuinneagain.tga"
							expire = "1965.1.1"
							ideology = falangism
						}	
				}
			}
			else = {
				IRA = {
					add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
					set_party_name = { ideology = communism long_name = IRA_fasicm_military_junta_party_long name = IRA_fasicm_military_junta_party }
						create_country_leader = {
							name = "Peadar O'Donnell"
							desc = "POLITICS_PEADAR_O_DONNEL_DESC"
							picture = "gfx/leaders/IRE/Portrait_Ireland_Peadar_ODonnell.tga"
							expire = "1965.1.1"
							ideology = leninism
						}	
				}
			}	
			add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
			set_country_flag = IRA_revolted
			remove_ideas = IRE_ira_5
			hidden_effect = {				
				news_event = {
					id = IRE_news.8
					days = 3
				}
			}	
		}
	}
}

country_event = { # Eoin O'Duffy begins flirting with the IRA
	id = ireland.70
	title = ireland.70.t
	desc = ireland.70.d
	picture = GFX_report_event_gre_militaristic_march

	trigger = {
		tag = IRE
		date > 1939.1.1
		NOT = {
			OR = {
				has_idea = IRE_ira_6
				has_idea = IRE_ira_0
			}
		}
	}

	mean_time_to_happen = {
		days = 90
	}
	
	fire_only_once = yes

	option = { # that sounds bad
		name = ireland.70.a
		add_political_power = -100
	}
	option = { # oh no!
		name = ireland.70.b
		add_stability = -0.05
		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}	
		every_army_leader = {
			limit = {
				has_id = 9911
			}
			add_unit_leader_trait = IRA_sympathies
		}
		if = {
			limit = {
				NOT = { has_completed_focus = IRE_court_the_ira }
			}	
			custom_effect_tooltip = IRA_strength_up.tt
		}	
		if = {
			limit = {
				has_completed_focus = IRE_court_the_ira
			}	
			custom_effect_tooltip = IRA_courted_strength_up.tt
		}
		add_to_variable = {
			var = IRA_strength
			value = 2
		}	
	}
}

country_event = { # IRA defeated
	id = ireland.71
	title = ireland.71.t
	desc = ireland.71.d
	picture = GFX_report_event_spr_spanish_civil_war

	trigger = {
		tag = IRE
		has_country_flag = IRA_revolted
		has_civil_war = no
	}

	mean_time_to_happen = {
		days = 5
	}
	
	fire_only_once = yes

	option = { # victory!
		name = ireland.71.a
		add_political_power = 250
		add_ideas = IRE_ira_6
		every_state = {
			limit = {
				is_core_of = IRA
			}
			remove_core_of = IRA
		}	
		remove_ideas = IRE_death_before_surrender
		delete_unit_template_and_units = {
			division_template = "Volunteer Brigade"
			disband = yes
		}	
	}
}

country_event = { # democratic oppostion forming resistance
	id = ireland.72
	title = ireland.72.t
	desc = ireland.72.d
	picture = GFX_report_event_spr_spanish_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { # uh oh
		name = ireland.72.a
		hidden_effect = {
			every_state = {
				limit = {
					is_core_of = IRE
				}	
				add_core_of = IRA
			}
			IRA = {
				set_politics = {
					ruling_party = democratic
				}
			}
			country_event = {
				id = ireland.73
				days = 7
			}	
		}	
	}
}


country_event = { # democratic opposition revolt
	id = ireland.73
	title = ireland.73.t
	desc = ireland.73.d
	picture = GFX_report_event_spr_spanish_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes

	immediate = { # nation has to exist before it can recieve units
		hidden_effect = {
			IRA = { transfer_state = 135 }
		}
	}	
	option = { # oh no!
		name = ireland.73.a
		clr_country_flag = IRA_going_to_revolt
		hidden_effect = {
			add_popularity = {
				ideology = democratic
				popularity = -0.15
			}
			IRA = { # Remove democratic country leaders for new IRA tag
				retire_ideology_leader = fascism
				retire_ideology_leader = communism
				set_politics = {
					ruling_party = democratic
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.5
				}
				add_popularity = {
					ideology = communism
					popularity = -0.25
				}
				add_popularity = {
					ideology = fascism
					popularity = -0.25
				}
			}
			# Add Garrison division templates
			IRA = {
				division_template = {
					name = "Volunteer Brigade"
					is_locked = yes
					template_counter = 6
					division_names_group = IRE_GAR_02
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
					}
				}
			}	
				division_template = {
					name = "IRA Brigade"
					is_locked = yes
					template_counter = 6
					division_names_group = IRE_GAR_03
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 2 }
					}
				}
			#transfer states depending on ira strength
			IRA = { transfer_state = 135} # always have munster
			if = { # transfer connaught if IRA strength is particularly low
				limit = {
					check_variable = {
						var = IRA_strength
						value = 15
						compare = less_than_or_equals
					}
				}
				IRA = { transfer_state = 134 }
			}
			# Split equipment and army/navy depending on strength
			if = { # very strong IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 30
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.3 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.3
					army_ratio = 0.25
					navy_ratio = 0.1
					air_ratio = 0.1
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						has_trait = IRA_sympathies
					}
				}
			}
			else_if = { # strong IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.4 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.4
					army_ratio = 0.3
					navy_ratio = 0.15
					air_ratio = 0.15
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						has_trait = IRA_sympathies
					}
				}
			}
			
			else_if = { # medium IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 15
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.45 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.45
					army_ratio = 0.35
					navy_ratio = 0.2
					air_ratio = 0.2
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						has_trait = IRA_sympathies
					}
				}
			}	
			
			else_if = { # medium-low IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 10
						compare = greater_than_or_equals
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.5 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.5
					army_ratio = 0.4
					navy_ratio = 0.25
					air_ratio = 0.25
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						has_trait = IRA_sympathies
					}
				}
			}	
			else_if = { # weak IRA
				limit = {
					check_variable = {
						var = IRA_strength
						value = 10
						compare = less_than
					}
				}
				transfer_units_fraction = {
					target = IRA
					size = 0.55 # Fallback in case one of the ratios below are not stipulated
					stockpile_ratio = 0.55
					army_ratio = 0.5
					navy_ratio = 0.3
					air_ratio = 0.3
					keep_unit_leaders = {
					    
					}
					keep_unit_leaders_trigger = {
						has_trait = IRA_sympathies
					}
				}
			}	
			# Spawning Garrisons for IRE
			113 = {
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 11293 # Dublin
				}
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 3342 # Kildare Airfield
				}
				create_unit = {
					division = "division_template = \"IRA Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 285 # waterfrord
				}
			}	
			if = {
				limit = {
					IRE = { owns_state = 134 }
				}
				134 = { # connaught
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 9303 # Galway
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 11371 # Silgo
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 3396 # near Galway
					}
				}
			}
			else_if = {
				limit = {
					NOT = { IRE = { owns_state = 134 } }
				}
				135 = { # connaught
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 7394 # Galway
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 9284 # Silgo
					}
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 6289 # near Galway
					}
				}
			}	
		#Spawning Garrisons for the IRA
			135 = { # potentially cut-off if IRA holds munster
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRA
					prioritize_location = 7394 # cork
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRA
					prioritize_location = 11237 # Wexford
				}
			}	
			135	=  { # munster
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11334 # Limmerick
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 6289 # Tralee
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11267 # Tipperary
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9310 # Tipperary
				}
			}
			if = {	
				limit = {
					IRA = { owns_state = 134 }
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9303 # Limmerick
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9303 # Tralee
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 3396 # Tipperary
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11287 # Tipperary
				}
			}
			# Optional troops for IRE
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 10
						compare = greater_than_or_equals
					}
				}
				113 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 369 # Longford
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 15
						compare = greater_than_or_equals
					}
				}
				113 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 3359 # Killarney
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 20
						compare = greater_than_or_equals
					}
				}
				135 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.5" 
						owner = IRE
						prioritize_location = 7377 # Limerick
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 25
						compare = greater_than_or_equals
					}
				}
				if = {
					limit = {
						IRE = { owns_state = 134 }
					}
					134 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.5" 
							owner = IRE
							prioritize_location = 9303 # Galway
						}
					}
				}
				else_if = {
					limit = {
						NOT = { IRE = { owns_state = 134 } }
					}	
					113 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.5" 
							owner = IRE
							prioritize_location = 369 # Galway
						}
					}
				}	
				113 = {
					create_unit = {
						division = "division_template = \"IRA Brigade\" start_experience_factor = 1.5" 
						owner = IRE
						prioritize_location = 11303 # Cavan
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IRA_strength
						value = 30
						compare = greater_than_or_equals
					}
				}
				if = {
					limit = {
						IRE = { owns_state = 134 }
					}	
					134 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
							owner = IRE
							prioritize_location = 9303 # Galway
						}
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
							owner = IRE
							prioritize_location = 9303 # Galway
						}
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
							owner = IRE
							prioritize_location = 9303 # Galway
						}
					}
				}	
				else_if = {
					limit = {
						NOT = { IRE = { owns_state = 134 } }
					}	
					134 = {
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
							owner = IRE
							prioritize_location = 11293 # Galway
						}
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
							owner = IRE
							prioritize_location = 11293 # Galway
						}
						create_unit = {
							division = "division_template = \"IRA Brigade\" start_experience_factor = 1.8" 
							owner = IRE
							prioritize_location = 11293 # Galway
						}
					}
				}	
			}					
		
			# Switch leaders who do have Ira sympathies to the Rebels
			every_unit_leader = {
				limit = {
					NOT = { has_trait = IRA_sympathies }
				}
				set_nationality = IRA
			}
			# Trigger war between the sides - necessary because the next effects spawn units on contested provinces and this requires both sides to be at war
			IRE = {
				declare_war_on = {
					target = IRA
					type = civil_war
				}
					add_civil_war_target = IRA
			}
			IRA = {
				add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
			}
			add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
			set_party_name = { ideology = fascism long_name = IRA_fasicm_military_junta_party_long name = IRA_fasicm_military_junta_party }
			set_country_flag = IRE_democratic_revolt
			hidden_effect = {				
				news_event = {
					id = IRE_news.9
					days = 3
				}
			}	
		}
	}
}

country_event = { # democratic revolt defeated
	id = ireland.74
	title = ireland.74.t
	desc = ireland.74.d
	picture = GFX_report_event_spr_spanish_civil_war

	trigger = {
		tag = IRE
		has_country_flag = IRE_democratic_revolt
		has_civil_war = no
	}

	mean_time_to_happen = {
		days = 1
	}
	
	fire_only_once = yes

	option = { # victory!
		name = ireland.75.a
		add_political_power = 250
		every_state = {
			limit = {
				is_core_of = IRA
			}
			remove_core_of = IRA
		}	
		remove_ideas = IRE_death_before_surrender
		delete_unit_template_and_units = {
			division_template = "IRA Brigade"
			disband = yes
		}	
	}
}

country_event = { # sneaky event to kill IRA cores
	id = ireland.75

	trigger = {
		any_state = {
			is_core_of = IRA
		}
	}

	mean_time_to_happen = {
		days = 1
	}
	hidden = yes
	fire_only_once = yes

	immediate = {
		every_state = {
			limit = {
			is_core_of = IRA
			}
			remove_core_of = IRA
		}	
		IRE = {	set_party_name = { ideology = neutrality long_name = IRE_national_centre_party_long name = IRE_national_centre_party } }
	}	
}
country_event = { # waring for IRE that they are close to losing NIR to the unionists
	id = ireland.76
	title = ireland.76.t
	desc = ireland.76.d
	picture = GFX_report_event_generic_riot

	trigger = {
		tag = IRE
		119 = {
			is_owned_by = IRE
			NOT = { is_core_of = IRE }
			resistance >50
		}	
	}

	mean_time_to_happen = {
		days = 1
	}	
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.64.a
	}
}
country_event = { # event for IRE that unionists have risen in NIR
	id = ireland.77
	title = ireland.77.t
	desc = ireland.77.d
	picture = GFX_report_event_ger_civil_war

	trigger = {
		tag = IRE
		119 = {
			is_owned_by = IRE
			NOT = { is_core_of = IRE }
			resistance > 80
		}	
	}

	mean_time_to_happen = {
		days = 1
	}	
	
	fire_only_once = yes
	
	immediate = {
		hidden_effect = {
			news_event = {
				id = IRE_news.11
				days = 3
			}
		}	
	}

	option = { # bad
		name = ireland.77.a
		
		hidden_effect = {
			release = NIR
			NIR = {
				load_oob = NIR_revolt_oob
				add_ai_strategy = {
					type = alliance
					id = ENG
					value = 100
				}
			}	
			119 = {
				remove_dynamic_modifier = { modifier = IRE_unionist_tensions }
				remove_dynamic_modifier = { modifier = IRE_protestant_tensions }
			}	
		}	
		NIR = {
			transfer_state = 119
		}
		
		declare_war_on = {
			target = NIR
			type = annex_everything
		}	
		119 = {
			add_core_of = IRE
		}	
		if = {
			limit = {
				NOT = { has_war_with = ENG }
			}
			custom_effect_tooltip = NIR_revolt.tt
		}
	}
	option = { # bad, but no war pls
		name = ireland.77.b
		ai_chance = {
			factor = 0
		}	
		hidden_effect = {
			release = NIR
			NIR = {
				load_oob = NIR_revolt_oob
				add_ai_strategy = {
					type = alliance
					id = ENG
					value = 100
				}
			}	
			119 = {
				remove_dynamic_modifier = { modifier = IRE_unionist_tensions }
				remove_dynamic_modifier = { modifier = IRE_protestant_tensions }
			}	
		}	
		NIR = {
			transfer_state = 119
		}	
		119 = {
			add_core_of = IRE
		}	
	}
}
country_event = { # event for ENG to ally NIR rebels
	id = ireland.78
	title = ireland.78.t
	desc = ireland.78.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # intervene
		name = ireland.78.a
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.5
				has_war = yes
			}
			modifier = {
				factor = 0
				is_subject = yes
			}	
			modifier = {
				factor = 0
				is_in_faction_with = IRE
			}	
		}	
		set_autonomy = {
			target = NIR
			autonomy_state = autonomy_puppet
		}	
		declare_war_on = {
			target = IRE
			type = puppet_wargoal_focus
		}	
	}
	option = { # send an ultimatum
		name = ireland.78.b
		ai_chance = {
			factor = 10
		}		
		IRE = {
			country_event = {
				id = ireland.79
				days = 1
			}
		}
	}
	option = { # idon't
		name = ireland.78.c
		ai_chance = {
			factor = 10
		}		
	}
}
country_event = { # ENG sends ultimatum to IRE
	id = ireland.79
	title = ireland.79.t
	desc = ireland.79.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # acquiese
		name = ireland.78.a
		ai_chance = {
			factor = 0	
		}	
		white_peace = {
			tag = NIR
		}	
		hidden_effect = {
			ENG = {
				country_event = {
					id = ireland.80
					days = 1
				}
			}
		}
	}
	option = { # never!
		name = ireland.78.b
		ai_chance = {
			factor = 10
		}	
		hidden_effect = {
			ENG = {
				country_event = {
					id = ireland.81
					days = 1
				}
			}
		}	
	}
}
country_event = { # notificatiion for ENG that IRE agreed to make peace
	id = ireland.80
	title = ireland.80.t
	desc = ireland.80.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # good
		name = ireland.80.a
	}
}
country_event = { # notificatiion for ENG that IRE refused to make peace
	id = ireland.81
	title = ireland.81.t
	desc = ireland.81.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.81.a
		set_autonomy = {
			target = NIR
			autonomy_state = autonomy_puppet
		}	
		declare_war_on = {
			target = IRE
			type = puppet_wargoal_focus
		}
	}
	option = { # we tried...
		name = ireland.81.a
		ai_chance = {
			factor = 0
		}	
	}
}
country_event = { # A King of our own - choosing a king
	id = ireland.82
	title = ireland.82.t
	desc = ireland.82.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		focus_progress = {
			focus = IRE_a_king_of_our_own
			progress > 0.1
		}
	}
	
	mean_time_to_happen = {
		days = 3
	}	
	
	fire_only_once = yes

	option = { # O'neills
		name = ireland.82.a
		set_country_flag = IRE_o_neills
		custom_effect_tooltip = IRE_o_neills.tt
		hidden_effect = {
			country_event = {
				id = ireland.83
				days = 7
			}
		}
	}
	option = { # O'Donnels
		name = ireland.82.b
		set_country_flag = IRE_o_donnels
		custom_effect_tooltip = IRE_o_donnells.tt
		hidden_effect = {
			country_event = {
				id = ireland.83
				days = 7
			}
		}	
	}
}
country_event = { # position of the church in the monarchy
	id = ireland.83
	title = ireland.83.t
	desc = ireland.83.d
	picture = GFX_report_event_royal_parade

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { # catholic state
		name = ireland.83.a
		add_ideas = IRE_catholic_state
		hidden_effect =  {
			add_to_variable = {
				var = IRA_loyalty
				value = 1
			}
		}
		custom_effect_tooltip = IRA_loyalty_up.tt
	}
	option = { # no
		name = ireland.83.b
		add_stability = -0.1
		hidden_effect =  {
			add_to_variable = {
				var = IRA_loyalty
				value = -1
			}
		}
		custom_effect_tooltip = IRA_loyalty_down.tt
	}
}
country_event = { # position of the church in the monarchy - dual monarchy or prussian prince
	id = ireland.84
	title = ireland.84.t
	desc = ireland.84.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		OR = {
			focus_progress = {
				focus = IRE_the_prussian_prince
				progress > 0.2
			}
			focus_progress = {
				focus = IRE_the_dual_monarchy
				progress > 0.2
			}
		}	
	}
	
	mean_time_to_happen = {
		days = 3
	}	
	
	fire_only_once = yes

	option = { # catholic state
		name = ireland.84.a
		add_ideas = IRE_catholic_state
		add_political_power = -50
		set_country_flag = IRE_monarchy_religious_tensions
		hidden_effect =  {
			add_to_variable = {
				var = IRA_loyalty
				value = 1
			}
		}
		custom_effect_tooltip = IRA_loyalty_up.tt
	}
	option = { # no
		name = ireland.84.b
		add_stability = -0.1
		hidden_effect =  {
			add_to_variable = {
				var = IRA_loyalty
				value = -1
			}
		}
		custom_effect_tooltip = IRA_loyalty_down.tt
	}
}
country_event = { # position of the church in the monarchy
	id = ireland.85
	title = ireland.85.t
	desc = ireland.85.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		has_country_flag = IRE_monarchy_religious_tensions
	}
	
	mean_time_to_happen = {
		days = 300
	}	
	
	fire_only_once = yes

	option = { # force the king to convert
		name = ireland.85.a
		add_political_power = -300
		hidden_effect =  {
			add_to_variable = {
				var = IRA_loyalty
				value = 1
			}
		}
		custom_effect_tooltip = IRA_loyalty_up.tt
		clr_country_flag = IRE_monarchy_religious_tensions
	}
	option = { # compromise on religion
		name = ireland.85.b
		add_stability = -0.1
		remove_ideas = IRE_catholic_state
		hidden_effect =  {
			add_to_variable = {
				var = IRA_loyalty
				value = -1
			}
		}
		custom_effect_tooltip = IRA_loyalty_down.tt
		clr_country_flag = IRE_monarchy_religious_tensions
	}
	option = { # try to hide the issue
		name = ireland.85.c
		add_country_leader_trait = IRE_religiously_controversial
		clr_country_flag = IRE_monarchy_religious_tensions
	}
}
country_event = { # monarch becoming more irish - king of our own path
	id = ireland.86
	title = ireland.86.t
	desc = ireland.86.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		has_completed_focus = IRE_a_king_of_our_own
		IRE_henry_stuart  = { is_country_leader = no }
	}
	
	mean_time_to_happen = {
		days = 300
	}	
	
	fire_only_once = yes

	option = { # great!
		name = ireland.86.a
		remove_country_leader_trait = IRE_foreign_king_1 
		add_country_leader_trait = IRE_irish_king
	}
}

country_event = { # monarch becoming more irish - prussian prince path
	id = ireland.87
	title = ireland.87.t
	desc = ireland.87.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		has_completed_focus = IRE_the_prussian_prince
		IRE_henry_stuart  = { is_country_leader = no }
	}
	
	mean_time_to_happen = {
		days = 300
	}	
	
	fire_only_once = yes

	option = { # great!
		name = ireland.86.a
		remove_country_leader_trait = IRE_foreign_king_2 
		add_country_leader_trait = IRE_foreign_king_1
		set_country_flag = IRE_prussian_progress
	}
}

country_event = { # monarch becoming more irish - prussian prince path 2
	id = ireland.88
	title = ireland.88.t
	desc = ireland.88.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		has_completed_focus = IRE_the_prussian_prince
		IRE_henry_stuart  = { is_country_leader = no }
		has_country_flag = IRE_prussian_progress
	}
	
	mean_time_to_happen = {
		days = 600
	}	
	
	fire_only_once = yes

	option = { # great!
		name = ireland.86.a
		remove_country_leader_trait = IRE_foreign_king_1 
		add_country_leader_trait = IRE_irish_king
	}
}
country_event = { # notificatiion for GER that IRE is agitating the monarchist cause
	id = ireland.89
	title = ireland.89.t
	desc = ireland.89.d
	picture = GFX_report_event_royal_parade

	is_triggered_only = yes	
	
	fire_only_once = yes

	option = { # bad
		name = ireland.89.a
		add_stability = -0.15
	}
}
country_event = { # notificatiion for GER that IRE has started a civil war!
	id = ireland.90
	title = ireland.90.t
	desc = ireland.90.d
	picture = GFX_report_event_ger_civil_war

	is_triggered_only = yes		
	
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					date < 1941.1.1
				}
				create_country_leader = {
					name = "Wilhelm II"
					desc = "POLITICS_WILHELM_II_DESC"
					picture = GFX_portrait_ger_wilhelm_ii
					expire = "1965.1.1"
					ideology = despotism
					traits = {
						anti_democrat imperial_connections
					}
				}
			}
			if = {
				limit = {
					date > 1941.1.1 # because the Kaiser dies in '41 - ish
				}
				create_country_leader = {
					name = "Wilhelm III"
					desc = "POLITICS_WILHELM_III_DESC"
					picture = GFX_portrait_ger_wilhelm_iii
					expire = "1965.1.1"
					ideology = despotism
					traits = {
						popular_figurehead2
					}
				}
			}
		}
	}
			
	option = { # bad
		name = ireland.90.a
		hidden_effect = {
			start_civil_war = {
				ideology = neutrality
				size = 0.4
				capital = 55
				states = { 56 59 57 51 55 42 58 }
				keep_unit_leaders = {
					10 15 20 24
				}
			}
			news_event = {
				id = IRE_news.18
				days = 2
			}	
		}
	}
}
country_event = { # notificatiion ENG that IRE is fusing the kingdoms
	id = ireland.91
	title = ireland.91.t
	desc = ireland.91.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = ENG
		is_ai = no
		IRE = {
			focus_progress = {
				focus = IRE_fuse_the_kingdoms
				progress > 0.7
			}
		}
	}
	
	mean_time_to_happen = {
		days = 3
	}
	
	option = { # annex ire
		name = ireland.91.a
		annex_country = {
			target = IRE
			transfer_troops = yes
		}
		every_state = {
			limit = {
				is_core_of = IRE
			}
			add_core_of = ENG
		}
		set_cosmetic_tag = ENG_IRE_dual_monarchy
	}
	option = { # do nothing
		name = ireland.91.b
		trigger = {
			IRE = {
				is_ai = no
			}
		}
	}
}
country_event = { # giving Francis Stuart a Better Trait
	id = ireland.92
	title = ireland.92.t
	desc = ireland.92.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		has_country_leader = {
			character = IRE_henry_stuart
		}
		has_completed_focus = IRE_overthrow_the_free_state
	}
	
	mean_time_to_happen = {
		days = 300
	}
	fire_only_once = yes
	
	option = { # good
		name = ireland.92.a
		remove_country_leader_trait  = IRE_monarchist_plotter 
		add_country_leader_trait = IRE_triumphant_monarchist 
		set_party_name = { 
			ideology = neutrality 
			long_name = IRE_sinn_fein_long 
			name = IRE_sinn_fein 
		}
	}
}
country_event = { # the king's representative?
	id = ireland.93
	title = ireland.93.t
	desc = ireland.93.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = IRE
		has_completed_focus = IRE_the_dual_monarchy
	}
	
	mean_time_to_happen = {
		days = 30
	}
	
	fire_only_once = yes
	
	option = { # keep francis stuart
		name = ireland.93.a
		add_stability = 0.05
	}
	
	option = { # favour baron rugby
		name = ireland.93.b
		add_country_leader_role = {
			Character = IRE_john_maffey
			Promote_leader = yes
			Country_leader = {
				ideology = oligarchism
				traits = {
					ENG_IRE_diplomat
				}
			}
		}
	}
}
country_event = { # ENG approval of the dual monarchy idea?
	id = ireland.94
	title = ireland.94.t
	desc = ireland.94.d
	picture = GFX_report_event_royal_parade

	trigger = {
		tag = ENG
		IRE = {
			focus_progress = {
				focus = IRE_the_dual_monarchy
				progress > 0.3
			}
		}
	}
	
	mean_time_to_happen = {
		days = 3
	}
	
	fire_only_once = yes
	
	option = { # approve the idea
		name = ireland.94.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 100
				IRE = { is_ai = no }
			}
		}
	}
	
	option = { # oppose the idea
		name = ireland.94.b
		ai_chance = {
			factor = 7
			modifier = {
				factor = 0
				IRE = { is_ai = no }
			}
		}
		set_country_flag = ENG_refused_dual_monarchy
	}
}
country_event = { # democratic oppostion forming resistance - neutrality path
	id = ireland.95
	title = ireland.95.t
	desc = ireland.95.d
	picture = GFX_report_event_spr_spanish_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { # uh oh
		name = ireland.72.a
		hidden_effect = {
			every_state = {
				limit = {
					is_core_of = IRE
				}	
				add_core_of = IRA
			}
			IRA = {
				set_politics = {
					ruling_party = democratic
				}
			}
			country_event = {
				id = ireland.96
				days = 7
			}	
		}	
	}
}

country_event = { # democratic opposition revolt - neutrality path - does not scale with IRA strength
	id = ireland.96
	title = ireland.96.t
	desc = ireland.96.d
	picture = GFX_report_event_spr_spanish_civil_war

	is_triggered_only = yes
	
	fire_only_once = yes

	immediate = { # nation has to exist before it can recieve units
		hidden_effect = {
			IRA = { transfer_state = 135 }
		}
	}	
	option = { # oh no!
		name = ireland.73.a
		clr_country_flag = IRA_going_to_revolt
		hidden_effect = {
			add_popularity = {
				ideology = democratic
				popularity = -0.15
			}
			IRA = { # Remove democratic country leaders for new IRA tag
				retire_ideology_leader = fascism
				retire_ideology_leader = communism
				set_politics = {
					ruling_party = democratic
				}
				add_popularity = {
					ideology = democratic
					popularity = 0.5
				}
				add_popularity = {
					ideology = communism
					popularity = -0.25
				}
				add_popularity = {
					ideology = fascism
					popularity = -0.25
				}
			}
			# Add Garrison division templates
			IRA = {
				division_template = {
					name = "Volunteer Brigade"
					is_locked = yes
					template_counter = 6
					division_names_group = IRE_GAR_02
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
					}
				}
			}	
			IRE = {
				division_template = {
					name = "Loyalist Brigade"
					is_locked = yes
					template_counter = 6
					division_names_group = IRE_GAR_02
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 2 }
					}
				}
			}	
			#transfer states depending on ira strength
			IRA = { transfer_state = 135} # always have munster
			transfer_units_fraction = {
				target = IRA
				size = 0.5 # Fallback in case one of the ratios below are not stipulated
				stockpile_ratio = 0.4
				army_ratio = 0.33
				navy_ratio = 0.2
				air_ratio = 0.1
				keep_unit_leaders = {
				    
				}
			}
			# Spawning Garrisons for IRE
			113 = {
				create_unit = {
					division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 11293 # Dublin
				}
				create_unit = {
					division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 3342 # Kildare Airfield
				}
				create_unit = {
					division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.3" 
					owner = IRE
					prioritize_location = 285 # waterfrord
				}
			}	
			if = {
				limit = {
					IRE = { owns_state = 134 }
				}
				134 = { # connaught
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 9303 # Galway
					}
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 11371 # Silgo
					}
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 3396 # near Galway
					}
				}
			}
			else_if = {
				limit = {
					NOT = { IRE = { owns_state = 134 } }
				}
				135 = { # connaught
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 11293 # Dublin
					}
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 11293 # Dublin
					}
					create_unit = {
						division = "division_template = \"Loyalist Brigade\" start_experience_factor = 0.8" 
						owner = IRE
						prioritize_location = 285 # Waterford
					}
				}
			}	
		#Spawning Garrisons for the IRA
			135 = { # potentially cut-off if IRA holds munster
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRA
					prioritize_location = 7394 # cork
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.3" 
					owner = IRA
					prioritize_location = 11237 # Wexford
				}
			}	
			135	=  { # munster
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11334 # Limmerick
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 6289 # Tralee
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11267 # Tipperary
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9310 # Tipperary
				}
			}
			if = {	
				limit = {
					IRA = { owns_state = 134 }
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9303 # Limmerick
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 9303 # Tralee
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 3396 # Tipperary
				}
				create_unit = {
					division = "division_template = \"Volunteer Brigade\" start_experience_factor = 0.8" 
					owner = IRA
					prioritize_location = 11287 # Tipperary
				}
			}
			# Trigger war between the sides - necessary because the next effects spawn units on contested provinces and this requires both sides to be at war
			IRE = {
				declare_war_on = {
					target = IRA
					type = civil_war
				}
					add_civil_war_target = IRA
			}
			IRA = {
				add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
			}
			add_timed_idea = { idea = IRE_death_before_surrender days = 900 }
			set_country_flag = IRE_democratic_revolt
			hidden_effect = {				
				news_event = {
					id = IRE_news.17
					days = 3
				}
			}	
		}
	}
}
country_event = { # IRE invites us to the atlantic alliance
	id = ireland.97
	title = ireland.97.t
	desc = ireland.97.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	

	option = { # join
		name = ireland.97.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 4
				original_tag = GER
				has_government = neutrality
			}	
		}
		add_ai_strategy = {
			type = alliance
			id = IRE
			value = 200
		}
		IRE = {
			country_event = {
				id = ireland.98
				days = 1
			}
		}	
	}
	option = { # don't
		name = ireland.97.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 40
				}
			}	
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 60
				}
			}	
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 80
				}
			}	
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 100
				}
			}	
			modifier = {
				factor = 2
				has_opinion = {
					target = IRE
					value < 0
				}
			}	
		}
		IRE = {
			country_event = {
				id = ireland.99
				days = 1
			}
		}	
	}
}

country_event = { # notification for IRE that FROM has joined the alliance
	id = ireland.98
	title = ireland.98.t
	desc = ireland.98.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	

	option = { # join
		name = ireland.98.a
		add_to_faction = FROM
	}
}

country_event = { # notification for IRE that FROM refused to join the alliance
	id = ireland.99
	title = ireland.99.t
	desc = ireland.99.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	

	option = { # join
		name = ireland.99.a
	}
}

country_event = { # IRE requests the transfer of ulster - neutrality path
	id = ireland.100
	title = ireland.100.t
	desc = ireland.100.d
	picture = GFX_report_event_generic_read_write

	is_triggered_only = yes
	
	fire_only_once = yes

	option = { # hand over ulster with guidance
		name = ireland.100.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_opinion = {
					target = IRE
					value < 80
				}
			}
		}	
		IRE = {
			transfer_state = 119
			country_event = {
				id = ireland.101
				days = 1
			}	
		}	
	}
	option = { # hand over ulster reluctantly
		name = ireland.100.b
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				has_opinion = {
					target = IRE
					value < 50
				}
			}
		}	
		IRE = {
			transfer_state = 119
			country_event = {
				id = ireland.102
				days = 1
			}	
		}
	}
	option = { # refuses
		name = ireland.100.c
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 30
				}
			}
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 50
				}
			}
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 70
				}
			}
			modifier = {
				factor = 0.8
				has_opinion = {
					target = IRE
					value > 90
				}
			}
		}
		IRE = {
			country_event = {
				id = ireland.103
				days = 1
			}	
		}	
	}
}

country_event = { # notification for IRE that ENG handed over NIR
	id = ireland.101
	title = ireland.101.t
	desc = ireland.101.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # great
		name = ireland.101.a
		119 = {
			add_dynamic_modifier = { modifier = IRE_transfer_overseen_by_ENG }
		}	
	}
}
	
country_event = { # notification for IRE that ENG refused to hand over NIR
	id = ireland.102
	title = ireland.102.t
	desc = ireland.102.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # good
		name = ireland.102.a
	}
}
	
country_event = { # notification for IRE that ENG refused to hand over NIR
	id = ireland.103
	title = ireland.103.t
	desc = ireland.103.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	
	fire_only_once = yes
	

	option = { # bad
		name = ireland.103.a
	}
}

country_event = { # notification for IRE that ENG has decolonsed NIR
	id = ireland.104
	title = ireland.104.t
	desc = ireland.104.d
	picture = GFX_report_event_generic_sign_treaty3

	trigger = {
		tag = IRE
		owns_state = 119
		ENG = {
			has_completed_focus = ENG_withdraw_from_contested_territories
		}
	}
	
	mean_time_to_happen = {
		days = 7
	}
	fire_only_once = yes
	

	option = { # good
		name = ireland.104.a
		119 = {
			add_dynamic_modifier = { modifier = IRE_transfer_overseen_by_ENG }
		}
	}
}

country_event = { # hidden event for IRE post-fused dual monarchy to complete ENG focuses
	id = ireland.105
	title = ireland.105.t
	desc = ireland.105.d

	trigger = {
		tag = IRE
		has_focus_tree = british_focus
	}
	
	mean_time_to_happen = {
		days = 2
	}
	fire_only_once = yes
	hidden = yes
	
	immediate = {
		if = {
			limit = {
				ENG = {
					has_completed_focus = crypto_bomb_focus
				}
			}
			complete_national_focus = crypto_bomb_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = tizard_mission_focus
				}
			}
			unlock_national_focus = tizard_mission_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = maud_focus
				}
			}
			complete_national_focus = maud_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = UK_secret_focus
				}
			}
			complete_national_focus = UK_secret_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = limited_rearmament_focus
				}
			}
			unlock_national_focus = limited_rearmament_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = air_defense_focus
				}
			}
			unlock_national_focus = air_defense_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = radar_focus
				}
			}
			complete_national_focus = radar_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = radar_focus
				}
			}
			complete_national_focus = radar_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = shadow_scheme_focus
				}
			}
			unlock_national_focus = shadow_scheme_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_industrial_focus
				}
			}
			unlock_national_focus = uk_industrial_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_extra_tech_slot
				}
			}
			unlock_national_focus = uk_extra_research_slot
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = royal_ordinance_focus
				}
			}
			unlock_national_focus = royal_ordinance_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_small_arms_focus
				}
			}
			complete_national_focus = uk_small_arms_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_motorized_focus
				}
			}
			complete_national_focus = ENG_motorized_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_tank_focus
				}
			}
			complete_national_focus = ENG_tank_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = general_rearmament_focus
				}
			}
			complete_national_focus = general_rearmament_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = air_rearmament_focus
				}
			}
			unlock_national_focus = air_rearmament_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_special_air_service
				}
			}
			complete_national_focus = ENG_special_air_service
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = naval_rearmament_focus
				}
			}
			unlock_national_focus = naval_rearmament_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = bomber_command_focus
				}
			}
			complete_national_focus = bomber_command_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = fighter_command_focus
				}
			}
			complete_national_focus = fighter_command_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = coastal_command_focus
				}
			}
			complete_national_focus = coastal_command_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = aircraft_production_focus
				}
			}
			complete_national_focus = aircraft_production_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_jet_focus
				}
			}
			complete_national_focus = uk_jet_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_chiefs_of_staff_committee
				}
			}
			complete_national_focus = ENG_chiefs_of_staff_committee
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_chiefs_of_staff_committee
				}
			}
			complete_national_focus = ENG_chiefs_of_staff_committee
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_amphibious_focus
				}
			}
			complete_national_focus = uk_amphibious_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_destroyer_focus
				}
			}
			complete_national_focus = uk_destroyer_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_convoy_focus
				}
			}
			complete_national_focus = uk_convoy_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_anti_submarine_training_school
				}
			}
			complete_national_focus = ENG_anti_submarine_training_school
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_waves_focus
				}
			}
			complete_national_focus = uk_waves_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_carrier_focus
				}
			}
			complete_national_focus = uk_carrier_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_battleship_focus
				}
			}
			complete_national_focus = uk_battleship_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_a_s_warfare
				}
			}
			complete_national_focus = ENG_a_s_warfare
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_expand_the_repair_yards
				}
			}
			complete_national_focus = ENG_expand_the_repair_yards
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_vanguard
				}
			}
			unlock_national_focus = ENG_vanguard
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_anti_non_contact_committee
				}
			}
			complete_national_focus = ENG_anti_non_contact_committee
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_secure_the_imperial_shipping_routes
				}
			}
			complete_national_focus = ENG_secure_the_imperial_shipping_routes
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_empire_focus
				}
			}
			unlock_national_focus = uk_empire_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_service_focus
				}
			}
			complete_national_focus = uk_service_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_colonial_focus
				}
			}
			complete_national_focus = uk_colonial_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_service_focus
				}
			}
			complete_national_focus = uk_service_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_asia_focus
				}
			}
			complete_national_focus = uk_asia_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_burma_focus
				}
			}
			unlock_national_focus = uk_burma_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_sanction_japan_focus
				}
			}
			unlock_national_focus = uk_sanction_japan_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = singapore_focus
				}
			}
			unlock_national_focus = singapore_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = sp_landward_forts_focus
				}
			}
			unlock_national_focus = sp_landward_forts_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = peninsular_focus
				}
			}
			unlock_national_focus = peninsular_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_war_with_japan
				}
			}
			unlock_national_focus = ENG_war_with_japan
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = hongkong_focus
				}
			}
			unlock_national_focus = hongkong_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = hk_landward_forts_focus
				}
			}
			unlock_national_focus = hk_landward_forts_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = hk_air_focus
				}
			}
			unlock_national_focus = hk_air_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_china_focus
				}
			}
			unlock_national_focus = uk_china_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_commonwealth_focus
				}
			}
			unlock_national_focus = uk_commonwealth_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_british_commonwealth_air_training_plan
				}
			}
			unlock_national_focus = ENG_british_commonwealth_air_training_plan
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_india_focus
				}
			}
			unlock_national_focus = uk_india_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_indian_autonomy
				}
			}
			unlock_national_focus = ENG_indian_autonomy
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_free_india_focus
				}
			}
			unlock_national_focus = uk_free_india_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_australia_focus
				}
			}
			unlock_national_focus = uk_australia_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_new_zealand_focus
				}
			}
			unlock_national_focus = uk_new_zealand_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_canada_focus
				}
			}
			unlock_national_focus = uk_canada_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_south_africa_focus
				}
			}
			unlock_national_focus = uk_south_africa_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_imperial_conference
				}
			}
			unlock_national_focus = ENG_imperial_conference
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_imperial_federation
				}
			}
			unlock_national_focus = ENG_imperial_federation
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_mediterranean_focus
				}
			}
			unlock_national_focus = uk_mediterranean_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_rock_focus
				}
			}
			unlock_national_focus = uk_rock_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_spain_focus
				}
			}
			unlock_national_focus = uk_spain_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_protect_suez
				}
			}
			unlock_national_focus = uk_protect_suez
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_malta_focus
				}
			}
			unlock_national_focus = uk_malta_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_turkey_focus
				}
			}
			unlock_national_focus = uk_turkey_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_greece_focus
				}
			}
			unlock_national_focus = uk_greece_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_balkan_strategy
				}
			}
			unlock_national_focus = uk_balkan_strategy
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = uk_sanction_italy_focus
				}
			}
			unlock_national_focus = uk_sanction_italy_focus
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_war_with_italy
				}
			}
			unlock_national_focus = ENG_war_with_italy
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_steady_as_she_goes
				}
			}
			unlock_national_focus = ENG_steady_as_she_goes
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_global_defense
				}
			}
			unlock_national_focus = ENG_global_defense
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_every_man_will_do_his_duty
				}
			}
			unlock_national_focus = ENG_every_man_will_do_his_duty
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_motion_of_no_confidence
				}
			}
			unlock_national_focus = ENG_motion_of_no_confidence
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_home_defence
				}
			}
			unlock_national_focus = ENG_home_defence
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_prepare_for_the_inevitable
				}
			}
			complete_national_focus = ENG_prepare_for_the_inevitable
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_issue_gasmasks
				}
			}
			unlock_national_focus = ENG_issue_gasmasks
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_military_training_act
				}
			}
			unlock_national_focus = ENG_military_training_act
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_embargo_germany
				}
			}
			unlock_national_focus = ENG_embargo_germany
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_war_with_germany
				}
			}
			unlock_national_focus = ENG_war_with_germany
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_revisit_colonial_policy
				}
			}
			unlock_national_focus = ENG_revisit_colonial_policy
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_guide_the_colonies
				}
			}
			unlock_national_focus = ENG_guide_the_colonies
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_towards_dominion_independence
				}
			}
			unlock_national_focus = ENG_towards_dominion_independence
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_foundations_for_an_indian_state
				}
			}
			unlock_national_focus = ENG_foundations_for_an_indian_state
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_the_three_nation_solution
				}
			}
			unlock_national_focus = ENG_the_three_nation_solution
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_towards_indian_independence
				}
			}
			unlock_national_focus = ENG_towards_indian_independence
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_self_government_for_the_mediterranean
				}
			}
			unlock_national_focus = ENG_self_government_for_the_mediterranean
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_self_government_for_the_middle_east
				}
			}
			unlock_national_focus = ENG_self_government_for_the_middle_east
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_self_government_for_africa
				}
			}
			unlock_national_focus = ENG_self_government_for_africa
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_self_government_for_the_americas
				}
			}
			unlock_national_focus = ENG_self_government_for_the_americas
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_self_government_for_asia
				}
			}
			unlock_national_focus = ENG_self_government_for_asia
		}
		if = {
			limit = {
				ENG = {
					has_completed_focus = ENG_decolonization
				}
			}
			unlock_national_focus = ENG_decolonization
		}
		unlock_national_focus = ENG_a_change_in_course
		unlock_national_focus = ENG_the_kings_party
		unlock_national_focus = ENG_reassess_continental_commitments
	}
}

country_event = { # paddy finucane
	id = ireland.106
	title = ireland.106.t
	desc = ireland.106.d
	picture = GFX_report_event_IRE_paddy_finucane

	trigger = {
		tag = IRE
		has_war = yes
		date > 1940.08.12 # date of his first victory
		has_deployed_air_force_size = { # at least a token air force
			size > 100
		}
		NOT = { has_global_flag = IRE_finucane_recruited }
	}
	
	mean_time_to_happen = {
		days = 7
	}
	fire_only_once = yes
	

	option = { # good
		name = ireland.106.a
		set_global_flag = IRE_finucane_recruited
		add_war_support = 0.05
		add_ace = {
			name = "Brendan E. F."
			surname = "Finucane"
			callsign = "Paddy"
			type = fighter_genius
		}
	}
}

country_event = { # paddy finucane
	id = ireland.107
	title = ireland.107.t
	desc = ireland.107.d
	picture = GFX_report_event_IRE_paddy_finucane

	trigger = {
		tag = ENG
		has_war = yes
		NOT = { has_war_with = IRE  }
		date > 1942.01.01 # when he was promoted to wing commander - the youngest in the RAF
		NOT = { has_global_flag = IRE_finucane_recruited }
	}
	
	mean_time_to_happen = {
		days = 7
	}
	fire_only_once = yes
	

	option = { # good
		name = ireland.107.a
		add_war_support = 0.05
		set_global_flag = IRE_finucane_recruited
		add_ace = {
			name = "Brendan E. F."
			surname = "Finucane"
			callsign = "Paddy"
			type = fighter_genius
		}
	}
}