############################
## Iberia Events
############################
add_namespace = IBR
add_namespace = IBRtest
add_namespace = caudillo
add_namespace = iberia #Only to be used for foreign policy chains
add_namespace = ibrwar #Only to be used for Iberian Wars federales tree
add_namespace = ibrterror #Only to be used for terrorism defeat events - Pacifica.
add_namespace = IBR_COL
### Abandon Hope, All Ye Who Enter Here. For it is... Infrastructure Week.
country_event = {
	id = IBRtest.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBRtest.1" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBRtest.1.t
	desc = IBRtest.1.d
	option = {
		name = IBRtest.1.a
		ai_chance = { factor = 10 }
		set_variable = { #20 to -20
			IBR_military_alignment = 0
		}
		set_variable = { #20 to -20
			IBR_church_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_burocrat_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_business_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_settlers_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_native_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_foreign_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_intellectual_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_majority_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_regional_alignment = 0
		}
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBRtest.1.a
		ai_chance = { factor = 10 }
		set_variable = { #20 to -20
			IBR_military_alignment = 20
		}
		set_variable = { #20 to -20
			IBR_church_alignment = 20
		}
		set_variable = { #10 to -10
			IBR_burocrat_alignment = 3
		}
		set_variable = { #15 to -15
			IBR_business_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_settlers_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_native_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_foreign_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_intellectual_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_majority_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_regional_alignment = 0
		}
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBRtest.1.a
		ai_chance = { factor = 10 }
		set_variable = { #20 to -20
			IBR_military_alignment = -20
		}
		set_variable = { #20 to -20
			IBR_church_alignment = -20
		}
		set_variable = { #10 to -10
			IBR_burocrat_alignment = -3
		}
		set_variable = { #15 to -15
			IBR_business_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_settlers_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_native_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_foreign_alignment = 0
		}
		set_variable = { #15 to -15
			IBR_intellectual_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_majority_alignment = 0
		}
		set_variable = { #10 to -10
			IBR_regional_alignment = 0
		}
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBRtest.1.a
		ai_chance = { factor = 10 }
		set_variable = { IBR_council_reformism = 85 }
	}
}
country_event = {
	id = IBRtest.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBRtest.2" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBRtest.2.t
	desc = IBRtest.2.d
	option = {
		name = IBRtest.2.a
		ai_chance = { factor = 10 }
		set_variable = { IBR_council_influence = 35 }
	}
	option = {
		name = IBRtest.2.a
		ai_chance = { factor = 10 }
		set_variable = { IBR_council_influence = 45 }
	}
	option = {
		name = IBRtest.2.a
		ai_chance = { factor = 10 }
		set_variable = { IBR_council_influence = 65 }
	}
	option = {
		name = IBRtest.2.a
		ai_chance = { factor = 10 }
		set_variable = { IBR_council_influence = 85 }
	}
}
country_event = {
	id = IBRtest.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBRtest.3" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBRtest.3.t
	desc = IBRtest.3.d
	option = {
		name = IBRtest.3.a
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBRtest.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBRtest.4" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBRtest.4.t
	desc = IBRtest.4.d
	option = {
		name = IBRtest.4.a
		ai_chance = { factor = 10 }
		set_country_flag = IBR_Terrorism_GUI
		set_country_flag = country_has_gui
		set_country_flag = gui_alert_visible
		set_country_flag = gui_alert_visible_2
	}
}
country_event = {
	id = IBR.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.1.t
	desc = IBR.1.d
	trigger = {
		tag = IBR
		date > 1962.1.1
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.1.a
		ai_chance = { factor = 10 }
		set_country_flag = IBR_62_Infrastructure_Start
		set_variable = {
			IBRRoadShadiness = 0
		}
		set_variable = {
			IBRRoadDelay = 0
		}
		hidden_effect = {
			country_event = {
				id = IBR.2
				days = 20
			}
		}
	}
}

### Load Post-Malta Tree

country_event = {
	id = IBR.666
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.666" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.666.t
	desc = IBR.666.d
	option = {
		name = IBR.666.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_PostMaltaPolitics_Tree
			keep_completed = yes
		}

		custom_effect_tooltip = IBR_pp_post_trium_get_tt

		set_country_flag = IBR_decisions_post_trium
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = {
				var = IBR_caudillo_correct_var
				value = 1
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.27
				days = 5
			}
		}
	}
}

### Load Anti-Terror Tree

country_event = {
	id = IBR.531
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.531" }
	picture = GFX_report_event_IBR_barcelona_smoke
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.531.t
	desc = IBR.531.d
	trigger = {
		tag = IBR
		has_country_flag = IBRBarcelonaDefeated
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.531.a
		ai_chance = { factor = 10 }

			if = {
				limit = {
					has_country_flag = advisory_council
				}
				country_event = {
					id = IBR.3116
					days = 1
				}
			}
			else = {
				country_event = {
					id = IBR.3117
					days = 1
				}
			}
	}
}

### Intial Road Proposal
country_event = {
	id = IBR.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2" }
	picture = GFX_report_event_IBR_meeting_small
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.2.t
	desc = IBR.2.d
	option = {
		name = IBR.2.a
		ai_chance = { factor = 10 }
		# More Portuguese Equipment
		set_country_flag = IBR_portuguese_mixers
		set_country_flag = IBR_Road_Approved

		hidden_effect = {
			country_event = {
				id = IBR.3
				days = 20
			}
		}
	}
	option = {
		name = IBR.2.b
		ai_chance = { factor = 10 }
		# Just bribe Portugal
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadShadiness
			value = 1
		}

		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.25
					days = 420
				}
				country_event = {
					id = IBR.3
					days = 20
				}
			}
		}
		set_country_flag = IBR_Road_Approved
	}
}

### Asphalt Mixture

country_event = {
	id = IBR.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.3.t
	desc = IBR.3.d
	option = {
		# Spanish Law
		name = IBR.3.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				50 = {
					IBR = {
						country_event = {
							id = IBR.20
							days = 5
						}
					}
				}
				50 = {
					IBR = {
						country_event = {
							id = IBR.8
							days = 5
						}
					}
				}
			}
			IBR = {
				country_event = {
					id = IBR.190
					days = 7
				}
			}
		}
	}
	option = {
		# Federal Law
		name = IBR.3.b
		ai_chance = { factor = 10 }
		add_political_power = -25
		set_country_flag = IBR_Asphalt_Fixed

		hidden_effect = {
			country_event = {
				id = IBR.4
				days = 20
			}
		}
	}
	option = {
		# Make Shit Up
		name = IBR.3.c
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.13
					days = 14
				}
			}
			add_to_variable = {
				var = IBRRoadShadiness
				value = 1
			}
			set_country_flag = IBR_Asphalt_Fixed
			country_event = {
				id = IBR.4
				days = 20
			}
		}
	}
}

### Bombing Event

country_event = {
	id = IBR.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4" }
	picture = GFX_report_event_IBR_road_bomb
	is_triggered_only = yes
	hidden = no
	title = IBR.4.t
	desc = IBR.4.d
	option = {
		name = IBR.4.a
		ai_chance = { factor = 10 }
		trigger = {
			NOT = {
				has_country_flag = SpainNoInfra
			}
		}
		hidden_effect = {
			random_list = {
				50 = {
					IBR = {
						country_event = {
							id = IBR.15
							days = 5
						}
					}
				}
				50 = {
					IBR = {
						country_event = {
							id = IBR.17
							days = 5
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.4.b
		ai_chance = { factor = 10 }
		trigger = {
			NOT = {
				has_country_flag = IberiaNoInfra
			}
		}
		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = IBR.14
						days = 5
					}
				}
				50 = {
					country_event = {
						id = IBR.16
						days = 5
					}
				}
			}
		}
	}
	option = {
		name = IBR.4.c
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.14
					days = 14
				}
			}
			add_to_variable = {
				var = IBRRoadShadiness
				value = 1
			}
			country_event = {
				id = IBR.5
				days = 20
			}
			set_country_flag = IBR_Road_Fixed
		}
	}
}

### Investigation

country_event = {
	id = IBR.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5.t
	desc = IBR.5.d
	option = {
		name = IBR.5.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						var = IBRRoadShadiness
						value = 0
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.24
						days = 7
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadShadiness
						value = 1
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.21
						days = 14
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadShadiness
						value = 2
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.22
						days = 21
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadShadiness
						value = 3
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.23
						days = 28
					}
				}
			}
		}
	}
}

### Laning Question

country_event = {
	id = IBR.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.6.t
	desc = IBR.6.d
	option = {
		name = IBR.6.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.9
							days = 5
						}
					}
				}
				30 = {
					IBR = {
						country_event = {
							id = IBR.10
							days = 5
						}
					}
				}
				30 = {
					IBR = {
						country_event = {
							id = IBR.11
							days = 5
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.6.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.19
					days = 5
				}
			}
		}
	}
}

### """"""""Completed"""""""" Road

country_event = {
	id = IBR.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.7.t
	desc = IBR.7.d
	option = {
		name = IBR.7.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 0
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 60
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 1
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 120
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 2
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 180
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 3
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 240
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 4
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 300
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 5
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 360
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 6
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 420
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 7
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 480
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 8
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 540
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 9
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 600
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						var = IBRRoadDelay
						value = 10
						compare = equals
					}
				}
				IBR = {
					country_event = {
						id = IBR.18
						days = 660
					}
				}
			}
		}
	}
}

###Portuguese Veto

country_event = {
	id = IBR.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.8" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.8.t
	desc = IBR.8.d
	option = {
		name = IBR.8.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
		hidden_effect = {
			country_event = {
				id = IBR.4
				days = 15
			}
		}
		set_country_flag = IBR_Asphalt_Fixed
	}
}

###Wider Road Permit

country_event = {
	id = IBR.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.9.t
	desc = IBR.9.d
	option = {
		name = IBR.9.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.7
				days = 20
			}
		}
		set_country_flag = IBR_Laned_Properly
	}
}

###Spain Denies Permit

country_event = {
	id = IBR.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.10" }
	picture = GFX_report_event_IBR_road_work_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.10.t
	desc = IBR.10.d
	option = {
		name = IBR.10.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
		hidden_effect = {
			country_event = {
				id = IBR.7
				days = 20
			}
		}
		set_country_flag = IBR_Laned_Properly
	}
}

###Portugal Denies Permit

country_event = {
	id = IBR.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.11" }
	picture = GFX_report_event_IBR_road_work_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.11.t
	desc = IBR.11.d
	option = {
		name = IBR.11.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
		hidden_effect = {
			country_event = {
				id = IBR.7
				days = 20
			}
		}
		set_country_flag = IBR_Laned_Properly
	}
}

###Conflict of Interest Investigation

country_event = {
	id = IBR.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.12" }
	picture = GFX_report_event_IBR_interview
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.12.t
	desc = IBR.12.d
	option = {
		name = IBR.12.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
	}
}

###Violation of Material Regulations

country_event = {
	id = IBR.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.13" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.13.t
	desc = IBR.13.d
	option = {
		name = IBR.13.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
	}
}

###Federal Tax Money Proposal

country_event = {
	id = IBR.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.14" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.14.t
	desc = IBR.14.d
	option = {
		name = IBR.14.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5
				days = 20
			}
		}
		set_country_flag = IBR_Road_Fixed
	}
}

###Spanish Tax Money Proposal

country_event = {
	id = IBR.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.15" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.15.t
	desc = IBR.15.d
	option = {
		name = IBR.15.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5
				days = 20
			}
		}
		set_country_flag = IBR_Road_Fixed
	}
}

###Iberia Denies Funding

country_event = {
	id = IBR.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.16" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.16.t
	desc = IBR.16.d
	option = {
		name = IBR.16.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
		set_country_flag = IberiaNoInfra
		hidden_effect = {
			country_event = {
				id = IBR.4
				days = 1
			}
		}
	}
}

###Spain Denies Funding

country_event = {
	id = IBR.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.17" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.17.t
	desc = IBR.17.d
	option = {
		name = IBR.17.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
		set_country_flag = SpainNoInfra
		hidden_effect = {
			country_event = {
				id = IBR.4
				days = 1
			}
		}
	}
}

###Road Actually Built

country_event = {
	id = IBR.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.18" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.18.t
	desc = IBR.18.d
	option = {
		name = IBR.18.a
		ai_chance = { factor = 10 }
		41 = {
			if = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						OR = {
							region = 214
							region = 168
							region = 41
						}
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									OR = {
										region = 214
										region = 168
										region = 41
									}
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
}

###Movement Cut Off

country_event = {
	id = IBR.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.19" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.19.t
	desc = IBR.19.d
	option = {
		name = IBR.19.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
		hidden_effect = {
			country_event = {
				id = IBR.7
				days = 20
			}
		}
		set_country_flag = IBR_Laned_Properly
	}
}

###Portuguese Accept Spanish Law

country_event = {
	id = IBR.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.20" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.20.t
	desc = IBR.20.d
	option = {
		name = IBR.20.a
		ai_chance = { factor = 10 }
		set_country_flag = IBR_Asphalt_Fixed
		hidden_effect = {
			country_event = {
				id = IBR.4
				days = 15
			}
		}
	}
}

###Shady Building

country_event = {
	id = IBR.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.21" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.21.t
	desc = IBR.21.d
	option = {
		name = IBR.21.a
		ai_chance = { factor = 10 }
		add_political_power = -10

		hidden_effect = {
			country_event = {
				id = IBR.6
				days = 20
			}
		}
		set_country_flag = IBR_Investigation_Done
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
	}
}

###Very Shady Building

country_event = {
	id = IBR.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.22" }
	picture = GFX_report_event_IBR_guardia_civil
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.22.t
	desc = IBR.22.d
	option = {
		name = IBR.22.a
		ai_chance = { factor = 10 }
		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.6
				days = 20
			}
		}
		set_country_flag = IBR_Investigation_Done
		add_to_variable = {
			var = IBRRoadDelay
			value = 2
		}
	}
}

###How did you get away with this?

country_event = {
	id = IBR.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.23" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.23.t
	desc = IBR.23.d
	option = {
		name = IBR.23.a
		ai_chance = { factor = 10 }
		add_political_power = -50

		hidden_effect = {
			country_event = {
				id = IBR.6
				days = 20
			}
		}
		set_country_flag = IBR_Investigation_Done
		add_to_variable = {
			var = IBRRoadDelay
			value = 3
		}
	}
}

###Non-shady Building

country_event = {
	id = IBR.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.24" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.24.t
	desc = IBR.24.d
	option = {
		name = IBR.24.a
		ai_chance = { factor = 10 }
		add_political_power = 10

		hidden_effect = {
			country_event = {
				id = IBR.6
				days = 20
			}
		}
		set_country_flag = IBR_Investigation_Done
	}
}

###Lisbon Road

country_event = {
	id = IBR.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.25" }
	picture = GFX_report_event_IBR_road_work_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.25.t
	desc = IBR.25.d
	option = {
		name = IBR.25.a
		ai_chance = { factor = 10 }
		112 = {
			if = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
					}
					OR = {
						OR = {
							region = 214
							region = 168
							region = 41
						}
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
									}
									OR = {
										region = 214
										region = 168
										region = 41
									}
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
}

###Portuguese Mixer Failure

country_event = {
	id = IBR.190
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.190" }
	picture = GFX_report_event_IBR_road_work_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.190.t
	desc = IBR.190.d
	option = {
		name = IBR.190.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_to_variable = {
			var = IBRRoadDelay
			value = 1
		}
	}
}

###   #####  ###     #    #####  #####  #####
# #  #      #  #   # #     #    #		#
# #  #####  ###    ###     #    #####  #####
# #  #      #  #  #   #    #    #  	    #
###   #####  ###   #   #    #    #####  #####
###Trade Debate - Triumvirate Tariffs

country_event = {
	id = IBR.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.27" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.27.t
	desc = IBR.27.d
	option = {
		name = IBR.27.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.28
			days = 10
		}
	}
}

###Trade Debate - Tariff Sourcing

country_event = {
	id = IBR.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.28" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.28.t
	desc = IBR.28.d
	option = {
		name = IBR.28.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.29
			days = 10
		}
		hidden_effect = {
			country_event = {
				id = IBR.3169
				days = 2
			}
		}
	}
}

###Trade Debate - Port Ownership

country_event = {
	id = IBR.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.29" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.29.t
	desc = IBR.29.d
	option = {
		name = IBR.29.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.30
			days = 10
		}
	}
}

###Trade Debate - Railway Gauge

country_event = {
	id = IBR.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.30.t
	desc = IBR.30.d
	option = {
		name = IBR.30.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.31
				days = 5
			}
		}
	}
}

###Taxation Debate - Foreign Taxation

country_event = {
	id = IBR.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.31" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.31.t
	desc = IBR.31.d
	option = {
		name = IBR.31.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.32
			days = 10
		}
	}
}

###Taxation Debate - Income Taxation

country_event = {
	id = IBR.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.32" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.32.t
	desc = IBR.32.d
	option = {
		name = IBR.32.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.33
			days = 10
		}
	}
}

###Taxation Debate - Federal Tax Distribution

country_event = {
	id = IBR.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.33" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.33.t
	desc = IBR.33.d
	option = {
		name = IBR.33.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.34
			days = 10
		}
	}
}

###Taxation Debate - Federal Tax Collection Authority

country_event = {
	id = IBR.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.34" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.34.t
	desc = IBR.34.d
	option = {
		name = IBR.34.a
		ai_chance = { factor = 10 }
		TNO_worsen_security_policy_effectiveness_low = yes
		hidden_effect = {
			country_event = {
				id = IBR.35
				days = 5
			}
		}
	}
}

###Military Debate - Military Training Funding

country_event = {
	id = IBR.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.35" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.35.t
	desc = IBR.35.d
	option = {
		name = IBR.35.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.36
			days = 10
		}
	}
}

###Military Debate - Funding Allocation

country_event = {
	id = IBR.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.36" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.36.t
	desc = IBR.36.d
	option = {
		name = IBR.36.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.37
			days = 10
		}
	}
}

###Military Debate - Standard Equipment

country_event = {
	id = IBR.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.37" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.37.t
	desc = IBR.37.d
	option = {
		name = IBR.37.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.38
			days = 10
		}
	}
}

###Military Debate - Drill Sergeant Language

country_event = {
	id = IBR.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.38" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.38.t
	desc = IBR.38.d
	option = {
		name = IBR.38.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.39
				days = 5
			}
		}
	}
}

###Minorities Debate - Anti-Separatist Agency

country_event = {
	id = IBR.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.39" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.39.t
	desc = IBR.39.d
	option = {
		name = IBR.39.a
		ai_chance = { factor = 10 }
		TNO_improve_security_policy_effectiveness_med = yes
		country_event = {
			id = IBR.40
			days = 10
		}
	}
}

###Minorities Debate - African Languages

country_event = {
	id = IBR.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.40" }
	picture = GFX_report_event_IBR_algeria_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.40.t
	desc = IBR.40.d
	option = {
		name = IBR.40.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.41
			days = 10
		}
	}
}

###Minorities Debate - The Status of Iberian Minority Languages

country_event = {
	id = IBR.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.41" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.41.t
	desc = IBR.41.d
	option = {
		name = IBR.41.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.42
			days = 10
		}
	}
}

###Minorities Debate - Status of Rio de Oro

country_event = {
	id = IBR.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.42" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.42.t
	desc = IBR.42.d
	option = {
		name = IBR.42.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.47
				days = 8
			}
		}
	}
}

###Siesta Debate - Impact on the Economy

country_event = {
	id = IBR.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.47" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.47.t
	desc = IBR.47.d
	option = {
		name = IBR.47.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.48
			days = 10
		}
	}
}

###Siesta Debate - Portuguese Siestas

country_event = {
	id = IBR.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.48" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.48.t
	desc = IBR.48.d
	option = {
		name = IBR.48.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.49
			days = 10
		}
	}
}

###Siesta Debate - Regulation Time

country_event = {
	id = IBR.49
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.49" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.49.t
	desc = IBR.49.d
	option = {
		name = IBR.49.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.50
			days = 10
		}
	}
}

###Siesta Debate - Another Argument About Them In General

country_event = {
	id = IBR.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.50" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.50.t
	desc = IBR.50.d
	option = {
		name = IBR.50.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.51
				days = 5
			}
		}
	}
}

###Iberian Council Debate - Establishment and Need

country_event = {
	id = IBR.51
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.51" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.51.t
	desc = IBR.51.d
	option = {
		name = IBR.51.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.52
			days = 10
		}
	}
}

###Iberian Council Debate - Representation

country_event = {
	id = IBR.52
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.52" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.52.t
	desc = IBR.52.d
	option = {
		name = IBR.52.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.53
			days = 10
		}
	}
}

###Iberian Council Debate - Housing/Building

country_event = {
	id = IBR.53
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.53" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.53.t
	desc = IBR.53.d
	option = {
		name = IBR.53.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.54
			days = 10
		}
	}
}

###Iberian Council Debate - Veto Powers

country_event = {
	id = IBR.54
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.54" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.54.t
	desc = IBR.54.d
	option = {
		name = IBR.54.a
		ai_chance = { factor = 10 }
	}
}

###Galician Terror Attack

country_event = {
	id = IBR.55
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.55" }
	picture = GFX_report_event_IBR_eta_bombing
	fire_only_once = yes
	is_triggered_only = yes
	hidden = no
	title = IBR.55.t
	desc = IBR.55.d
	option = {
		name = IBR.55.a
		ai_chance = { factor = 10 }
		add_stability = -0.10
		add_manpower = -108
		hidden_effect = {
			country_event = {
				id = IBR.56
				days = 2
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

###Shaken Iberia

country_event = {
	id = IBR.56
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.56" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.56.t
	desc = IBR.56.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.56.a
		ai_chance = { factor = 10 }

			set_country_flag = Iberia_Wakes_Up

			if = {
				limit = { NOT = { has_country_flag = IBR_started_germany_in_flames } }

				load_focus_tree = {
					tree = IBR_PostBombingCouncil_Tree
					keep_completed = yes
				}
			}
			else = {
				custom_effect_tooltip = IBR_shaken_iberia

				hidden_effect = {
					load_focus_tree = {
						tree = IBR_germany_in_flames_tree_bruh
						keep_completed = yes
					}
				}
			}
	}
}

#####
#
#
#
#####
##########################################################Iberian Council Tree events

country_event = {
	id = IBR.57
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.57" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.57.t
	desc = IBR.57.d
	option = {
		name = IBR.57.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				NOT = {
					has_country_flag = advisory_council
				}
			}
			set_country_flag = advisory_council
		}
		set_country_flag = IBR_council_created_flag
		set_variable = { IBR_council_influence = 15 }
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.464
					days = 1
				}
			}
		}
	}
}

country_event = {
	id = IBR.58
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.58" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.58.t
	desc = IBR.58.d
	option = {
		name = IBR.58.a
		if = {
			limit = {
				NOT = {
					has_country_flag = legislature_council
				}
			}
			set_country_flag = legislature_council
		}
		TNO_improve_admin_efficiency_low = yes
		set_country_flag = IBR_council_created_flag
		ai_chance = { factor = 10 }
		set_variable = { IBR_council_reformism = 15 }
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.465
					days = 1
				}
			}
		}
	}
}

country_event = {
	id = IBR.59
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.59" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.59.t
	desc = IBR.59.d
	option = {
		name = IBR.59.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.60
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.60" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.60.t
	desc = IBR.60.d
	option = {
		name = IBR.60.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRLibsOwned
		IBR_add_5_authdem = yes
		add_to_variable = { IBR_council_reformism = -3 }
		custom_effect_tooltip = IBR_reformist_tt_1
		IBR_council_clamp = yes

		TNO_improve_political_parties_policy_effectiveness_low = yes
	}
	option = {
		name = IBR.60.b
		ai_chance = { factor = 10 }
		set_country_flag = IBRLibsUnowned
		subtract_from_variable = {
			var = IBRCouncilControl
			value = 1
		}
		IBR_add_3_soclib = yes
		IBR_add_3_soccon = yes
		add_to_variable = { IBR_council_reformism = 5 }
		custom_effect_tooltip = IBR_reformist_tt_2
		IBR_council_clamp = yes

		TNO_worsen_political_parties_policy_effectiveness_low = yes
	}
}

country_event = {
	id = IBR.61
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.61" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.61.t
	desc = IBR.61.d
	option = {
		name = IBR.61.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRLessPowerCouncil
		TNO_improve_admin_efficiency_really_low = yes
		add_to_variable = {
			var = IBRCouncilControl
			value = 1
		}
		IBR_add_10_authdem = yes
		add_to_variable = { IBR_council_reformism = -5 }
		custom_effect_tooltip = IBR_reformist_tt_3
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.61.b
		ai_chance = { factor = 10 }
		TNO_improve_admin_efficiency_low = yes
		set_country_flag = IBRHalfPowerCouncil
		add_to_variable = {
			var = IBRCouncilPower
			value = 1
		}
		IBR_add_5_authdem = yes

		TNO_worsen_political_parties_policy_effectiveness_low = yes
	}
	option = {
		name = IBR.61.c
		ai_chance = { factor = 10 }
		TNO_improve_admin_efficiency_low = yes
		set_country_flag = IBRFullPowerCouncil
		add_to_variable = {
			var = IBRCouncilPower
			value = 2
		}
		add_to_variable = { IBR_council_reformism = 2 }
		custom_effect_tooltip = IBR_reformist_tt_4
		IBR_council_clamp = yes

		TNO_worsen_political_parties_policy_effectiveness_med = yes
	}
}

country_event = {
	id = IBR.62
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.62" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.62.t
	desc = IBR.62.d
	option = {
		name = IBR.62.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRNoCouncilAccess
		add_to_variable = {
			var = IBRCouncilControl
			value = 1
		}
		IBR_add_5_authdem = yes
		add_to_variable = { IBR_council_reformism = -3 }
		custom_effect_tooltip = IBR_reformist_tt_5
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.62.b
		ai_chance = { factor = 10 }
		set_country_flag = IBRFullCouncilAccess
		add_to_variable = {
			var = IBRCouncilPower
			value = 1
		}
		add_to_variable = { IBR_council_reformism = 2 }
		custom_effect_tooltip = IBR_reformist_tt_6
		IBR_council_clamp = yes

		TNO_improve_admin_efficiency_low = yes
	}
}

country_event = {
	id = IBR.63
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.63" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.63.t
	desc = IBR.63.d
	option = {
		name = IBR.63.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRRegionalContent
			value = 1
		}
		add_to_variable = { IBR_council_reformism = 2 }
		custom_effect_tooltip = IBR_reformist_tt_7
		IBR_council_clamp = yes

		TNO_improve_admin_efficiency_low = yes
	}
	option = {
		name = IBR.63.b
		ai_chance = { factor = 10 }
		add_to_variable = { IBR_council_reformism = -3 }
		custom_effect_tooltip = IBR_reformist_tt_8
		IBR_council_clamp = yes
	}
}

country_event = {
	id = IBR.64
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.64" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.64.t
	desc = IBR.64.d
	option = {
		name = IBR.64.a
		ai_chance = { factor = 10 }

		TNO_improve_security_policy_effectiveness_low = yes
	}
}

country_event = {
	id = IBR.65
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.65" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.65.t
	desc = IBR.65.d
	option = {
		name = IBR.65.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.66
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.66" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.66.t
	desc = IBR.66.d
	option = {
		name = IBR.66.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				check_variable = {
					IBRCouncilPower = IBRCouncilControl
				}
			}
			add_ideas = The_Iberian_Council_2
		}
		if = {
			limit = {
				check_variable = {
					IBRCouncilPower > IBRCouncilControl
				}
			}
			add_ideas = The_Iberian_Council_3
		}
		if = {
			limit = {
				check_variable = {
					IBRRegionalContent > 0
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		country_event = {
			id = IBR.3115
			days = 3
		}
	}
}

country_event = {
	id = IBR.67
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.67" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.67.t
	desc = IBR.67.d
	option = {
		name = IBR.67.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.68
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.68" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.68.t
	desc = IBR.68.d
	option = {
		name = IBR.68.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = {
	id = IBR.69
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.69" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.69.t
	desc = IBR.69.d
	option = {
		name = IBR.69.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.70
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.70" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.70.t
	desc = IBR.70.d
	option = {
		name = IBR.70.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRCouncilControl
			value = 1
		}
	}
}

country_event = {
	id = IBR.71
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.71" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.71.t
	desc = IBR.71.d
	option = {
		name = IBR.71.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.72
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.72" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.72.t
	desc = IBR.72.d
	option = {
		name = IBR.72.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRCouncilControl
			value = 1
		}
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = {
	id = IBR.73
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.73" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.73.t
	desc = IBR.73.d
	option = {
		name = IBR.73.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRCouncilControl
			value = 1
		}
		add_to_variable = { IBR_council_influence = -1 }
		custom_effect_tooltip = IBR_influence_tt_1
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.73.b
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRCouncilPower
			value = 1
		}
		add_to_variable = { IBR_council_influence = 3 }
		custom_effect_tooltip = IBR_influence_tt_2
		IBR_council_clamp = yes

		TNO_improve_admin_efficiency_low = yes
	}
}

country_event = {
	id = IBR.74
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.74" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.74.t
	desc = IBR.74.d
	option = {
		name = IBR.74.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				check_variable = {
					IBRCouncilPower = IBRCouncilControl
				}
			}
			add_ideas = The_Iberian_Council_5
		}
		if = {
			limit = {
				check_variable = {
					IBRCouncilPower > IBRCouncilControl
				}
			}
			add_ideas = The_Iberian_Council_6
		}
		if = {
			limit = {
				check_variable = {
					IBRRegionalContent > 0
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		country_event = {
			id = IBR.3114
			days = 3
		}
	}
}

country_event = {
	id = IBR.75
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.75" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.75.t
	desc = IBR.75.d
	immediate = {
		set_variable = {
			IBRCouncilPower = 0
		}
		set_variable = {
			IBRRegionalContent = 0
		}
		set_variable = {
			IBRCouncilControl = 0
		}
	}
	option = {
		name = IBR.75.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.1076
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1076" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1076.t
	desc = IBR.1076.d
	option = {
		name = IBR.1076.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRBrokeRegionsCouncil
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 0.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -1 }
			custom_effect_tooltip = IBR_reformist_tt_9
			IBR_council_clamp = yes
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_3
			IBR_council_clamp = yes
		}
	}
	option = {
		name = IBR.1076.b
		ai_chance = { factor = 10 }
		set_country_flag = IBREmpoweredRegionsCouncil
		add_to_variable = {
			var = IBRRegionalContent
			value = 1
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_10
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_4
		}
		IBR_council_clamp = yes

		#TNO_worsen_minorities_policy_effectiveness_low = yes
	}
}

country_event = {
	id = IBR.1077
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1077" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1077.t
	desc = IBR.1077.d
	option = {
		name = IBR.1077.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRDisrespectedMinoritiesCouncil
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -1 }
			custom_effect_tooltip = IBR_reformist_tt_11
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -1 }
			custom_effect_tooltip = IBR_influence_tt_5
		}
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.1077.b
		ai_chance = { factor = 10 }
		set_country_flag = IBREmpoweredMinoritiesCouncil
		add_to_variable = {
			var = IBRRegionalContent
			value = 1
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_12
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 1 }
			custom_effect_tooltip = IBR_influence_tt_6
		}
		IBR_council_clamp = yes

		#TNO_worsen_minorities_policy_effectiveness_low = yes
	}
}

# #
# #
####
# #
# #

############################BORMANN TREE EVENTS

country_event = {
	id = IBR.83
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.83" }
	picture = GFX_report_event_GER_martin_bormann_intro
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.83.t
	desc = IBR.83.d
	trigger = {
		tag = IBR
		has_global_flag = german_civil_war_bormannvic
		NOT = {
			has_country_flag = IBRShiftReactionRight
		}
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.83.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
			has_country_flag = IBR_supported_speer_flag
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = -5 }
				custom_effect_tooltip = IBR_influence_tt_8
			}
			IBR_council_clamp = yes
			clr_country_flag = IBR_supported_speer_flag
		}
		hidden_effect = {
			country_event = {
				id = IBR.87
				days = 7
			}
		}
	}
}

country_event = {
	id = IBR.85
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.85" }
	picture = GFX_report_event_IBR_iberian_wars_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.85.t
	desc = IBR.85.d
	option = {
		name = IBR.85.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			every_owned_state = {
				limit = { is_core_of = IBR }
				add_building_construction = {
					type = bunker
					province = {
							all_provinces = yes
							limit_to_border = yes
						}
					level = 1
					instant_build = yes
				}
			}
		}
		custom_effect_tooltip = IBR_add_1_fort_tt

		hidden_effect = {
			country_event = {
				id = IBR.89
				days = 14
			}
		}
	}
}

country_event = {
	id = IBR.87
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.87" }
	picture = GFX_report_event_GER_luftwaffe_acting_weird
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.87.t
	desc = IBR.87.d
	option = {
		name = IBR.87.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.85
				days = 26
			}
		}
	}
}

country_event = {
	id = IBR.88
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.88" }
	picture = GFX_report_event_IBR_iberian_wars_8
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.88.t
	desc = IBR.88.d
	option = {
		name = IBR.88.a
		ai_chance = { factor = 10 }
		297 = {
			add_building_construction = {
				type = bunker
				level = 1
				province = 5036
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 1
				province = 13391
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 1
				province = 2080
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 1
				province = 10948
				instant_build = yes
			}
			add_building_construction = {
				type = bunker
				level = 1
				province = 8244
				instant_build = yes
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.89
				days = 7
			}
		}
	}
}

country_event = {
	id = IBR.89
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.89" }
	picture = GFX_report_event_IBR_iberian_wars_10
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.89.t
	desc = IBR.89.d
	option = {
		name = IBR.89.a
		ai_chance = { factor = 10 }
	}
}

####################################################Speer Tree Events

country_event = {
	id = IBR.97
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.97" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.97.t
	desc = IBR.97.d
	trigger = {
		tag = IBR
		has_global_flag = german_civil_war_speervic
		NOT = {
			has_country_flag = IBRShiftReactionRight
		}
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.97.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
			has_country_flag = IBR_supported_speer_flag
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = 3 }
				custom_effect_tooltip = IBR_influence_tt_7
			}
			IBR_council_clamp = yes
			clr_country_flag = IBR_supported_speer_flag
		}
		hidden_effect = {
			country_event = {
				id = IBR.104
				days = 7
			}

		}
	}
}

country_event = {
	id = IBR.98
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.98" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	immediate = { complete_national_focus = IBR_antisep_start }
	title = IBR.98.t
	desc = IBR.98.d
	option = {
		name = IBR.98.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.99
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.99" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.99.t
	desc = IBR.99.d
	option = {
		name = IBR.99.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.100
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.100" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.100.t
	desc = IBR.100.d
	option = {
		name = IBR.100.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.101
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.101" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.101.t
	desc = IBR.101.d
	option = {
		name = IBR.101.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.102
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.102" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.102.t
	desc = IBR.102.d
	option = {
		name = IBR.102.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.103
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.103" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.103.t
	desc = IBR.103.d
	option = {
		name = IBR.103.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.104
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.104" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.104.t
	desc = IBR.104.d
	option = {
		name = IBR.104.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.106
				days = 14
			}
		}
	}
}

country_event = {
	id = IBR.106
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.106" }
	picture = GFX_report_event_ITA_naval_ship
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.106.t
	desc = IBR.106.d
	option = {
		name = IBR.106.a
		ai_chance = { factor = 10 }
		add_political_power = 25
		navy_experience = 25

		hidden_effect = {
			country_event = {
				id = IBR.107
				days = 24
			}
		}
	}
}

country_event = {
	id = IBR.107
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.107" }
	picture = GFX_report_event_IBR_iberian_wars_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.107.t
	desc = IBR.107.d
	option = {
		name = IBR.107.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			every_owned_state = {
				limit = { is_core_of = IBR }
				add_building_construction = {
					type = bunker
					province = {
							all_provinces = yes
							limit_to_border = yes
						}
					level = 1
					instant_build = yes
				}
			}
		}
		custom_effect_tooltip = IBR_add_1_fort_tt

		hidden_effect = {
			country_event = {
				id = IBR.108
				days = 9
			}
		}
	}
}

country_event = {
	id = IBR.108
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.108" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.108.t
	desc = IBR.108.d
	option = {
		name = IBR.108.a
		ai_chance = { factor = 10 }
	}
}

######Iberian Economic Miracle tree Events######
################################################
################################################
################################################

country_event = {
	id = IBR.110
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.110" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.110.t
	desc = IBR.110.d
	trigger = {
		tag = IBR
		OR = {
			NOT = {
				has_country_flag = IBR_dissolving_the_union
				has_country_flag = IBR_Iberian_Wars_have_happened
			}
			has_country_flag = IBRBarcelonaDefeated
		}
	}
	option = {
		name = IBR.110.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_extraordinary_meeting_tree
			keep_completed = yes
		}
	}
}

country_event = { #FLASHPOINT (FALANGE CRASH)
	id = IBR.111
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.111" }
	picture = null
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.111.t
	desc = IBR.111.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.111.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			econ_lower_credit_rating = yes
			load_focus_tree = {
				tree = IBR_economic_bubble
				keep_completed = yes
			}
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.467
					days = 1
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = IBR_STABILITY_ROUTE
						option = IBR_STABILITY_ROUTE_COLLAPSE
					}
				}
				IBR = {
					set_variable = { IBRIberiaStability = 0 }
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = IBR_STABILITY_ROUTE
						option = IBR_STABILITY_ROUTE_DIVORCE
					}
				}
				IBR = {
					if = {
						limit = {
							NOT = {
								check_variable = { IBRIberiaStability < 8 }
							}
						}
						set_variable = { IBRIberiaStability = 7 }
					}
					else_if = {
						limit = {
							NOT = {
								check_variable = { IBRIberiaStability > 0.9 }
							}
						}
						set_variable = { IBRIberiaStability = 1 }
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBRIberiaStability < 1
					}
				}
				country_event = {
					id = IBR.1024
					days = 3
				}
			}
		}
		if = {
			limit = {
				AND = {
				check_variable = { IBRIberiaStability < 8 }
				check_variable = { IBRIberiaStability > 0.9 }
				NOT = {
					has_country_flag = IBRElectionsYES
					}
				}
			}
			custom_effect_tooltip = IBR_divorce_decision_tt
			set_country_flag = IBR_divorce_decision_flag
			if = {
				limit = {
					IBR = {
						is_ai = yes
					}
				}
				country_event = {
					id = IBR.3003
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.4059
					days = 15
				}
			}
		}
		hidden_effect = {
			complete_national_focus = IBR_economic_disaster
		}
	}
}

country_event = {#event the player sees about the autarky crash
	id = IBR.112
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.112" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.112.t
	desc = IBR.112.d
	option = {
		name = IBR.112.a
		add_political_power = -200
		add_stability = -0.15
		hidden_effect = {
			remove_dynamic_modifier = {
				modifier = IBR_iberian_economy_miracle_dyn_mod
			}
			remove_ideas = Iberian_Economic_Miracle
			add_to_variable = { IBR_inflation_nightmare_variable = 2.0 }
			add_to_variable = { IBR_misc_income_nightmare_variable = -0.2 }
			add_to_variable = { IBR_gdp_growth_nightmare_variable = -1.5 }
			country_event = {
				id = IBR.111
			}
		}
	}
}

########Middle Branch Econ#########
###################################

country_event = {
	id = IBR.113
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.113" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.113.t
	desc = IBR.113.d
	option = {
		name = IBR.113.a
		ai_chance = { factor = 10 }
		IBR_add_random_soccon = yes
	}
}

country_event = { #Meeting with the big fish event
	id = IBR.114
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.114" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.114.t
	desc = IBR.114.d
	option = {
		name = IBR.114.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.115
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.115" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.115.t
	desc = IBR.115.d
	option = {
		name = IBR.115.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.116
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.116" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.116.t
	desc = IBR.116.d
	option = {
		name = IBR.116.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.117
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.117" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.117.t
	desc = IBR.117.d
	option = {
		name = IBR.117.a
		ai_chance = { factor = 10 }
		IBR_add_5_marklib = yes
		IBR_add_5_soccon = yes
	}
}

country_event = {
	id = IBR.118
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.118" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.118.t
	desc = IBR.118.d
	option = {
		name = IBR.118.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.119
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.119" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.119.t
	desc = IBR.119.d
	option = {
		name = IBR.119.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.120
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.120" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.120.t
	desc = IBR.120.d
	option = {
		name = IBR.120.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.121
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.121" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.121.t
	desc = IBR.121.d
	option = {
		name = IBR.121.a
		ai_chance = { factor = 10 }

		#custom_effect_tooltip = IBR_CNT_CANT_BUYDOWN_TT
	}
}

country_event = {
	id = IBR.122
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.122" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.122.t
	desc = IBR.122.d
	option = {
		name = IBR.122.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.123
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.123" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.123.t
	desc = IBR.123.d
	option = {
		name = IBR.123.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.124
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.124" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.124.t
	desc = IBR.124.d
	option = {
		name = IBR.124.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.125
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.125" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.125.t
	desc = IBR.125.d
	option = {
		name = IBR.125.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.126
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.126" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.126.t
	desc = IBR.126.d
	option = {
		name = IBR.126.a
		ai_chance = { factor = 10 }
		IBR_add_5_marklib = yes
	}
}

country_event = {
	id = IBR.127
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.127" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.127.t
	desc = IBR.127.d
	option = {
		name = IBR.127.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.128
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.128" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.128.t
	desc = IBR.128.d
	option = {
		name = IBR.128.a
		ai_chance = { factor = 10 }
	}
}

##########Left Branch Econ#########
###################################

country_event = {
	id = IBR.129
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.129" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.129.t
	desc = IBR.129.d
	option = {
		name = IBR.129.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.130
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.130" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.130.t
	desc = IBR.130.d
	option = {
		name = IBR.130.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.131
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.131" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.131.t
	desc = IBR.131.d
	option = {
		name = IBR.131.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.132
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.132" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.132.t
	desc = IBR.132.d
	option = {
		name = IBR.132.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.133
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.133" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.133.t
	desc = IBR.133.d
	option = {
		name = IBR.133.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.134
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.134" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.134.t
	desc = IBR.134.d
	option = {
		name = IBR.134.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.135
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.135" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.135.t
	desc = IBR.135.d
	option = {
		name = IBR.135.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.136
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.136" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.136.t
	desc = IBR.136.d
	option = {
		name = IBR.136.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.137
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.137" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.137.t
	desc = IBR.137.d
	option = {
		name = IBR.137.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.138
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.138" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.138.t
	desc = IBR.138.d
	option = {
		name = IBR.138.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.139
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.139" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.139.t
	desc = IBR.139.d
	option = {
		name = IBR.139.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.140
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.140" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.140.t
	desc = IBR.140.d
	option = {
		name = IBR.140.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.141
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.141" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.141.t
	desc = IBR.141.d
	option = {
		name = IBR.141.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.142
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.142" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.142.t
	desc = IBR.142.d
	option = {
		name = IBR.142.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.143
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.143" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.143.t
	desc = IBR.143.d
	option = {
		name = IBR.143.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.144
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.144" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.144.t
	desc = IBR.144.d
	option = {
		name = IBR.144.a
		ai_chance = { factor = 10 }
	}
}

#########Right Branch Econ#########
###################################

country_event = {
	id = IBR.145
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.145" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.145.t
	desc = IBR.145.d
	option = {
		name = IBR.145.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.146
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.146" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.146.t
	desc = IBR.146.d
	option = {
		name = IBR.146.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.147
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.147" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.147.t
	desc = IBR.147.d
	option = {
		name = IBR.147.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.148
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.148" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.148.t
	desc = IBR.148.d
	option = {
		name = IBR.148.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.149
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.149" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.149.t
	desc = IBR.149.d
	option = {
		name = IBR.149.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.150
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.150" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.150.t
	desc = IBR.150.d
	option = {
		name = IBR.150.a
		ai_chance = { factor = 10 }
	}
}

#########Bubble Tree Events########
###################################

country_event = {
	id = IBR.151
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.151" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.151.t
	desc = IBR.151.d
	option = {
		name = IBR.151.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.152
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.152" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.152.t
	desc = IBR.152.d
	option = {
		name = IBR.152.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.153
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.153" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.153.t
	desc = IBR.153.d
	option = {
		name = IBR.153.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.154
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.154" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.154.t
	desc = IBR.154.d
	option = {
		name = IBR.154.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.155
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.155" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.155.t
	desc = IBR.155.d
	option = {
		name = IBR.155.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.156
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.156" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.156.t
	desc = IBR.156.d
	option = {
		name = IBR.156.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.157
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.157" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.157.t
	desc = IBR.157.d
	option = {
		name = IBR.157.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.158
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.158" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.158.t
	desc = IBR.158.d
	option = {
		name = IBR.158.a
		ai_chance = { factor = 10 }
	}
}



country_event = {
	id = IBR.224
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.224" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.224.t
	desc = IBR.224.d
	option = {
		name = IBR.224.a
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = IBR.226
				days = 1
			}
		}
	}
}
country_event = {
	id = IBR.226
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.226" }
	picture = GFX_report_event_IBR_franco_nixon
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.226.t
	desc = IBR.226.d
	option = {
		name = IBR.226.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = 25

		add_to_variable = { IBR_foreign_alignment = 2 }
		custom_effect_tooltip = IBR_improve_franco_foreign_tt

		IBR_check_caudillo_popularity = yes

		IBR = {
			country_event = {
				id = IBR.230
				days = 2
			}
		}
	}
	option = {
		name = IBR.226.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { gdp_growth_temp = 0.1 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = { IBR_business_alignment = 3 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes

		IBR = {
			country_event = {
				id = IBR.230
				days = 2
			}
		}
	}
}
country_event = {
	id = IBR.230
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.230" }
	picture = GFX_report_event_IBR_canada_ottawa1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.230.t
	desc = IBR.230.d
	option = {
		name = IBR.230.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_stability = -0.01

		add_to_variable = { IBR_regional_alignment = -1 }
		custom_effect_tooltip = IBR_worsen_franco_regional_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.230.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.03 }
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes
	}
}
country_event = {
	id = IBR.233
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.233" }
	picture = GFX_report_event_IBR_catholic_bible
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.233.t
	desc = IBR.233.d
	option = {
		name = IBR.233.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.235
			days = 1
		}
	}
}
country_event = {
	id = IBR.235
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.235" }
	picture = GFX_report_event_IBR_ireland_dublin1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.235.t
	desc = IBR.235.d
	option = {
		name = IBR.235.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.02 }
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = -1 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes

		IBR = {
			country_event = {
				id = IBR.239
				days = 1
			}
		}
	}
	option = {
		name = IBR.235.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_political_power = 15
		add_stability = -0.01

		add_to_variable = { IBR_church_alignment = -1 }
		custom_effect_tooltip = IBR_improve_salazar_church_tt

		add_to_variable = { IBR_regional_alignment = 1 }
		custom_effect_tooltip = IBR_worsen_salazar_regional_tt
		IBR_check_caudillo_popularity = yes

		IBR = {
			country_event = {
				id = IBR.239
				days = 1
			}
		}
	}
}
country_event = {
	id = IBR.239
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.239" }
	picture = GFX_report_event_IBR_paris_eiffel_tower
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.239.t
	desc = IBR.239.d
	option = {
		name = IBR.239.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_stability = 0.02

		add_to_variable = { IBR_majority_alignment = -1 }
		custom_effect_tooltip = IBR_improve_salazar_majority_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.239.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = 10

		add_to_variable = { IBR_church_alignment = -2 }
		custom_effect_tooltip = IBR_improve_salazar_church_tt
		IBR_check_caudillo_popularity = yes
	}
}
country_event = {
	id = IBR.242
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.242" }
	picture = GFX_report_event_SAF_tourism_ad
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.242.t
	desc = IBR.242.d
	option = {
		name = IBR.242.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.244
			days = 1
		}
	}
}
country_event = {
	id = IBR.244
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.244" }
	picture = GFX_report_event_SAF_african_independence
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.244.t
	desc = IBR.244.d
	option = {
		name = IBR.244.a
		ai_chance = { factor = 10 }

		add_political_power = 10

		add_to_variable = { IBR_foreign_alignment = -2 }
		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.244.b
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.247
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.247" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.247.t
	desc = IBR.247.d
	option = {
		name = IBR.247.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.249
			days = 1
		}
	}
}
country_event = {
	id = IBR.249
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.249" }
	picture = GFX_report_event_IBR_franco_peron
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.249.t
	desc = IBR.249.d
	option = {
		name = IBR.249.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.024 }
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes
		country_event = {
			id = IBR.264
			days = 1
		}
	}
	option = {
		name = IBR.249.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}
		add_to_variable = { IBR_majority_alignment = 0.5 }
		custom_effect_tooltip = IBR_improve_franco_majority_tt
		IBR_check_caudillo_popularity = yes
		country_event = {
			id = IBR.264
			days = 1
		}
	}
}
country_event = {
	id = IBR.252
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.252" }
	picture = GFX_report_event_IBR_spanish_army
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.252.t
	desc = IBR.252.d
	option = {
		name = IBR.252.a
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.254
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.254" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.254.t
	desc = IBR.254.d
	option = {
		name = IBR.254.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.256
			days = 1
		}
	}
}
country_event = {
	id = IBR.256
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.256" }
	picture = GFX_report_event_ENG_big_ben
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.256.t
	desc = IBR.256.d
	option = {
		name = IBR.256.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}
		add_to_variable = { IBR_foreign_alignment = -2 }
		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		IBR_check_caudillo_popularity = yes
		if = {
			limit = { country_exists = SCO }
			country_event = {
				id = IBR.260
				days = 1
			}
		}
	}
	option = {
		name = IBR.256.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.056 }
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = -1.5 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes
		if = {
			limit = { country_exists = SCO }
			country_event = {
				id = IBR.260
				days = 1
			}
		}
	}
}
country_event = {
	id = IBR.260
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.260" }
	picture = GFX_report_event_IBR_scotland_edinburgh1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.260.t
	desc = IBR.260.d
	option = {
		name = IBR.260.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.014 }
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = -0.5 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.260.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_to_variable = { IBR_military_alignment = -1 }
		custom_effect_tooltip = IBR_improve_salazar_army_tt
		IBR_check_caudillo_popularity = yes

	}
}
country_event = {
	id = IBR.264
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.264" }
	picture = GFX_report_event_IBR_brazil_rio_library
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.264.t
	desc = IBR.264.d
	option = {
		name = IBR.264.a
		ai_chance = { factor = 10 }
		set_temp_variable = { temp_econ_GDP_boost_flat = 0.010 } #already converted to billion
		econ_GDP_boost_once_flat = yes
		add_to_variable = { IBR_business_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes
		country_event = {
			id = IBR.268
			days = 1
		}
	}
	option = {
		name = IBR.264.b
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_foreign_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_foreign_tt

		IBR_check_caudillo_popularity = yes

		country_event = {
			id = IBR.268
			days = 1
		}
	}
}
country_event = {
	id = IBR.268
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.268" }
	picture = GFX_report_event_IBR_mexico_city1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.268.t
	desc = IBR.268.d
	option = {
		name = IBR.268.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		set_temp_variable = { money_reserves_temp = 0.078 }
		econ_money_reserves_change_raw_money = yes

		add_to_variable = { IBR_business_alignment = -1 }
		custom_effect_tooltip = IBR_worsen_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes

		country_event = {
			id = IBR.272
			days = 1
		}
	}
	option = {
		name = IBR.268.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.022 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes

		country_event = {
			id = IBR.272
			days = 1
		}
	}
}
country_event = {
	id = IBR.272
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.272" }
	picture = GFX_report_event_IBR_cuba_havana1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.272.t
	desc = IBR.272.d
	option = {
		name = IBR.272.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = -15

		add_to_variable = { IBR_majority_alignment = -1 }
		custom_effect_tooltip = IBR_worsen_franco_majority_tt
		add_to_variable = { IBR_church_alignment = -1 }
		custom_effect_tooltip = IBR_worsen_franco_church_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.272.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}
		add_to_variable = { IBR_church_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_church_tt

	}
}
country_event = {
	id = IBR.275
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.275" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.275.t
	desc = IBR.275.d
	option = {
		name = IBR.275.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.277
			days = 1
		}
	}
}
country_event = {
	id = IBR.277
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.277" }
	picture = GFX_report_event_IBR_hungary_budapest1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.277.t
	desc = IBR.277.d
	option = {
		name = IBR.277.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.02 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = -1 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes
		country_event = {
			id = IBR.281
			days = 1
		}
	}
	option = {
		name = IBR.277.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_to_variable = { IBR_foreign_alignment = -1.5 }
		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		IBR_check_caudillo_popularity = yes

		country_event = {
			id = IBR.281
			days = 1
		}
	}
}
country_event = {
	id = IBR.281
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.281" }
	picture = GFX_report_event_IBR_romania_bucharest1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.281.t
	desc = IBR.281.d
	option = {
		name = IBR.281.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.029 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = -1 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.281.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_to_variable = { IBR_foreign_alignment = -1.5 }
		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		IBR_check_caudillo_popularity = yes

	}
}
country_event = {
	id = IBR.285
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.285" }
	picture = GFX_report_event_IBR_franco_saudi_arabia
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.285.t
	desc = IBR.285.d
	option = {
		name = IBR.285.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.023 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.285.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = 20

		add_to_variable = { IBR_church_alignment = -2 }
		custom_effect_tooltip = IBR_worsen_franco_church_tt
		IBR_check_caudillo_popularity = yes
		#hidden_effect = {
		#	SAU = {
		#		country_event = {
		#			id = IBR.287
		#			days = 1
		#		}
		#	}
		#}
	}
}
country_event = {
	id = IBR.288
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.288" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.288.t
	desc = IBR.288.d
	option = {
		name = IBR.288.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.290
			days = 1
		}
	}
}
country_event = {
	id = IBR.290
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.290" }
	picture = GFX_report_event_IND_migration
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.290.t
	desc = IBR.290.d
	option = {
		name = IBR.290.a
		ai_chance = { factor = 10 }
		custom_effect_tooltip = IBR_recognize_india_tt
	}
	option = {
		name = IBR.290.b
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.294
			days = 1
		}
	}
}
country_event = {
	id = IBR.294
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.294" }
	picture = GFX_report_event_AZH_map
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.294.t
	desc = IBR.294.d
	option = {
		name = IBR.294.a
		ai_chance = { factor = 10 }
	}
	option = {
		name = IBR.294.b
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.297
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.297" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.297.t
	desc = IBR.297.d
	option = {
		name = IBR.297.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.299
			days = 1
		}
	}
}
country_event = {
	id = IBR.299
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.299" }
	picture = GFX_report_event_IBR_franco_japan
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.299.t
	desc = IBR.299.d
	option = {
		name = IBR.299.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		set_temp_variable = { gdp_growth_temp = 0.1 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = { IBR_business_alignment = 2 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes
		country_event = {
			id = IBR.303
			days = 1
		}
	}
	option = {
		name = IBR.299.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_stability = 0.01

		add_to_variable = { IBR_church_alignment = 2 }
		custom_effect_tooltip = IBR_improve_franco_church_tt
		add_to_variable = { IBR_majority_alignment = 0.5 }
		custom_effect_tooltip = IBR_improve_franco_majority_tt
		IBR_check_caudillo_popularity = yes
		country_event = {
			id = IBR.303
			days = 1
		}
	}
}
country_event = {
	id = IBR.303
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.303" }
	picture = GFX_report_event_CHI_Industry_Lanzhou
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.303.t
	desc = IBR.303.d
	option = {
		name = IBR.303.a
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.042 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_businessmen_tt
		IBR_check_caudillo_popularity = yes

	}
	option = {
		name = IBR.303.b
		ai_chance = { factor = 10 }

		add_political_power = 10

		add_to_variable = { IBR_foreign_alignment = 1 }
		custom_effect_tooltip = IBR_improve_franco_foreign_tt

		IBR_check_caudillo_popularity = yes
	}
}
country_event = {
	id = IBR.307
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.307" }
	picture = GFX_report_event_IBR_australia_canberra1960
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.307.t
	desc = IBR.307.d
	option = {
		name = IBR.307.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.047 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		add_to_variable = { IBR_business_alignment = -1.5 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.307.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}
		add_political_power = 10

		add_to_variable = { IBR_foreign_alignment = -2 }
		custom_effect_tooltip = IBR_improve_salazar_foreign_tt
	}
}
###################################
########Economic Tree Boot#########
###################################
###################################

country_event = {
	id = IBR.400
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.400" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.400.t
	desc = IBR.400.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.400.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_extraordinary_meeting_tree
			keep_completed = yes
		}
	}
}

country_event = { #Opus Dei Appeals
	id = IBR.401
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.401" }
	picture = GFX_report_event_IBR_opus_dei_lads
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.401.t
	desc = IBR.401.d
	option = {
		name = IBR.401.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.402
			hours = 24
		}
	}
}

country_event = { #The Falangists Appeal
	id = IBR.402
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.402" }
	picture = GFX_report_event_IBR_falange_standard_bearers
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.402.t
	desc = IBR.402.d
	option = {
		name = IBR.402.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.403
			hours = 5
		}
	}
}

country_event = { #The Iberian Council Awaits The Caudillos' Statement
	id = IBR.403
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.403" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.403.t
	desc = IBR.403.d
	option = {
		name = IBR.403.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_cauinfo_econ_tt

		hidden_effect = {
			if = {
				limit = {
					AND = {
					has_country_flag = advisory_council
					has_country_flag = cau_strong_franco
					}
				}
				country_event = {
					id = IBR.404
					hours = 12
				}
			}
			else_if = {
				limit = {
					AND = {
					has_country_flag = advisory_council
					has_country_flag = cau_weak_franco
					}
				}
				country_event = {
					id = IBR.415
					hours = 12
				}
			}
			else_if = {
				limit = {
					AND = {
					has_country_flag = advisory_council
					has_country_flag = cau_council
					}
				}
				country_event = {
					id = IBR.416
					hours = 12
				}
			}
			else_if = {
				limit = {
					has_country_flag = advisory_council
				}
				country_event = {
					id = IBR.417
					hours = 12
				}
			}
			else_if = {
				limit = {
					AND = {
					has_country_flag = legislature_council
					has_country_flag = cau_strong_franco
					}
				}
				country_event = {
					id = IBR.418
					hours = 12
				}
			}
			else_if = {
				limit = {
					AND = {
					has_country_flag = legislature_council
					has_country_flag = cau_strong_salazar
					}
				}
				country_event = {
					id = IBR.419
					hours = 12
				}
			}
			else = {
				country_event = {
					id = IBR.420
					hours = 12
				}
			}
		}
	}
}

country_event = { #
	id = IBR.404
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.404" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.404.t
	desc = IBR.404.d
	option = { #A return to falangism?
		name = IBR.404.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #
	id = IBR.415
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.415" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.415.t
	desc = IBR.415.d
	option = { #Liberalism or autarky?
		name = IBR.415.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #
	id = IBR.416
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.416" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.416.t
	desc = IBR.416.d
	option = { #An attempt at finding common ground
		name = IBR.416.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #
	id = IBR.417
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.417" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.417.t
	desc = IBR.417.d
	option = { #An affirmation of the status quo?
		name = IBR.417.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #
	id = IBR.418
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.418" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.418.t
	desc = IBR.418.d
	option = { #A return to falangism?
		name = IBR.418.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #
	id = IBR.419
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.419" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.419.t
	desc = IBR.419.d
	option = { #An affirmation of the status quo?
		name = IBR.419.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #
	id = IBR.420
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.420" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.420.t
	desc = IBR.420.d
	option = { #A debate narrowed down to two proposals
		name = IBR.420.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_economic_tree_paths

		custom_effect_tooltip = IBR_pp_stability_get_tt

		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_stability
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}



#############################GCW Tree Events

country_event = {
	id = IBR.405
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.405" }
	picture = GFX_report_event_GER_army_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.405.t
	desc = IBR.405.d
	option = {
		name = IBR.405.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.406
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.406" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.406.t
	desc = IBR.406.d
	option = {
		name = IBR.406.a
		ai_chance = { factor = 10 }

		set_temp_variable = { money_reserves_temp = 0.06 }
		econ_money_reserves_change_raw_money = yes
	}
}

country_event = {
	id = IBR.407
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.407" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.407.t
	desc = IBR.407.d
	option = {
		name = IBR.407.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.408
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.408" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.408.t
	desc = IBR.408.d
	option = {
		name = IBR.408.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.409
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.409" }
	picture = x
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.409.t
	desc = IBR.409.d
	option = {
		name = IBR.409.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.410
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.410" }
	picture = x
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.410.t
	desc = IBR.410.d
	option = {
		name = IBR.410.a
		ai_chance = { factor = 10 }
		IBR_sub_5_marklib = yes

		set_temp_variable = { temp_econ_spending_amount = 0.025 }
		econ_spend_money_once_effect_raw_money = yes
	}
}

country_event = {
	id = IBR.411
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.411" }
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.411.t
	desc = IBR.411.d
	option = {
		name = IBR.411.a
		ai_chance = { factor = 10 }

		set_temp_variable = { money_reserves_temp = 0.005 }
		econ_money_reserves_change_raw_money = yes
	}
}

country_event = {
	id = IBR.412
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.412" }
	picture = GFX_report_event_ITA_apc1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.412.t
	desc = IBR.412.d
	option = {
		name = IBR.412.a
		ai_chance = { factor = 10 }
		add_equipment_to_stockpile = {
			type = infantry_equipment_1
			amount = -100
		}

		set_temp_variable = { money_reserves_temp = 0.002 }
		econ_money_reserves_change_raw_money = yes
	}
}

country_event = {
	id = IBR.413
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.413" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.413.t
	desc = IBR.413.d
	option = {
		name = IBR.413.a
		ai_chance = { factor = 10 }
		IBR_sub_5_marklib = yes
		set_temp_variable = { debt_temp = 0.05 }
		econ_national_debt_change = yes

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_GCW_2
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_GCW_2
		}
		IBR_council_clamp = yes
	}
}

#### Pre-election events #####
country_event = { #The Question Of Observers
	id = IBR.442
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.442" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.442.t
	desc = IBR.442.d
	option = { #We are a sovereign state!
		name = IBR.442.a
		ai_chance = { factor = 10 }
		IBR_add_5_authdem = yes
	}
	option = { #Make it look good.
		name = IBR.442.b
		ai_chance = { factor = 10 }
		add_political_power = 25
		IBR_add_3_authdem = yes
	}
	option = { #We have nothing to hide
		name = IBR.442.c
		ai_chance = { factor = 10 }
		add_stability = 0.05
	}
}

country_event = { #Preparing The Ballot Boxes
	id = IBR.443
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.443" }
	picture = GFX_report_event_IBR_ballot_boxes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.443.t
	desc = IBR.443.d

	option = { #Rural areas clearly need more.
		name = IBR.443.a
		ai_chance = { factor = 10 }
		add_political_power = 15
		IBR_add_5_soccon = yes
	}
	option = { #The optimal distribution is fair.
		name = IBR.443.b
		ai_chance = { factor = 10 }

		TNO_improve_political_parties_policy_effectiveness_low = yes

		add_to_variable = {
			var = IBR_election_ruralhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_cons_mad_tt
	}
}

country_event = { #Setting Up Suffrage Lists
	id = IBR.444
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.444" }
	picture = GFX_report_event_IBR_interview
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.444.t
	desc = IBR.444.d

	option = { #No Basques, no students, no communists!
		name = IBR.444.a
		ai_chance = { factor = 10 }

		TNO_worsen_vote_franchise_policy_effectiveness_med = yes
		#TNO_worsen_minorities_policy_effectiveness_med = yes

		IBR_sub_5_soclib = yes

		set_country_flag = IBR_election_auth_suffrage_bad
		add_to_variable = {
			var = IBR_election_libhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_libs_mad_tt
	}
	option = { #Anyone with an ID...
		name = IBR.444.b
		ai_chance = { factor = 10 }

		TNO_improve_vote_franchise_policy_effectiveness_med = yes

		IBR_add_5_soccon = yes
		IBR_add_5_marklib = yes

		set_country_flag = IBR_election_auth_suffrage_bad
		add_to_variable = {
			var = IBR_election_libhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_libs_mad_tt
	}
	option = { #Suffrage must be expanded
		name = IBR.444.c
		ai_chance = { factor = 10 }

		tno_vote_franchise_improve = yes
		TNO_improve_vote_franchise_policy_effectiveness_monthly_low = yes
		TNO_worsen_vote_franchise_policy_effectiveness_med = yes

		IBR_add_10_soclib = yes
		IBR_add_5_marklib = yes
		IBR_add_3_soccon = yes
	}
}

country_event = { #Ready The Guardia Civil
	id = IBR.445
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.445" }
	picture = GFX_report_event_IBR_guardia_civil
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.445.t
	desc = IBR.445.d

	option = { #I don't see any voter intimidation?
		name = IBR.445.a
		ai_chance = { factor = 10 }
		IBR_add_5_authdem = yes
		IBR_sub_3_marklib = yes
		IBR_sub_3_soclib = yes

		add_to_variable = {
			var = IBR_election_libhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_libs_mad_tt
		custom_effect_tooltip = IBR_preelection_chaos_polls_tt
	}
	option = { #To order. We'll need it.
		name = IBR.445.b
		ai_chance = { factor = 10 }

		TNO_improve_vote_franchise_policy_effectiveness_low = yes
		IBR_sub_3_authdem = yes
	}
}

country_event = { #The Campaign Begins
	id = IBR.446
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.446" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.446.t
	desc = IBR.446.d

	option = { #Actively fund Union Nacional
		name = IBR.446.a
		ai_chance = { factor = 10 }

		TNO_worsen_political_parties_policy_effectiveness_med = yes

		IBR_add_10_authdem = yes

		add_to_variable = {
			var = IBR_election_libhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_libs_mad_tt
	}
	option = { #Suppress the liberals
		name = IBR.446.b
		ai_chance = { factor = 10 }
		IBR_sub_5_soclib = yes
		IBR_sub_3_marklib = yes

		add_to_variable = {
			var = IBR_election_libhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_libs_mad_tt
	}
	option = { #Free and fair campaigns
		name = IBR.446.c
		ai_chance = { factor = 10 }

		TNO_improve_political_parties_policy_effectiveness_med = yes

		IBR_add_5_soclib = yes
		IBR_add_3_marklib = yes
		IBR_add_3_soccon = yes
		IBR_sub_5_authdem = yes
	}
}

country_event = { #Watching The Democratic Process
	id = IBR.447
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.447" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.447.t
	desc = IBR.447.d

	option = {
		name = IBR.447.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		add_stability = 0.05
	}
}

country_event = { #Democratic Rallies In The Cities
	id = IBR.448
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.448" }
	picture = GFX_report_event_IBR_democratic_rally
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.448.t
	desc = IBR.448.d

	option = { #Black out the media.
		name = IBR.448.a
		ai_chance = { factor = 10 }
		IBR_sub_5_soclib = yes
		IBR_sub_3_marklib = yes

		add_to_variable = {
			var = IBR_election_libhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_libs_mad_tt
	}

	option = { #Let freedom ring.
		name = IBR.448.b
		ai_chance = { factor = 10 }

		TNO_improve_public_meetings_policy_effectiveness_med = yes

		IBR_add_10_soclib = yes
		IBR_add_5_marklib = yes

		add_to_variable = {
			var = IBR_election_ruralhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_cons_mad_tt
	}
}

country_event = { #Rural Democracy
	id = IBR.449
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.449" }
	picture = GFX_report_event_IBR_rural_agriculture
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.449.t
	desc = IBR.449.d

	option = { #The farmers will save the Union National!
		name = IBR.449.a
		ai_chance = { factor = 10 }

		TNO_worsen_political_parties_policy_effectiveness_med = yes

		IBR_add_3_authdem = yes
	}
	option = { #Alianza Popular is acceptable.
		name = IBR.449.b
		ai_chance = { factor = 10 }

		TNO_worsen_political_parties_policy_effectiveness_low = yes

		IBR_add_5_soccon = yes
	}
	option = { #Keep our hands out of it.
		name = IBR.449.c
		ai_chance = { factor = 10 }

		IBR_add_3_soclib = yes

		add_to_variable = {
			var = IBR_election_ruralhostility
			value = 1
		}
		custom_effect_tooltip = IBR_preelection_cons_mad_tt
	}
}


########Election Events########
###############################
###############################

country_event = { #The First Iberian Election
	id = IBR.450
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.450" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.450.t
	desc = IBR.450.d
#	trigger = {
#		has_country_flag = IBRElectionsYES
#		date > 1970.6.30
#		NOT = {
#			has_country_flag = ElectionAlreadyHappened
#		}
#	}
	option = {
		name = IBR.450.a
		ai_chance = { factor = 10 }
		country_event = { #
			id = IBR.451
			days = 1
		}
	}
}

country_event = { #The Election Arrangements
	id = IBR.451
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.451" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.451.t
	desc = IBR.451.d
	option = {
		name = IBR.451.a
		ai_chance = { factor = 10 }
		country_event = { #
			id = IBR.453
			days = 5
		}
	}
}

country_event = { #The Restoration Of The Parties
	id = IBR.453
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.453" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.453.t
	desc = IBR.453.d
	option = {
		name = IBR.453.a
		ai_chance = { factor = 10 }

		TNO_improve_political_parties_policy_effectiveness_high = yes

		IBR_add_3_soccon = yes
		IBR_add_3_marklib = yes
		IBR_add_3_soclib = yes

		hidden_effect = {
			country_event = { #
				id = IBR.454
				days = 3
			}
		}
	}
}

country_event = { #Union Republicana Organizes Galician Rally
	id = IBR.454
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.454" }
	picture = GFX_report_event_IBR_UR_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.454.t
	desc = IBR.454.d
	option = {
		name = IBR.454.a
		ai_chance = { factor = 10 }

		TNO_improve_public_meetings_policy_effectiveness_low = yes

		IBR_add_5_soclib = yes

		hidden_effect = {
			country_event = { #
				id = IBR.455
				days = 2
			}
		}
	}
}

country_event = { #Alianza Popular Announces Opposition
	id = IBR.455
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.455" }
	picture = GFX_report_event_IBR_fraga_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.455.t
	desc = IBR.455.d
	option = {
		name = IBR.455.a
		ai_chance = { factor = 10 }

		TNO_improve_public_meetings_policy_effectiveness_low = yes

		IBR_add_5_soccon = yes

		hidden_effect = {
			country_event = { #
				id = IBR.458
				days = 3
			}
		}
	}
}

country_event = { #PRD Calls for Unity
	id = IBR.458
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.458" }
	picture = GFX_report_event_IBR_marlib_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.458.t
	desc = IBR.458.d
	option = {
		name = IBR.458.a
		ai_chance = { factor = 10 }

		TNO_improve_public_meetings_policy_effectiveness_low = yes

		IBR_add_5_marklib = yes

		hidden_effect = {
			country_event = { #
				id = IBR.456
				days = 5
			}
		}
	}
}

country_event = { #FET y de las JONS Merges With National Union
	id = IBR.456
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.456" }
	picture = GFX_report_event_IBR_valcarcel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.456.t
	desc = IBR.456.d
	option = {
		name = IBR.456.a
		ai_chance = { factor = 10 }
		IBR_add_20_authdem = yes
		add_popularity = {
			ideology = fascism
			popularity = -0.05
		}
		add_popularity = {
			ideology = despotism
			popularity = -0.05
		}

		hidden_effect = {
			country_event = { #
				id = IBR.457
				days = 4
			}
		}
	}
}

country_event = { #National Union's Membership Slips
	id = IBR.457
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.457" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.457.t
	desc = IBR.457.d
	option = {
		name = IBR.457.a
		ai_chance = { factor = 10 }
		IBR_sub_5_authdem = yes
		country_event = { #
			id = IBR.459
			days = 2
		}
	}
}

country_event = { #Covertly Supporting A Party?
	id = IBR.459
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.459" }
	picture = GFX_report_event_IBR_politicians_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.459.t
	desc = IBR.459.d
	option = { # Falange-National Union
		name = IBR.459.a
		ai_chance = { factor = 10 }

		TNO_worsen_political_parties_policy_effectiveness_med = yes

		IBR_add_10_authdem = yes

		if = {
			limit = { NOT = { has_country_flag = IBR_election_auth_suffrage_bad } }

			hidden_effect = {
				country_event = {
					id = IBR.460
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.461
					days = 4
				}
			}
		}
		set_country_flag = IBRelection_helped_UN
	}
	option = { # Alianza Popular
		name = IBR.459.b
		ai_chance = { factor = 10 }

		TNO_worsen_political_parties_policy_effectiveness_low = yes

		IBR_add_5_soccon = yes

		if = {
			limit = { NOT = { has_country_flag = IBR_election_auth_suffrage_bad } }

			hidden_effect = {
				country_event = {
					id = IBR.460
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.461
					days = 4
				}
			}
		}
	}
	option = { # We need to stay committed to democracy
		name = IBR.459.c
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_election_auth_suffrage_bad } }

			hidden_effect = {
				country_event = {
					id = IBR.460
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.461
					days = 4
				}
			}
		}
	}
}

country_event = { #Logistical Issues Arise
	id = IBR.460
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.460" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.460.t
	desc = IBR.460.d
	option = { # We could use this
		name = IBR.460.a
		ai_chance = { factor = 10 }

		TNO_worsen_political_parties_policy_effectiveness_low = yes

		IBR_sub_10_soclib = yes
		IBR_sub_5_marklib = yes

		hidden_effect = {
			country_event = {
				id = IBR.461
				days = 1
			}
		}
	}
	option = { # We actually care so no
		name = IBR.460.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.461
				days = 1
			}
		}
	}
}

country_event = { #Election Day
	id = IBR.461
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.461" }
	picture = GFX_report_event_IBR_election_line
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.461.t
	desc = IBR.461.d
	option = {
		name = IBR.461.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBR_election_auth_voter_intimidation }

			hidden_effect = {
				country_event = {
					id = IBR.452
					hours = 7
				}
			}
		}
		else_if = {
			limit = {
				OR = {
					check_variable = {
						IBR_election_libhostility > 2
					}
					check_variable = {
						IBR_election_ruralhostility > 1
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_election_libhostility > 2
					}
				}
				hidden_effect = {
					country_event = {
						id = IBR.5900
						hours = 10
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_election_ruralhostility > 1
					}
				}
				hidden_effect = {
					country_event = {
						id = IBR.5901
						hours = 20
					}
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.466
					hours = 31
				}
			}
		}
		hidden_effect = {
			set_variable = {
				IBRMilitaryHostility = 0
			}
		}
	}
}

country_event = { #Violence At The Polls!
	id = IBR.452
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.452" }
	picture = GFX_report_event_IBR_election_line_inside
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.452.t
	desc = IBR.452.d
	option = {
		name = IBR.452.a
		ai_chance = { factor = 10 }

		IBR_sub_10_authdem = yes
		IBR_add_5_soclib = yes
		IBR_add_3_marklib = yes
		IBR_add_3_soccon = yes

		if = {
			limit = {
				OR = {
					check_variable = {
						IBR_election_libhostility > 2
					}
					check_variable = {
						IBR_election_ruralhostility > 1
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_election_libhostility > 2
					}
				}
				hidden_effect = {
					country_event = {
						id = IBR.5900
						hours = 3
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_election_ruralhostility > 1
					}
				}
				hidden_effect = {
					country_event = {
						id = IBR.5901
						hours = 13
					}
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.466
					hours = 24
				}
			}
		}
	}
}

country_event = { #Unexpected Urban Turnout
	id = IBR.5900
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5900" }
	picture = GFX_report_event_IBR_voting_women
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5900.t
	desc = IBR.5900.d
	immediate = {
		if = {
			limit = { has_country_flag = IBR_election_auth_suffrage_bad }

			add_to_variable = { IBRIRMUDPopularity = 10 }
			add_to_variable = { IBRMarketLiberalPopularity = 20 }
		}
		else = {
			add_to_variable = { IBRIRMUDPopularity = 20 }
			add_to_variable = { IBRMarketLiberalPopularity = 10 }
		}
	}
	option = { #
		name = IBR.5900.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBR_election_auth_suffrage_bad }

			add_popularity = {
				ideology = liberal_conservatism
				popularity = 0.10
			}
			custom_effect_tooltip = IBR_marlib_positive_change
			add_popularity = {
				ideology = liberalism
				popularity = 0.05
			}
			custom_effect_tooltip = IBR_soclib_positive_change
		}
		else = {

			add_popularity = {
				ideology = liberalism
				popularity = 0.10
			}
			custom_effect_tooltip = IBR_soclib_positive_change
			add_popularity = {
				ideology = liberal_conservatism
				popularity = 0.05
			}
			custom_effect_tooltip = IBR_marlib_positive_change
		}

		hidden_effect = {
			country_event = {
				id = IBR.466
				hours = 21
			}
		}
	}
}

country_event = { #Unexpected Rural Turnout
	id = IBR.5901
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5901" }
	picture = GFX_report_event_IBR_voting_nuns
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5901.t
	desc = IBR.5901.d
	immediate = {
		if = {
			limit = { has_country_flag = IBRelection_helped_UN }

			add_to_variable = { IBRAlianzaPopularPopularity = 10 }
			add_to_variable = { IBRNationalUnionPopularity = 20 }
		}
		else = {
			add_to_variable = { IBRAlianzaPopularPopularity = 20 }
			add_to_variable = { IBRNationalUnionPopularity = 10 }
		}
	}
	option = { #
		name = IBR.5901.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBRelection_helped_UN }

			add_popularity = {
				ideology = anocracy
				popularity = 0.1
			}
			add_popularity = {
				ideology = conservatism
				popularity = 0.05
			}
		}
		else = {
			add_popularity = {
				ideology = conservatism
				popularity = 0.1
			}
			add_popularity = {
				ideology = anocracy
				popularity = 0.05
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.466
				hours = 11
			}
		}
	}
}

country_event = { #Union Republicana Secures Victory!
	id = IBR.462
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.462" }
	picture = GFX_report_event_IBR_torcuato
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.462.t
	desc = IBR.462.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.462.a
		ai_chance = { factor = 10 }
		set_politics = {
			ruling_party = liberalism
			last_election = "1970.6.6"
			election_frequency = 48
			elections_allowed = yes
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.478
					days = 1
				}
			}
		}
		promote_character = IBR_Torcuato_Fernandez_Miranda
		if = {
			limit = {
				has_dynamic_modifier = {  modifier = TNO_Oil_Crisis_dynamic_modifier }
			}
			load_focus_tree = { tree = IBR_politics_left_lib_oil keep_completed = yes }
		}
		else = {
			load_focus_tree = {
				tree = IBR_politics_left_lib
				keep_completed = yes
			}
		}
		custom_effect_tooltip = IBR_soclib_victory_tt
		remove_all_ministers = yes
		add_ideas = IBR_Adelino_Palma_hog
		add_ideas = IBR_Manuel_Gutierrez_sec
		add_ideas = IBR_Joaquin_Gimenez_for
		add_ideas = IBR_Juan_Garcia_eco

		TNO_improve_public_meetings_policy_effectiveness_monthly_med = yes

		hidden_effect = {
			set_variable = {
				var = IBRMilitaryHostility
				value = 3
			}
			set_variable = {
				var = IBRSoclibReforms
				value = 0
			}
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_big_tt

		set_country_flag = IBRSoclib70Victory

	}
}

country_event = { #Alianza Popular Secures Victory!
	id = IBR.463
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.463" }
	picture = GFX_report_event_IBR_alianza_popular
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.463.t
	desc = IBR.463.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.463.a
		ai_chance = { factor = 10 }
		set_politics = {
			ruling_party = conservatism
			last_election = "1970.6.6"
			election_frequency = 48
			elections_allowed = yes
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.476
					days = 1
				}
			}
		}
		remove_all_ministers = yes
		add_ideas = IBR_Diogo_Freitas_hog
		add_ideas = IBR_Jose_Azevedo_sec
		add_ideas = IBR_Pio_Cabanillas_for
		add_ideas = IBR_Licinio_Fuente_eco
		if = {
			limit = {
				has_dynamic_modifier = {  modifier = TNO_Oil_Crisis_dynamic_modifier }
			}
			load_focus_tree = { tree = IBR_politics_conservative_oil keep_completed = yes }
		}
		else = {
			load_focus_tree = {
				tree = IBR_politics_conservative
				keep_completed = yes
			}
		}
		custom_effect_tooltip = IBR_soccon_victory_tt

		set_country_flag = IBRSoccon70Victory
	}
}

country_event = { #National Union Secures Victory!
	id = IBR.464
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.464" }
	picture = GFX_report_event_IBR_valcarcel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.464.t
	desc = IBR.464.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.464.a
		ai_chance = { factor = 10 }
		create_country_leader = {
			name = IBR_Alejandro_Valcarcel
			desc = "POLITICS_ALEJANDRO_VALCARCEL_DESC"
			picture = "gfx/leaders/IBR/Portrait_Iberia_Alejandro_Rodriguez_de_Valcarcel.png"
			expire = "1975.10.20"
			ideology = anocracy_national_conservatism_subtype
			traits = {
				#
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.474
					days = 1
				}
			}
		}
		set_politics = {
			ruling_party = anocracy
			last_election = "1970.6.6"
			election_frequency = 48
			elections_allowed = yes
		}
		remove_all_ministers = yes
		add_ideas = IBR_Marcelo_Caetano_hog
		add_ideas = IBR_Manuel_Alegria_sec
		add_ideas = IBR_Pedro_Cortina_for
		add_ideas = IBR_Gregorio_Bravo_eco
		if = {
			limit = {
				has_dynamic_modifier = {  modifier = TNO_Oil_Crisis_dynamic_modifier }
			}
			load_focus_tree = { tree = IBR_politics_national_union_oil keep_completed = yes }
		}
		else = {
			load_focus_tree = {
				tree = IBR_politics_national_union
				keep_completed = yes
			}
		}

		TNO_worsen_public_meetings_policy_effectiveness_monthly_low = yes

		custom_effect_tooltip = IBR_natunion_victory_tt
		set_variable = {
			IBR_pop_militancy_natu = 1
		}
		set_country_flag = IBRNationalUnionVictory
	}
}

country_event = { #PRD Secures Victory!
	id = IBR.465
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.465" }
	picture = GFX_report_event_IBR_ullastres_calvo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.465.t
	desc = IBR.465.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.465.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.477
					days = 1
				}
			}
		}
		set_politics = {
			ruling_party = liberal_conservatism
			last_election = "1970.6.6"
			election_frequency = 48
			elections_allowed = yes
		}
		if = {
			limit = {
				has_dynamic_modifier = {  modifier = TNO_Oil_Crisis_dynamic_modifier }
			}
			load_focus_tree = { tree = IBR_politics_market_lib_oil keep_completed = yes }
		}
		else = {
			load_focus_tree = {
				tree = IBR_politics_market_lib
				keep_completed = yes
			}
		}

		TNO_improve_public_meetings_policy_effectiveness_monthly_low = yes

		custom_effect_tooltip = IBR_marlib_victory_tt
		remove_all_ministers = yes
		add_ideas = IBR_Leopoldo_Sotelo_hog
		add_ideas = IBR_Manuel_Alegria_sec
		add_ideas = IBR_Pio_Cabanillas_for
		add_ideas = IBR_Mariano_Rubio_eco

		set_country_flag = IBRMarlib70Victory
	}
}

country_event = { #the event that works out who wins
	id = IBR.466
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.466" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.466.t
	desc = IBR.466.desc
	immediate = {
		IBR_election_tiebreaker = yes
		clr_country_flag = IBRelection_helped_UN
	}
	option = {
		name = IBR.466.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_PRD }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UR }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UN }
				}
			}
		}
		trigger = {
			OR = {
				has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_AP }
				AND = {
					check_variable = { IBRAlianzaPopularPopularity > IBRMarketLiberalPopularity }
					check_variable = { IBRAlianzaPopularPopularity > IBRNationalUnionPopularity }
					check_variable = { IBRAlianzaPopularPopularity > IBRIRMUDPopularity }
					check_variable = { IBRAlianzaPopularPopularity > IBRIzquierdaPopularity }
				}
			}
		}
		custom_effect_tooltip = IBR_election_tt
		hidden_effect = {
			country_event = { #
				id = IBR.463 days = 1
			}
		}
		clr_country_flag = IBR_election_auth_suffrage_bad
		clr_country_flag = IBR_election_auth_voter_intimidation
		clear_variable = IBR_election_libhostility
		clear_variable = IBR_election_ruralhostility
	}
	option = {
		name = IBR.466.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_AP }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UR }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UN }
				}
			}
		}
		trigger = {
			OR = {
				has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_PRD }
				AND = {
					check_variable = { IBRMarketLiberalPopularity > IBRAlianzaPopularPopularity }
					check_variable = { IBRMarketLiberalPopularity > IBRNationalUnionPopularity }
					check_variable = { IBRMarketLiberalPopularity > IBRIRMUDPopularity }
					check_variable = { IBRMarketLiberalPopularity > IBRIzquierdaPopularity }
				}
			}
		}
		custom_effect_tooltip = IBR_election_tt
		hidden_effect = {
			country_event = { #
				id = IBR.465 days = 1
			}
		}
		clr_country_flag = IBR_election_auth_suffrage_bad
		clr_country_flag = IBR_election_auth_voter_intimidation
		clear_variable = IBR_election_libhostility
		clear_variable = IBR_election_ruralhostility
	}
	option = {
		name = IBR.466.c
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_AP }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_PRD }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UR }
				}
			}
		}
		trigger = {
			OR = {
				has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UN }
				AND = {
					check_variable = { IBRNationalUnionPopularity > IBRMarketLiberalPopularity }
					check_variable = { IBRNationalUnionPopularity > IBRAlianzaPopularPopularity }
					check_variable = { IBRNationalUnionPopularity > IBRIRMUDPopularity }
					check_variable = { IBRNationalUnionPopularity > IBRIzquierdaPopularity }
				}
			}
		}
		custom_effect_tooltip = IBR_election_tt
		hidden_effect = {
			country_event = { #
				id = IBR.464 days = 1
			}
		}
		clr_country_flag = IBR_election_auth_suffrage_bad
		clr_country_flag = IBR_election_auth_voter_intimidation
		clear_variable = IBR_election_libhostility
		clear_variable = IBR_election_ruralhostility
	}
	option = {
		name = IBR.466.d
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_AP }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_PRD }
					has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UN }
				}
			}
		}
		trigger = {
			OR = {
				has_game_rule = { rule = IBR_ELECTION_ROUTE option = IBR_ELECTION_ROUTE_UR }
				AND = {
					check_variable = { IBRIRMUDPopularity > IBRMarketLiberalPopularity }
					check_variable = { IBRIRMUDPopularity > IBRNationalUnionPopularity }
					check_variable = { IBRIRMUDPopularity > IBRAlianzaPopularPopularity }
					check_variable = { IBRIRMUDPopularity > IBRIzquierdaPopularity }
				}
			}
		}
		custom_effect_tooltip = IBR_election_tt
		hidden_effect = {
			country_event = { #
				id = IBR.462 days = 1
			}
		}
		clr_country_flag = IBR_election_auth_suffrage_bad
		clr_country_flag = IBR_election_auth_voter_intimidation
		clear_variable = IBR_election_libhostility
		clear_variable = IBR_election_ruralhostility
	}
	#option = {
	#	name = IBR.466.e
	#	trigger = {
	#		AND = {
	#			check_variable = { IBRIzquierdaPopularity > IBRMarketLiberalPopularity }
	#			check_variable = { IBRIzquierdaPopularity > IBRNationalUnionPopularity }
	#			check_variable = { IBRIzquierdaPopularity > IBRAlianzaPopularPopularity }
	#			check_variable = { IBRIzquierdaPopularity > IBRIRMUDPopularity }
	#		}
	#	}
	#	custom_effect_tooltip = IBR_election_tt
	#	hidden_effect = {
	#		country_event = { #
	#			id = IBR.462 days = 1
	#		}
	#		IBR_add_15_socdem = yes
	#	}
	#}
}

country_event = { #
	id = IBR.467
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.467" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.467.t
	desc = IBR.467.d
	immediate = {
		set_country_flag = ElectionAlreadyHappened2
	}
	trigger = {
		OR = {
			has_country_leader = {
				character = IBR_Torcuato_Fernandez_Miranda
				ruling_only = yes
			}
			has_country_leader = {
				character = IBR_Manuel_Guitierrez
				ruling_only = yes
			}
			has_country_leader = {
				character = IBR_Alberto_Ullastres_Calvo
				ruling_only = yes
			}
			has_government = conservatism
		}
	}
	option = {
		name = IBR.467.a
		ai_chance = { factor = 10 }
		#country_event = { #
		#	id = IBR.468
		#	days = 3
		#}
	}
}

country_event = { #
	id = IBR.468
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.468" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.468.t
	desc = IBR.468.d
	option = {
		name = IBR.468.a
		ai_chance = { factor = 10 }
		country_event = { #
			id = IBR.469
			days = 2
		}
		IBR_add_5_soccon = yes
		IBR_sub_5_authdem = yes
	}
}

country_event = { #
	id = IBR.469
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.469" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.469.t
	desc = IBR.469.d
	option = {
		name = IBR.469.a
		ai_chance = { factor = 10 }
		IBR_add_5_socdem = yes
		IBR_add_3_soclib = yes
		country_event = { #
			id = IBR.470
			days = 2
		}
	}
}

country_event = { #
	id = IBR.470
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.470" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.470.t
	desc = IBR.470.d
	option = {
		name = IBR.470.a
		ai_chance = { factor = 10 }
		IBR_add_3_soclib = yes
		country_event = { #
			id = IBR.471
			days = 2
		}
	}
	option = {
		name = IBR.470.b
		ai_chance = { factor = 10 }
		IBR_add_3_soccon = yes
		country_event = { #
			id = IBR.471
			days = 2
		}
	}
}

country_event = { #
	id = IBR.471
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.471" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.471.t
	desc = IBR.471.d
	option = {
		name = IBR.471.a
		ai_chance = { factor = 10 }
		# Moderates defect
		IBR_add_5_marklib = yes
		IBR_sub_5_socdem = yes
		country_event = { #
			id = IBR.472
			days = 2
		}
	}
	option = {
		name = IBR.471.b
		ai_chance = { factor = 10 }
		# The party stands strong
		IBR_sub_3_soclib = yes
		IBR_add_5_socdem = yes
		country_event = { #
			id = IBR.472
			days = 2
		}
	}
}

country_event = { #
	id = IBR.472
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.472" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.472.t
	desc = IBR.472.d
	option = {
		name = IBR.472.a
		ai_chance = { factor = 10 }
		add_stability = 0.05
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
		ELS = {
			country_event = { #
				id = IBR.473
				hours = 1
			}
		}
	}
}

country_event = { #
	id = IBR.473
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.473" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.473.t
	desc = IBR.473.d
	option = {
		name = IBR.473.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				AND = {
					check_variable = {
						IBRIRMUDPopularity < IBRAlianzaPopularPopularity
					}
					check_variable = {
						IBRMarketLiberalPopularity < IBRAlianzaPopularPopularity
					}
					check_variable = {
						IBRNationalUnionPopularity < IBRAlianzaPopularPopularity
					}
				}
			}
			IBR = {
				country_event = { #
					id = IBR.477
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRAlianzaPopularPopularity < IBRIRMUDPopularity
					}
					check_variable = {
						IBRMarketLiberalPopularity < IBRIRMUDPopularity
					}
					check_variable = {
						IBRNationalUnionPopularity < IBRIRMUDPopularity
					}
				}
			}
			IBR = {
				country_event = { #
					id = IBR.475
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRAlianzaPopularPopularity < IBRMarketLiberalPopularity
					}
					check_variable = {
						IBRIRMUDPopularity < IBRMarketLiberalPopularity
					}
					check_variable = {
						IBRNationalUnionPopularity < IBRMarketLiberalPopularity
					}
				}
			}
			IBR = {
				country_event = { #
					id = IBR.476
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRIRMUDPopularity < IBRNationalUnionPopularity
					}
					check_variable = {
						IBRMarketLiberalPopularity < IBRNationalUnionPopularity
					}
					check_variable = {
						IBRAlianzaPopularPopularity < IBRNationalUnionPopularity
					}
				}
			}
			IBR = {
				country_event = { #
					id = IBR.474
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRIRMUDPopularity = IBRAlianzaPopularPopularity
					}
					OR = {
						AND = {
							check_variable = {
								IBRIRMUDPopularity > IBRNationalUnionPopularity
							}
							check_variable = {
								IBRIRMUDPopularity > IBRMarketLiberalPopularity
							}
						}
						AND = {
							check_variable = {
								IBRAlianzaPopularPopularity > IBRNationalUnionPopularity
							}
							check_variable = {
								IBRAlianzaPopularPopularity > IBRMarketLiberalPopularity
							}
						}
					}
				}
			}
			random_list = {
				50 = {
					IBR = {
						country_event = { #
							id = IBR.477
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = { #
							id = IBR.475
							days = 3
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRIRMUDPopularity = IBRMarketLiberalPopularity
					}
					OR = {
						AND = {
							check_variable = {
								IBRIRMUDPopularity > IBRNationalUnionPopularity
							}
							check_variable = {
								IBRIRMUDPopularity > IBRAlianzaPopularPopularity
							}
						}
						AND = {
							check_variable = {
								IBRMarketLiberalPopularity > IBRNationalUnionPopularity
							}
							check_variable = {
								IBRMarketLiberalPopularity > IBRAlianzaPopularPopularity
							}
						}
					}
				}
			}
			random_list = {
				50 = {
					IBR = {
						country_event = { #
							id = IBR.477
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = { #
							id = IBR.476
							days = 3
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRIRMUDPopularity = IBRNationalUnionPopularity
					}
					OR = {
						AND = {
							check_variable = {
								IBRIRMUDPopularity > IBRMarketLiberalPopularity
							}
							check_variable = {
								IBRIRMUDPopularity > IBRAlianzaPopularPopularity
							}
						}
						AND = {
							check_variable = {
								IBRNationalUnionPopularity > IBRMarketLiberalPopularity
							}
							check_variable = {
								IBRNationalUnionPopularity > IBRAlianzaPopularPopularity
							}
						}
					}
				}
			}
			random_list = {
				50 = {
					IBR = {
						country_event = { #
							id = IBR.477
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = { #
							id = IBR.474
							days = 3
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRAlianzaPopularPopularity = IBRNationalUnionPopularity
					}
					OR = {
						AND = {
							check_variable = {
								IBRAlianzaPopularPopularity > IBRMarketLiberalPopularity
							}
							check_variable = {
								IBRAlianzaPopularPopularity > IBRIRMUDPopularity
							}
						}
						AND = {
							check_variable = {
								IBRNationalUnionPopularity > IBRMarketLiberalPopularity
							}
							check_variable = {
								IBRNationalUnionPopularity > IBRIRMUDPopularity
							}
						}
					}
				}
			}
			random_list = {
				50 = {
					IBR = {
						country_event = { #
							id = IBR.475
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = { #
							id = IBR.474
							days = 3
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRAlianzaPopularPopularity = IBRMarketLiberalPopularity
					}
					OR = {
						AND = {
							check_variable = {
								IBRAlianzaPopularPopularity > IBRNationalUnionPopularity
							}
							check_variable = {
								IBRAlianzaPopularPopularity > IBRIRMUDPopularity
							}
						}
						AND = {
							check_variable = {
								IBRMarketLiberalPopularity > IBRNationalUnionPopularity
							}
							check_variable = {
								IBRMarketLiberalPopularity > IBRIRMUDPopularity
							}
						}
					}
				}
			}
			random_list = {
				50 = {
					IBR = {
						country_event = { #
							id = IBR.475
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = { #
							id = IBR.476
							days = 3
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRNationalUnionPopularity = IBRMarketLiberalPopularity
					}
					OR = {
						AND = {
							check_variable = {
								IBRNationalUnionPopularity > IBRAlianzaPopularPopularity
							}
							check_variable = {
								IBRNationalUnionPopularity > IBRIRMUDPopularity
							}
						}
						AND = {
							check_variable = {
								IBRMarketLiberalPopularity > IBRAlianzaPopularPopularity
							}
							check_variable = {
								IBRMarketLiberalPopularity > IBRIRMUDPopularity
							}
						}
					}
				}
			}
			random_list = {
				50 = {
					IBR = {
						country_event = { #
							id = IBR.474
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = { #
							id = IBR.476
							days = 3
						}
					}
				}
			}
		}
		else = {
			random_list = {
				30 = {
					IBR = {
						country_event = { #
							id = IBR.474
							days = 3
						}
					}
				}
				30 = {
					IBR = {
						country_event = { #
							id = IBR.475
							days = 3
						}
					}
				}
				20 = {
					IBR = {
						country_event = { #
							id = IBR.477
							days = 3
						}
					}
				}
				20 = {
					IBR = {
						country_event = { #
							id = IBR.476
							days = 3
						}
					}
				}
			}
		}
	}
}

country_event = { #
	id = IBR.474
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.474" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.474.t
	desc = IBR.474.d
	option = {
		name = IBR.474.a
		ai_chance = { factor = 10 }
	}
}
country_event = { #
	id = IBR.476
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.476" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.476.t
	desc = IBR.476.d
	option = {
		name = IBR.476.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #
	id = IBR.477
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.477" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.477.t
	desc = IBR.477.d
	option = {
		name = IBR.477.a
		ai_chance = { factor = 10 }
	}
}

###################################
########Battle Of Barcelona########
###################################
###################################

country_event = {
	id = IBR.500
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.500" }
	picture = GFX_report_event_generic_crate_of_guns
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.500.t
	desc = IBR.500.d
	trigger = {
		tag = IBR
		AND = {
			NOT = {
				has_country_flag = barcelona_started
			}
			OR = {
				date > 1965.4.4
				has_country_flag = reactionfinished
			}
		}
	}
	option = {
		name = IBR.500.a
		ai_chance = { factor = 10 }
		# Investigate

		set_country_flag = barcelona_started

		if = {
			limit = { IBR = { has_country_leader = { character = IBR_Francisco_Franco ruling_only = yes } } }

			hidden_effect = {
				country_event = {
					id = IBR.502
					days = 3
				}
			}

			custom_effect_tooltip = IBR_barcelona_franco_tt
		}
		else_if = {
			limit = { IBR = { has_country_leader = { character = IBR_Antonio_Salazar ruling_only = yes } } }

			hidden_effect = {
				country_event = {
					id = IBR.501
					days = 3
				}
			}

			custom_effect_tooltip = IBR_barcelona_salazar_tt
		}
		else = {
			hidden_effect = {
				random_list = {
					50 = {
						IBR = {
							country_event = {
								id = IBR.501
								days = 3
							}
						}
					}
					50 = {
						IBR = {
							country_event = {
								id = IBR.502
								days = 3
							}
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					has_country_flag = advisory_council
					has_country_flag = legislature_council
				}
			}
			set_country_flag = advisory_council

			hidden_effect = {
				country_event = {
					days = 1
					id = IBR.57
				}
			}
		}
	}
}

country_event = {
	id = IBR.501
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.501" }
	picture = GFX_report_event_generic_guns_crate_mosin
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.501.t
	desc = IBR.501.d
	option = {
		name = IBR.501.a
		ai_chance = { factor = 10 }
		# Send in the Army
		country_event = {
			id = IBR.503
			days = 1
		}
	}
	option = {
		name = IBR.501.b
		ai_chance = { factor = 10 }
		# Send in the Guardia Civil
		country_event = {
			id = IBR.504
			days = 1
		}
	}
	option = {
		name = IBR.501.c
		ai_chance = { factor = 10 }
		# Send in the Local Police
		country_event = {
			id = IBR.505
			days = 1
		}
	}
}

country_event = {
	id = IBR.502
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.502" }
	picture = GFX_report_event_generic_crate_of_guns
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.502.t
	desc = IBR.502.d
	option = {
		# Use local police
		name = IBR.502.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.506
				days = 1
			}
		}
	}
	option = {
		# Give up
		name = IBR.502.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.507
				days = 1
			}
		}
	}
}

country_event = {
	id = IBR.503
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.503" }
	picture = GFX_report_event_IBR_soldier
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.503.t
	desc = IBR.503.d
	option = {
		name = IBR.503.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.508
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.504
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.504" }
	picture = GFX_report_event_IBR_guardia_civil
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.504.t
	desc = IBR.504.d
	option = {
		name = IBR.504.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.509
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.505
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.505" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.505.t
	desc = IBR.505.d
	option = {
		name = IBR.505.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.510
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.506
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.506" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.506.t
	desc = IBR.506.d
	option = {
		name = IBR.506.a
		ai_chance = { factor = 10 }
		add_political_power = -50
		hidden_effect = {
			if = {
				limit = { has_country_flag = cau_strong_franco }

				country_event = {
					id = IBR.512
					days = 3
				}
			}
			else = {
				country_event = {
					id = IBR.511
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.507
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.507" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.507.t
	desc = IBR.507.d
	option = {
		name = IBR.507.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.513
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.508
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.508" }
	picture = GFX_report_event_IBR_iberian_wars_11
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.508.t
	desc = IBR.508.d
	option = {
		name = IBR.508.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.522
					days = 3
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 0.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.509
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.509" }
	picture = GFX_report_event_IBR_iberian_wars_6
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.509.t
	desc = IBR.509.d
	option = {
		name = IBR.509.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.523
					days = 3
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 0.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.510
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.510" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.510.t
	desc = IBR.510.d
	option = {
		name = IBR.510.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.524
					days = 3
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 0.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.511
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.511" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.511.t
	desc = IBR.511.d
	option = {
		name = IBR.511.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.510
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.512
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.512" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.512.t
	desc = IBR.512.d
	option = {
		name = IBR.512.a
		ai_chance = { factor = 10 }
		add_political_power = -25
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.513
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.513
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.513" }
	picture = GFX_report_event_IBR_cnt_flag
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.513.t
	desc = IBR.513.d
	option = {
		name = IBR.513.a
		ai_chance = { factor = 10 }
		add_political_power = -150
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.514
					days = 1
				}
			}
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.514
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.514" }
	picture = GFX_report_event_IBR_cnt_anarchists
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.514.t
	desc = IBR.514.d
	option = {
		name = IBR.514.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.515
				days = 3
			}
		}
	}
}

country_event = {
	id = IBR.515
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.515" }
	picture = GFX_report_event_IBR_cnt_anarchists
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.515.t
	desc = IBR.515.d
	option = {
		name = IBR.515.a
		ai_chance = { factor = 10 }
		# Bombard the city!
		add_political_power = -50
		add_manpower = -5000
		hidden_effect = {
			random_list = {
				20 = {
					IBR = {
						country_event = {
							id = IBR.516
							days = 3
						}
					}
				}
				80 = {
					IBR = {
						country_event = {
							id = IBR.517
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
	}
	option = {
		name = IBR.515.b
		ai_chance = { factor = 10 }
		# Navally bombard the city!
		add_political_power = -50
		add_manpower = -5000
		hidden_effect = {
			random_list = {
				5 = {
					IBR = {
						country_event = {
							id = IBR.518
							days = 3
						}
					}
				}
				95 = {
					IBR = {
						country_event = {
							id = IBR.519
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
	}
	option = {
		name = IBR.515.c
		ai_chance = { factor = 10 }
		# Roll in the tanks!
		add_political_power = -50
		add_manpower = -5000
		hidden_effect = {
			random_list = {
				30 = {
					IBR = {
						country_event = {
							id = IBR.520
							days = 3
						}
					}
				}
				70 = {
					IBR = {
						country_event = {
							id = IBR.521
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
	}
}

country_event = { #good
	id = IBR.516
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.516" }
	picture = GFX_report_event_generic_big_guns
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.516.t
	desc = IBR.516.d
	option = {
		name = IBR.516.a
		ai_chance = { factor = 10 }
		add_political_power = 150
		add_manpower = -2000
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		986 = {
			damage_building = {
				type = infrastructure
				damage = 0.1
			}
		}
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.530
					days = 1
				}
			}
		}
	}
}

country_event = { #not great, not terrible
	id = IBR.517
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.517" }
	picture = GFX_report_event_IBR_barcelona_rubble
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.517.t
	desc = IBR.517.d
	option = {
		name = IBR.517.a
		ai_chance = { factor = 10 }
		add_political_power = -75
		add_manpower = -4000
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		986 = {
			damage_building = {
				type = infrastructure
				damage = 0.3
			}
		}

		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.530
					days = 1
				}
			}
		}
	}
}

country_event = {
	id = IBR.518
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.518" }
	picture = GFX_report_event_ITA_naval_ship
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.518.t
	desc = IBR.518.d
	option = {
		name = IBR.518.a
		ai_chance = { factor = 10 }
		add_political_power = 200
		add_manpower = -500

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.530
					days = 1
				}
			}
		}
	}
}

country_event = { #pyrrhic naval
	id = IBR.519
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.519" }
	picture = GFX_report_event_IBR_barcelona_rubble
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.519.t
	desc = IBR.519.d
	option = {
		name = IBR.519.a
		ai_chance = { factor = 10 }
		set_country_flag = barcelona_pyrrhic_victory
		add_political_power = -75
		add_manpower = -2000
		add_popularity = {
			ideology = communist
			popularity = -0.01
		}
		add_popularity = {
			ideology = socialist
			popularity = -0.01
		}
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.530
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		986 = {
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}
	}
}

country_event = {
	id = IBR.520
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.520" }
	picture = GFX_report_event_IBR_iberian_wars_10
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.520.t
	desc = IBR.520.d
	option = {
		name = IBR.520.a
		ai_chance = { factor = 10 }
		add_political_power = 100
		add_manpower = -4000

		986 = {
			damage_building = {
				type = infrastructure
				damage = 0.2
			}
		}
		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.530
					days = 1
				}
			}
		}
	}
}

country_event = { #pyrrhic armored
	id = IBR.521
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.521" }
	picture = GFX_report_event_IBR_barcelona_rubble
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.521.t
	desc = IBR.521.d
	option = {
		name = IBR.521.a
		ai_chance = { factor = 10 }
		set_country_flag = barcelona_pyrrhic_victory
		add_political_power = -75
		add_manpower = -8000

		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.530
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		986 = {
			damage_building = {
				type = infrastructure
				damage = 1
			}
		}
	}
}

country_event = { #CNT Rises Against Army Occupation
	id = IBR.522
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.522" }
	picture = GFX_report_event_IBR_cnt_barricades
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.522.t
	desc = IBR.522.d
	option = {
		name = IBR.522.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = legislature_council }

			hidden_effect = {
				random_list = {
					30 = {
						IBR = {
							country_event = {
								id = IBR.525
								days = 2
							}
						}
					}
					70 = {
						IBR = {
							country_event = {
								id = IBR.527
								days = 2
							}
						}
					}
				}
			}
		}
		else = {

			hidden_effect = {
				random_list = {
					30 = {
						IBR = {
							country_event = {
								id = IBR.527
								days = 2
							}
						}
					}
					70 = {
						IBR = {
							country_event = {
								id = IBR.525
								days = 2
							}
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #CNT Rises Against Guardia Civil
	id = IBR.523
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.523" }
	picture = GFX_report_event_IBR_cnt_barricades
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.523.t
	desc = IBR.523.d
	option = {
		name = IBR.523.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = legislature_council }

			hidden_effect = {
				random_list = {
					30 = {
						IBR = {
							country_event = {
								id = IBR.529
								days = 2
							}
						}
					}
					70 = {
						IBR = {
							country_event = {
								id = IBR.528
								days = 2
							}
						}
					}
				}
			}
		}
		else = {

			hidden_effect = {
				random_list = {
					30 = {
						IBR = {
							country_event = {
								id = IBR.528
								days = 2
							}
						}
					}
					70 = {
						IBR = {
							country_event = {
								id = IBR.529
								days = 2
							}
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.524
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.524" }
	picture = GFX_report_event_IBR_cnt_dudes_with_guns
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.524.t
	desc = IBR.524.d
	option = {
		name = IBR.524.a
		ai_chance = { factor = 10 }
		# Bombard the city!
		add_political_power = -30
		add_manpower = -3000
		hidden_effect = {
			random_list = {
				30 = {
					IBR = {
						country_event = {
							id = IBR.516
							days = 3
						}
					}
				}
				70 = {
					IBR = {
						country_event = {
							id = IBR.517
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
	option = {
		name = IBR.524.b
		ai_chance = { factor = 10 }
		# Navally bombard the city!
		add_political_power = -30
		add_manpower = -3000
		hidden_effect = {
			random_list = {
				10 = {
					IBR = {
						country_event = {
							id = IBR.518
							days = 3
						}
					}
				}
				90 = {
					IBR = {
						country_event = {
							id = IBR.519
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2.5
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
	option = {
		name = IBR.524.c
		ai_chance = { factor = 10 }
		# Roll in the tanks!
		add_political_power = -30
		add_manpower = -3000
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.520
							days = 3
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.521
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3105
				days = 1
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2.5
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.525
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.525" }
	picture = GFX_report_event_IBR_soldier
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.525.t
	desc = IBR.525.d
	option = {
		name = IBR.525.a
		ai_chance = { factor = 10 }
		add_political_power = -20
		add_manpower = -500

		IBR = {
			country_event = {
				id = IBR.530
				days = 1
			}
		}
	}
}

country_event = {
	id = IBR.527
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.527" }
	picture = GFX_report_event_IBR_cnt_flags
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.527.t
	desc = IBR.527.d
	option = {
		name = IBR.527.a
		ai_chance = { factor = 10 }
		# Bombard the city!
		add_political_power = -20
		add_manpower = -2500
		hidden_effect = {
			random_list = {
				50 = {
					IBR = {
						country_event = {
							id = IBR.516
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = {
							id = IBR.517
							days = 3
						}
					}
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
	option = {
		name = IBR.527.b
		ai_chance = { factor = 10 }
		# Navally bombard the city!
		add_political_power = -20
		add_manpower = -2500
		hidden_effect = {
			random_list = {
				20 = {
					IBR = {
						country_event = {
							id = IBR.518
							days = 3
						}
					}
				}
				80 = {
					IBR = {
						country_event = {
							id = IBR.519
							days = 3
						}
					}
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
	option = {
		name = IBR.527.c
		ai_chance = { factor = 10 }
		# Roll in the tanks!
		add_political_power = -20
		add_manpower = -2500
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.520
							days = 3
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.521
							days = 3
						}
					}
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.528
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.528" }
	picture = GFX_report_event_IBR_guardia_civil
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.528.t
	desc = IBR.528.d
	option = {
		name = IBR.528.a
		ai_chance = { factor = 10 }
		add_political_power = 20
		add_manpower = -250

		IBR = {
			country_event = {
				id = IBR.530
				days = 1
			}
		}
	}
}

country_event = {
	id = IBR.529
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.529" }
	picture = GFX_report_event_IBR_cnt_flags
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.529.t
	desc = IBR.529.d
	option = {
		name = IBR.529.a
		ai_chance = { factor = 10 }
		# Bombard the city!
		add_political_power = -20
		add_manpower = -500
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.516
							days = 3
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.517
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
	option = {
		name = IBR.529.b
		ai_chance = { factor = 10 }
		# Navally bombard the city!
		add_political_power = -20
		add_manpower = -500
		hidden_effect = {
			random_list = {
				20 = {
					IBR = {
						country_event = {
							id = IBR.518
							days = 3
						}
					}
				}
				80 = {
					IBR = {
						country_event = {
							id = IBR.519
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
	option = {
		name = IBR.529.c
		ai_chance = { factor = 10 }
		# Roll in the tanks!
		add_political_power = -20
		add_manpower = -500
		hidden_effect = {
			random_list = {
				50 = {
					IBR = {
						country_event = {
							id = IBR.520
							days = 3
						}
					}
				}
				50 = {
					IBR = {
						country_event = {
							id = IBR.521
							days = 3
						}
					}
				}
			}
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.466
					days = 1
				}
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.530
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.530" }
	picture = GFX_report_event_IBR_barcelona_smoke
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.530.t
	desc = IBR.530.d
	option = {
		name = IBR.530.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRBarcelonaDefeated
		hidden_effect = {

			#REMOVED TERRORISM FOR AI FOR TIME BEING TO SEE WHAT HAPPENS
			if = {
				limit = { is_ai = no }
				IBR = {
					country_event = { #ticker
						id = IBR.540
						days = 62
					}
				}
			}
			country_event = { #load barcelona burns tree (barcelona_burns)
				id = IBR.531
				days = 3
			}

		}
		set_variable = {
			IBR_AAS_Resources = 0
		}
		set_variable = {
			IBR_CNT_Activity = 1
		}
		set_variable = {
			IBR_CNT_Resources = 1.5
		}
		set_variable = {
			IBR_CNT_Support = 1.5
		}
		set_variable = {
			IBR_TBA_Activity = 2
		}
		set_variable = {
			IBR_TBA_Resources = 2
		}
		set_variable = {
			IBR_TBA_Support = 0.5
		}
		set_variable = {
			IBR_ETA_Activity = 2
		}
		set_variable = {
			IBR_ETA_Resources = 2
		}
		set_variable = {
			IBR_ETA_Support = 2
		}
		set_variable = {
			IBR_FSLP_Activity = 1
		}
		set_variable = {
			IBR_FSLP_Resources = 2
		}
		set_variable = {
			IBR_FSLP_Support = 1
		}
		set_variable = { IBR_AAS_offensive_decision_ticker = 1 }
		hidden_effect = {
			IBR_terror_vunerable_check = yes
		}
		set_country_flag = IBR_decisions_terrorism
	}
}

#####POST BARCELONA TERROR BUILDUP

country_event = { #Axencia Finds Uptick in Separatist Activity
	id = IBR.5500
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5500" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5500.t
	desc = IBR.5500.d
	option = {
		name = IBR.5500.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5501
				days = 40
			}
		}

		custom_effect_tooltip = IBR_pp_terrorism_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_terrorism
		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
	}
}

country_event = { #Basque Teenagers Caught Vandalizing
	id = IBR.5501
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5501" }
	picture = GFX_report_event_IBR_broken_window
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5501.t
	desc = IBR.5501.d
	option = {
		name = IBR.5501.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5502
				hours = 9
			}
		}
	}
}

country_event = { #Teenagers Die in AAS Custody
	id = IBR.5502
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5502" }
	picture = GFX_report_event_IBR_broken_window
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5502.t
	desc = IBR.5502.d
	option = {
		name = IBR.5502.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5503
				days = 2
			}
		}
	}
}

country_event = { #Riots in Bilbao
	id = IBR.5503
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5503" }
	picture = GFX_report_event_IBR_basque_protestors_beaten
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5503.t
	desc = IBR.5503.d
	option = {
		name = IBR.5503.a
		ai_chance = { factor = 10 }
		add_political_power = -100
		add_to_variable = {
			var = IBR_ETA_Support
			value = 2
		}
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_eta_support_mid_tt
		if = {
			limit = {
				has_country_flag = barcelona_pyrrhic_victory
			}
			hidden_effect = {
				country_event = {
					id = IBR.5504
					days = 40
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5505
					days = 40
				}
			}
		}
	}
}

country_event = { #AAS Infiltrates Large CNT Cell
	id = IBR.5504
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5504" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5504.t
	desc = IBR.5504.d
	option = {
		name = IBR.5504.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_CNT_Support
			value = 2
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_cnt_support_mid_tt
		hidden_effect = {
			country_event = {
				id = IBR.5514
				days = 35
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.3199
				days = 13
			}
		}
	}
}

country_event = { #AAS Infiltrates Small CNT Cell
	id = IBR.5505
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5505" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5505.t
	desc = IBR.5505.d
	option = {
		name = IBR.5505.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBR_CNT_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5514
				days = 35
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.3199
				days = 13
			}
		}
	}
}

country_event = { #Thousands in Lisbon Protest Spanish Dominance
	id = IBR.5506
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5506" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5506.t
	desc = IBR.5506.d
	option = {
		name = IBR.5506.a
		ai_chance = { factor = 10 }

		add_political_power = -75
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 2
		}
		IBR_terror_vunerable_check = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_mid_tt

		custom_effect_tooltip = IBR_cauinfo_francolisbon_big_tt
		hidden_effect = {
			country_event = {
				id = IBR.5508
				days = 14
			}
		}
	}
}

country_event = { #Hundreds in Lisbon Protest Against Spanish Dominance
	id = IBR.5507
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5507" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5507.t
	desc = IBR.5507.d
	option = {
		name = IBR.5507.a
		ai_chance = { factor = 10 }
		add_political_power = -25
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_fslp_support_small_tt

		custom_effect_tooltip = IBR_cauinfo_francolisbon_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5508
				days = 14
			}
		}
	}
}

country_event = { #Smugglers Detained at Asturian Port
	id = IBR.5508
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5508" }
	picture = GFX_report_event_IBR_boat_Asturias_Aviles
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5508.t
	desc = IBR.5508.d
	option = {
		name = IBR.5508.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBR_TBA_Resources
			value = 0.5
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 0.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_tba_activity_small_tt
		custom_effect_tooltip = IBR_add_tba_supplies_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5515
				days = 35
			}
		}
	}
}

country_event = { #Basque Terrorists Arrested
	id = IBR.5509
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5509" }
	picture = GFX_report_event_IBR_basques_arrested
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5509.t
	desc = IBR.5509.d
	option = {
		name = IBR.5509.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -0.5
		}
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5516
				days = 35
			}
		}
	}
}

country_event = { #AAS Successfully Raids CNT Cell
	id = IBR.5510
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5510" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5510.t
	desc = IBR.5510.d
	option = {
		name = IBR.5510.a
		ai_chance = { factor = 10 }
		add_political_power = 75
		add_to_variable = {
			var = IBR_CNT_Resources
			value = -1
		}
		IBR_terror_vunerable_check = yes
		add_to_variable = {
			var = IBR_AAS_Resources
			value = -3
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_cnt_supplies_small_tt
		custom_effect_tooltip = IBR_sub_aas_tt
		hidden_effect = {
			country_event = {
				id = IBR.5512
				days = 22
			}
		}
	}
}

country_event = { #AAS Botches Raid on CNT Cell
	id = IBR.5511
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5511" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5511.t
	desc = IBR.5511.d
	option = {
		name = IBR.5511.a
		ai_chance = { factor = 10 }
		add_political_power = -150
		add_to_variable = {
			var = IBR_CNT_Support
			value = 3
		}
		IBR_terror_vunerable_check = yes
		add_to_variable = {
			var = IBR_AAS_Resources
			value = -3
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}

		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_big_tt
		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_sub_aas_tt
		hidden_effect = {
			country_event = {
				id = IBR.5512
				days = 22
			}
		}
	}
}

country_event = { #Rumors of Portuguese Separatist Group
	id = IBR.5512
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5512" }
	picture = GFX_report_event_IBR_lisbon_working_class_neighborhood
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5512.t
	desc = IBR.5512.d
	option = {
		name = IBR.5512.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_fslp_support_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5513
				days = 24
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.3134
				days = 10
			}
		}
	}
}

country_event = { #Something Amiss in Asturias
	id = IBR.5513
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5513" }
	picture = GFX_report_event_IBR_port_of_Aviles_Asturias
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5513.t
	desc = IBR.5513.d
	option = {
		name = IBR.5513.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_TBA_Resources
			value = 1.5
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_tba_activity_small_tt
		custom_effect_tooltip = IBR_add_tba_supplies_small_tt

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = advisory_council
				}

				country_event = {
					id = IBR.3118
					days = 4
				}
			}
			else = {
				country_event = {
					id = IBR.3119
					days = 4
				}
			}
		}
	}
}

country_event = { #CHECK EVENT FOR CAUDILLO POP IN 5506/07
	id = IBR.5514
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5514" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.5514.t
	desc = IBR.5514.d
	option = {
		name = IBR.5514.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = cau_strong_franco
			}
			hidden_effect = {
				country_event = {
					id = IBR.5506
					hours = 1
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = cau_weak_franco
			}
			hidden_effect = {
				country_event = {
					id = IBR.5507
					hours = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5508
					days = 41
				}
			}
		}
	}
}
country_event = { #CHECK EVENT FOR CAUDILLO POP IN 5509
	id = IBR.5515
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5515" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.5515.t
	desc = IBR.5515.d
	option = {
		name = IBR.5515.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				check_variable = {
					var = IBR_ETA_Support
					value = 3
					compare = greater_than_or_equals
				}
			}
			hidden_effect = {
				IBR = {
					country_event = {
						id = IBR.548
						hours = 1
					}
					country_event = {
						id = IBR.5516
						days = 40
					}
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5509
					hours = 1
				}
			}
		}
	}
}
#BALANCE AAS RESOURCES BELOW
country_event = { #CHECK EVENT FOR AAS SUPPORT IN IBR.5510/11
	id = IBR.5516
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5516" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.5516.t
	desc = IBR.5516.d
	option = {
		name = IBR.5516.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
		#IS THIS BALANCED???? LOOKS LIKE IT IS LOL
				check_variable = {
					var = IBR_AAS_Resources
					value = 10
					compare = greater_than_or_equals
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5510
					hours = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5511
					hours = 1
				}
			}
		}
	}
}

####AAS CORRUPTION CHAIN####

country_event = { #Franco Speaks Against Separatism
	id = IBR.5520
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5520" }
	title = IBR.5520.t
	desc = IBR.5520.d
	picture = GFX_report_event_IBR_franco_speech

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5520.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_start
		custom_effect_tooltip = IBR_AAS_chain_start_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 2
		}
		custom_effect_tooltip = IBR_improve_franco_majority_tt

		add_to_variable = {
			var = IBR_regional_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_regional_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5521
				days = 23
			}
		}
	}
}

country_event = { #Disturbing News Regarding The Axencia
	id = IBR.5521
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5521" }
	title = IBR.5521.t
	desc = IBR.5521.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #Administrative issues, clearly
		name = IBR.5521.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_cauinfo_AASchain_tt

		hidden_effect = {
			country_event = {
				id = IBR.5522
				days = 4
			}
		}
	}
	option = { #Their integration with the military may be relevant...
		name = IBR.5521.b
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_cauinfo_AASchain_tt

		hidden_effect = {
			country_event = {
				id = IBR.5524
				days = 4
			}
		}
	}
}

country_event = { #Credible Allegations of AAS Corruption
	id = IBR.5522
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5522" }
	title = IBR.5522.t
	desc = IBR.5522.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5522.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_aaschain_bureaucrats_tt

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5523
					days = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5584
					days = 5
				}
			}
		}
	}
}

country_event = { #AAS Officials Deeply Corrupt
	id = IBR.5523
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5523" }
	title = IBR.5523.t
	desc = IBR.5523.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #Threaten the bureaucrats
		name = IBR.5523.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_aaschain_threatenbur_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5526
				days = 2
			}
		}
	}
	option = { #A less confrontational approach is needed
		name = IBR.5523.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5542
				days = 1
			}
		}
	}
}

country_event = { #AAS Officials Deeply Corrupt (SALAZAR/COUNCIL)
	id = IBR.5584
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5584" }
	title = IBR.5584.t
	desc = IBR.5584.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #A less confrontational approach is needed
		name = IBR.5584.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5542
				days = 1
			}
		}
	}
}

country_event = { #Audit of AAS Joint Program
	id = IBR.5524
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5524" }
	title = IBR.5524.t
	desc = IBR.5524.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5524.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_aaschain_military_tt

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5525
					days = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5585
					days = 5
				}
			}
		}
	}
}

country_event = { #AAS-Military Program Corrupt
	id = IBR.5525
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5525" }
	title = IBR.5525.t
	desc = IBR.5525.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #Threaten the millitary
		name = IBR.5525.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_aaschain_threatenmil_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -2
		}

		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5527
				days = 2
			}
		}
	}
	option = { #A less confrontational approach is needed
		name = IBR.5525.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5560
				days = 1
			}
		}
	}
}

country_event = { #AAS-Military Program Corrupt (SALAZAR/COUNCIL)
	id = IBR.5585
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5585" }
	title = IBR.5585.t
	desc = IBR.5585.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #A less confrontational approach is needed
		name = IBR.5585.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5560
				days = 1
			}
		}
	}
}

country_event = { #AAS-insiders Expose the Military
	id = IBR.5526
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5526" }
	title = IBR.5526.t
	desc = IBR.5526.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5526.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5528
				days = 1
			}
		}
	}
}

country_event = { #Military Exposes AAS-insiders
	id = IBR.5527
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5527" }
	title = IBR.5527.t
	desc = IBR.5527.d
	picture = GFX_report_event_IBR_military_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5527.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5528
				days = 1
			}
		}
	}
}

country_event = { #The Truth Revealed
	id = IBR.5528
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5528" }
	title = IBR.5528.t
	desc = IBR.5528.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Try to strike a deal
		name = IBR.5528.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5529
				days = 1
			}
		}
	}
	option = { #No deals, this is unacceptable!
		name = IBR.5528.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5538
				days = 1
			}
		}
	}
}

#"Try to strike a deal" branch

country_event = { #Dealing With the Bureaucrats
	id = IBR.5529
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5529" }
	title = IBR.5529.t
	desc = IBR.5529.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Start off strong
		name = IBR.5529.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBR_burocrat_alignment > -3.1
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5530
					days = 4
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5531
					days = 4
				}
			}
		}
	}
	option = { #Offer a compromise
		name = IBR.5529.b
		ai_chance = { factor = 10 }

		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.5532
				days = 3
			}
		}
	}
}

country_event = { #AAS Bureaucrats Comply with Terms
	id = IBR.5530
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5530" }
	title = IBR.5530.t
	desc = IBR.5530.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5530.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_burocrats_comply

		hidden_effect = {
			country_event = {
				id = IBR.5533
				days = 7
			}
		}
	}
}

country_event = { #Bureaucrats Call the Bluff
	id = IBR.5531
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5531" }
	title = IBR.5531.t
	desc = IBR.5531.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #Offer a compromise...
		name = IBR.5531.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5532
				days = 2
			}
		}
	}
}

country_event = { #AAS Bureaucrats Accept Compromise
	id = IBR.5532
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5532" }
	title = IBR.5532.t
	desc = IBR.5532.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5532.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 3
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5533
				days = 7
			}
		}
	}
}

country_event = { #Dealing with the Military
	id = IBR.5533
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5533" }
	title = IBR.5533.t
	desc = IBR.5533.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Focus on repairing the joint AAS-military programs
		name = IBR.5533.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_burocrats_comply
			}

			hidden_effect = {
				country_event = {
					id = IBR.5534
					days = 21
				}
			}
			clr_country_flag = IBR_burocrats_comply
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5536
					days = 21
				}
			}
		}
	}
	option = { #These programs were destined to fail
		name = IBR.5533.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5537
				days = 31
			}
		}
	}
}

country_event = { #Good News from AAS Partnership
	id = IBR.5534
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5534" }
	title = IBR.5534.t
	desc = IBR.5534.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5534.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt

		hidden_effect = {
			country_event = {
				id = IBR.5535
				days = 10
			}
		}
	}
}

country_event = { #Axencia Making Great Strides
	id = IBR.5535
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5535" }
	title = IBR.5535.t
	desc = IBR.5535.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5535.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_AAS_chain_goodending_tt

		add_political_power = 25

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 3
		}
		custom_effect_tooltip = IBR_add_aas_tt

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -3 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_2
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_AAS_2
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = 2
			}
			custom_effect_tooltip = IBR_add_stability_big_tt
		}
		else = {
			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}

		TNO_improve_security_policy_effectiveness_med = yes
		TNO_improve_admin_efficiency_low = yes

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}


		set_country_flag = IBR_AAS_chain_goodending

		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

country_event = { #AAS Partnership Still a Failure
	id = IBR.5536
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5536" }
	title = IBR.5536.t
	desc = IBR.5536.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5536.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -3
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5537
				days = 10
			}
		}
	}
}

country_event = { #Axencia Slowly Improving
	id = IBR.5537
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5537" }
	title = IBR.5537.t
	desc = IBR.5537.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5537.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_midending
		custom_effect_tooltip = IBR_AAS_chain_midending_tt

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_3
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_AAS_3
		}
		IBR_council_clamp = yes

		TNO_improve_security_policy_effectiveness_low = yes

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

#"No deals, this is unacceptable" branch

country_event = { #Removing the Compromised
	id = IBR.5538
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5538" }
	title = IBR.5538.t
	desc = IBR.5538.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #Fire the corrupt administrators
		name = IBR.5538.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 2
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5539
				days = 10
			}
		}
	}
	option = { #Prosecute every single one!
		name = IBR.5538.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 4
		}
		custom_effect_tooltip = IBR_add_aas_big_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -4
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5539
				days = 10
			}
		}
	}
}

country_event = { #Wrangling the Military
	id = IBR.5539
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5539" }
	title = IBR.5539.t
	desc = IBR.5539.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #Punish those directly involved
		name = IBR.5539.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 2
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5540
				days = 10
			}
		}
	}
	option = { #Remove their corrupt superiors as well!
		name = IBR.5539.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 4
		}
		custom_effect_tooltip = IBR_add_aas_big_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -4
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5540
				days = 10
			}
		}
	}
}

country_event = { #Changes to the AAS
	id = IBR.5540
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5540" }
	title = IBR.5540.t
	desc = IBR.5540.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #Increase oversight
		name = IBR.5540.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 3
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5541
				days = 20
			}
		}
	}
	option = { #A thorough restructuring is needed!
		name = IBR.5540.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 5
		}
		custom_effect_tooltip = IBR_add_aas_big_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -3
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5541
				days = 20
			}
		}
	}
}

country_event = { #A Reformed Axencia
	id = IBR.5541
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5541" }
	title = IBR.5541.t
	desc = IBR.5541.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5541.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_goodending
		custom_effect_tooltip = IBR_AAS_chain_goodending_tt

		add_political_power = 75

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}
		custom_effect_tooltip = IBR_improve_franco_majority_tt

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -5 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_1
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -5 }
			custom_effect_tooltip = IBR_influence_tt_AAS_1
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = 4
			}
			custom_effect_tooltip = IBR_add_stability_really_big_tt
		}
		else = {
			add_to_variable = {
				var = IBRIberiaStability
				value = 2
			}
			custom_effect_tooltip = IBR_add_stability_big_tt
		}

		TNO_improve_security_policy_effectiveness_med = yes
		TNO_improve_admin_efficiency_low = yes

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

#Bureaucrat branch: "A less confrontational approach is needed"

country_event = { #Approaching the AAS administration
	id = IBR.5542
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5542" }
	title = IBR.5542.t
	desc = IBR.5542.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Question the ones in our sights
		name = IBR.5542.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5543
				days = 6
			}
		}
	}
	option = { #Expand the scope
		name = IBR.5542.b
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5549
				days = 10
			}
		}
	}
}

country_event = { #Meeting the Accused
	id = IBR.5543
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5543" }
	title = IBR.5543.t
	desc = IBR.5543.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5543.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5544
				days = 5
			}
		}
	}
}

country_event = { #All Efforts Stonewalled
	id = IBR.5544
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5544" }
	title = IBR.5544.t
	desc = IBR.5544.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Fine, keep digging
		name = IBR.5544.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5545
				days = 14
			}
		}
	}
	option = { #This is futile, we have to shift focus
		name = IBR.5544.b
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5551
				days = 7
			}
		}
	}
}

country_event = { #A Quiet Day at the Office
	id = IBR.5545
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5545" }
	title = IBR.5545.t
	desc = IBR.5545.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #Call those people up right now!
		name = IBR.5545.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5546
				days = 4
			}
		}
	}
	option = { #It's over, we squandered our chance
		name = IBR.5545.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5547
				days = 20
			}
		}
	}
}

country_event = { #Key Individuals Leave the Country
	id = IBR.5546
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5546" }
	title = IBR.5546.t
	desc = IBR.5546.d
	picture = GFX_report_event_COG_plane

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5546.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -2
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_tt

		hidden_effect = {
			country_event = {
				id = IBR.5547
				days = 16
			}
		}
	}
}

country_event = { #AAS in Dire Straits
	id = IBR.5547
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5547" }
	title = IBR.5547.t
	desc = IBR.5547.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5547.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -7
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_big_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = 3
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_activity_big_tt
		custom_effect_tooltip = IBR_add_eta_activity_big_tt
		custom_effect_tooltip = IBR_add_fslp_activity_big_tt
		custom_effect_tooltip = IBR_add_tba_activity_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5548
				days = 6
			}
		}
	}
}

country_event = { #Franco's AAS, a Public Mockery
	id = IBR.5548
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5548" }
	title = IBR.5548.t
	desc = IBR.5548.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5548.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_worstending
		custom_effect_tooltip = IBR_AAS_chain_worstending_tt

		add_stability = -0.1

		add_to_variable = {
			var = IBR_majority_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_majority_tt

		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 5 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_5
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 5 }
			custom_effect_tooltip = IBR_influence_tt_AAS_5
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt
		}
		else = {
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		TNO_worsen_security_policy_effectiveness_med = yes

		TNO_worsen_admin_efficiency_low = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

country_event = { #An Unlikely Voice Speaks Up
	id = IBR.5549
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5549" }
	title = IBR.5549.t
	desc = IBR.5549.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #Raise the issue to AAS higher ups
		name = IBR.5549.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBR_burocrat_alignment > -3.1
				}
			}

			hidden_effect = {
				random_list = {
					70 = {
						hidden_effect = {
							country_event = {
								id = IBR.5526
								days = 4
							}
						}
					}
					30 = {
						hidden_effect = {
							country_event = {
								id = IBR.5550
								days = 4
							}
						}
					}
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5550
					days = 4
				}
			}
		}
	}
	option = { #This is too risky...
		name = IBR.5549.b
		ai_chance = { factor = 10 }

		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.5551
				days = 7
			}
		}
	}
}

country_event = { #AAS Higher-ups Reject Claims
	id = IBR.5550
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5550" }
	title = IBR.5550.t
	desc = IBR.5550.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5550.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5551
				days = 7
			}
		}
	}
}

country_event = { #Interviews With Mid-Level Administrators
	id = IBR.5551
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5551" }
	title = IBR.5551.t
	desc = IBR.5551.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Lay out the allegations
		name = IBR.5551.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5552
				days = 4
			}
		}
	}
	option = { #Don't lay all the cards on the table
		name = IBR.5551.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5553
				days = 1
			}
		}
	}
}

country_event = { #Several Willing to Corroborate
	id = IBR.5552
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5552" }
	title = IBR.5552.t
	desc = IBR.5552.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5552.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_several_willing_aas

		hidden_effect = {
			country_event = {
				id = IBR.5556
				days = 8
			}
		}
	}
}

country_event = { #The Pretense
	id = IBR.5553
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5553" }
	title = IBR.5553.t
	desc = IBR.5553.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #A routine inspection
		name = IBR.5553.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5554
				days = 6
			}
		}
	}
	option = { #A celebration of their success
		name = IBR.5553.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5555
				days = 6
			}
		}
	}
}

country_event = { #A Few Bureaucrats Slip Up
	id = IBR.5554
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5554" }
	title = IBR.5554.t
	desc = IBR.5554.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5554.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_a_few_slip_up_aas

		hidden_effect = {
			country_event = {
				id = IBR.5556
				days = 8
			}
		}
	}
}

country_event = { #Large Numbers of Bureaucrats Slip Up
	id = IBR.5555
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5555" }
	title = IBR.5555.t
	desc = IBR.5555.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5555.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5556
				days = 8
			}
		}
	}
}

country_event = { #Confronting the Axencia Leadership
	id = IBR.5556
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5556" }
	title = IBR.5556.t
	desc = IBR.5556.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5556.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				OR = {
				has_country_flag = IBR_a_few_slip_up_aas
					AND = {
						has_country_flag = IBR_several_willing_aas
						check_variable = {
							IBR_burocrat_alignment < -3
						}
					}
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5557
					days = 5
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5559
					days = 5
				}
			}
		}

		clr_country_flag = IBR_several_willing_aas
		clr_country_flag = IBR_a_few_slip_up_aas
	}
}

country_event = { #A Lenient Deal with AAS Bureaucrats
	id = IBR.5557
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5557" }
	title = IBR.5557.t
	desc = IBR.5557.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5557.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5558
				days = 16
			}
		}
	}
}

country_event = { #AAS Still Struggling
	id = IBR.5558
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5558" }
	title = IBR.5558.t
	desc = IBR.5558.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5558.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_badending
		custom_effect_tooltip = IBR_AAS_chain_badending_tt

		add_political_power = -25

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_4
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_AAS_4
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		TNO_worsen_security_policy_effectiveness_low = yes

		add_to_variable = {
			var = IBR_CNT_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_activity_small_tt
		custom_effect_tooltip = IBR_add_eta_activity_small_tt
		custom_effect_tooltip = IBR_add_fslp_activity_small_tt
		custom_effect_tooltip = IBR_add_tba_activity_small_tt

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

country_event = { #AAS Bureaucrats Accept Harsh Terms
	id = IBR.5559
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5559" }
	title = IBR.5559.t
	desc = IBR.5559.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5559.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_midending
		custom_effect_tooltip = IBR_AAS_chain_midending_tt

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 5
		}
		custom_effect_tooltip = IBR_add_aas_big_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -3
		}
		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_3
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_AAS_3
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}

		TNO_improve_security_policy_effectiveness_low = yes

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

#Military branch: "A less confrontational approach is needed"

country_event = { #Approaching the Military
	id = IBR.5560
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5560" }
	title = IBR.5560.t
	desc = IBR.5560.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Question the ones in our sights
		name = IBR.5560.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5561
				days = 4
			}
		}
	}
	option = { #Expand the scope
		name = IBR.5560.b
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBR_military_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5570
				days = 10
			}
		}
	}
}

country_event = { #The Shady Joint Programs
	id = IBR.5561
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5561" }
	title = IBR.5561.t
	desc = IBR.5561.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #Demand Financial Documents
		name = IBR.5561.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5566
				days = 7
			}
		}
	}
	option = { #Let's bide our time
		name = IBR.5561.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5562
				days = 23
			}
		}
	}
}

country_event = { #More Accusations Come in
	id = IBR.5562
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5562" }
	title = IBR.5562.t
	desc = IBR.5562.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5562.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5563
				days = 5
			}
		}
	}
}

country_event = { #An Official Steps Forward
	id = IBR.5563
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5563" }
	title = IBR.5563.t
	desc = IBR.5563.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5563.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5564
				days = 4
			}
		}
	}
}

country_event = { #The Pressure Auments
	id = IBR.5564
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5564" }
	title = IBR.5564.t
	desc = IBR.5564.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5564.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5580
				days = 7
			}
		}
	}
}

country_event = { #A Weak Deal on Joint Programs
	id = IBR.5565
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5565" }
	title = IBR.5565.t
	desc = IBR.5565.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5565.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5581
				days = 16
			}
		}

		country_event = {
			id = IBR.7270
			days = 3
		}
	}
}

country_event = { #Documents Point Towards Policía Armada
	id = IBR.5566
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5566" }
	title = IBR.5566.t
	desc = IBR.5566.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = no

	option = { #Confront them, now!
		name = IBR.5566.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5567
				days = 2
			}
		}
	}
}

country_event = { #Policía Armada Denies Claims
	id = IBR.5567
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5567" }
	title = IBR.5567.t
	desc = IBR.5567.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5567.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5568
				days = 6
			}
		}
	}
}

country_event = { #Allegations Proven to be False
	id = IBR.5568
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5568" }
	title = IBR.5568.t
	desc = IBR.5568.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5568.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		hidden_effect = {
			country_event = {
				id = IBR.5569
				days = 8
			}
		}
	}
}

country_event = { #A Trail Run Cold
	id = IBR.5569
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5569" }
	title = IBR.5569.t
	desc = IBR.5569.d
	picture = GFX_report_event_IBR_filing_cabinet

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5569.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5582
				days = 16
			}
		}
	}
}

country_event = { #An Unlikely Voice Speaks Up
	id = IBR.5570
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5570" }
	title = IBR.5570.t
	desc = IBR.5570.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #Raise the issue to higher ups in the military
		name = IBR.5570.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBR_military_alignment > 4.9
				}
			}

			hidden_effect = {
				random_list = {
					70 = {
						hidden_effect = {
							country_event = {
								id = IBR.5527
								days = 4
							}
						}
					}
					30 = {
						hidden_effect = {
							country_event = {
								id = IBR.5571
								days = 4
							}
						}
					}
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5571
					days = 4
				}
			}
		}
	}
	option = { #This is too risky...
		name = IBR.5570.b
		ai_chance = { factor = 10 }

		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.5572
				days = 7
			}
		}
	}
}

country_event = { #Military Higher-ups Reject Claims
	id = IBR.5571
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5571" }
	title = IBR.5571.t
	desc = IBR.5571.d
	picture = GFX_report_event_IBR_military_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5571.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBR_military_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5572
				days = 7
			}
		}
	}
}

country_event = { #Where in the Armed Forces to Look?
	id = IBR.5572
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5572" }
	title = IBR.5572.t
	desc = IBR.5572.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #They have rivals in the Policía Armada who could help
		name = IBR.5572.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5573
				days = 5
			}
		}
	}
	option = { #The units tangential to the accused should know
		name = IBR.5572.b
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBR_military_alignment > 4.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5575
					days = 4
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5579
					days = 11
				}
			}
		}
	}
}

country_event = { #Policía Armada Pledges Internal Investigation
	id = IBR.5573
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5573" }
	title = IBR.5573.t
	desc = IBR.5573.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5573.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5574
				days = 11
			}
		}
	}
}

country_event = { #Documents Prove Corruption
	id = IBR.5574
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5574" }
	title = IBR.5574.t
	desc = IBR.5574.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5574.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_PA_Proof

		hidden_effect = {
			country_event = {
				id = IBR.5576
				days = 5
			}
		}
	}
}

country_event = { #Collaborating unit Provides Proof
	id = IBR.5575
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5575" }
	title = IBR.5575.t
	desc = IBR.5575.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5575.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5576
				days = 5
			}
		}
	}
}

country_event = { #Confronting the Accused
	id = IBR.5576
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5576" }
	title = IBR.5576.t
	desc = IBR.5576.d
	picture = GFX_report_event_IBR_military_meeting

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5576.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_PA_Proof
			}

			hidden_effect = {
				country_event = {
					id = IBR.5577
					days = 2
				}
			}
			clr_country_flag = IBR_PA_Proof
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5578
					days = 5
				}
			}
		}
	}
}

country_event = { #Policía Armada Documents Fabricated
	id = IBR.5577
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5577" }
	title = IBR.5577.t
	desc = IBR.5577.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5577.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.5565
				days = 7
			}
		}
	}
}

country_event = { #Harsh Terms Accepted by Military
	id = IBR.5578
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5578" }
	title = IBR.5578.t
	desc = IBR.5578.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5578.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_midending
		custom_effect_tooltip = IBR_AAS_chain_midending_tt

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 5
		}
		custom_effect_tooltip = IBR_add_aas_big_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -3
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_3
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_AAS_3
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}

		TNO_improve_security_policy_effectiveness_low = yes

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

country_event = { #Unit points finger at Policía Armada
	id = IBR.5579
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5579" }
	title = IBR.5579.t
	desc = IBR.5579.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = no

	option = { #Confront them, now!
		name = IBR.5579.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5567
				days = 2
			}
		}
	}
}

country_event = { #A Weak Deal on Joint Programs #2
	id = IBR.5580
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5580" }
	title = IBR.5580.t
	desc = IBR.5580.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5580.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -1
		}
		custom_effect_tooltip = IBR_worsen_franco_army_tt

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.5581
				days = 16
			}
		}
	}
}

country_event = { #AAS Still Struggling
	id = IBR.5581
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5581" }
	title = IBR.5581.t
	desc = IBR.5581.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5581.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_badending
		custom_effect_tooltip = IBR_AAS_chain_badending_tt

		add_political_power = -25

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_4
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_AAS_4
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		TNO_worsen_security_policy_effectiveness_low = yes

		add_to_variable = {
			var = IBR_CNT_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_activity_small_tt
		custom_effect_tooltip = IBR_add_eta_activity_small_tt
		custom_effect_tooltip = IBR_add_fslp_activity_small_tt
		custom_effect_tooltip = IBR_add_tba_activity_small_tt

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

country_event = { #AAS in Dire Straits
	id = IBR.5582
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5582" }
	title = IBR.5582.t
	desc = IBR.5582.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5582.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -7
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_big_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = 3
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_activity_big_tt
		custom_effect_tooltip = IBR_add_eta_activity_big_tt
		custom_effect_tooltip = IBR_add_fslp_activity_big_tt
		custom_effect_tooltip = IBR_add_tba_activity_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5583
				days = 6
			}
		}
	}
}

country_event = { #Franco's AAS, a Public Mockery
	id = IBR.5583
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5583" }
	title = IBR.5583.t
	desc = IBR.5583.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5583.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_AAS_chain_worstending
		custom_effect_tooltip = IBR_AAS_chain_worstending_tt

		add_stability = -0.1

		add_to_variable = {
			var = IBR_majority_alignment
			value = -2
		}
		custom_effect_tooltip = IBR_worsen_franco_majority_tt

		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 5 }
			custom_effect_tooltip = IBR_reformist_tt_AAS_5
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 5 }
			custom_effect_tooltip = IBR_influence_tt_AAS_5
		}
		IBR_council_clamp = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt
		}
		else = {
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		TNO_worsen_security_policy_effectiveness_med = yes

		TNO_worsen_admin_efficiency_low = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

		custom_effect_tooltip = IBR_pp_economics_get_tt

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		set_country_flag = IBR_decisions_economics
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Francisco_Franco
					ruling_only = yes
				}
			}
			add_to_variable = { IBR_caudillo_correct_var = 1 }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3101
				days = 50
			}
		}
	}
}

####ECONOMY TREE EVENTS
#TERROR SUPPORT Events

country_event = { #Opus dei1
	id = IBR.5700
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5700" }
	picture = GFX_report_event_IBR_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5700.t
	desc = IBR.5700.d
	option = {
		name = IBR.5700.a
		ai_chance = { factor = 10 }

		IBR = {
			add_to_variable = {
				var = poverty_counter
				value = -12
			}
		}

		if = {
			limit = {
				OR = {
				has_country_flag = cau_weak_franco
				has_country_flag = cau_strong_franco
				}
			}
			custom_effect_tooltip = IBR_worsen_franco_majority_tt

			add_to_variable = {
				var = IBR_majority_alignment
				value = -1
			}
		}
		if = {
			limit = {
				OR = {
				has_country_flag = cau_weak_salazar
				has_country_flag = cau_strong_salazar
				}
			}
			custom_effect_tooltip = IBR_worsen_salazar_majority_tt

			add_to_variable = {
				var = IBR_majority_alignment
				value = 1
			}
		}
		IBR_sub_3_marklib = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_econ_5
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -1 }
			custom_effect_tooltip = IBR_influence_tt_econ_5
		}
		IBR_council_clamp = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 0.5
		}
		IBR_terror_vunerable_check = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}

			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

	}
}

country_event = { #Opus dei2
	id = IBR.5701
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5701" }
	picture = GFX_report_event_generic_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5701.t
	desc = IBR.5701.d
	option = {
		name = IBR.5701.a
		ai_chance = { factor = 10 }

		IBR = {
			add_to_variable = {
				var = poverty_counter
				value = -12
			}
		}

		if = {
			limit = {
				OR = {
				has_country_flag = cau_weak_franco
				has_country_flag = cau_strong_franco
				}
			}
			custom_effect_tooltip = IBR_worsen_franco_majority_tt

			add_to_variable = {
				var = IBR_majority_alignment
				value = -2
			}
		}
		if = {
			limit = {
				OR = {
				has_country_flag = cau_weak_salazar
				has_country_flag = cau_strong_salazar
				}
			}
			custom_effect_tooltip = IBR_worsen_salazar_majority_tt

			add_to_variable = {
				var = IBR_majority_alignment
				value = 2
			}
		}
		IBR_sub_3_marklib = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_econ_6
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_econ_6
		}
		IBR_council_clamp = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes

		if = {
			limit = {
				OR = {
					has_country_flag = cau_strong_franco
					has_country_flag = cau_weak_franco
				}
			}
			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}

			custom_effect_tooltip = IBR_sub_stability_big_tt
		}

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Falange1
	id = IBR.5702
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5702" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5702.t
	desc = IBR.5702.d
	option = {
		name = IBR.5702.a
		ai_chance = { factor = 10 }

		IBR = {
			add_to_variable = {
				var = poverty_counter
				value = -12
			}
		}

		custom_effect_tooltip = IBR_worsen_franco_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = -4
		}

		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 0.5
		}
		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}

		custom_effect_tooltip = IBR_sub_stability_small_tt

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

	}
}

country_event = { #Falange2
	id = IBR.5703
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5703" }
	picture = GFX_report_event_generic_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5703.t
	desc = IBR.5703.d
	option = {
		name = IBR.5703.a
		ai_chance = { factor = 10 }

		IBR = {
			add_to_variable = {
				var = poverty_counter
				value = -12
			}
		}

		custom_effect_tooltip = IBR_worsen_franco_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -2
		}

		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_econ_7
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_econ_7
		}
		IBR_council_clamp = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}

		custom_effect_tooltip = IBR_sub_stability_big_tt

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

	}
}

country_event = { #FLASHPOINT (FALANGE CRASH 2)
	id = IBR.5704
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5704" }
	picture = GFX_report_event_ORE_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5704.t
	desc = IBR.5704.d
	option = {
		name = IBR.5704.a
		ai_chance = { factor = 10 }

		IBR = {
			add_to_variable = {
				var = poverty_counter
				value = -24
			}
		}

		custom_effect_tooltip = IBR_worsen_franco_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -3
		}

		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -6 }
			custom_effect_tooltip = IBR_reformist_tt_econ_8
		}
		else_if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -4 }
			custom_effect_tooltip = IBR_influence_tt_econ_8
		}
		IBR_council_clamp = yes

		add_to_variable = {
			var = IBR_CNT_Support
			value = 2
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 2
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 2
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 2
		}
		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -3.5
		}

		custom_effect_tooltip = IBR_sub_stability_really_big_tt
		custom_effect_tooltip = IBR_add_cnt_support_mid_tt
		custom_effect_tooltip = IBR_add_eta_support_mid_tt
		custom_effect_tooltip = IBR_add_fslp_support_mid_tt
		custom_effect_tooltip = IBR_add_tba_support_mid_tt

		if = {
			limit = {
				has_game_rule = {
					rule = IBR_STABILITY_ROUTE
					option = IBR_STABILITY_ROUTE_COLLAPSE
				}
			}
			IBR = {
				set_variable = { IBRIberiaStability = 0 }
			}
		}
		else_if = {
			limit = {
				has_game_rule = {
					rule = IBR_STABILITY_ROUTE
					option = IBR_STABILITY_ROUTE_DIVORCE
				}
			}
			IBR = {
				if = {
					limit = {
						NOT = {
							check_variable = { IBRIberiaStability < 8 }
						}
					}
					set_variable = { IBRIberiaStability = 7 }
				}
				else_if = {
					limit = {
						NOT = {
							check_variable = { IBRIberiaStability > 0.9 }
						}
					}
					set_variable = { IBRIberiaStability = 1 }
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.1024
					days = 3
				}
			}
		}
		if = {
			limit = {
				AND = {
					check_variable = { IBRIberiaStability < 8 }
					check_variable = { IBRIberiaStability > 0.9 }
					NOT = {
						has_country_flag = IBRElectionsYES
					}
				}
			}
			custom_effect_tooltip = IBR_divorce_decision_tt
			set_country_flag = IBR_divorce_decision_flag
			if = {
				limit = {
					IBR = {
						is_ai = yes
					}
				}
				country_event = {
					id = IBR.3003
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.4059
					days = 15
				}
			}
		}
		else = {
			hidden_effect = {
				if = {
					limit = {
						has_country_flag = advisory_council
					}
					country_event = {
						id = IBR.701
						days = 5
					}
				}
				else = {
					country_event = {
						id = IBR.700
						days = 5
					}
				}
			}
		}
	}
}

#Positive Salazar events

country_event = { #Salazar Good Economy 1
	id = IBR.5705
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5705" }
	picture = GFX_report_event_IBR_salazar_writing_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5705.t
	desc = IBR.5705.d
	option = {
		name = IBR.5705.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		set_temp_variable = { gdp_growth_temp = 0.2 } #already converted to percent
		econ_gdp_growth_change = yes

		TNO_improve_poverty_low = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -4 }
			custom_effect_tooltip = IBR_reformist_tt_econ_10
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_econ_10
		}
		IBR_council_clamp = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
	}
}

country_event = { #Salazar Good Economy 2
	id = IBR.5706
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5706" }
	picture = GFX_report_event_IBR_salazar_writing_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5706.t
	desc = IBR.5706.d
	option = {
		name = IBR.5706.a
		ai_chance = { factor = 10 }

		add_political_power = 100

		set_temp_variable = { gdp_growth_temp = 0.7 } #already converted to percent
		econ_gdp_growth_change = yes

		TNO_improve_poverty_med = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -5 }
			custom_effect_tooltip = IBR_reformist_tt_econ_11
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 4 }
			custom_effect_tooltip = IBR_influence_tt_econ_11
		}
		IBR_council_clamp = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt
	}
}

###########AUTH UNION EVENTS##############

country_event = { #Franco Promotes Traditional Roles
	id = IBR.5750
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5750" }
	title = IBR.5750.t
	desc = IBR.5750.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5750.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = 1
		}
		custom_effect_tooltip = IBR_add_anger_libs_small_tt
	}
}

country_event = { #Caetano Stresses Importance of The Church
	id = IBR.5751
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5751" }
	title = IBR.5751.t
	desc = IBR.5751.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5751.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = 1
		}
		custom_effect_tooltip = IBR_add_anger_libs_small_tt
	}
}

country_event = { #Strengthening Iberia's Economy
	id = IBR.5752
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5752" }
	title = IBR.5752.t
	desc = IBR.5752.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Delegate the matter to the council
		name = IBR.5752.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			random_list = {
				40 = {
					country_event = {
						id = IBR.5753
						days = 6
					}
				}
				40 = {
					country_event = {
						id = IBR.5754
						days = 6
					}
				}
				20 = {
					country_event = {
						id = IBR.5755
						days = 6
					}
				}
			}
		}
	}
	option = { #The Caudillos know a thing or two about economics!
		name = IBR.5752.b
		ai_chance = { factor = 10 }

			country_event = {
				id = IBR.5756
				days = 1
			}
	}
}

country_event = { #Council Affirms Opus Dei Proposal
	id = IBR.5753
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5753" }
	title = IBR.5753.t
	desc = IBR.5753.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5753.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_au_opus_dei

		#DOESNT MATTER
		#add_to_variable = { misc_costs = -0.075 } #already converted to billion


		#DOESNT MATTER
		#add_to_variable = { misc_income = -0.045 } #already converted to billion


		set_temp_variable = { gdp_growth_temp = 0.8 } #already converted to percent
		econ_gdp_growth_change = yes

		TNO_worsen_poverty_med = yes
		add_to_variable = {
			var = IBR_au_libs_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_libs_small_tt

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 3
		}
		custom_effect_tooltip = IBR_add_anger_poors_med_tt
	}
}

country_event = { #Council Passes Key Reforms
	id = IBR.5754
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5754" }
	title = IBR.5754.t
	desc = IBR.5754.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5754.a
		ai_chance = { factor = 10 }


		set_temp_variable = { gdp_growth_temp = 0.015 }
		econ_gdp_growth_change = yes

		#DOESNT MATTER
		#add_to_variable = { misc_income = 0.025 } #already converted to billion

		TNO_improve_poverty_low = yes
		add_to_variable = {
			var = IBR_au_poors_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_poors_small_tt
	}
}

country_event = { #Council in Gridlock
	id = IBR.5755
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5755" }
	title = IBR.5755.t
	desc = IBR.5755.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5755.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Caudillos' Economic Policy
	id = IBR.5756
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5756" }
	title = IBR.5756.t
	desc = IBR.5756.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Sweeping tax cuts for Iberian companies
		name = IBR.5756.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5757
				days = 2
			}
		}
	}
	option = { #Restrict foreign investment
		name = IBR.5756.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5758
				days = 2
			}
		}
	}
	option = { #Slightly increase subsidies of Iberian industry
		name = IBR.5756.c
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5759
				days = 2
			}
		}
	}
	option = { #Heavily increase subsidies of Iberian industry
		name = IBR.5756.e
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5760
				days = 2
			}
		}
	}
}

country_event = { #Sweeping Tax Cuts Signed into Law
	id = IBR.5757
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5757" }
	title = IBR.5757.t
	desc = IBR.5757.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5757.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_au_opus_dei

		set_temp_variable = { gdp_growth_temp = 0.015 }
		econ_gdp_growth_change = yes

		#DOESNT MATTER
		#add_to_variable = { misc_income = -0.12 } #already converted to billion

		TNO_worsen_poverty_med = yes

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 2
		}
		custom_effect_tooltip = IBR_add_anger_poors_med_tt
	}
}

country_event = { #Foreign Investment Curtailed
	id = IBR.5758
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5758" }
	title = IBR.5758.t
	desc = IBR.5758.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5758.a
		ai_chance = { factor = 10 }

		set_temp_variable = { gdp_growth_temp = -0.02 }
		econ_gdp_growth_change = yes

		#DONT BOTHER CHANGING THESE, AUTH UNION IS KILL SO WHO CARES


		#add_to_variable = { misc_income = -0.042 } #already converted to billion


		TNO_worsen_poverty_med = yes

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = 1
		}
		custom_effect_tooltip = IBR_add_anger_libs_small_tt
	}
}

country_event = { #Subsidies For Iberian Industry
	id = IBR.5759
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5759" }
	title = IBR.5759.t
	desc = IBR.5759.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5759.a
		ai_chance = { factor = 10 }

		set_temp_variable = { gdp_growth_temp = 0.015 }
		econ_gdp_growth_change = yes

		TNO_improve_poverty_low = yes

	}
}

country_event = { #Massive Subsidy Increase Introduced
	id = IBR.5760
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5760" }
	title = IBR.5760.t
	desc = IBR.5760.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5760.a
		ai_chance = { factor = 10 }

		set_temp_variable = { gdp_growth_temp = 0.02 }
		econ_gdp_growth_change = yes

		IBR = {
			add_timed_idea = { idea = IBR_5760_misc_costs days = 90 }
		}

		TNO_improve_poverty_med = yes

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = -2
		}
		custom_effect_tooltip = IBR_sub_anger_poors_med_tt
	}
}

country_event = { #Hardliners Protest Opus Dei Influence
	id = IBR.5761
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5761" }
	title = IBR.5761.t
	desc = IBR.5761.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5761.a
		ai_chance = { factor = 10 }

		add_political_power = -50
		add_popularity = {
			ideology = fascism
			popularity = 0.04
		}
		add_to_variable = {
			var = IBRIberiaStability
			value = -1.5
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = { #The Caudillos' Position
	id = IBR.5762
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5762" }
	title = IBR.5762.t
	desc = IBR.5762.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5762.a
		ai_chance = { factor = 10 }

		add_stability = 0.15
	}
}

country_event = { #Giving them a Say
	id = IBR.5763
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5763" }
	title = IBR.5763.t
	desc = IBR.5763.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Push the envelope
		name = IBR.5763.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = -2
		}
		custom_effect_tooltip = IBR_sub_oppress_med_tt

		if = {
			limit = {
				has_idea = tno_vote_franchise_registered_voting
			}
			add_political_power = 50
		}
		else = {
			add_political_power = 25
			add_ideas = tno_vote_franchise_registered_voting
		}

		#if = {
		#	limit = { has_completed_focus = IBR_allow_limited_freedom }
		#
		#	hidden_effect = {
		#		country_event = {
		#			id = IBR.5764
		#			days = 3
		#		}
		#	}
		#}
		set_country_flag = IBR_au_push_envelope
	}
	option = { #Let's not go overboard here
		name = IBR.5763.b
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_idea = tno_vote_franchise_elite_voting
			}
			add_political_power = 50
		}
		else = {
			add_political_power = 25
			add_ideas = tno_vote_franchise_elite_voting
		}
	}
}

country_event = { #Wave of Support for Voting Reforms
	id = IBR.5764
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5764" }
	title = IBR.5764.t
	desc = IBR.5764.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5764.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_poors_small_tt

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_libs_small_tt

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_minorities_small_tt
	}
}

country_event = { #Lowered Tensions Among Minorities
	id = IBR.5765
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5765" }
	title = IBR.5765.t
	desc = IBR.5765.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5765.a
		ai_chance = { factor = 10 }


		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_minorities_small_tt
	}
}

country_event = { #Protests for Council Representation
	id = IBR.5766
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5766" }
	title = IBR.5766.t
	desc = IBR.5766.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5766.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = 2
		}
		custom_effect_tooltip = IBR_add_anger_minorities_med_tt
	}
}

country_event = { #Continued Regional Unrest
	id = IBR.5767
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5767" }
	title = IBR.5767.t
	desc = IBR.5767.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5767.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = { #Nudging the Results in Our Favor
	id = IBR.5768
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5768" }
	title = IBR.5768.t
	desc = IBR.5768.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #An unprecedented operation
		name = IBR.5768.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5769
				days = 4
			}
		}
	}
	option = { #A modest operation
		name = IBR.5768.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5770
				days = 1
			}
		}
	}
}

country_event = { #Preparations Across Iberia
	id = IBR.5769
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5769" }
	title = IBR.5769.t
	desc = IBR.5769.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5769.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 3
		}
		custom_effect_tooltip = IBR_add_oppress_med_tt

		set_country_flag = IBR_au_preparations
	}
}

country_event = { #Choosing a target
	id = IBR.5770
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5770" }
	title = IBR.5770.t
	desc = IBR.5770.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Liberal neighborhoods
		name = IBR.5770.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 1
		}
		custom_effect_tooltip = IBR_add_oppress_small_tt

		set_country_flag = IBR_au_lib_neighborhood
	}
	option = { #Working class neighborhoods
		name = IBR.5770.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 1
		}
		custom_effect_tooltip = IBR_add_oppress_small_tt

		set_country_flag = IBR_au_poor_neighborhood
	}
	option = { #Minority regions
		name = IBR.5770.c
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 1
		}
		custom_effect_tooltip = IBR_add_oppress_small_tt

		set_country_flag = IBR_au_minority_region
	}
}

country_event = { #The Troublesome Parties
	id = IBR.5771
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5771" }
	title = IBR.5771.t
	desc = IBR.5771.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Increase surveillance on them
		name = IBR.5771.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBR_au_push_envelope }

			hidden_effect = {
				country_event = {
					id = IBR.5772
					days = 7
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5773
					days = 7
				}
			}
		}
	}
	option = { #Fabricate evidence on their leaders
		name = IBR.5771.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5774
				days = 3
			}
		}
	}
}

country_event = { #Party Leader Caught on Technicality
	id = IBR.5772
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5772" }
	title = IBR.5772.t
	desc = IBR.5772.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5772.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 3
		}
		custom_effect_tooltip = IBR_add_oppress_med_tt
	}
}

country_event = { #Surveillance is Unsuccessful
	id = IBR.5773
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5773" }
	title = IBR.5773.t
	desc = IBR.5773.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5773.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Party Leaders Incriminated
	id = IBR.5774
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5774" }
	title = IBR.5774.t
	desc = IBR.5774.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5774.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBR_au_push_envelope }

			hidden_effect = {
				country_event = {
					id = IBR.5775
					days = 7
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5777
					days = 7
				}
			}
		}
	}
}

country_event = { #Damning Evidence Supports Parties
	id = IBR.5775
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5775" }
	title = IBR.5775.t
	desc = IBR.5775.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5775.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5776
				days = 4
			}
		}
	}
}

country_event = { #Backlash Against Fabricated Evidence
	id = IBR.5776
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5776" }
	title = IBR.5776.t
	desc = IBR.5776.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5776.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 3
		}
		custom_effect_tooltip = IBR_add_anger_poors_med_tt

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = 3
		}
		custom_effect_tooltip = IBR_add_anger_libs_med_tt

	}
}

country_event = { #Leaders Behind Bars
	id = IBR.5777
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5777" }
	title = IBR.5777.t
	desc = IBR.5777.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5777.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 5
		}
		custom_effect_tooltip = IBR_add_oppress_med_tt

		hidden_effect = {
			country_event = {
				id = IBR.5778
				days = 4
			}
		}
	}
}

country_event = { #Protests Against "Suppression"
	id = IBR.5778
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5778" }
	title = IBR.5778.t
	desc = IBR.5778.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5778.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 2
		}
		custom_effect_tooltip = IBR_add_anger_poors_med_tt

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = 2
		}
		custom_effect_tooltip = IBR_add_anger_libs_med_tt
	}
}

country_event = { #Electing the Council
	id = IBR.5779
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5779" }
	title = IBR.5779.t
	desc = IBR.5779.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5779.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5780
				days = 1
			}
		}
	}
}

country_event = { #Discouraging Problematic Demographics
	id = IBR.5780
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5780" }
	title = IBR.5780.t
	desc = IBR.5780.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Close down as many as possible
		name = IBR.5780.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 2
		}
		custom_effect_tooltip = IBR_add_oppress_med_tt

		hidden_effect = {
			country_event = {
				id = IBR.5781
				days = 1
			}
		}
		set_country_flag = IBR_au_close_down
	}
	option = { #Close down the ones we have good excuses for
		name = IBR.5780.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 1
		}
		custom_effect_tooltip = IBR_add_oppress_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5781
				days = 1
			}
		}
	}
}

country_event = { #Intimidating Problematic Demographics
	id = IBR.5781
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5781" }
	title = IBR.5781.t
	desc = IBR.5781.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Push as hard as possible at all these locations
		name = IBR.5781.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 2
		}
		custom_effect_tooltip = IBR_add_oppress_med_tt

		hidden_effect = {
			country_event = {
				id = IBR.5782
				days = 1
			}
		}
		set_country_flag = IBR_au_push_hard
	}
	option = { #A moderate amount of intimidation will do
		name = IBR.5781.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_oppression
			value = 1
		}
		custom_effect_tooltip = IBR_add_oppress_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5782
				days = 1
			}
		}
	}
}

country_event = { #Eve of the Council Elections
	id = IBR.5782
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5782" }
	title = IBR.5782.t
	desc = IBR.5782.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5782.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				OR = {
					AND = {
						NOT = { has_country_flag = IBR_au_push_envelope }
						has_country_flag = IBR_au_close_down
					}
					AND = {
						NOT = { has_country_flag = IBR_au_push_envelope }
						has_country_flag = IBR_au_push_hard
					}
					AND = {
						has_country_flag = IBR_au_close_down
						has_country_flag = IBR_au_push_hard
					}
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5783
					hours = 13
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5784
					hours = 23
				}
			}
		}
	}
}

country_event = { #Chaos at Polling Booths
	id = IBR.5783
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5783" }
	title = IBR.5783.t
	desc = IBR.5783.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5783.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 2
		}
		custom_effect_tooltip = IBR_add_anger_poors_med_tt

		hidden_effect = {
			country_event = {
				id = IBR.5784
				hours = 10
			}
		}
	}
}

country_event = { #Polls Close
	id = IBR.5784
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5784" }
	title = IBR.5784.t
	desc = IBR.5784.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5784.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 8.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5788
					days = 1
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 5.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5787
					days = 1
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 2.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5786
					days = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5785
					days = 1
				}
			}
		}
	}
}

country_event = { #Shocking Losses for National Union
	id = IBR.5785
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5785" }
	title = IBR.5785.t
	desc = IBR.5785.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5785.a
		ai_chance = { factor = 10 }

		IBR_sub_30_authdem = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_lib_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5789
					hours = 5
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_poor_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5790
					hours = 10
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_minority_region
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5791
					hours = 15
				}
			}
		}
	}
}

country_event = { #Disappointing Result for National Union
	id = IBR.5786
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5786" }
	title = IBR.5786.t
	desc = IBR.5786.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5786.a
		ai_chance = { factor = 10 }

		IBR_sub_10_authdem = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_lib_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5789
					hours = 5
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_poor_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5790
					hours = 10
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_minority_region
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5791
					hours = 15
				}
			}
		}
	}
}

country_event = { #Satisfactory Result for National Union
	id = IBR.5787
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5787" }
	title = IBR.5787.t
	desc = IBR.5787.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5787.a
		ai_chance = { factor = 10 }

		IBR_add_10_authdem = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_lib_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5789
					hours = 5
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_poor_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5790
					hours = 10
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_minority_region
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5791
					hours = 15
				}
			}
		}
	}
}

country_event = { #Resounding Victory for National Union
	id = IBR.5788
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5788" }
	title = IBR.5788.t
	desc = IBR.5788.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5788.a
		ai_chance = { factor = 10 }

		IBR_add_30_authdem = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 5
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_lib_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5789
					hours = 5
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_poor_neighborhood
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5790
					hours = 10
				}
			}
		}
		if = {
			limit = {
				OR = {
					has_country_flag = IBR_au_minority_region
					has_country_flag = IBR_au_preparations
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5791
					hours = 15
				}
			}
		}
	}
}

country_event = { #Improved Results in Liberal Areas
	id = IBR.5789
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5789" }
	title = IBR.5789.t
	desc = IBR.5789.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5789.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_libs_small_tt

		if = {
			limit = { has_country_flag = IBR_au_preparations }

			hidden_effect = {
				country_event = {
					id = IBR.5792
					hours = 35
				}
			}
		}
		else = {
			if = {
				limit = {
					check_variable = {
						IBR_au_libs_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5794
						days = 2
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_au_poors_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5797
						days = 2
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_au_minorities_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5800
						days = 2
					}
				}
			}
		}
	}
}

country_event = { #Improved Results in Poor Areas
	id = IBR.5790
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5790" }
	title = IBR.5790.t
	desc = IBR.5790.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5790.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_poors_small_tt

		if = {
			limit = { has_country_flag = IBR_au_preparations }

			hidden_effect = {
				country_event = {
					id = IBR.5792
					hours = 25
				}
			}
		}
		else = {
			if = {
				limit = {
					check_variable = {
						IBR_au_libs_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5794
						days = 2
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_au_poors_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5797
						days = 2
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_au_minorities_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5800
						days = 2
					}
				}
			}
		}
	}
}

country_event = { #Improved Results in Minority Areas
	id = IBR.5791
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5791" }
	title = IBR.5791.t
	desc = IBR.5791.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5791.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = -1
		}
		custom_effect_tooltip = IBR_sub_anger_minorities_small_tt

		if = {
			limit = { has_country_flag = IBR_au_preparations }

			hidden_effect = {
				country_event = {
					id = IBR.5792
					hours = 15
				}
			}
		}
		else = {
			if = {
				limit = {
					check_variable = {
						IBR_au_libs_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5794
						days = 2
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_au_poors_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5797
						days = 2
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBR_au_minorities_triggered > 2.9
					}
				}

				hidden_effect = {
					country_event = {
						id = IBR.5800
						days = 2
					}
				}
			}
		}
	}
}

country_event = { #Extensive Election Fraud Exposed
	id = IBR.5792
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5792" }
	title = IBR.5792.t
	desc = IBR.5792.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5792.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		hidden_effect = {
			country_event = {
				id = IBR.5793
				days = 1
			}
		}
	}
}

country_event = { #Massive Protests Against Rigging
	id = IBR.5793
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5793" }
	title = IBR.5793.t
	desc = IBR.5793.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5793.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_libs_triggered
			value = 3
		}
		custom_effect_tooltip = IBR_add_anger_libs_med_tt

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 3
		}
		custom_effect_tooltip = IBR_add_anger_poors_med_tt

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = 3
		}
		custom_effect_tooltip = IBR_add_anger_minorities_med_tt

		add_to_variable = {
			IBRIberiaStability = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_libs_triggered > 2.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5794
					days = 1
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					IBR_au_poors_triggered > 2.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5797
					days = 1
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					IBR_au_minorities_triggered > 2.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5800
					days = 1
				}
			}
		}
	}
}

country_event = { #Liberals Decry Results
	id = IBR.5794
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5794" }
	title = IBR.5794.t
	desc = IBR.5794.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5794.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -1.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 5.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5795
					days = 2
				}
			}
		}
	}
}

country_event = { #Liberal Protests Grow
	id = IBR.5795
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5795" }
	title = IBR.5795.t
	desc = IBR.5795.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5795.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 8.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5796
					days = 4
				}
			}
		}
	}
}

country_event = { #Pro-democracy Protests Across Iberia
	id = IBR.5796
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5796" }
	title = IBR.5796.t
	desc = IBR.5796.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5796.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = { #Unrest in Poor Neighborhoods
	id = IBR.5797
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5797" }
	title = IBR.5797.t
	desc = IBR.5797.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5797.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -1.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 5.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5798
					days = 2
				}
			}
		}
	}
}

country_event = { #Riots Across Iberia
	id = IBR.5798
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5798" }
	title = IBR.5798.t
	desc = IBR.5798.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5798.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 8.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5799
					days = 4
				}
			}
		}
	}
}

country_event = { #Riots Intensify
	id = IBR.5799
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5799" }
	title = IBR.5799.t
	desc = IBR.5799.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5799.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = { #Minorities March in the Streets
	id = IBR.5800
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5800" }
	title = IBR.5800.t
	desc = IBR.5800.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5800.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -1.5
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 5.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5801
					days = 2
				}
			}
		}
	}
}

country_event = { #Riots in Minority Communities
	id = IBR.5801
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5801" }
	title = IBR.5801.t
	desc = IBR.5801.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5801.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				check_variable = {
					IBR_au_oppression > 8.9
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5802
					days = 4
				}
			}
		}
	}
}

country_event = { #Minority Riots Out of Control
	id = IBR.5802
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5802" }
	title = IBR.5802.t
	desc = IBR.5802.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5802.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = { #Caudillos Remind Iberia of their Power
	id = IBR.5803
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5803" }
	title = IBR.5803.t
	desc = IBR.5803.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5803.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5804
					days = 4
				}
			}
		}
	}
}

country_event = { #Pro-democracy Protests Engulf Iberia
	id = IBR.5804
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5804" }
	title = IBR.5804.t
	desc = IBR.5804.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5804.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -3.5
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5805
				days = 5
			}
		}
	}
}

country_event = { #Masses Strike in Support of Protests
	id = IBR.5805
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5805" }
	title = IBR.5805.t
	desc = IBR.5805.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5805.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -7
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5806
				days = 5
			}
		}
	}
}

country_event = { #The Gears Come Grinding to a Halt
	id = IBR.5806
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5806" }
	title = IBR.5806.t
	desc = IBR.5806.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5806.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBRIberiaStability = -15
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

country_event = { #Dealing with Separatists
	id = IBR.5807
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5807" }
	title = IBR.5807.t
	desc = IBR.5807.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Pursue them within the bounds of the law
		name = IBR.5807.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.5808
			days = 1
		}
	}
	option = { #Some risks just cannot be taken
		name = IBR.5807.b
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.5828
			days = 1
		}
	}
}

country_event = { #The Legal Strategy
	id = IBR.5808
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5808" }
	title = IBR.5808.t
	desc = IBR.5808.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Go after all of them
		name = IBR.5808.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5809
				days = 5
			}
		}
	}
	option = { #Only focus on the worst
		name = IBR.5808.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5813
				days = 5
			}
		}
	}
}

country_event = { #Sweeping Arrests in Regions (copy)
	id = IBR.5809
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5809" }
	title = IBR.5809.t
	desc = IBR.5809.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5809.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5810
				days = 4
			}
		}
	}
}

country_event = { #Weak Legal Arguments Presented
	id = IBR.5810
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5810" }
	title = IBR.5810.t
	desc = IBR.5810.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5810.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5811
				days = 5
			}
		}
	}
}

country_event = { #Many Troublemakers Behind Bars
	id = IBR.5811
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5811" }
	title = IBR.5811.t
	desc = IBR.5811.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5811.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -1
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -1
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -1
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5812
				days = 3
			}
		}
	}
}

country_event = { #Protests Against "Witch-hunt"
	id = IBR.5812
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5812" }
	title = IBR.5812.t
	desc = IBR.5812.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5812.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = 2
		}
		custom_effect_tooltip = IBR_add_anger_minorities_med_tt

		add_to_variable = {
			var = IBRIberiaStability
			value = -3.5
		}
		add_to_variable = {
			IBR_CNT_Support = 1.5
		}
		add_to_variable = {
			IBR_ETA_Support = 1.5
		}
		add_to_variable = {
			IBR_TBA_Support = 1.5
		}
		add_to_variable = {
			IBR_FSLP_Support = 1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_big_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

	}
}

country_event = { #Key Troublemakers Arrested
	id = IBR.5813
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5813" }
	title = IBR.5813.t
	desc = IBR.5813.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5813.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5814
				days = 3
			}
		}
	}
}

country_event = { #Separatists Behind Bars
	id = IBR.5814
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5814" }
	title = IBR.5814.t
	desc = IBR.5814.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5814.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -0.5
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -0.5
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -0.5
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -0.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt
	}
}

country_event = { #Manipulating the Process
	id = IBR.5828
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5828" }
	title = IBR.5828.t
	desc = IBR.5828.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Attempt to fabricate evidence
		name = IBR.5828.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5815
				days = 5
			}
		}
	}
	option = { #Keep the "trials" under wraps
		name = IBR.5828.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5818
				days = 5
			}
		}
	}
}

country_event = { #Sweeping Arrests in Regions (copy)
	id = IBR.5815
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5815" }
	title = IBR.5815.t
	desc = IBR.5815.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5815.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5816
				days = 5
			}
		}
	}
}

country_event = { #Strong Legal Arguments Presented
	id = IBR.5816
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5816" }
	title = IBR.5816.t
	desc = IBR.5816.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5816.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5817
				days = 5
			}
		}
	}
}

country_event = { #All Troublemakers Locked Up
	id = IBR.5817
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5817" }
	title = IBR.5817.t
	desc = IBR.5817.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5817.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -2
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -2
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -2
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_mid_tt
		custom_effect_tooltip = IBR_sub_eta_activity_mid_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_mid_tt
		custom_effect_tooltip = IBR_sub_tba_activity_mid_tt

		set_country_flag = IBR_au_all_troublemakers
	}
}

country_event = { #Secret Trials
	id = IBR.5818
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5818" }
	title = IBR.5818.t
	desc = IBR.5818.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5818.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -1
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -1
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -1
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5819
				days = 4
			}
		}
	}
}

country_event = { #Word Spreads of Mass Disappearances
	id = IBR.5819
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5819" }
	title = IBR.5819.t
	desc = IBR.5819.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5819.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		hidden_effect = {
			country_event = {
				id = IBR.5820
				days = 5
			}
		}
	}
}

country_event = { #Massive Unrest in Regions
	id = IBR.5820
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5820" }
	title = IBR.5820.t
	desc = IBR.5820.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5820.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_minorities_triggered
			value = 5
		}
		custom_effect_tooltip = IBR_add_anger_minorities_med_tt

		add_to_variable = {
			var = IBRIberiaStability
			value = 7
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 3
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_add_eta_support_big_tt
		custom_effect_tooltip = IBR_add_tba_support_big_tt
		custom_effect_tooltip = IBR_add_fslp_support_big_tt

		set_country_flag = IBR_au_massive_unrest
	}
}

country_event = { #For the Safety of Iberia
	id = IBR.5821
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5821" }
	title = IBR.5821.t
	desc = IBR.5821.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Mass surveillance of the problematic populations
		name = IBR.5821.a
		ai_chance = { factor = 10 }

		set_temp_variable = { activity_temp_variable = 0 }
			add_to_temp_variable = { activity_temp_variable = IBR_CNT_Activity }
			add_to_temp_variable = { activity_temp_variable = IBR_ETA_Activity }
			add_to_temp_variable = { activity_temp_variable = IBR_TBA_Activity }
			add_to_temp_variable = { activity_temp_variable = IBR_FSLP_Activity }
		set_temp_variable = { support_temp_variable = 0 }
			add_to_temp_variable = { support_temp_variable = IBR_CNT_Support }
			add_to_temp_variable = { support_temp_variable = IBR_ETA_Support }
			add_to_temp_variable = { support_temp_variable = IBR_TBA_Support }
			add_to_temp_variable = { support_temp_variable = IBR_FSLP_Support }

		if = {
			limit = {
				check_variable = { activity_temp_variable > support_temp_variable }
			}

			hidden_effect = {
				country_event = {
					id = IBR.5824
					days = 7
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5823
					days = 7
				}
			}
		}
	}
	option = { #Intensified targeted surveillance
		name = IBR.5821.b
		ai_chance = { factor = 10 }

		set_temp_variable = { activity_temp_variable = 0 }
			add_to_temp_variable = { activity_temp_variable = IBR_CNT_Activity }
			add_to_temp_variable = { activity_temp_variable = IBR_ETA_Activity }
			add_to_temp_variable = { activity_temp_variable = IBR_TBA_Activity }
			add_to_temp_variable = { activity_temp_variable = IBR_FSLP_Activity }
		set_temp_variable = { support_temp_variable = 0 }
			add_to_temp_variable = { support_temp_variable = IBR_CNT_Support }
			add_to_temp_variable = { support_temp_variable = IBR_ETA_Support }
			add_to_temp_variable = { support_temp_variable = IBR_TBA_Support }
			add_to_temp_variable = { support_temp_variable = IBR_FSLP_Support }

		if = {
			limit = {
				check_variable = { activity_temp_variable > support_temp_variable }
			}

			if = {
				limit = {
					check_variable = { IBR_CNT_Activity > IBR_ETA_Activity }
					check_variable = { IBR_CNT_Activity > IBR_TBA_Activity }
					check_variable = { IBR_CNT_Activity > IBR_FSLP_Activity }
					NOT = { has_country_flag = IBRCNTBroken }
				}

				hidden_effect = {
					country_event = {
						id = IBR.5825
						days = 7
					}
				}
			}
			else_if = {
				limit = {
					check_variable = { IBR_TBA_Activity > IBR_ETA_Activity }
					check_variable = { IBR_TBA_Activity > IBR_CNT_Activity }
					check_variable = { IBR_TBA_Activity > IBR_FSLP_Activity }
					NOT = { has_country_flag = IBRTBABroken }
				}

				hidden_effect = {
					country_event = {
						id = IBR.5827
						days = 7
					}
				}
			}
			else_if = {
				limit = {
					check_variable = { IBR_FSLP_Activity > IBR_ETA_Activity }
					check_variable = { IBR_FSLP_Activity > IBR_TBA_Activity }
					check_variable = { IBR_FSLP_Activity > IBR_CNT_Activity }
					NOT = { has_country_flag = IBRFSLPBroken }
				}

				hidden_effect = {
					country_event = {
						id = IBR.5829
						days = 7
					}
				}
			}
			else_if = {
				limit = { NOT = { has_country_flag = IBRETABroken } }

				hidden_effect = {
					country_event = {
						id = IBR.5826
						days = 7
					}
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5830
					days = 7
				}
			}
		}
	}
}

country_event = { #Terrorist Sympathizers Discovered
	id = IBR.5822
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5822" }
	title = IBR.5822.t
	desc = IBR.5822.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5822.a
		ai_chance = { factor = 10 }

		add_political_power = 25
	}
}

country_event = { #Arrests of Separatists in the Population
	id = IBR.5823
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5823" }
	title = IBR.5823.t
	desc = IBR.5823.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5823.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = -1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_support_small_tt
		custom_effect_tooltip = IBR_sub_eta_support_small_tt
		custom_effect_tooltip = IBR_sub_fslp_support_small_tt
		custom_effect_tooltip = IBR_sub_tba_support_small_tt
	}
}

country_event = { #Surveillance Finds Few Separatists
	id = IBR.5824
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5824" }
	title = IBR.5824.t
	desc = IBR.5824.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5824.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.546
				days = 3
			}
		}
	}
}

country_event = { #CNT Planned Attack Halted
	id = IBR.5825
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5825" }
	title = IBR.5825.t
	desc = IBR.5825.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5825.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_mid_tt
	}
}

country_event = { #ETA Planned Attack Halted
	id = IBR.5826
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5826" }
	title = IBR.5826.t
	desc = IBR.5826.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5826.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_ETA_Activity
			value = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_eta_activity_mid_tt
	}
}

country_event = { #BTA Planned Attack Halted
	id = IBR.5827
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5827" }
	title = IBR.5827.t
	desc = IBR.5827.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5827.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_TBA_Activity
			value = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_fslp_activity_mid_tt
	}
}

country_event = { #FSLP Planned Attack Halted
	id = IBR.5829
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5829" }
	title = IBR.5829.t
	desc = IBR.5829.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5829.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_fslp_activity_mid_tt
	}
}

country_event = { #Nothing New From Surveilled Groups
	id = IBR.5830
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5830" }
	title = IBR.5830.t
	desc = IBR.5830.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5830.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.546
				days = 3
			}
		}
	}
}

country_event = { #Caudillos Stand Firm
	id = IBR.5831
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5831" }
	title = IBR.5831.t
	desc = IBR.5831.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5831.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_sub_stability_big_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5832
					days = 4
				}
			}
		}
	}
}

country_event = { #Wave of Separatist Protests
	id = IBR.5832
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5832" }
	title = IBR.5832.t
	desc = IBR.5832.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5832.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5833
				days = 6
			}
		}
	}
}

country_event = { #Regions in Turmoil
	id = IBR.5833
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5833" }
	title = IBR.5833.t
	desc = IBR.5833.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5833.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -15
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

#### TERROR EVENTS
#### THE GRAND INFLUENCE TICKERS - DO NOT TOUCH

country_event = {
	id = IBR.540
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.540" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.540.t
	desc = IBR.540.d
	immediate = {
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						has_country_flag = IBRCNTBroken
					}
					is_ai = no
				}
				IBR_CNT_ticker = yes
			}
			if = {
				limit = {
					NOT = {
						has_country_flag = IBRTBABroken
					}
					is_ai = no
				}
				IBR_TBA_ticker = yes
			}
			if = {
				limit = {
					NOT = {
						has_country_flag = IBRETABroken
					}
					is_ai = no
				}
				IBR_ETA_ticker = yes
			}
			if = {
				limit = {
					NOT = {
						has_country_flag = IBRFSLPBroken
					}
					is_ai = no
				}
				IBR_FSLP_ticker = yes
			}
		}
	}
	option = {
		name = IBR.540.a
		ai_chance = { factor = 10 }
		set_temp_variable = { activity_temp_variable = 0 }
		add_to_temp_variable = { activity_temp_variable = IBR_CNT_Activity }
		add_to_temp_variable = { activity_temp_variable = IBR_ETA_Activity }
		add_to_temp_variable = { activity_temp_variable = IBR_TBA_Activity }
		add_to_temp_variable = { activity_temp_variable = IBR_FSLP_Activity }

		if = {
			limit = {
				check_variable = {
					var = activity_temp_variable
					value = 30
					compare = greater_than_or_equals
				}
			}
			random_list = {
				80 = {
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				20 = {}
			}
		}
		if = {
			limit = {
				AND = {
					check_variable = {
						var = activity_temp_variable
						value = 20
						compare = greater_than_or_equals
					}
					check_variable = {
						activity_temp_variable < 30
					}
				}
			}
			random_list = {
				60 = {
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				40 = {}
			}
		}
		if = {
			limit = {
				AND = {
					check_variable = {
						var = activity_temp_variable
						value = 10
						compare = greater_than_or_equals
					}
					check_variable = {
						activity_temp_variable < 20
					}
				}
			}
			random_list = {
				40 = {
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				60 = {}
			}
		}
		if = {
			limit = {
				AND = {
					check_variable = {
						var = activity_temp_variable
						value = 0
						compare = greater_than_or_equals
					}
					check_variable = {
						activity_temp_variable < 10
					}
				}
			}
			random_list = {
				20 = {
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				80 = {}
			}
		}

		if = {
			limit = {
				NOT = {
					AND = {
						has_country_flag = IBRCNTBroken
						has_country_flag = IBRTBABroken
						has_country_flag = IBRETABroken
						has_country_flag = IBRFSLPBroken
					}
				}
			}

			country_event = {
				id = IBR.540
				days = 27
			}
			IBR_terror_vunerable_check = yes
			IBR_AAS_resources_ticker = yes
		}
	}
}

#DEBUG STUFF FOR TERRORISM
country_event = {
	id = IBR.6999
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6999" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.6999.t
	desc = IBR.6999.d
	option = {
		name = IBR.6999.a
		ai_chance = { factor = 10 }

		ZZZ = {
			country_event = {
				id = IBR.546
				hours = 1
			}
		}
	}
}

country_event = {
	id = IBR.7000
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7000" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.7000.t
	desc = IBR.7000.d
	option = {
		name = IBR.7000.a
		ai_chance = { factor = 10 }


		add_to_variable = {
				var = IBR_CNT_Activity
				value = 1
		}
		add_to_variable = {
				var = IBR_CNT_Resources
				value = 1
		}
		add_to_variable = {
				var = IBR_CNT_Support
				value = 1
		}
		IBR_terror_vunerable_check = yes
	}
}

country_event = {
	id = IBR.7001
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7001" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.7001.t
	desc = IBR.7001.d
	option = {
		name = IBR.7001.a
		ai_chance = { factor = 10 }


		add_to_variable = {
				var = IBR_ETA_Activity
				value = 1
		}
		add_to_variable = {
				var = IBR_ETA_Resources
				value = 1
		}
		add_to_variable = {
				var = IBR_ETA_Support
				value = 1
		}
		IBR_terror_vunerable_check = yes
	}
}

country_event = {
	id = IBR.7002
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7002" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.7002.t
	desc = IBR.7002.d
	option = {
		name = IBR.7002.a
		ai_chance = { factor = 10 }


		add_to_variable = {
				var = IBR_FSLP_Activity
				value = 1
		}
		add_to_variable = {
				var = IBR_FSLP_Resources
				value = 1
		}
		add_to_variable = {
				var = IBR_FSLP_Support
				value = 1
		}
		IBR_terror_vunerable_check = yes
	}
}

country_event = {
	id = IBR.7003
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7003" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.7003.t
	desc = IBR.7003.d
	option = {
		name = IBR.7003.a
		ai_chance = { factor = 10 }


		add_to_variable = {
				var = IBR_TBA_Activity
				value = 1
		}
		add_to_variable = {
				var = IBR_TBA_Resources
				value = 1
		}
		add_to_variable = {
				var = IBR_TBA_Support
				value = 1
		}
		IBR_terror_vunerable_check = yes
	}
}

country_event = {
	id = IBR.7004
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7004" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.7004.t
	desc = IBR.7004.d
	option = {
		name = IBR.7004.a
		ai_chance = { factor = 10 }


		add_to_variable = {
				var = IBR_TBA_Activity
				value = -1
		}
		add_to_variable = {
				var = IBR_TBA_Resources
				value = -1
		}
		add_to_variable = {
				var = IBR_TBA_Support
				value = -1
		}
		IBR_terror_vunerable_check = yes
	}
}

country_event = {
	id = IBR.7005
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7005" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.7005.t
	desc = IBR.7005.d
	option = {
		name = IBR.7005.a
		ai_chance = { factor = 10 }


		add_to_variable = {
				var = IBR_AAS_Resources
				value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt
		load_focus_tree = {
			tree = IBR_germany_in_flames_tree
			keep_completed = yes
		}
	}
}

#### QUITE POSSIBILY THE WORST CODE IN TNO - THE ENGINE OF TERROR
#### ABANDON HOPE ALL YE WHO ENTER HERE

country_event = { #CHOICE OF FACTION TO DO THE ATTACK
	id = IBR.546
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.546" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.546.t
	desc = IBR.546.d
	option = {
		name = IBR.546.a

		trigger = {
			AND = {
				check_variable = {
					var = IBR.IBR_CNT_Activity
					value = 1
					compare = greater_than_or_equals
				}
				NOT = {
					IBR = {
						has_country_flag = IBRCNTBroken
					}
				}
				NOT = {
					IBR = {
						has_country_flag = IBR_CNT_Rolled
					}
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 10
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 1
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 2
					}
				}
			}
			modifier = {
				factor = 20
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 2
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 3
					}
				}
			}
			modifier = {
				factor = 30
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 3
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 4
					}
				}
			}
			modifier = {
				factor = 40
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 4
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 5
					}
				}
			}
			modifier = {
				factor = 50
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 5
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 6
					}
				}
			}
			modifier = {
				factor = 60
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 6
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 7
					}
				}
			}
			modifier = {
				factor = 70
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 7
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 8
					}
				}
			}
			modifier = {
				factor = 80
				AND = {
					check_variable = {
						var = IBR.IBR_CNT_Activity
						value = 8
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_CNT_Activity < 9
					}
				}
			}
			modifier = {
				factor = 90
				check_variable = {
					var = IBR.IBR_CNT_Activity
					value = 9
					compare = greater_than_or_equals
				}
			}
		}

		IBR = {
			country_event = {
				id = IBR.547
				hours = 1
			}
		}
	}

	option = {
		name = IBR.546.b

		trigger = {
			AND = {
				check_variable = {
					var = IBR.IBR_ETA_Activity
					value = 1
					compare = greater_than_or_equals
				}
				NOT = {
					IBR = {
						has_country_flag = IBRETABroken
					}
				}
				NOT = {
					IBR = {
						has_country_flag = IBR_ETA_Rolled
					}
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 10
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 1
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 2
					}
				}
			}
			modifier = {
				factor = 20
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 2
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 3
					}
				}
			}
			modifier = {
				factor = 30
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 3
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 4
					}
				}
			}
			modifier = {
				factor = 40
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 4
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 5
					}
				}
			}
			modifier = {
				factor = 50
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 5
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 6
					}
				}
			}
			modifier = {
				factor = 60
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 6
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 7
					}
				}
			}
			modifier = {
				factor = 70
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 7
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 8
					}
				}
			}
			modifier = {
				factor = 80
				AND = {
					check_variable = {
						var = IBR.IBR_ETA_Activity
						value = 8
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_ETA_Activity < 9
					}
				}
			}
			modifier = {
				factor = 90
				check_variable = {
					var = IBR.IBR_ETA_Activity
					value = 9
					compare = greater_than_or_equals
				}
			}
		}
		IBR = {
			country_event = {
				id = IBR.548
				hours = 1
			}
		}
	}
	option = {
		name = IBR.546.c

		trigger = {
			AND = {
				check_variable = {
					var = IBR.IBR_TBA_Activity
					value = 1
					compare = greater_than_or_equals
				}
				NOT = {
					IBR = {
						has_country_flag = IBRTBABroken
					}
				}
				NOT = {
					IBR = {
						has_country_flag = IBR_TBA_Rolled
					}
				}
			}
		}
		ai_chance = {
			factor = 10

			modifier = {
				factor = 10
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 1
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 2
					}
				}
			}
			modifier = {
				factor = 20
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 2
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 3
					}
				}
			}
			modifier = {
				factor = 30
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 3
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 4
					}
				}
			}
			modifier = {
				factor = 40
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 4
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 5
					}
				}
			}
			modifier = {
				factor = 50
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 5
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 6
					}
				}
			}
			modifier = {
				factor = 60
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 6
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 7
					}
				}
			}
			modifier = {
				factor = 70
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 7
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 8
					}
				}
			}
			modifier = {
				factor = 80
				AND = {
					check_variable = {
						var = IBR.IBR_TBA_Activity
						value = 8
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_TBA_Activity < 9
					}
				}
			}
			modifier = {
				factor = 90
				check_variable = {
					var = IBR.IBR_TBA_Activity
					value = 9
					compare = greater_than_or_equals
				}
			}

		}
		IBR = {
			country_event = {
				id = IBR.549
				hours = 1
			}
		}
	}
	option = {
		name = IBR.546.e

		trigger = {
			AND = {
				check_variable = {
					var = IBR.IBR_FSLP_Activity
					value = 1
					compare = greater_than_or_equals
				}
				NOT = {
					IBR = {
						has_country_flag = IBRFSLPBroken
					}
				}
				NOT = {
					IBR = {
						has_country_flag = IBR_FSLP_Rolled
					}
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 10
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 1
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 2
					}
				}
			}
			modifier = {
				factor = 20
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 2
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 3
					}
				}
			}
			modifier = {
				factor = 30
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 3
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 4
					}
				}
			}
			modifier = {
				factor = 40
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 4
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 5
					}
				}
			}
			modifier = {
				factor = 50
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 5
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 6
					}
				}
			}
			modifier = {
				factor = 60
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 6
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 7
					}
				}
			}
			modifier = {
				factor = 70
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 7
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 8
					}
				}
			}
			modifier = {
				factor = 80
				AND = {
					check_variable = {
						var = IBR.IBR_FSLP_Activity
						value = 8
						compare = greater_than_or_equals
					}
					check_variable = {
						IBR.IBR_FSLP_Activity < 9
					}
				}
			}
			modifier = {
				factor = 90
				check_variable = {
					var = IBR.IBR_FSLP_Activity
					value = 9
					compare = greater_than_or_equals
				}
			}

		}
		IBR = {
			country_event = {
				id = IBR.550
				hours = 1
			}
		}
	}
	option = {
		name = IBR.546.f
		ai_chance = {
			factor = 0.01

			modifier = {
				factor = 100000
				AND = {
					OR = {
						check_variable = { IBR.IBR_CNT_Activity < 1 }
						IBR = {
							has_country_flag = IBR_CNT_Rolled
						}
					}
					OR = {
						check_variable = { IBR.IBR_ETA_Activity < 1 }
						IBR = {
							has_country_flag = IBR_ETA_Rolled
						}
					}
					OR = {
						check_variable = { IBR.IBR_TBA_Activity < 1 }
						IBR = {
							has_country_flag = IBR_TBA_Rolled
						}
					}
					OR = {
						check_variable = { IBR.IBR_FSLP_Activity < 1 }
						IBR = {
							has_country_flag = IBR_FSLP_Rolled
						}
					}
				}
			}
		}

		IBR = {
		clr_country_flag = IBR_CNT_Rolled
		}
		IBR = {
		clr_country_flag = IBR_ETA_Rolled
		}
		IBR = {
		clr_country_flag = IBR_TBA_Rolled
		}
		IBR = {
		clr_country_flag = IBR_FSLP_Rolled
		}
	}
}

country_event = { #CNT ATTACK (ZZZ)
	id = IBR.547
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.547.t
	desc = IBR.547.d
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event IBR.547"
		hidden_effect = {
			if = {
				limit = {
					check_variable = {
						IBR_CNT_Resources < 0
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_CNT_Resources > 0
							}
							check_variable = {
								IBR_CNT_Resources < 1
							}
						}
						check_variable = {
							IBR_CNT_Resources = 0
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_1
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.551
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_CNT_Resources > 1
							}
							check_variable = {
								IBR_CNT_Resources < 2
							}
						}
						check_variable = {
							IBR_CNT_Resources = 1
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_2
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.552
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_CNT_Resources > 2
							}
							check_variable = {
								IBR_CNT_Resources < 3
							}
						}
						check_variable = {
							IBR_CNT_Resources = 2
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_3
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.553
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_CNT_Resources > 3
							}
							check_variable = {
								IBR_CNT_Resources < 4
							}
						}
						check_variable = {
							IBR_CNT_Resources = 3
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_4
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.554
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_CNT_Resources > 4
							}
							check_variable = {
								IBR_CNT_Resources < 6
							}
						}
						check_variable = {
							IBR_CNT_Resources = 4
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_5
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.555
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_CNT_Resources > 6
							}
							check_variable = {
								IBR_CNT_Resources < 8
							}
						}
						check_variable = {
							IBR_CNT_Resources = 6
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_6
						has_country_flag = IBR_CNT_Attack_6_2
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_CNT_Attack_6 }
					}

					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.556
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.587
									days = 1
								}
							}
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.556
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.587
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						check_variable = {
							IBR_CNT_Resources > 8
						}
						check_variable = {
							IBR_CNT_Resources = 8
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_CNT_Attack_7
						has_country_flag = IBR_CNT_Attack_7_2
					}
					set_country_flag = IBR_CNT_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_CNT_Attack_7 }
					}
					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.557
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.588
									days = 1
								}
							}
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.557
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.588
							days = 1
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.547.a
	}
}

country_event = { #ETA ATTACK
	id = IBR.548
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.548.t
	desc = IBR.548.d
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event IBR.548"
		hidden_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_ETA_Resources > 0
							}
							check_variable = {
								IBR_ETA_Resources < 1
							}
						}
						check_variable = {
							IBR_ETA_Resources = 0
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_1
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.558
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_ETA_Resources > 1
							}
							check_variable = {
								IBR_ETA_Resources < 2
							}
						}
						check_variable = {
							IBR_ETA_Resources = 1
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_2
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.559
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_ETA_Resources > 2
							}
							check_variable = {
								IBR_ETA_Resources < 3
							}
						}
						check_variable = {
							IBR_ETA_Resources = 2
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_3
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.560
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_ETA_Resources > 3
							}
							check_variable = {
								IBR_ETA_Resources < 4
							}
						}
						check_variable = {
							IBR_ETA_Resources = 3
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_4
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.561
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_ETA_Resources > 4
							}
							check_variable = {
								IBR_ETA_Resources < 6
							}
						}
						check_variable = {
							IBR_ETA_Resources = 4
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_5
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.562
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_ETA_Resources > 6
							}
							check_variable = {
								IBR_ETA_Resources < 8
							}
						}
						check_variable = {
							IBR_ETA_Resources = 6
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_6
						has_country_flag = IBR_ETA_Attack_6_2
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_ETA_Attack_6 }
					}

					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.563
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.589
									days = 1
								}
							}
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.563
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.589
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						check_variable = {
							IBR_ETA_Resources > 8
						}
						check_variable = {
							IBR_ETA_Resources = 8
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_ETA_Attack_7
						has_country_flag = IBR_ETA_Attack_7_2
					}
					set_country_flag = IBR_ETA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_ETA_Attack_7 }
					}

					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.564
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.590
									days = 1
								}
							}
						}
					}
				}
				else = {

					IBR = {
						country_event = {
							id = IBR.564
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.590
							days = 1
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.548.a
	}
}

country_event = { #TBA ATTACK
	id = IBR.549
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.549.t
	desc = IBR.549.d
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event IBR.549"
		hidden_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_TBA_Resources > 0
							}
							check_variable = {
								IBR_TBA_Resources < 1
							}
						}
						check_variable = {
							IBR_TBA_Resources = 0
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_1
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.565
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_TBA_Resources > 1
							}
							check_variable = {
								IBR_TBA_Resources < 2
							}
						}
						check_variable = {
							IBR_TBA_Resources = 1
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_2
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.566
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_TBA_Resources > 2
							}
							check_variable = {
								IBR_TBA_Resources < 3
							}
						}
						check_variable = {
							IBR_TBA_Resources = 2
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_3
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.567
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_TBA_Resources > 3
							}
							check_variable = {
								IBR_TBA_Resources < 4
							}
						}
						check_variable = {
							IBR_TBA_Resources = 3
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_4
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.568
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_TBA_Resources > 4
							}
							check_variable = {
								IBR_TBA_Resources < 6
							}
						}
						check_variable = {
							IBR_TBA_Resources = 4
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_5
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.569
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_TBA_Resources > 6
							}
							check_variable = {
								IBR_TBA_Resources < 8
							}
						}
						check_variable = {
							IBR_TBA_Resources = 6
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_6
						has_country_flag = IBR_TBA_Attack_6_2
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_TBA_Attack_6 }
					}
					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.570
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.591
									days = 1
								}
							}
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.570
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.591
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						check_variable = {
							IBR_TBA_Resources > 8
						}
						check_variable = {
							IBR_TBA_Resources = 8
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_TBA_Attack_7
						has_country_flag = IBR_TBA_Attack_7_2
					}
					set_country_flag = IBR_TBA_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_TBA_Attack_7 }
					}
					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.571
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.592
									days = 1
								}
							}
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.571
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.592
							days = 1
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.549.a
	}
}

country_event = { #FSLP ATTACK
	id = IBR.550
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.550.t
	desc = IBR.550.d
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event IBR.550"
		hidden_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_FSLP_Resources > 0
							}
							check_variable = {
								IBR_FSLP_Resources < 1
							}
						}
						check_variable = {
							IBR_FSLP_Resources = 0
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_1
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.572
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_FSLP_Resources > 1
							}
							check_variable = {
								IBR_FSLP_Resources < 2
							}
						}
						check_variable = {
							IBR_FSLP_Resources = 1
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_2
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.573
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_FSLP_Resources > 2
							}
							check_variable = {
								IBR_FSLP_Resources < 3
							}
						}
						check_variable = {
							IBR_FSLP_Resources = 2
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_3
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.574
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_FSLP_Resources > 3
							}
							check_variable = {
								IBR_FSLP_Resources < 4
							}
						}
						check_variable = {
							IBR_FSLP_Resources = 3
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_4
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.575
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_FSLP_Resources > 4
							}
							check_variable = {
								IBR_FSLP_Resources < 6
							}
						}
						check_variable = {
							IBR_FSLP_Resources = 4
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_5
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.576
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						AND = {
							check_variable = {
								IBR_FSLP_Resources > 6
							}
							check_variable = {
								IBR_FSLP_Resources < 8
							}
						}
						check_variable = {
							IBR_FSLP_Resources = 6
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_6
						has_country_flag = IBR_FSLP_Attack_6_2
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_FSLP_Attack_6 }
					}
					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.577
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.593
									days = 1
								}
							}
						}
					}
				}
				else = {

					IBR = {
						country_event = {
							id = IBR.577
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.593
							days = 1
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						check_variable = {
							IBR_FSLP_Resources > 8
						}
						check_variable = {
							IBR_FSLP_Resources = 8
						}
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_FSLP_Attack_7
						has_country_flag = IBR_FSLP_Attack_7_2
					}
					set_country_flag = IBR_FSLP_Rolled
					ZZZ = {
						country_event = {
							id = IBR.546
							hours = 1
						}
					}
				}
				else_if = {
					limit = {
						NOT = { has_country_flag = IBR_FSLP_Attack_7 }
					}

					random_list = {
						50 = {
							IBR = {
								country_event = {
									id = IBR.578
									days = 1
								}
							}
						}
						50 = {
							IBR = {
								country_event = {
									id = IBR.594
									days = 1
								}
							}
						}
					}
				}
				else = {
					IBR = {
						country_event = {
							id = IBR.578
							days = 1
						}
					}
					IBR = {
						country_event = {
							id = IBR.594
							days = 1
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.550.a
	}
}

country_event = {
	id = IBR.551
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.551" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.551.t
	desc = IBR.551.d
	option = {
		# Yay
		name = IBR.551.a
		IBR = {
			set_country_flag = IBR_CNT_Attack_1
		}
		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -10
	}
}

country_event = {
	id = IBR.552
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.552" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.552.t
	desc = IBR.552.d
	option = {
		# Yay
		name = IBR.552.a
		IBR = {
			set_country_flag = IBR_CNT_Attack_2
		}
		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -20
	}
}

country_event = {
	id = IBR.553
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.553" }
	picture = GFX_report_event_IBR_factory_sabotage
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.553.t
	desc = IBR.553.d
	option = {
		# Yay
		name = IBR.553.a
		IBR = {
			set_country_flag = IBR_CNT_Attack_3
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -30
	}
}

country_event = {
	id = IBR.554
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.554" }
	picture = GFX_report_event_IBR_factory_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.554.t
	desc = IBR.554.d
	option = {
		# Yay
		name = IBR.554.a
		IBR = {
			set_country_flag = IBR_CNT_Attack_4
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -50
	}
}

country_event = {
	id = IBR.555
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.555" }
	picture = GFX_report_event_IBR_barcelona_smoke
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.555.t
	desc = IBR.555.d
	option = {
		# Yay
		name = IBR.555.a
		IBR = {
			set_country_flag = IBR_CNT_Attack_5
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -75

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.556
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.556" }
	picture = GFX_report_event_IBR_factory_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.556.t
	desc = IBR.556.d
	option = {
		# Yay
		name = IBR.556.a

		if = {
			limit = { has_country_flag = IBR_CNT_Attack_6 }

			set_country_flag = IBR_CNT_Attack_6_2
		}

		IBR = {
			set_country_flag = IBR_CNT_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.557
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.557" }
	picture = GFX_report_event_IBR_barcelona_rubble
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.557.t
	desc = IBR.557.d
	option = {
		# Yay
		name = IBR.557.a

		if = {
			limit = { has_country_flag = IBR_CNT_Attack_7 }

			set_country_flag = IBR_CNT_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_CNT_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.587
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.587" }
	picture = GFX_report_event_IBR_factory_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.587.t
	desc = IBR.587.d
	option = {
		# Yay
		name = IBR.587.a

		if = {
			limit = { has_country_flag = IBR_CNT_Attack_6 }

			set_country_flag = IBR_CNT_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_CNT_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.588
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.588" }
	picture = GFX_report_event_IBR_cnt_barricades
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.588.t
	desc = IBR.588.d
	option = {
		# Yay
		name = IBR.588.a
		if = {
			limit = { has_country_flag = IBR_CNT_Attack_7 }

			set_country_flag = IBR_CNT_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_CNT_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.558
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.558" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.558.t
	desc = IBR.558.d
	option = {
		# Yay
		name = IBR.558.a
		IBR = {
			set_country_flag = IBR_ETA_Attack_1
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -10
	}
}

country_event = {
	id = IBR.559
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.559" }
	picture = GFX_report_event_IBR_eta_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.559.t
	desc = IBR.559.d
	option = {
		# Yay
		name = IBR.559.a
		IBR = {
			set_country_flag = IBR_ETA_Attack_2
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -20
	}
}

country_event = {
	id = IBR.560
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.560" }
	picture = GFX_report_event_IBR_etaattack
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.560.t
	desc = IBR.560.d
	option = {
		# Yay
		name = IBR.560.a
		IBR = {
			set_country_flag = IBR_ETA_Attack_3
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -30
	}
}

country_event = {
	id = IBR.561
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.561" }
	picture = GFX_report_event_IBR_eta_bombing2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.561.t
	desc = IBR.561.d
	option = {
		# Yay
		name = IBR.561.a
		IBR = {
			set_country_flag = IBR_ETA_Attack_4
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -50
	}
}

country_event = {
	id = IBR.562
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.562" }
	picture = GFX_report_event_IBR_eta_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.562.t
	desc = IBR.562.d
	option = {
		# Yay
		name = IBR.562.a
		IBR = {
			set_country_flag = IBR_ETA_Attack_5
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -75

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.563
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.563" }
	picture = GFX_report_event_IBR_plane_crash
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.563.t
	desc = IBR.563.d
	option = {
		# Yay
		name = IBR.563.a
		if = {
			limit = { has_country_flag = IBR_ETA_Attack_6 }

			set_country_flag = IBR_ETA_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_ETA_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.564
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.564" }
	picture = GFX_report_event_IBR_eta_car_bomb
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.564.t
	desc = IBR.564.d
	option = {
		# Yay
		name = IBR.564.a
		if = {
			limit = { has_country_flag = IBR_ETA_Attack_7 }

			set_country_flag = IBR_ETA_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_ETA_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
		remove_unit_leader_role = IBR_Carlos_Asensio_Cabanillas
	}
}

country_event = {
	id = IBR.589
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.589" }
	picture = GFX_report_event_IBR_eta_bombing2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.589.t
	desc = IBR.589.d
	option = {
		# Yay
		name = IBR.589.a
		if = {
			limit = { has_country_flag = IBR_ETA_Attack_6 }

			set_country_flag = IBR_ETA_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_ETA_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.590
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.590" }
	picture = GFX_report_event_IBR_railroad_sabotage
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.590.t
	desc = IBR.590.d
	option = {
		# Yay
		name = IBR.590.a
		if = {
			limit = { has_country_flag = IBR_ETA_Attack_7 }

			set_country_flag = IBR_ETA_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_ETA_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.565
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.565" }
	picture = GFX_report_event_IBR_lisbon_working_class_neighborhood
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.565.t
	desc = IBR.565.d
	option = {
		# Yay
		name = IBR.565.a
		IBR = {
			set_country_flag = IBR_TBA_Attack_1
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -10
	}
}

country_event = {
	id = IBR.566
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.566" }
	picture = GFX_report_event_IBR_factory_sabotage
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.566.t
	desc = IBR.566.d
	option = {
		# Yay
		name = IBR.566.a
		IBR = {
			set_country_flag = IBR_TBA_Attack_2
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -20
	}
}

country_event = {
	id = IBR.567
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.567" }
	picture = GFX_report_event_IBR_oviedo_blackout
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.567.t
	desc = IBR.567.d
	option = {
		# Yay
		name = IBR.567.a
		IBR = {
			set_country_flag = IBR_TBA_Attack_3
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -30
	}
}

country_event = {
	id = IBR.568
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.568" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.568.t
	desc = IBR.568.d
	option = {
		# Yay
		name = IBR.568.a
		IBR = {
			set_country_flag = IBR_TBA_Attack_4
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -50
	}
}

country_event = {
	id = IBR.569
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.569" }
	picture = GFX_report_event_IBR_iberian_wars_6
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.569.t
	desc = IBR.569.d
	option = {
		# Yay
		name = IBR.569.a
		IBR = {
			set_country_flag = IBR_TBA_Attack_5
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -75

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.570
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.570" }
	picture = GFX_report_event_IBR_etaattack
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.570.t
	desc = IBR.570.d
	option = {
		# Yay
		name = IBR.570.a

		if = {
			limit = { has_country_flag = IBR_TBA_Attack_6 }

			set_country_flag = IBR_TBA_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_TBA_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.571
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.571" }
	picture = GFX_report_event_IBR_anthrax
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.571.t
	desc = IBR.571.d
	option = {
		# Yay
		name = IBR.571.a

		if = {
			limit = { has_country_flag = IBR_TBA_Attack_7 }

			set_country_flag = IBR_TBA_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_TBA_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.591
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.591" }
	picture = GFX_report_event_IBR_eta_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.591.t
	desc = IBR.591.d
	option = {
		# Yay
		name = IBR.591.a

		if = {
			limit = { has_country_flag = IBR_TBA_Attack_6 }

			set_country_flag = IBR_TBA_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_TBA_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.592
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.592" }
	picture = GFX_report_event_IBR_barcelona_smoke
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.592.t
	desc = IBR.592.d
	option = {
		# Yay
		name = IBR.592.a

		if = {
			limit = { has_country_flag = IBR_TBA_Attack_7 }

			set_country_flag = IBR_TBA_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_TBA_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.572
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.572" }
	picture = GFX_report_event_IBR_factory_sabotage
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.572.t
	desc = IBR.572.d
	option = {
		# Yay
		name = IBR.572.a
		IBR = {
			set_country_flag = IBR_FSLP_Attack_1
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -10
	}
}

country_event = {
	id = IBR.573
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.573" }
	picture = GFX_report_event_IBR_road_bomb
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.573.t
	desc = IBR.573.d
	option = {
		# Yay
		name = IBR.573.a
		IBR = {
			set_country_flag = IBR_FSLP_Attack_2
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -20
	}
}

country_event = {
	id = IBR.574
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.574" }
	picture = GFX_report_event_IBR_eta_bombing2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.574.t
	desc = IBR.574.d
	option = {
		# Yay
		name = IBR.574.a
		IBR = {
			set_country_flag = IBR_FSLP_Attack_3
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -30
	}
}

country_event = {
	id = IBR.575
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.575" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.575.t
	desc = IBR.575.d
	option = {
		# Yay
		name = IBR.575.a
		IBR = {
			set_country_flag = IBR_FSLP_Attack_4
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -50
	}
}

country_event = {
	id = IBR.576
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.576" }
	picture = GFX_report_event_IBR_eta_bombing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.576.t
	desc = IBR.576.d
	option = {
		# Yay
		name = IBR.576.a
		IBR = {
			set_country_flag = IBR_FSLP_Attack_5
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -75

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.577
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.577" }
	picture = GFX_report_event_IBR_lisbon_tv_station
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.577.t
	desc = IBR.577.d
	option = {
		# Yay
		name = IBR.577.a
		if = {
			limit = { has_country_flag = IBR_FSLP_Attack_6 }

			set_country_flag = IBR_FSLP_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_FSLP_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.578
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.578" }
	picture = GFX_report_event_IBR_mailman
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.578.t
	desc = IBR.578.d
	option = {
		# Yay
		name = IBR.578.a

		if = {
			limit = { has_country_flag = IBR_FSLP_Attack_7 }

			set_country_flag = IBR_FSLP_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_FSLP_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = {
	id = IBR.593
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.593" }
	picture = GFX_report_event_IBR_iberian_wars_6
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.593.t
	desc = IBR.593.d
	option = {
		# Yay
		name = IBR.593.a

		if = {
			limit = { has_country_flag = IBR_FSLP_Attack_6 }

			set_country_flag = IBR_FSLP_Attack_6_2
		}
		IBR = {
			set_country_flag = IBR_FSLP_Attack_6
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -100
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = {
	id = IBR.594
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.594" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.594.t
	desc = IBR.594.d
	option = {
		# Yay
		name = IBR.594.a

		if = {
			limit = { has_country_flag = IBR_FSLP_Attack_7 }

			set_country_flag = IBR_FSLP_Attack_7_2
		}
		IBR = {
			set_country_flag = IBR_FSLP_Attack_7
		}

		clr_country_flag = IBR_CNT_Rolled
		clr_country_flag = IBR_ETA_Rolled
		clr_country_flag = IBR_TBA_Rolled
		clr_country_flag = IBR_FSLP_Rolled

		add_political_power = -150
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}





#LOOK AT SCRIPTED EFFECT IBR_terror_vunerable_check

#country_event = {
#	id = IBR.579
#	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.579" }
#	picture = GFX_report_event_IBR_road_bomb
#	is_triggered_only = yes
#	fire_only_once = no
#	hidden = no
#	title = IBR.579.t
#	desc = IBR.579.d
#	trigger = {
#		AND = {
#			NOT = {
#				has_country_flag = IBR_CNT_vulnerable
#			}
#			check_variable = {
#				IBR_CNT_Activity < -2
#			}
#			check_variable = {
#				IBR_CNT_Resources < -2
#			}
#			check_variable = {
#				IBR_CNT_Support < -2
#			}
#		}
#	}
#	option = {
#		name = IBR.579.a
#		set_country_flag = IBR_CNT_vulnerable
#	}
#}
#
#country_event = {
#	id = IBR.580
#	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.580" }
#	picture = GFX_report_event_IBR_road_bomb
#	is_triggered_only = yes
#	fire_only_once = no
#	hidden = no
#	title = IBR.580.t
#	desc = IBR.580.d
#	trigger = {
#		AND = {
#			NOT = {
#				has_country_flag = IBR_ETA_vulnerable
#			}
#			check_variable = {
#				IBR_ETA_Activity < -2
#			}
#			check_variable = {
#				IBR_ETA_Resources < -2
#			}
#			check_variable = {
#				IBR_ETA_Support < -2
#			}
#		}
#	}
#	option = {
#		name = IBR.580.a
#		set_country_flag = IBR_ETA_vulnerable
#	}
#}

#SAME FOR TBA AND FSLP 531,582

#country_event = {
#	id = IBR.583
#	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.583" }
#	picture = GFX_report_event_IBR_road_bomb
#	is_triggered_only = yes
#	fire_only_once = no
#	hidden = no
#	title = IBR.583.t
#	desc = IBR.583.d
#	trigger = {
#		AND = {
#			has_country_flag = IBR_CNT_vulnerable
#			check_variable = {
#				IBR_CNT_Activity > -2.1
#			}
#			check_variable = {
#				IBR_CNT_Resources > -2.1
#			}
#			check_variable = {
#				IBR_CNT_Support > -2.1
#			}
#		}
#	}
#	option = {
#		name = IBR.583.a
#		clr_country_flag = IBR_CNT_vulnerable
#	}
#}

#country_event = {
#	id = IBR.584
#	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.584" }
#	picture = GFX_report_event_IBR_road_bomb
#	is_triggered_only = yes
#	fire_only_once = no
#	hidden = no
#	title = IBR.584.t
#	desc = IBR.584.d
#	trigger = {
#		AND = {
#			has_country_flag = IBR_ETA_vulnerable
#			check_variable = {
#				IBR_ETA_Activity > -2.1
#			}
#			check_variable = {
#				IBR_ETA_Resources > -2.1
#			}
#			check_variable = {
#				IBR_ETA_Support > -2.1
#			}
#		}
#	}
#	option = {
#		name = IBR.584.a
#		clr_country_flag = IBR_ETA_vulnerable
#	}
#}

#SAME WITH FSLP AND TBA 585. 586

#EVENTS TO GET AROUND GUI WEIRDNESS FOR CHECK LMAO
#THIS IN PARTICULAR MAKES IT HARDER TO BUY DOWN LOW TERROR VARS
###ALL EVENTS HIDDEN AND TAKEN BY ZZZ###


##CNT EVENTS
country_event = { #CNT ACTIVITY
	id = IBR.9100
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9100" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9100.t
	desc = IBR.9100.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_CNT_Activity < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_CNT_Activity
				value = -0.4
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_CNT_Activity < 3.1 }
				OR = {
					check_variable = { IBR_CNT_Activity = 2.1 }
					check_variable = { IBR_CNT_Activity > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_CNT_Activity = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_CNT_Activity
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9100.a
	}
}

country_event = { #CNT SUPPORT
	id = IBR.9101
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9101" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9101.t
	desc = IBR.9101.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_CNT_Support < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_CNT_Support
				value = -0.16
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_CNT_Support < 3.1 }
				OR = {
					check_variable = { IBR_CNT_Support = 2.1 }
					check_variable = { IBR_CNT_Support > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_CNT_Support = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_CNT_Support
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9101.a
	}
}

country_event = { #CNT RESOURCES
	id = IBR.9102
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9102" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9102.t
	desc = IBR.9102.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_CNT_Resources < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_CNT_Resources
				value = -0.4
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_CNT_Resources < 3.1 }
				OR = {
					check_variable = { IBR_CNT_Resources = 2.1 }
					check_variable = { IBR_CNT_Resources > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_CNT_Resources = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_CNT_Resources
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9102.a
	}
}

##ETA EVENTS
country_event = { #ETA ACTIVITY
	id = IBR.9103
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9103" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9103.t
	desc = IBR.9103.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_ETA_Activity < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_ETA_Activity
				value = -0.3
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_ETA_Activity < 3.1 }
				OR = {
					check_variable = { IBR_ETA_Activity = 2.1 }
					check_variable = { IBR_ETA_Activity > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_ETA_Activity = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_ETA_Activity
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9103.a
	}
}

country_event = { #ETA SUPPORT
	id = IBR.9104
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9104" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9104.t
	desc = IBR.9104.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_ETA_Support < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_ETA_Support
				value = -0.12
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_ETA_Support < 3.1 }
				OR = {
					check_variable = { IBR_ETA_Support = 2.1 }
					check_variable = { IBR_ETA_Support > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_ETA_Support = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_ETA_Support
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9104.a
	}
}

country_event = { #ETA RESOURCES
	id = IBR.9105
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9105" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9105.t
	desc = IBR.9105.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_ETA_Resources < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_ETA_Resources
				value = -0.3
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_ETA_Resources < 3.1 }
				OR = {
					check_variable = { IBR_ETA_Resources = 2.1 }
					check_variable = { IBR_ETA_Resources > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_ETA_Resources = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_ETA_Resources
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9105.a
	}
}

##BTA EVENTS
country_event = { #TBA ACTIVITY
	id = IBR.9106
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9106" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9106.t
	desc = IBR.9106.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_TBA_Activity < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_TBA_Activity
				value = -0.5
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_TBA_Activity < 3.1 }
				OR = {
					check_variable = { IBR_TBA_Activity = 2.1 }
					check_variable = { IBR_TBA_Activity > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_TBA_Activity = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_TBA_Activity
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9106.a
	}
}

country_event = { #TBA SUPPORT
	id = IBR.9107
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9107" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9107.t
	desc = IBR.9107.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_TBA_Support < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_TBA_Support
				value = -0.2
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_TBA_Support < 3.1 }
				OR = {
					check_variable = { IBR_TBA_Support = 2.1 }
					check_variable = { IBR_TBA_Support > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_TBA_Support = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_TBA_Support
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9107.a
	}
}

country_event = { #TBA RESOURCES
	id = IBR.9108
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9108" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9108.t
	desc = IBR.9108.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_TBA_Resources < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_TBA_Resources
				value = -0.5
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_TBA_Resources < 3.1 }
				OR = {
					check_variable = { IBR_TBA_Resources = 2.1 }
					check_variable = { IBR_TBA_Resources > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_TBA_Resources = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_TBA_Resources
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9108.a
	}
}

##FSLP EVENTS
country_event = { #FSLP ACTIVITY
	id = IBR.9109
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9109" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9109.t
	desc = IBR.9109.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_FSLP_Activity < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_FSLP_Activity
				value = -0.4
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_FSLP_Activity < 3.1 }
				OR = {
					check_variable = { IBR_FSLP_Activity = 2.1 }
					check_variable = { IBR_FSLP_Activity > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_FSLP_Activity = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_FSLP_Activity
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9109.a
	}
}

country_event = { #FSLP SUPPORT
	id = IBR.9110
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9110" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9110.t
	desc = IBR.9110.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_FSLP_Support < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_FSLP_Support
				value = -0.16
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_FSLP_Support < 3.1 }
				OR = {
					check_variable = { IBR_FSLP_Support = 2.1 }
					check_variable = { IBR_FSLP_Support > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_FSLP_Support = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_FSLP_Support
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9110.a
	}
}

country_event = { #FSLP RESOURCES
	id = IBR.9111
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.9111" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = yes
	title = IBR.9111.t
	desc = IBR.9111.d
	immediate = {

	if = {
		limit = { IBR = { check_variable = { IBR_FSLP_Resources < 2.1 } } }

		IBR = {
			add_to_variable = {
				var = IBR_FSLP_Resources
				value = -0.4
			}
		}
	}
	else_if = {
		limit = {
			IBR = {
				check_variable = { IBR_FSLP_Resources < 3.1 }
				OR = {
					check_variable = { IBR_FSLP_Resources = 2.1 }
					check_variable = { IBR_FSLP_Resources > 2.1 }
				}
			}
		}
		IBR = { set_variable = { IBR_FSLP_Resources = 2 } }
	}
	else = {
		IBR = {
			add_to_variable = {
				var = IBR_FSLP_Resources
				value = -1
			}
		}
	}
	IBR = { IBR_terror_vunerable_check = yes }
	}
	option = {
		name = IBR.9111.a
	}
}

#TERRORISM IS DEAD

country_event = { #CNT IS DEAD
	id = ibrterror.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrterror.1" }
	title = ibrterror.1.t
	desc = ibrterror.1.d
	picture = GFX_report_event_IBR_cnt_flag
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = ibrterror.1.a
		add_political_power = 100
		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
		set_country_flag = IBRCNTBroken
		clamp_variable = {
			var = IBR_CNT_Activity
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_CNT_Resources
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_CNT_Support
			min = -1
			max = 0
		}

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = IBRFSLPBroken
					has_country_flag = IBRCNTBroken
					has_country_flag = IBRETABroken
					has_country_flag = IBRTBABroken
				}
				country_event = { id = ibrterror.5 days = 2 }
			}
		}
	}
}

country_event = { #ETA IS DEAD
	id = ibrterror.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrterror.2" }
	title = ibrterror.2.t
	desc = ibrterror.2.d
	picture = GFX_report_event_IBR_eta_protest
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = ibrterror.2.a
		add_political_power = 100
		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
		set_country_flag = IBRETABroken
		clamp_variable = {
			var = IBR_ETA_Activity
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_ETA_Resources
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_ETA_Support
			min = -1
			max = 0
		}

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = IBRFSLPBroken
					has_country_flag = IBRCNTBroken
					has_country_flag = IBRETABroken
					has_country_flag = IBRTBABroken
				}
				country_event = { id = ibrterror.5 days = 2 }
			}
		}
	}
}

country_event = { #BTA IS DEAD
	id = ibrterror.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrterror.3" }
	title = ibrterror.3.t
	desc = ibrterror.3.d
	picture = GFX_report_event_IBR_prison_jail_cell
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = ibrterror.3.a
		add_political_power = 100
		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
		set_country_flag = IBRTBABroken
		clamp_variable = {
			var = IBR_TBA_Activity
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_TBA_Resources
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_TBA_Support
			min = -1
			max = 0
		}

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = IBRFSLPBroken
					has_country_flag = IBRCNTBroken
					has_country_flag = IBRETABroken
					has_country_flag = IBRTBABroken
				}
				country_event = { id = ibrterror.5 days = 2 }
			}
		}
	}
}

country_event = { #FSLP IS DEAD
	id = ibrterror.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrterror.4" }
	title = ibrterror.4.t
	desc = ibrterror.4.d
	picture = GFX_report_event_IBR_portuguese_protest
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = ibrterror.4.a
		add_political_power = 100
		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
		set_country_flag = IBRFSLPBroken
		clamp_variable = {
			var = IBR_FSLP_Activity
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_FSLP_Resources
			min = -1
			max = 0
		}
		clamp_variable = {
			var = IBR_FSLP_Support
			min = -1
			max = 0
		}

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = IBRFSLPBroken
					has_country_flag = IBRCNTBroken
					has_country_flag = IBRETABroken
					has_country_flag = IBRTBABroken
				}
				country_event = { id = ibrterror.5 days = 2 }
			}
		}
	}
}

country_event = { #The 4 groups are dead, remove terrorism button
	id = ibrterror.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrterror.5" }
	title = ibrterror.5.t
	desc = ibrterror.5.d
	picture = GFX_report_event_IBR_portuguese_protest
	hidden = yes
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = ibrterror.5.a
		clr_country_flag = IBR_Terrorism_GUI
		clr_country_flag = country_has_gui
	}
}


#### FOREIGN EVENTS
#### FOREIGN EVENTS
#### FOREIGN EVENTS
#### FOREIGN EVENTS

country_event = {
	id = IBR.600
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.600" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.600.t
	desc = IBR.600.d
	option = {
		name = IBR.600.a
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = IBR.601
				days = 7
			}
		}
	}
	option = {
		name = IBR.600.b
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = IBR.602
				days = 7
			}
		}
	}
}

country_event = {
	id = IBR.601
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.601" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.601.t
	desc = IBR.601.d
	option = {
		name = IBR.601.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRUSAFriendship
	}
}

country_event = {
	id = IBR.602
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.602" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.602.t
	desc = IBR.602.d
	option = {
		name = IBR.602.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRUSATurnedAway
	}
}

country_event = {
	id = IBR.603
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.603" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.603.t
	desc = IBR.603.d
	option = {
		name = IBR.603.a
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = IBR.604
				days = 7
			}
		}
	}
	option = {
		name = IBR.603.b
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = IBR.605
				days = 7
			}
		}
	}
}

country_event = {
	id = IBR.604
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.604" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.604.t
	desc = IBR.604.d
	option = {
		name = IBR.604.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRITAFriendship
	}
}

country_event = {
	id = IBR.605
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.605" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.605.t
	desc = IBR.605.d
	option = {
		name = IBR.605.a
		ai_chance = { factor = 10 }
		set_country_flag = IBRITATurnedAway
	}
}

######SOCIAL LIBERAL TREE EVENTS
######SOCIAL LIBERAL TREE EVENTS
######SOCIAL LIBERAL TREE EVENTS
######SOCIAL LIBERAL TREE EVENTS
######SOCIAL LIBERAL TREE EVENTS

country_event = { #
	id = IBR.606
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.606" }
	picture = GFX_report_event_IBR_suarez_mad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.606.t
	desc = IBR.606.d
	option = {
		name = IBR.606.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt

		IBR_add_3_soclib = yes
	}
}

country_event = { #
	id = IBR.607
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.607" }
	picture = GFX_report_event_IBR_interview
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.607.t
	desc = IBR.607.d
	option = {
		name = IBR.607.a
		ai_chance = { factor = 10 }

		IBR_add_3_soclib = yes

		#TNO_improve_minorities_policy_effectiveness_low = yes
	}
}

country_event = { #
	id = IBR.608
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.608" }
	picture = GFX_report_event_IBR_carneiro
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.608.t
	desc = IBR.608.d
	option = {
		name = IBR.608.a
		ai_chance = { factor = 10 }

		IBR_add_5_soclib = yes

		#TNO_improve_minorities_policy_effectiveness_low = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt
	}
}

country_event = { #
	id = IBR.609
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.609" }
	picture = GFX_report_event_IBR_fernandez_miranda_chair
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.609.t
	desc = IBR.609.d
	option = {
		name = IBR.609.a
		ai_chance = { factor = 10 }

		IBR_add_10_soclib = yes

		#TNO_improve_minorities_policy_effectiveness_med = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 3
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_big_tt
	}
}

country_event = { #
	id = IBR.610
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.610" }
	picture = GFX_report_event_IBR_rural_agriculture
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.610.t
	desc = IBR.610.d
	option = { # The problem clearly is caused by outdated equipment
		name = IBR.610.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}

		add_political_power = -50

		IBR = {
		add_to_variable = { agriculture_monthly_change = 1.5 }
		}
		custom_effect_tooltip = improve_agriculture_small

	}
	option = { # Subsidise their crops more, to give them relief
		name = IBR.610.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}
		add_timed_idea = { idea = IBR_610_misc_costs days = 90 }

		custom_effect_tooltip = TNO_agricultural_misc_costs_increase_tt

		add_to_variable = { IBR_agri_subsidies_misc_cost_var = 0.07 }

		IBR_add_5_soclib = yes
	}
	option = { # They didn't vote for us, did they?
		name = IBR.610.c
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}

		IBR_add_10_soccon = yes
	}
}

country_event = { #Meeting With The Axencia Anti-Separatista
	id = IBR.611
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.611" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.611.t
	desc = IBR.611.d
	option = {
		name = IBR.611.a
		ai_chance = { factor = 10 }

		if = {
			limit = { check_variable = { IBRMilitaryHostility < 7 } }

			hidden_effect = {
				country_event = {
					id = IBR.5850
					days = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5851
					days = 1
				}
			}
		}
	}
}

country_event = { #A Highly Productive Meeting
	id = IBR.5850
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5850" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5850.t
	desc = IBR.5850.d
	option = {
		name = IBR.5850.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 20
		}
		custom_effect_tooltip = IBR_add_aas_tt

		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 2
		}
		custom_effect_tooltip = IBR_sub_milhost_big_tt

		set_country_flag = IBR_soclib_aas_good
	}
}

country_event = { #A Satisfactory Meeting
	id = IBR.5851
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5851" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5851.t
	desc = IBR.5851.d
	option = {
		name = IBR.5851.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 10
		}
		custom_effect_tooltip = IBR_add_aas_tt

		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		set_country_flag = IBR_soclib_aas_decent
	}
}

country_event = { #Investigating Election Fraud
	id = IBR.613
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.613" }
	picture = GFX_report_event_IBR_voting_women
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.613.t
	desc = IBR.613.d
	option = {
		name = IBR.613.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			if = {
				limit = {
					has_political_power > 49.99
				}
				random_list = {
					80 = {
						country_event = {
							id = IBR.802
							days = 7
						}
						set_country_flag = IBRFraudInvestigationWon
					}
					20 = {
						country_event = {
							id = IBR.801
							days = 7
						}
					}
				}
			}
			else_if = {
				limit = {
					AND = {
						has_political_power < 50
						has_political_power > -49.99
					}
				}
				random_list = {
					30 = {
						country_event = {
							id = IBR.802
							days = 7
						}
						set_country_flag = IBRFraudInvestigationWon
					}
					70 = {
						country_event = {
							id = IBR.801
							days = 7
						}
					}
				}
			}
			else = {
				country_event = {
					id = IBR.801
					days = 7
				}
			}
		}
	}
}

country_event = { #No New Findings
	id = IBR.800
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.800" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.800.t
	desc = IBR.800.d
	option = {
		name = IBR.800.a
		ai_chance = { factor = 10 }
		add_political_power = -50
		IBR_sub_5_soclib = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt
	}
}

country_event = { #Election Fraud Investigation Inconclusive
	id = IBR.801
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.801" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.801.t
	desc = IBR.801.d
	option = { #We have to accept this...
		name = IBR.801.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
	}
	option = { #We must get to the bottom of it, no matter what!
		name = IBR.801.b
		ai_chance = {
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}

		add_political_power = -25

		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = IBR.802
						days = 7
					}
					set_country_flag = IBRFraudInvestigationWon
				}
				50 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
					}
					country_event = {
						id = IBR.800
						days = 7
					}
				}
			}
		}
	}
}

country_event = { #Election Fraud Investigation Returns Incriminating Evidence
	id = IBR.802
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.802" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.802.t
	desc = IBR.802.d
	option = {
		name = IBR.802.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		IBR_sub_10_authdem = yes
	}
}

country_event = { #The Problematic Municipalities
	id = IBR.614
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.614" }
	picture = GFX_report_event_IBR_lisbon_working_class_neighborhood
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.614.t
	desc = IBR.614.d
	option = { #Call the wrongdoers out publicly
		name = IBR.614.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}

		IBR_add_5_soclib = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt
	}
	option = { #Tone down the rhetoric
		name = IBR.614.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}

		IBR_add_5_socdem = yes
		IBR_sub_3_soclib = yes
	}
}

country_event = { #Finding The Perpetrators
	id = IBR.615
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.615" }
	picture = GFX_report_event_IBR_meeting_small
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.615.t
	desc = IBR.615.d
	option = {
		name = IBR.615.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = IBRFraudInvestigationWon
			}
			hidden_effect = {
				country_event = {
					id = IBR.804
					days = 10
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.803
					days = 10
				}
			}
		}
	}
}

country_event = { #The Investigation Fails To Track Down Evidence
	id = IBR.803
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.803" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.803.t
	desc = IBR.803.d
	option = {
		name = IBR.803.a
		ai_chance = { factor = 10 }
		IBR_sub_5_soclib = yes
		add_political_power = -50
	}
}

country_event = { #Perpetrators Charged and Convicted
	id = IBR.804
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.804" }
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.804.t
	desc = IBR.804.d
	option = {
		name = IBR.804.a
		ai_chance = { factor = 10 }
		IBR_add_10_soclib = yes
		add_political_power = 50
	}
}

country_event = { #Protecting The Council
	id = IBR.616
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.616" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.616.t
	desc = IBR.616.d
	option = {
		name = IBR.616.a
		ai_chance = { factor = 10 }

		add_stability = 0.1
		add_political_power = 50

		set_country_flag = IBR_soclib_congress_protected

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_soclib_aas_decent
					has_country_flag = IBR_soclib_aas_good
				}
				OR = {
					has_country_flag = IBR_soclib_politial_connections
					has_country_flag = IBR_soclib_political_cringe
				}
			}
			set_variable = {
				var = IBRMilitaryHostility
				value = 9
			}
			IBR_check_military_hostility_events = yes
		}
	}
}

country_event = { #Legalizing The Left Opposition
	id = IBR.618
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.618" }
	picture = GFX_report_event_IBR_politicians_discussing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.618.t
	desc = IBR.618.d
	option = {
		name = IBR.618.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}
		# Do as we promised, no banned parties.

		add_stability = 0.075

		add_ideas = tno_trade_unions_all_allowed
		TNO_worsen_trade_unions_policy_effectiveness_low = yes
		TNO_improve_trade_unions_policy_effectiveness_monthly_med = yes
		TNO_improve_political_parties_policy_effectiveness_high = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 2
		}
		IBR_check_military_hostility_events = yes
		IBR_add_10_soclib = yes
		IBR_sub_5_socdem = yes
		add_popularity = {
			ideology = socialist
			popularity = 0.04
		}
		add_popularity = {
			ideology = communist
			popularity = 0.03
		}

		custom_effect_tooltip = IBR_add_milhost_big_tt

		add_to_variable = {
			var = IBRSoclibReforms
			value = 3
		}
	}
	option = {
		name = IBR.618.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
		# Walk back on our remarks, to not anger people.

		add_political_power = -50

		hidden_effect = {
			country_event = {
				id = IBR.805
				days = 5
			}
		}
	}
}

country_event = { #General Strike in Barcelona!
	id = IBR.805
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.805" }
	picture = GFX_report_event_IBR_cnt_barcelona_protest_70s
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.805.t
	desc = IBR.805.d
	option = {
		name = IBR.805.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}
		# We need a compromise. Legalize the moderates.

		add_political_power = -50

		add_ideas = tno_trade_unions_all_allowed
		TNO_worsen_trade_unions_policy_effectiveness_low = yes
		TNO_improve_trade_unions_policy_effectiveness_monthly_med = yes
		TNO_improve_political_parties_policy_effectiveness_med = yes

		add_popularity = {
			ideology = socialist
			popularity = 0.06
		}
		IBR_add_5_soclib = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt

		add_to_variable = {
			var = IBRSoclibReforms
			value = 1
		}
	}
	option = {
		name = IBR.805.b
		ai_chance = { factor = 10 }
		# No. The military is too much of a threat.

		IBR_add_10_socdem = yes
		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		add_political_power = -100

		add_to_variable = {
			var = IBRSoclibReforms
			value = -1
		}
	}
}

country_event = {
	id = IBR.619
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.619" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.619.t
	desc = IBR.619.d
	option = {
		name = IBR.619.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}
		# Bring them to justice
		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		tno_penal_system_improve = yes
		TNO_worsen_penal_system_policy_effectiveness_high = yes
		TNO_improve_penal_system_policy_effectiveness_monthly_low = yes

		custom_effect_tooltip = IBR_add_milhost_small_tt
	}
	option = {
		name = IBR.619.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}

		TNO_worsen_penal_system_policy_effectiveness_monthly_med = yes

		IBR_sub_5_soclib = yes
		# Take those who are irredeemable, but compromises must be made.
	}
}

country_event = {
	id = IBR.620
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.620" }
	picture = GFX_report_event_IBR_tarrafal1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.620.t
	desc = IBR.620.d
	option = {
		name = IBR.620.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}
		# I want that camp gone, now

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt

		if = {
			limit = {
				check_variable = {
					IBRMilitaryHostility > 3
				}
			}

			hidden_effect = {
				random_list = {
					80 = {
						country_event = {
							id = IBR.806
							days = 7
						}
					}
					20 = {
						country_event = {
							id = IBR.807
							days = 7
						}
					}
				}
			}
		}
		else = {
			hidden_effect = {
				random_list = {
					20 = {
						country_event = {
							id = IBR.806
							days = 7
						}
					}
					80 = {
						country_event = {
							id = IBR.807
							days = 7
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.620.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
		# It is a sad necessity, but encourage greater conditions for prisoners.
		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_sub_10_soclib = yes
		IBR_add_10_socdem = yes

		custom_effect_tooltip = IBR_sub_milhost_small_tt
	}
}

country_event = { #Tarrafal Camp Commandant Refuses To Stand Down!
	id = IBR.806
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.806" }
	picture = GFX_report_event_IBR_tarrafal2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.806.t
	desc = IBR.806.d
	option = {
		name = IBR.806.a
		ai_chance = { factor = 10 }
		# Arrest him!
		IBR_add_5_soclib = yes
		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt
		add_to_variable = {
			var = IBRSoclibReforms
			value = 1
		}
	}
	option = {
		name = IBR.806.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
		# It is too dangerous.
		IBR_sub_10_soclib = yes
		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		add_political_power = -50

		add_to_variable = {
			var = IBRSoclibReforms
			value = -1
		}
	}
}

country_event = { #Tarrafal Camp Commandant Stands Down
	id = IBR.807
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.807" }
	picture = GFX_report_event_IBR_tarrafal_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.807.t
	desc = IBR.807.d
	option = {
		name = IBR.807.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
		# Thank goodness.
		add_stability = 0.03

		add_to_variable = {
			var = IBRSoclibReforms
			value = 1
		}
	}
	option = {
		name = IBR.807.b
		ai_chance = { factor = 10 }
		# Put him on trial, now!

		IBR_add_10_soclib = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt

		add_political_power = 25

		add_to_variable = {
			var = IBRSoclibReforms
			value = 2
		}
	}
}

country_event = { #Investigating Military Corruption
	id = IBR.621
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.621" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.621.t
	desc = IBR.621.d
	option = {
		name = IBR.621.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}
		# A perfect opportunity to neuter a potential threat.

		IBR_add_15_soclib = yes
		add_stability = -0.05
		add_political_power = 50
		random_list = {
			50 = {

				subtract_from_variable = {
					var = IBRMilitaryHostility
					value = 1
				}
				custom_effect_tooltip = IBR_sub_milhost_small_tt
			}
			50 = {
				modifier = {
					factor = 0
					has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
				}
				add_to_variable = {
					var = IBRMilitaryHostility
					value = 3
				}
				IBR_check_military_hostility_events = yes
				custom_effect_tooltip = IBR_add_milhost_big_tt
			}
		}
		add_to_variable = {
			var = IBRSoclibReforms
			value = 1
		}
	}
	option = {
		name = IBR.621.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
		# Justice is foremost.

		IBR_add_5_soclib = yes

		add_to_variable = {
			var = IBRSoclibReforms
			value = 1
		}
	}
	option = {
		name = IBR.621.c
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}
		# Perhaps we can earn their trust?

		if = {
			limit = { check_variable = { IBRMilitaryHostility > 3 } }

			hidden_effect = {
				country_event = {
					id = IBR.5852
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5853
					days = 3
				}
			}
		}
		IBR_sub_5_soclib = yes
		add_political_power = -25
		custom_effect_tooltip = IBR_soclib_milcorruption

		add_to_variable = {
			var = IBRSoclibReforms
			value = -1
		}
	}
}

country_event = { #Military Remains Wary
	id = IBR.5852
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5852" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5852.t
	desc = IBR.5852.d
	option = {
		name = IBR.5852.a
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}

country_event = { #Assuaging Their Concerns
	id = IBR.5853
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5853" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5853.t
	desc = IBR.5853.d
	option = {
		name = IBR.5853.a
		ai_chance = { factor = 10 }

		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		add_political_power = 25
	}
}

country_event = { #Securing Political Connections
	id = IBR.622
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.622" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.622.t
	desc = IBR.622.d
	option = {
		name = IBR.622.a
		ai_chance = { factor = 10 }

		if = {
			limit = { check_variable = { IBRMilitaryHostility > 4 } }

			hidden_effect = {
				country_event = {
					id = IBR.5854
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5856
					days = 6
				}
			}
		}
	}
}

country_event = { #Tension Looms
	id = IBR.5854
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5854" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5854.t
	desc = IBR.5854.d
	option = { #Increase the efforts
		name = IBR.5854.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_EXTENSIVE }
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.5855
				days = 5
			}
		}
	}
	option = { #We must show restraint
		name = IBR.5854.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_REFORM option = IBR_LIBERAL_REFORM_CONSERVATIVE }
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.5856
				days = 5
			}
		}
	}
}

country_event = { #Our Incompetence Revealed
	id = IBR.5855
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5855" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5855.t
	desc = IBR.5855.d
	option = {
		name = IBR.5855.a
		ai_chance = { factor = 10 }

		IBR_sub_10_soclib = yes
		add_political_power = -50
		set_country_flag = IBR_soclib_political_cringe

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_soclib_aas_decent
					has_country_flag = IBR_soclib_aas_good
				}
				has_country_flag = IBR_soclib_congress_protected
			}
			set_variable = {
				var = IBRMilitaryHostility
				value = 9
			}
			IBR_check_military_hostility_events = yes
		}
	}
}

country_event = { #Moderate Veterans Step Forward
	id = IBR.5856
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5856" }
	picture = GFX_report_event_IBR_interview
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5856.t
	desc = IBR.5856.d
	option = { #Go public with the partnership
		name = IBR.5856.a
		ai_chance = { factor = 10 }

		if = {
			limit = { check_variable = { IBRMilitaryHostility > 4 } }

			hidden_effect = {
				country_event = {
					id = IBR.5857
					days = 4
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5858
					days = 4
				}
			}
		}
	}
	option = { #Keep it behind closed doors
		name = IBR.5856.b
		ai_chance = { factor = 10 }

		if = {
			limit = { check_variable = { IBRMilitaryHostility > 4 } }

			hidden_effect = {
				country_event = {
					id = IBR.5859
					days = 4
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5860
					days = 4
				}
			}
		}
	}
}

country_event = { #A Decisive Show of Power #high milhost
	id = IBR.5857
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5857" }
	picture = GFX_report_event_IBR_carneiro_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5857.t
	desc = IBR.5857.d
	option = {
		name = IBR.5857.a
		ai_chance = { factor = 10 }

		IBR_add_5_soclib = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 2
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_big_tt

		set_country_flag = IBR_soclib_politial_connections

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_soclib_aas_decent
					has_country_flag = IBR_soclib_aas_good
				}
				has_country_flag = IBR_soclib_congress_protected
			}
			set_variable = {
				var = IBRMilitaryHostility
				value = 9
			}
			IBR_check_military_hostility_events = yes
		}
	}
}

country_event = { #A Decisive Show of Power #low milhost
	id = IBR.5858
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5858" }
	picture = GFX_report_event_IBR_carneiro_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5858.t
	desc = IBR.5858.d
	option = {
		name = IBR.5858.a
		ai_chance = { factor = 10 }

		IBR_add_5_soclib = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = -1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		set_country_flag = IBR_soclib_politial_connections

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_soclib_aas_decent
					has_country_flag = IBR_soclib_aas_good
				}
				has_country_flag = IBR_soclib_congress_protected
			}
			set_variable = {
				var = IBRMilitaryHostility
				value = 9
			}
			IBR_check_military_hostility_events = yes
		}
	}
}

country_event = { #Building a Lasting Partnership
	id = IBR.5859
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5859" }
	picture = GFX_report_event_IBR_torcuato
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5859.t
	desc = IBR.5859.d
	option = {
		name = IBR.5859.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRMilitaryHostility
			value = -1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		set_country_flag = IBR_soclib_politial_connections

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_soclib_aas_decent
					has_country_flag = IBR_soclib_aas_good
				}
				has_country_flag = IBR_soclib_congress_protected
			}
			set_variable = {
				var = IBRMilitaryHostility
				value = 9
			}
			IBR_check_military_hostility_events = yes
		}
	}
}

country_event = { #Military Senses Weakness
	id = IBR.5860
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5860" }
	picture = GFX_report_event_IBR_torcuato
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5860.t
	desc = IBR.5860.d
	option = {
		name = IBR.5860.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 2
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_big_tt

		set_country_flag = IBR_soclib_politial_connections

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_soclib_aas_decent
					has_country_flag = IBR_soclib_aas_good
				}
				has_country_flag = IBR_soclib_congress_protected
			}
			set_variable = {
				var = IBRMilitaryHostility
				value = 9
			}
			IBR_check_military_hostility_events = yes
		}
	}
}

##Coup attempt chain

country_event = {
	id = IBR.808
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.808" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.808.t
	desc = IBR.808.d
	immediate = {
		set_country_flag = IBR_in_crisis
	}
	option = {
		name = IBR.808.a
		ai_chance = { factor = 10 }
		# Probably a fake, but investigate it.

		if = {
			limit = {
				OR = {
					AND = {
						has_country_flag = IBR_soclib_aas_good
						has_country_flag = IBR_soclib_aas_decent
						has_game_rule = { rule = IBR_LIBERAL_COUP option = DEFAULT }
					}
					has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_FAIL }
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.809
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.811
					days = 6
				}
			}
		}
	}
	option = { # Increase security around our Deputies.
		name = IBR.808.b
		ai_chance = { factor = 10 }

		if = {
			limit = {
				OR = {
					AND = {
						has_country_flag = IBR_soclib_congress_protected
						has_game_rule = { rule = IBR_LIBERAL_COUP option = DEFAULT }
					}
					has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_FAIL }
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.810
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.811
					days = 6
				}
			}
		}
	}
	option = { # Perhaps those officers can get a surprise re-assignment...
		name = IBR.808.c
		ai_chance = { factor = 10 }

		if = {
			limit = {
				OR = {
					AND = {
						has_country_flag = IBR_soclib_politial_connections
						has_game_rule = { rule = IBR_LIBERAL_COUP option = DEFAULT }
					}
					has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_FAIL }
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5861
					days = 12
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.811
					days = 6
				}
			}
		}
	}
}

country_event = { #Rogue Military Units Attack House Of Deputies! they fail cause axencia
	id = IBR.809
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.809" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.809.t
	desc = IBR.809.d
	option = {
		name = IBR.809.a
		ai_chance = { factor = 10 }

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.812
				days = 2
			}
		}
	}
}

country_event = { #Rogue Military Units Attack House Of Deputies! (they fail cause protected congress)
	id = IBR.810
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.810" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.810.t
	desc = IBR.810.d
	option = {
		name = IBR.810.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.812
				days = 2
			}
		}
	}
}


country_event = { #Rogue Military Units Attack House Of Deputies! (they fail cause political connections)
	id = IBR.5861
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5861" }
	picture = GFX_report_event_IBR_military_police
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5861.t
	desc = IBR.5861.d
	option = { #
		name = IBR.5861.a
		ai_chance = { factor = 10 }

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.812
				days = 2
			}
		}
	}
}

country_event = { #Rogue Military Units Attack House Of Deputies! (they succeed)
	id = IBR.811
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.811" }
	picture = GFX_report_event_IBR_coup_attempt
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.811.t
	desc = IBR.811.d
	option = {
		name = IBR.811.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.812
				days = 2
			}
		}
		set_country_flag = IBR_soclib_house_lost
	}
}

country_event = { #Irregular Assistance?
	id = IBR.812
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.812" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.812.t
	desc = IBR.812.d
	option = { # Turn a blind eye.
		name = IBR.812.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_CIVIL_WAR }
			}
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_SUCCESS }
			}
		}

		add_popularity = {
			ideology = socialist
			popularity = 0.05
		}
		if = {
			limit = {
				OR = {
					AND = {
						check_variable = { IBRSoclibReforms > 2 }
						has_game_rule = { rule = IBR_LIBERAL_COUP option = DEFAULT }
					}
					has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_FAIL }
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5862
					days = 2
				}
			}
			set_country_flag = IBR_soclib_leftists_epic
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5863
					days = 2
				}
			}
			set_country_flag = IBR_soclib_leftists_cringe
		}
	}
	option = { # The rule of law is crucial.
		name = IBR.812.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_FAIL }
			}
		}

		add_popularity = {
			ideology = socialist
			popularity = -0.01
		}

		if = {
			limit = {
				has_country_flag = IBR_soclib_house_lost
			}
			hidden_effect = {
				country_event = {
					id = IBR.5864
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.813
					days = 3
				}
			}
		}
	}
}

country_event = { #Leftists Rise Up in the Streets
	id = IBR.5862
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5862" }
	picture = GFX_report_event_IBR_cnt_barricades
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5862.t
	desc = IBR.5862.d
	option = { #
		name = IBR.5862.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_soclib_house_lost
			}
			hidden_effect = {
				country_event = {
					id = IBR.5864
					days = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.813
					days = 1
				}
			}
		}
	}
}

country_event = { #Little Enthusiasm Among Leftists
	id = IBR.5863
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5863" }
	picture = GFX_report_event_IBR_madrid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5863.t
	desc = IBR.5863.d
	option = { #
		name = IBR.5863.a
		ai_chance = { factor = 10 }

		add_stability = -0.05

		if = {
			limit = {
				has_country_flag = IBR_soclib_house_lost
			}
			hidden_effect = {
				country_event = {
					id = IBR.5864
					days = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.813
					days = 1
				}
			}
		}
	}
}

country_event = { #The Battle Of Madrid (after winning chamber of deputies)
	id = IBR.813
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.813" }
	picture = GFX_report_event_IBR_iberian_wars_10
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.813.t
	desc = IBR.813.d
	option = {
		name = IBR.813.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				has_country_flag = IBR_soclib_politial_connections
				has_country_flag = IBR_soclib_congress_protected
				OR = {
					has_country_flag = IBR_soclib_aas_good
					has_country_flag = IBR_soclib_aas_decent
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.819
					days = 5
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBR_soclib_leftists_epic
			}

			hidden_effect = {
				country_event = {
					id = IBR.5865
					days = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5866
					days = 5
				}
			}
		}
	}
}

country_event = { #The Battle Of Madrid (after losing chamber of deputies)
	id = IBR.5864
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5864" }
	picture = GFX_report_event_IBR_iberian_wars_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5864.t
	desc = IBR.5864.d
	option = { #
		name = IBR.5864.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				OR = {
					AND = {
						has_country_flag = IBR_soclib_leftists_cringe
						has_game_rule = { rule = IBR_LIBERAL_COUP option = DEFAULT }
					}
					has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_SUCCESS }
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5868
					days = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5867
					days = 5
				}
			}
		}
	}
}

country_event = { #Clearing the City
	id = IBR.5865
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5865" }
	picture = GFX_report_event_IBR_iberian_wars_6
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5865.t
	desc = IBR.5865.d
	option = { #
		name = IBR.5865.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			random_list = {
				80 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_CIVIL_WAR }
					}
					country_event = {
						id = IBR.819
						days = 4
					}
				}
				20 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_FAIL }
					}
					country_event = {
						id = IBR.820
						days = 4
					}
				}
			}
		}
	}
}

country_event = { #Our Grip Slipping
	id = IBR.5866
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5866" }
	picture = GFX_report_event_IBR_iberian_wars_5
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5866.t
	desc = IBR.5866.d
	option = { #
		name = IBR.5866.a
		ai_chance = { factor = 10 }


		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.820
				days = 5
			}
		}
	}
}

country_event = { #Regaining Important Ground
	id = IBR.5867
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5867" }
	picture = GFX_report_event_IBR_iberian_wars_11
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5867.t
	desc = IBR.5867.d
	option = { #
		name = IBR.5867.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.820
				days = 5
			}
		}
	}
}

country_event = { #A Dire Situation
	id = IBR.5868
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5868" }
	picture = GFX_report_event_IBR_barcelona_rubble
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5868.t
	desc = IBR.5868.d
	option = { #
		name = IBR.5868.a
		ai_chance = { factor = 10 }

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			random_list = {
				80 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_CIVIL_WAR }
					}
					country_event = {
						id = IBR.818
						days = 4
					}
				}
				20 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_SUCCESS }
					}
					country_event = {
						id = IBR.820
						days = 4
					}
				}
			}
		}
	}
}

country_event = { #Hunting Down The Perpetrators
	id = IBR.814
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.814" }
	picture = GFX_report_event_IBR_torcuato
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.814.t
	desc = IBR.814.d
	option = {
		name = IBR.814.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = IBR.815
						days = 3
					}
				}
				50 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_LIBERAL_COUP option = IBR_LIBERAL_COUP_SUCCESS }
					}
					country_event = {
						id = IBR.816
						days = 3
					}
				}
			}
		}
	}
}

country_event = { #The Officers Are Captured
	id = IBR.815
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.815" }
	picture = GFX_report_event_IBR_pide_arrest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.815.t
	desc = IBR.815.d
	option = {
		name = IBR.815.a
		ai_chance = { factor = 10 }
		# Put them on trial!
		country_event = {
			id = IBR.817
			days = 3
		}
	}
}

country_event = { #Renegade Officers Flee The Country
	id = IBR.816
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.816" }
	picture = GFX_report_event_IND_plane
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.816.t
	desc = IBR.816.d
	option = {
		name = IBR.816.a
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}

country_event = { #The Officers' Trial
	id = IBR.817
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.817" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.817.t
	desc = IBR.817.d
	option = {
		name = IBR.817.a
		ai_chance = { factor = 10 }
		# Sentence them to prison

		IBR_add_10_soclib = yes
		IBR_sub_10_soccon = yes
	}
	option = {
		name = IBR.817.b
		ai_chance = { factor = 10 }
		# Sentence them to death

		IBR_add_10_soclib = yes
		IBR_sub_10_socdem = yes
	}
}

country_event = { #The Battle Is Lost
	id = IBR.818
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.818" }
	picture = GFX_report_event_IBR_falange_standard_bearers
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.818.t
	desc = IBR.818.d
	immediate = { set_country_flag = IBR_soclib_coup_happened }
	option = {
		name = IBR.818.a
		ai_chance = { factor = 10 }

		IBR = {
			set_cosmetic_tag = IBR_MILITARYCOUP
			set_party_name = {
				ideology = fascism
				long_name = IBR_fascism_coup_long
				name = IBR_fascism_coup
			}
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_country_leader_role = {
				character = IBR_Alfonso_Armada
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_ALFONSO_ARMADA_DESC"
					ideology = fascism_falangism_subtype
					traits = { }
					expire = "1994.4.20"
					id = -1
				}
			}
		}
		add_popularity = {
			ideology = fascism
			popularity = 0.3
		}
		add_popularity = {
			ideology = despotism
			popularity = -0.2
		}
		add_popularity = {
			ideology = anocracy
			popularity = -0.05
		}
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
		clr_country_flag = IBR_soclib_politial_connections
		clr_country_flag = IBR_soclib_congress_protected
		clr_country_flag = IBR_soclib_aas_good
		clr_country_flag = IBR_soclib_aas_decent
		clr_country_flag = IBRDemUnion

		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.1500
					days = 1
				}
			}
			TNO_Country_Closing_Screen_Show = yes
		}
		custom_effect_tooltip = IBR_iberia_closing_screen_tt
	}
}

country_event = { #The Battle Is Won!
	id = IBR.819
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.819" }
	picture = GFX_report_event_IBR_madrid_plaza_de_oriente
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.819.t
	desc = IBR.819.d
	immediate = { set_country_flag = IBR_soclib_coup_happened }
	option = {
		name = IBR.819.a
		ai_chance = { factor = 10 }
		# Victory!
		country_event = {
			id = IBR.814
			days = 3
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_stability = -0.05
		custom_effect_tooltip = IBR_sub_stability_small_tt
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
		clr_country_flag = IBR_in_crisis
		clr_country_flag = IBR_soclib_politial_connections
		clr_country_flag = IBR_soclib_congress_protected
		clr_country_flag = IBR_soclib_aas_good
		clr_country_flag = IBR_soclib_aas_decent

		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.1502
					days = 1
				}
			}
		}
	}
}

country_event = { #Counter-Coup In Eastern Iberia!
	id = IBR.820
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.820" }
	picture = GFX_report_event_IBR_falange_rally
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.820.t
	desc = IBR.820.d
	immediate = {
		hidden_effect = {
			set_country_flag = IBR_soclib_coup_happened
			clr_country_flag = IBR_soclib_politial_connections
			clr_country_flag = IBR_soclib_congress_protected
			clr_country_flag = IBR_soclib_aas_good
			clr_country_flag = IBR_soclib_aas_decent
			every_character = {
				limit = {
					has_character_flag = falangist_uprising_character
				}
				set_nationality = SPA
			}
			GNS = { GNS_Jose_Manuel_Bettencourt_Rodrigues = { set_nationality = SPA } }
			SPR = { SPR_Guillermo_Quintana = { set_nationality = IBR } }
			SPR = { SPR_Alvaro_Lacalle = { set_nationality = IBR } }
			SPR = { SPR_Jose_Rodrigo = { set_nationality = IBR } }
			SPR = { SPR_Guillermo_Quintana = { set_nationality = IBR } }
			RPP = { RPP_Otelo_Saraiva_de_Carvalho = { set_nationality = IBR } }
			RPP = { RPP_Fernando_Salgueiro = { set_nationality = IBR } }
			SPA = {
				IBR_Alfonso_Armada = {
					promote_leader = yes
				}
				add_field_marshal_role = {
					character = IBR_Kaulza_de_Arriaga
					traits = { offensive_doctrine }
					skill = 3
					attack_skill = 3
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 3
					legacy_id = 1580
				}
			}
			IBR = {
				add_corps_commander_role = {
					character = IBR_Manuel_Gutierrez
					traits = { }
					skill = 3
					attack_skill = 5
					defense_skill = 4
					planning_skill = 1
					logistics_skill = 3
					legacy_id = 1582
				}
			}
		}
	}
	option = {
		name = IBR.820.a
		ai_chance = { factor = 10 }
		# No Pasaran!
		SPA = {
			#set_cosmetic_tag = SPA_MILITARYCOUP
			set_cosmetic_tag = IBR_MILITARYCOUP
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_country_leader_role = {
				character = IBR_Alfonso_Armada
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_ALFONSO_ARMADA_DESC"
					ideology = fascism_falangism_subtype
					traits = { }
					expire = "1994.4.20"
					id = -1
				}
			}
			set_country_flag = IberianCivilWar2
		}
		hidden_effect = {
			SPA = {
				transfer_state = 998
				transfer_state = 181
				transfer_state = 997
				transfer_state = 180
				transfer_state = 171
				transfer_state = 174
				transfer_state = 995
				transfer_state = 172
				transfer_state = 996
				transfer_state = 170
				transfer_state = 1001
				transfer_state = 41
				transfer_state = 176
				transfer_state = 999
				transfer_state = 175
				transfer_state = 994
				every_owned_state = {
					add_core_of = SPA
				}
				add_popularity = {
					ideology = fascism
					popularity = 0.3
				}
				inherit_technology = IBR
				load_oob = SPA_MilitaryCoup
			}
		}
		SPA = {
			declare_war_on = {
				target = IBR
				type = civil_war
			}
		}
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.1501
					days = 1
				}
			}
		}
		set_country_flag = IberianCivilWar2
	}
	option = {
		name = IBR.820.b
		ai_chance = { factor = 10 }
		# Arriba Iberia!
		SPA = {
			#set_cosmetic_tag = SPA_MILITARYCOUP
			set_cosmetic_tag = IBR_MILITARYCOUP
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_country_leader_role = {
				character = IBR_Alfonso_Armada
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_ALFONSO_ARMADA_DESC"
					ideology = fascism_falangism_subtype
					traits = { }
					expire = "1994.4.20"
					id = -1
				}
			}
			change_tag_from = IBR
		}
		hidden_effect = {
			SPA = {
				transfer_state = 998
				transfer_state = 181
				transfer_state = 997
				transfer_state = 180
				transfer_state = 171
				transfer_state = 174
				transfer_state = 995
				transfer_state = 172
				transfer_state = 996
				transfer_state = 170
				transfer_state = 1001
				transfer_state = 41
				transfer_state = 176
				transfer_state = 999
				transfer_state = 175
				transfer_state = 994
				every_owned_state = {
					add_core_of = SPA
				}
				set_country_flag = IberianCivilWar2
				add_popularity = {
					ideology = fascism
					popularity = 0.3
				}
				inherit_technology = IBR
				load_oob = SPA_MilitaryCoup
			}
		}
		SPA = {
			declare_war_on = {
				target = IBR
				type = civil_war
			}
		}
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.1501
					days = 1
				}
			}
		}
		set_country_flag = IberianCivilWar2
	}
}

country_event = {
	id = IBR.821
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.821" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.821.t
	desc = IBR.821.d
	option = {
		name = IBR.821.a
		ai_chance = { factor = 10 }
		# No Pasaran!
	}
}

country_event = {
	id = IBR.822
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.822" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.822.t
	desc = IBR.822.d
	option = {
		name = IBR.822.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			SPA = { IBR_Alfonso_Armada = { set_nationality = IBR } }
			delete_unit_template_and_units = {
				division_template = "Brigada de Reserva"
			}
			IBR = {
				set_cosmetic_tag = IBR_MILITARYCOUP
			}
			IBR = {
				set_politics = {
					ruling_party = fascism
					elections_allowed = no
				}
			}
			IBR = {
				annex_country = {
					target = SPA
					transfer_troops = yes
				}
			}
			IBR = {
				change_tag_from = SPA
			}
			IBR = {
				set_party_name = {
					ideology = fascism
					long_name = IBR_fascism_coup_long
					name = IBR_fascism_coup
				}
				add_country_leader_role = {
					character = IBR_Alfonso_Armada
					promote_leader = yes
					country_leader = {
						desc = "POLITICS_ALFONSO_ARMADA_DESC"
						ideology = fascism_falangism_subtype
						traits = { }
						expire = "1994.4.20"
						id = -1
					}
				}
				TNO_Country_Closing_Screen_Show = yes
			}
		}
		custom_effect_tooltip = IBR_iberia_closing_screen_tt
		IBR = {
			add_popularity = {
				ideology = fascism
				popularity = 0.2
			}
			add_popularity = {
				ideology = despotism
				popularity = -0.2
			}
			add_popularity = {
				ideology = anocracy
				popularity = -0.05
			}
		}
		clr_country_flag = IberianCivilWar2
	}
}

####Load the Death of Franco tree #
###################################
###################################

country_event = { #Death of Franco Union Edition���
	id = IBR.623
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.623" }
	picture = GFX_report_event_IBR_franco_dead
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	immediate = {
		hidden_effect = {
			set_country_flag = IBR_franco_ded
		}
	}
	title = IBR.623.t
	desc = IBR.623.d
	trigger = {
		tag = IBR
		has_country_leader = {
			character = IBR_Francisco_Franco
			ruling_only = yes
		}
		date > 1974.6.5
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.623.a
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRDespotistUnion }

		add_stability = -0.075
		add_political_power = -100
		kill_country_leader = yes
		create_country_leader = {
			name = IBR_Alejandro_Valcarcel
			#desc = "POLITICS_ALEJANDRO_DE_VALCARCEL_DESC"
			picture = "gfx/leaders/IBR/Portrait_Iberia_Alejandro_Rodriguez_de_Valcarcel.png"
			expire = "1975.10.20"
			ideology = despotism_civilian_dictatorship_subtype
			traits = {
				#
			}
		}
		hidden_effect = {
			SPA = {
				create_country_leader = {
					name = IBR_Alejandro_Valcarcel
					#desc = "POLITICS_ALEJANDRO_DE_VALCARCEL_DESC"
					picture = "gfx/leaders/IBR/Portrait_Iberia_Alejandro_Rodriguez_de_Valcarcel.png"
					expire = "1975.10.20"
					ideology = despotism_civilian_dictatorship_subtype
					traits = {
						#
					}
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
				NOT = { has_global_flag = Iberian_Wars }
			}
			hidden_effect = {
				country_event = {
					id = IBR.1022
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBRDespotistUnion
				NOT = {
					AND = {
						has_country_flag = IBR_despotist_good_ending_1
						has_country_flag = IBR_despotist_good_ending_2
					}
					AND = {
						has_country_flag = IBR_despotist_good_ending_1
						has_country_flag = IBR_despotist_good_ending_3
					}
					AND = {
						has_country_flag = IBR_despotist_good_ending_2
						has_country_flag = IBR_despotist_good_ending_3
					}
				}
				NOT = { has_country_flag = IBR_Iberian_Wars_have_happened }
			}
			hidden_effect = {
				country_event = {
					id = IBR.1022
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBRAuthDemUnion
				NOT = {
					has_country_flag = IBR_auth_union_finished_tree
				}
				NOT = { has_country_flag = IBR_Iberian_Wars_have_happened }
			}
			hidden_effect = {
				country_event = {
					id = IBR.1022
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBRAuthDemUnion
				NOT = { has_country_flag = IBR_Iberian_Wars_have_happened }
			}
			custom_effect_tooltip = IBR_authunion_goodending
			country_event = {
				id = IBR.1110
				days = 7
			}

		}
		else_if = {
			limit = {
				has_country_flag = IBRDespotistUnion
				NOT = { has_country_flag = IBR_Iberian_Wars_have_happened }
			}
			custom_effect_tooltip = IBR_despotistunion_goodending
			country_event = {
				id = IBR.1110
				days = 7
			}

		}
	}
	option = {
		name = IBR.623.b
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRAuthDemCongress }

		add_political_power = -75
		add_stability = -0.05
		if = {
			limit = { has_country_flag = IBR_auth_congress_finished_tree }

			clr_country_flag = IBR_auth_congress_finished_tree

			hidden_effect = {
				kill_country_leader = yes
			}
			create_country_leader = {
				name = IBR_Antonio_Spinola
				desc = "POLITICS_ANTONIO_SPINOLA_DESC"
				picture = "Portrait_Iberia_Antonio_Spinola.png"
				expire = "1975.10.20"
				ideology = anocracy_national_conservatism_subtype
				traits = {
					#
				}
			}

			hidden_effect = {
				every_country = {
					limit = { is_ai = no }
					news_event = {
						id = WORLD.1504
						days = 1
					}
				}
			}
			set_country_flag = IBR_in_crisis
			TNO_Country_Closing_Screen_Show = yes
			custom_effect_tooltip = IBR_iberia_closing_screen_tt
		}
		else = {

			kill_country_leader = yes
			create_country_leader = {
				name = IBR_Alejandro_Valcarcel
				#desc = "POLITICS_ALEJANDRO_DE_VALCARCEL_DESC"
				picture = "gfx/leaders/IBR/Portrait_Iberia_Alejandro_Rodriguez_de_Valcarcel.png"
				expire = "1975.10.20"
				ideology = anocracy_national_conservatism_subtype
				traits = {
					#
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.1022
					days = 3
				}
			}
		}
	}
}

###################################
####Alianza Popular 1970 events####
###################################

country_event = {
	id = IBR.624
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.624" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.624.t
	desc = IBR.624.d
	option = {
		name = IBR.624.a
		ai_chance = { factor = 10 }

		add_political_power = -10
	}
}

country_event = { #token autonomy
	id = IBR.625
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.625" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.625.t
	desc = IBR.625.d
	option = {
		name = IBR.625.a
		ai_chance = { factor = 10 }

		add_political_power = 25
		IBR_add_5_soccon = yes

		hidden_effect = {
			if = {
				limit = { NOT = { has_country_flag = soccon_completed_cultural_diversity } }
				country_event = {
					id = IBR.5058
					days = 3
				}
			}
		}
	}
}

country_event = {
	id = IBR.626
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.626" }
	picture = GFX_report_event_IBR_cow_in_field
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.626.t
	desc = IBR.626.d
	option = {
		name = IBR.626.a
		ai_chance = { factor = 10 }

		add_stability = 0.01
	}
}

country_event = {
	id = IBR.628
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.628" }
	picture = GFX_report_event_IBR_palasi
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.628.t
	desc = IBR.628.d
	option = {
		name = IBR.628.a
		ai_chance = { factor = 10 }

		IBR_add_3_soccon = yes

		TNO_improve_education_policy_effectiveness_med = yes
	}
}

country_event = {
	id = IBR.629
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.629" }
	picture = GFX_report_event_IBR_opus_dei_lads
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.629.t
	desc = IBR.629.d
	option = { #Focus the review on their financial connections
		name = IBR.629.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5054
				days = 6
			}
		}
	}
	option = { #Focus the review on their political connections
		name = IBR.629.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5055
				days = 5
			}
		}
	}
}

country_event = {
	id = IBR.630
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.630" }
	picture = GFX_report_event_IBR_fraga_and_verstrynge
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.630.t
	desc = IBR.630.d
	option = {
		name = IBR.630.a
		ai_chance = { factor = 10 }
		add_political_power = -25

		IBR_add_5_soccon = yes
	}
	option = {
		name = IBR.630.b
		ai_chance = { factor = 10 }
		add_political_power = 25

		if = {
			limit = {
				NOT = {
					has_idea = tno_gender_rights_women_in_the_workplace
				}
			}
			tno_gender_rights_improve = yes
			TNO_worsen_gender_rights_policy_effectiveness_low = yes
		}
		else = {
			TNO_worsen_gender_rights_policy_effectiveness_low = yes
		}

		IBR_add_5_soclib = yes

		set_temp_variable = { gdp_growth_temp = 0.3 } #already converted to percent
		econ_gdp_growth_change = yes
	}
}

country_event = {
	id = IBR.631
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.631" }
	picture = GFX_report_event_generic_court_case_1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.631.t
	desc = IBR.631.d
	option = {
		name = IBR.631.a
		ai_chance = { factor = 10 }
		add_stability = 0.03
		IBR_add_3_soccon = yes
		if = {
			limit = {
				NOT = {
					has_idea = tno_penal_system_incarceration
				}
			}
			add_ideas = tno_penal_system_incarceration
			TNO_improve_penal_system_policy_effectiveness_med = yes
		}
		else = {
			TNO_improve_penal_system_policy_effectiveness_med = yes
		}
	}
}

country_event = {
	id = IBR.632
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.632" }
	picture = GFX_report_event_IBR_fraga
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.632.t
	desc = IBR.632.d
	option = {
		name = IBR.632.a
		ai_chance = { factor = 10 }
		IBR_sub_15_authdem = yes
	}
}

country_event = { #Flavor event for Renew Catholicism
	id = IBR.5050
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5050" }
	picture = GFX_report_event_IBR_catholic_bible
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5050.t
	desc = IBR.5050.d
	option = { #Keep the message more conservative
		name = IBR.5050.a
		ai_chance = { factor = 10 }

		IBR_add_5_soccon = yes
	}
	option = { #Opus Dei has some good ideas
		name = IBR.5050.b
		ai_chance = { factor = 10 }

		IBR_add_5_marklib = yes
		set_country_flag = soccon_opus_dei_good_ideas
	}
}

country_event = { #Flavor event for "Registry of Political Parties"
	id = IBR.5051
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5051" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5051.t
	desc = IBR.5051.d
	option = {
		name = IBR.5051.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Flavor event for "Ley de Prensa e Imprenta"
	id = IBR.5052
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5052" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5052.t
	desc = IBR.5052.d
	option = {
		name = IBR.5052.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Flavor event for "Registry of Dawn of a New Era"
	id = IBR.5053
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5053" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5053.t
	desc = IBR.5053.d
	option = {
		name = IBR.5053.a
		ai_chance = { factor = 10 }
	}
}
#Soccon 1970 reaction events

country_event = { #Opus Dei Audit Finds Nothing of Note
	id = IBR.5054
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5054" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5054.t
	desc = IBR.5054.d
	option = {
		name = IBR.5054.a
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}
#629 leads to this!!!
country_event = { #A Connection Between PRD and Opus Dei?
	id = IBR.5055
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5055" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5055.t
	desc = IBR.5055.d
	option = { #Play by the rules
		name = IBR.5055.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5054
				days = 1
			}
		}
	}
	option = { #Some unorthodox methods could be applied...
		name = IBR.5055.b
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = soccon_opus_dei_good_ideas }

			hidden_effect = {
				country_event = {
					id = IBR.5056
					days = 5
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5057
					days = 5
				}
			}
		}
	}
}

country_event = { #Connection between Opus Dei and PRD revealed
	id = IBR.5056
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5056" }
	picture = GFX_report_event_IBR_ullastres_calvo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5056.t
	desc = IBR.5056.d
	option = {
		name = IBR.5056.a
		ai_chance = { factor = 10 }

		add_political_power = 50
		IBR_sub_20_marklib = yes
	}
}

country_event = { #Opus Dei Mole Doublecrosses Us
	id = IBR.5057
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5057" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5057.t
	desc = IBR.5057.d
	option = {
		name = IBR.5057.a
		ai_chance = { factor = 10 }

		add_political_power = -100
		IBR_sub_15_soccon = yes
		IBR_add_5_marklib = yes
	}
}

country_event = { #Protests in Minority Regions
	id = IBR.5058
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5058" }
	picture = GFX_report_event_IBR_basque_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5058.t
	desc = IBR.5058.d
	option = {
		name = IBR.5058.a
		ai_chance = { factor = 10 }

		add_political_power = -50
		IBR_sub_15_soccon = yes

		add_to_variable = {
			IBR_CNT_Support = 1
		}
		add_to_variable = {
			IBR_ETA_Support = 1
		}
		add_to_variable = {
			IBR_TBA_Support = 1
		}
		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Generals Deem Demilitarization a Failure
	id = IBR.5059
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5059" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5059.t
	desc = IBR.5059.d
	option = {
		name = IBR.5059.a
		ai_chance = { factor = 10 }

		add_political_power = -50
		IBR_sub_10_soccon = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		add_to_variable = {
			var = IBR_CNT_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 1
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_activity_small_tt
		custom_effect_tooltip = IBR_add_eta_activity_small_tt
		custom_effect_tooltip = IBR_add_tba_activity_small_tt
		custom_effect_tooltip = IBR_add_fslp_activity_small_tt
	}
}

country_event = { #New Ways of Tackling Terrorism?
	id = IBR.5060
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5060" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5060.t
	desc = IBR.5060.d
	option = { #Keep things clean
		name = IBR.5060.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				AND = {
					has_country_flag = soccon_completed_cultural_diversity
					has_country_flag = soccon_completed_token_autonomy
				}
			}
			add_political_power = -50
			add_stability = -0.05
			add_to_variable = {
				IBR_CNT_Support = 1
			}
			add_to_variable = {
				IBR_ETA_Support = 1
			}
			add_to_variable = {
				IBR_TBA_Support = 1
			}
			add_to_variable = {
				IBR_FSLP_Support = 1
			}
			IBR_terror_vunerable_check = yes

			custom_effect_tooltip = IBR_add_cnt_support_small_tt
			custom_effect_tooltip = IBR_add_eta_support_small_tt
			custom_effect_tooltip = IBR_add_fslp_support_small_tt
			custom_effect_tooltip = IBR_add_tba_support_small_tt

		}
		else_if = {
			limit = {
				OR = {
					has_country_flag = soccon_completed_cultural_diversity
					has_country_flag = soccon_completed_token_autonomy
				}
			}
			add_political_power = -100
			add_stability = -0.1
			add_to_variable = {
				IBR_CNT_Support = 2
			}
			add_to_variable = {
				IBR_ETA_Support = 2
			}
			add_to_variable = {
				IBR_TBA_Support = 2
			}
			add_to_variable = {
				IBR_FSLP_Support = 2
			}
			IBR_terror_vunerable_check = yes

			custom_effect_tooltip = IBR_add_cnt_support_mid_tt
			custom_effect_tooltip = IBR_add_eta_support_mid_tt
			custom_effect_tooltip = IBR_add_fslp_support_mid_tt
			custom_effect_tooltip = IBR_add_tba_support_mid_tt
		}
		else = {

			add_political_power = -150
			add_stability = -0.15
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			add_to_variable = {
				IBR_CNT_Support = 3
			}
			add_to_variable = {
				IBR_ETA_Support = 3
			}
			add_to_variable = {
				IBR_TBA_Support = 3
			}
			add_to_variable = {
				IBR_FSLP_Support = 3
			}
			IBR_terror_vunerable_check = yes

			custom_effect_tooltip = IBR_sub_stability_small_tt
			custom_effect_tooltip = IBR_add_cnt_support_big_tt
			custom_effect_tooltip = IBR_add_eta_support_big_tt
			custom_effect_tooltip = IBR_add_fslp_support_big_tt
			custom_effect_tooltip = IBR_add_tba_support_big_tt
		}
	}
	option = { #Liquidate them in prison
		name = IBR.5060.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5061
				days = 3
			}
		}
	}
	option = { #Hire hitmen to get rid of them
		name = IBR.5060.c
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5066
				days = 3
			}
		}
	}
}

country_event = { #Mass Arrests of Suspected Terrorists
	id = IBR.5061
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5061" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5061.t
	desc = IBR.5061.d
	option = {
		name = IBR.5061.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBR_CNT_Activity = -0.2
		}
		add_to_variable = {
			IBR_ETA_Activity = -0.2
		}
		add_to_variable = {
			IBR_TBA_Activity = -0.2
		}
		add_to_variable = {
			IBR_FSLP_Activity = -0.2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5062
				days = 1
			}
		}
	}
}

country_event = { #Prison Killings Begin
	id = IBR.5062
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5062" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5062.t
	desc = IBR.5062.d
	option = {
		name = IBR.5062.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBR_CNT_Activity = -0.5
		}
		add_to_variable = {
			IBR_ETA_Activity = -0.5
		}
		add_to_variable = {
			IBR_TBA_Activity = -0.5
		}
		add_to_variable = {
			IBR_FSLP_Activity = -0.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5063
				days = 3
			}
		}
	}
}

country_event = { #Prison Riot
	id = IBR.5063
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5063" }
	picture = GFX_report_event_IBR_carabanchel_prison
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5063.t
	desc = IBR.5063.d
	option = {
		name = IBR.5063.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
			check_variable = {
				IBR_AAS_Resources > 6
			}
		}
			hidden_effect = {
				country_event = {
					id = IBR.5065
					days = 1
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5064
					days = 1
				}
			}
		}
	}
}

country_event = { #Raid causes massacre
	id = IBR.5064
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5064" }
	picture = GFX_report_event_IBR_carabanchel_prison
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5064.t
	desc = IBR.5064.d
	option = {
		name = IBR.5064.a
		ai_chance = { factor = 10 }

		add_political_power = -150
		add_stability = -0.15

		IBR_sub_30_soccon = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		add_to_variable = {
			IBR_CNT_Support = 3
		}
		add_to_variable = {
			IBR_ETA_Support = 3
		}
		add_to_variable = {
			IBR_TBA_Support = 3
		}
			add_to_variable = {
			IBR_FSLP_Support = 3
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_add_eta_support_big_tt
		custom_effect_tooltip = IBR_add_fslp_support_big_tt
		custom_effect_tooltip = IBR_add_tba_support_big_tt
	}
}

country_event = { #Raid successful
	id = IBR.5065
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5065" }
	picture = GFX_report_event_IBR_carabanchel_prison
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5065.t
	desc = IBR.5065.d
	option = {
		name = IBR.5065.a
		ai_chance = { factor = 10 }

		add_political_power = 100

		IBR_add_15_soccon = yes

		add_to_variable = {
			IBR_CNT_Support = -2
		}
		add_to_variable = {
			IBR_ETA_Support = -2
		}
		add_to_variable = {
			IBR_TBA_Support = -2
		}
			add_to_variable = {
			IBR_FSLP_Support = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_support_mid_tt
		custom_effect_tooltip = IBR_sub_eta_support_mid_tt
		custom_effect_tooltip = IBR_sub_fslp_support_mid_tt
		custom_effect_tooltip = IBR_sub_tba_support_mid_tt
	}
}

country_event = { #The Recruits
	id = IBR.5066
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5066" }
	picture = GFX_report_event_IBR_dark_abandoned_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5066.t
	desc = IBR.5066.d
	option = {
		name = IBR.5066.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5067
				days = 7
			}
		}
	}
}

country_event = { #The First Weekly Report
	id = IBR.5067
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5067" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5067.t
	desc = IBR.5067.d
	option = {
		name = IBR.5067.a
		ai_chance = { factor = 10 }


		add_to_variable = {
			IBR_CNT_Activity = -0.5
		}
		add_to_variable = {
			IBR_ETA_Activity = -0.5
		}
		add_to_variable = {
			IBR_TBA_Activity = -0.5
		}
		add_to_variable = {
			IBR_FSLP_Activity = -0.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5068
				days = 3
			}
		}
	}
}

country_event = { #One of the Hitmen is Arrested
	id = IBR.5068
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5068" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5068.t
	desc = IBR.5068.d
	option = { #Pay him off
		name = IBR.5068.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			random_list = {
				30 = {
					country_event = {
						id = IBR.5069
						days = 5
					}
				}
				70 = {}
			}
		}
	}
	option = { #Kill him in jail
		name = IBR.5068.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			random_list = {
				70 = {
					country_event = {
						id = IBR.5071
						days = 4
					}
				}
				30 = {}
			}
		}
	}
}

country_event = { #Hitman Blows the Cover
	id = IBR.5069
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5069" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5069.t
	desc = IBR.5069.d
	option = {
		name = IBR.5069.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		hidden_effect = {
			country_event = {
				id = IBR.5070
				days = 7
			}
		}
	}
}

country_event = { #A Monumental Hearing in the Congress
	id = IBR.5070
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5070" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5070.t
	desc = IBR.5070.d
	option = {
		name = IBR.5070.a
		ai_chance = { factor = 10 }

		add_political_power = -200
		add_stability = -0.2

		subtract_from_variable = { IBRAlianzaPopularPopularity = 40 }

		add_popularity = {
			ideology = conservatism
			popularity = -0.2
		}

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		add_to_variable = {
			IBR_CNT_Support = 4
		}
		add_to_variable = {
			IBR_ETA_Support = 4
		}
		add_to_variable = {
			IBR_TBA_Support = 4
		}
			add_to_variable = {
			IBR_FSLP_Support = 4
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_big_tt
		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_add_eta_support_big_tt
		custom_effect_tooltip = IBR_add_fslp_support_big_tt
		custom_effect_tooltip = IBR_add_tba_support_big_tt
	}
}

country_event = { #Inmate Confesses to Murdering Hitman
	id = IBR.5071
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5071" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5071.t
	desc = IBR.5071.d
	option = {
		name = IBR.5071.a
		ai_chance = { factor = 10 }

		add_political_power = -75
		add_stability = -0.05

		IBR_sub_15_soccon = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		add_to_variable = {
			IBR_CNT_Support = 1
		}
		add_to_variable = {
			IBR_ETA_Support = 1
		}
		add_to_variable = {
			IBR_TBA_Support = 1
		}
			add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}


#### National Union Tree Events

country_event = {
	id = IBR.633
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.633" }
	picture = GFX_report_event_IBR_meeting_small
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.633.t
	desc = IBR.633.d
	option = {
		name = IBR.633.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = IBR.648
						days = 3
					}
				}
				50 = {
					country_event = {
						id = IBR.649
						days = 3
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.634
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.634" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.634.t
	desc = IBR.634.d
	option = {
		name = IBR.634.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				60 = {
					country_event = {
						id = IBR.654
						days = 3
					}
				}
				40 = {
					country_event = {
						id = IBR.655
						days = 3
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.635
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.635" }
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.635.t
	desc = IBR.635.d
	option = {
		name = IBR.635.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					country_event = {
						id = IBR.650
						days = 3
					}
				}
				30 = {
					country_event = {
						id = IBR.651
						days = 3
					}
				}
				30 = {
					country_event = {
						id = IBR.652
						days = 3
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.636
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.636" }
	picture = GFX_report_event_IBR_franco_boomer
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.636.t
	desc = IBR.636.d
	option = {
		name = IBR.636.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.637
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.637" }
	picture = GFX_report_event_IBR_catholic_bible
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.637.t
	desc = IBR.637.d
	option = {
		name = IBR.637.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					country_event = {
						id = IBR.656
						days = 3
					}
				}
				30 = {
					country_event = {
						id = IBR.657
						days = 3
					}
				}
				30 = {
					country_event = {
						id = IBR.658
						days = 3
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.638
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.638" }
	picture = GFX_report_event_IBR_lisbon_tv_station
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.638.t
	desc = IBR.638.d
	option = {
		name = IBR.638.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.639
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.639" }
	picture = GFX_report_event_IBR_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.639.t
	desc = IBR.639.d
	option = {
		name = IBR.639.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.659
				days = 3
			}
		}
	}
}

country_event = {
	id = IBR.640
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.640" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.640.t
	desc = IBR.640.d
	option = {
		name = IBR.640.a
		ai_chance = { factor = 10 }

		add_popularity = {
			ideology = socialist
			popularity = -0.04
		}
		add_popularity = {
			ideology = communist
			popularity = -0.04
		}
		TNO_worsen_political_parties_policy_effectiveness_low = yes
	}
}

country_event = {
	id = IBR.641
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.641" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.641.t
	desc = IBR.641.d
	option = {
		name = IBR.641.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.660
				days = 2
			}
		}
	}
}

country_event = {
	id = IBR.642
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.642" }
	picture = GFX_report_event_IBR_valcarcel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.642.t
	desc = IBR.642.d
	option = {
		name = IBR.642.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.667
			days = 2
		}
	}
}

country_event = {
	id = IBR.643
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.643" }
	picture = GFX_report_event_IBR_sanctuary_fatima
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.643.t
	desc = IBR.643.d
	option = {
		name = IBR.643.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				60 = {
					country_event = {
						id = IBR.668
						days = 3
					}
				}
				40 = {
					country_event = {
						id = IBR.669
						days = 3
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.644
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.644" }
	picture = GFX_report_event_IBR_interview
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.644.t
	desc = IBR.644.d
	option = {
		name = IBR.644.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				check_variable = {
					IBRNationalUnionPopularity > 3
				}
			}
			country_event = {
				id = IBR.671
				days = 3
			}
		}
		else = {
			country_event = {
				id = IBR.670
				days = 3
			}
		}
	}
}

country_event = {
	id = IBR.645
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.645" }
	picture = GFX_report_event_generic_woman_books
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.645.t
	desc = IBR.645.d
	option = {
		name = IBR.645.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.675
			days = 3
		}
	}
}

country_event = {
	id = IBR.646
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.646" }
	picture = GFX_report_event_IBR_valcarcel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.646.t
	desc = IBR.646.d
	option = {
		name = IBR.646.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.676
				days = 3
			}
		}
	}
}

country_event = {
	id = IBR.647
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.647" }
	picture = GFX_report_event_IBR_valcarcel_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.647.t
	desc = IBR.647.d
	option = {
		name = IBR.647.a
		ai_chance = { factor = 10 }

		add_political_power = 25

	}
}

country_event = {
	id = IBR.648
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.648" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.648.t
	desc = IBR.648.d
	option = {
		name = IBR.648.a
		ai_chance = { factor = 10 }
		IBR_sub_5_authdem = yes
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.649
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.649" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.649.t
	desc = IBR.649.d
	option = {
		name = IBR.649.a
		ai_chance = { factor = 10 }
		IBR_add_5_authdem = yes
		add_political_power = 75
		subtract_from_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_sub_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.650
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.650" }
	picture = GFX_report_event_IBR_AAS_logo
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.650.t
	desc = IBR.650.d
	option = {
		name = IBR.650.a
		ai_chance = { factor = 10 }
		add_political_power = -50
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.651
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.651" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.651.t
	desc = IBR.651.d
	option = {
		name = IBR.651.a
		ai_chance = { factor = 10 }
		IBR_sub_5_authdem = yes
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 2
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_big_tt
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.652
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.652" }
	picture = GFX_report_event_IBR_cnt_barcelona_protest_70s
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.652.t
	desc = IBR.652.d
	option = {
		name = IBR.652.a
		ai_chance = { factor = 10 }
		add_political_power = -50
	}
}

country_event = {
	id = IBR.653
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.653" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.653.t
	desc = IBR.653.d
	option = {
		name = IBR.653.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_manpower = -1
		add_stability = -0.05
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.654
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.654" }
	picture = GFX_report_event_generic_burning_books
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.654.t
	desc = IBR.654.d
	option = {
		name = IBR.654.a
		ai_chance = { factor = 10 }
		add_political_power = -25
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.655
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.655" }
	picture = GFX_report_event_IBR_interview
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.655.t
	desc = IBR.655.d
	option = {
		name = IBR.655.a
		ai_chance = { factor = 10 }
		add_political_power = 25
		IBR_add_5_authdem = yes
	}
}

country_event = {
	id = IBR.656
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.656" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.656.t
	desc = IBR.656.d
	option = {
		name = IBR.656.a
		ai_chance = { factor = 10 }
		add_political_power = -25
		IBR_sub_5_authdem = yes
	}
}

country_event = {
	id = IBR.657
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.657" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.657.t
	desc = IBR.657.d
	option = {
		name = IBR.657.a
		ai_chance = { factor = 10 }
		add_political_power = -50
		IBR_sub_5_authdem = yes
		IBR_add_5_soccon = yes
	}
}

country_event = {
	id = IBR.658
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.658" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.658.t
	desc = IBR.658.d
	option = {
		name = IBR.658.a
		ai_chance = { factor = 10 }
		IBR_add_5_authdem = yes
		subtract_from_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_sub_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.659
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.659" }
	picture = GFX_report_event_IBR_portugal_building_crowd
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.659.t
	desc = IBR.659.d
	option = {
		name = IBR.659.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		add_political_power = -25
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.660
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.660" }
	picture = GFX_report_event_generic_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.660.t
	desc = IBR.660.d
	option = {
		name = IBR.660.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.661
				days = 3
			}
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
	option = {
		name = IBR.660.b
		ai_chance = { factor = 10 }

		add_political_power = -50
		IBR_add_3_soclib = yes
	}
}

country_event = {
	id = IBR.661
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.661" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.661.t
	desc = IBR.661.d
	option = {
		name = IBR.661.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.663
				days = 3
			}
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		add_stability = -0.05
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
	option = {
		name = IBR.661.b
		ai_chance = { factor = 10 }
		add_political_power = -75
		IBR_add_5_soclib = yes
	}
}

country_event = {
	id = IBR.662
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.662" }
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.662.t
	desc = IBR.662.d
	option = {
		name = IBR.662.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = IBR.664
						days = 3
					}
				}
				50 = {
					country_event = {
						id = IBR.665
						days = 3
					}
				}
			}
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		IBR_sub_5_soclib = yes
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
	option = {
		name = IBR.662.b
		ai_chance = { factor = 10 }
		add_political_power = -100
		IBR_add_10_soclib = yes
		IBR_add_5_marklib = yes
	}
}

country_event = {
	id = IBR.663
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.663" }
	picture = GFX_report_event_IBR_military_police
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.663.t
	desc = IBR.663.d
	option = {
		name = IBR.663.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.662
				days = 3
			}
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
	option = {
		name = IBR.663.b
		ai_chance = { factor = 10 }
		add_political_power = -100
		IBR_add_10_soclib = yes
	}
}

country_event = {
	id = IBR.664
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.664" }
	picture = GFX_report_event_IBR_basque_protestors_beaten
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.664.t
	desc = IBR.664.d
	option = {
		name = IBR.664.a
		ai_chance = { factor = 10 }
		add_political_power = -50
	}
}

country_event = {
	id = IBR.665
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.665" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.665.t
	desc = IBR.665.d
	option = {
		name = IBR.665.a
		ai_chance = { factor = 10 }
		add_political_power = -50
	}
}

country_event = {
	id = IBR.667
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.667" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.667.t
	desc = IBR.667.d
	option = {
		name = IBR.667.a
		ai_chance = { factor = 10 }

		IBR_sub_3_authdem = yes
	}
}

country_event = {
	id = IBR.668
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.668" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.668.t
	desc = IBR.668.d
	option = {
		name = IBR.668.a
		ai_chance = { factor = 10 }
		IBR_sub_5_authdem = yes
		IBR_add_5_soccon = yes
	}
}

country_event = {
	id = IBR.669
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.669" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.669.t
	desc = IBR.669.d
	option = {
		name = IBR.669.a
		ai_chance = { factor = 10 }
		IBR_sub_5_authdem = yes
		add_political_power = 50
	}
}

country_event = {
	id = IBR.670
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.670" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.670.t
	desc = IBR.670.d
	option = {
		name = IBR.670.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		IBR_sub_5_authdem = yes
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = {
	id = IBR.671
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.671" }
	picture = GFX_report_event_generic_sign_treaty1
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.671.t
	desc = IBR.671.d
	option = {
		name = IBR.671.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.672
				days = 3
			}
		}
	}
}

country_event = {
	id = IBR.672
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.672" }
	picture = GFX_report_event_IBR_democratic_rally
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.672.t
	desc = IBR.672.d
	option = {
		name = IBR.672.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.673
				days = 3
			}
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt

	}
	option = {
		name = IBR.672.b
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.674
			days = 3
		}
	}
}

country_event = {
	id = IBR.673
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.673" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.673.t
	desc = IBR.673.d
	option = {
		name = IBR.673.a
		ai_chance = { factor = 10 }

		set_temp_variable = { econ_centralization_temp = -6 }
		econ_centralization_change = yes

		set_temp_variable = { gdp_growth_temp = -1 } #already converted to percent
		econ_gdp_growth_change = yes

		TNO_worsen_poverty_med = yes

		country_event = {
			id = IBR.674
			days = 3
		}
	}
	option = {
		name = IBR.673.b
		ai_chance = { factor = 10 }

		set_temp_variable = { econ_centralization_temp = 6 }
		econ_centralization_change = yes

		set_temp_variable = { gdp_growth_temp = -1 }
		econ_gdp_growth_change = yes

		TNO_worsen_poverty_med = yes

		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
}

country_event = {
	id = IBR.674
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.674" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.674.t
	desc = IBR.674.d
	option = {
		name = IBR.674.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		set_temp_variable = { econ_centralization_temp = -6 }
		econ_centralization_change = yes

		set_temp_variable = { gdp_growth_temp = 0.6 } #already converted to percent
		econ_gdp_growth_change = yes

		TNO_improve_poverty_low = yes

		IBR_add_5_soccon = yes
	}
}

country_event = {
	id = IBR.675
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.675" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.675.t
	desc = IBR.675.d
	option = {
		name = IBR.675.a
		ai_chance = { factor = 10 }

		add_political_power = -10
	}
}

country_event = {
	id = IBR.676
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.676" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.676.t
	desc = IBR.676.d
	option = {
		name = IBR.676.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.677
				days = 3
			}
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_pop_militancy_big_tt
		custom_effect_tooltip = IBR_sub_stability_small_tt
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 3
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
	}
}

country_event = {
	id = IBR.677
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.677" }
	picture = GFX_report_event_IBR_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.677.t
	desc = IBR.677.d
	option = {
		name = IBR.677.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		IBR_sub_10_soclib = yes
		IBR_sub_5_marklib = yes
		IBR_sub_5_soccon = yes
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
	}
	option = {
		name = IBR.677.b
		ai_chance = { factor = 10 }

		IBR_add_10_soclib = yes
		IBR_add_5_marklib = yes
		IBR_add_5_soccon = yes
	}
}

country_event = {
	id = IBR.678
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.678" }
	picture = GFX_report_event_IBR_fraga
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.678.t
	desc = IBR.678.d
	immediate = {
		set_country_flag = IBR_in_crisis
	}
	option = {
		name = IBR.678.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.679
				days = 3
			}
		}
	}
}

country_event = {
	id = IBR.679
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.679" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.679.t
	desc = IBR.679.d
	option = {
		name = IBR.679.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.680
			days = 3
		}
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
		custom_effect_tooltip = IBR_sub_stability_small_tt
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
	}
	option = {
		name = IBR.679.b
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.681
			days = 3
		}
	}
}

country_event = {
	id = IBR.680
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.680" }
	picture = GFX_report_event_IBR_valcarcel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.680.t
	desc = IBR.680.d
	option = {
		name = IBR.680.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.683
			days = 3
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt
		custom_effect_tooltip = IBR_sub_stability_small_tt
		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
	}
}

country_event = {
	id = IBR.681
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.681" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.681.t
	desc = IBR.681.d
	option = {
		name = IBR.681.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.682
			days = 3
		}
	}
}

country_event = {
	id = IBR.682
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.682" }
	picture = GFX_report_event_IBR_fraga
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.682.t
	desc = IBR.682.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.682.a
		ai_chance = { factor = 10 }
		set_country_flag = IBR_salvation_coalition_happened
		set_country_flag = IBR_in_crisis
		clr_country_flag = IBRElectionsYES
		set_country_flag = elections_delayed
		set_party_name = {
			ideology = conservatism
			long_name = IBR_conservatism_salvation_long
			name = IBR_conservatism_salvation
		}
		set_party_name = {
			ideology = liberal_conservatism
			long_name = IBR_liberal_conservatism_salvation_long
			name = IBR_liberal_conservatism_salvation
		}
		set_party_name = {
			ideology = liberalism
			long_name = IBR_liberalism_salvation_long
			name = IBR_liberalism_salvation
		}
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.475
					days = 1
				}
			}
		}
		set_politics = {
			ruling_party = conservatism
			last_election = "1970.6.6"
			election_frequency = 48
			elections_allowed = yes
		}
		remove_all_ministers = yes
		add_ideas = IBR_Diogo_Freitas_hog
		add_ideas = IBR_Manuel_Gutierrez_sec
		add_ideas = IBR_Pio_Cabanillas_for
		add_ideas = IBR_Juan_Garcia_eco
		IBR_sub_15_authdem = yes
		IBR_add_15_soccon = yes
		IBR_add_15_soclib = yes
		IBR_add_10_marklib = yes
		IBR_add_5_socdem = yes
		load_focus_tree = {
			tree = IBR_politics_salvation_democratic
			keep_completed = yes
		}
	}
}

country_event = {
	id = IBR.683
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.683" }
	picture = GFX_report_event_IBR_valcarcel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.683.t
	desc = IBR.683.d
	option = {
		name = IBR.683.a
		ai_chance = { factor = 10 }
		add_stability = -0.05
		country_event = {
			id = IBR.684
			days = 1
		}
	}
}

country_event = {
	id = IBR.684
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.684" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.684.t
	desc = IBR.684.d
	option = {
		name = IBR.684.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.685
				hours = 1
			}
		}
	}
}

country_event = {
	id = IBR.685
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.685" }
	picture = GFX_report_event_IBR_valcarcel_sad
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.685.t
	desc = IBR.685.d
	option = {
		name = IBR.685.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.682
				days = 1
			}
		}
	}
}

####Alianza Popular Oil Crisis#
###############################
country_event = {
	id = IBR.692
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.692" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.692.t
	desc = IBR.692.d
	option = {
		name = IBR.692.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

	}
}
country_event = {
	id = IBR.693
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.693" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.693.t
	desc = IBR.693.d
	option = {
		name = IBR.693.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_political_power = 25
		custom_effect_tooltip = IBR_add_stability_small_tt
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = -1
		}
	}
	option = {
		name = IBR.693.b
		ai_chance = { factor = 10 }

		###THESE EVENTS ARE CUT LOL

		IBR = {
			add_timed_idea = { idea = IBR_693_misc_costs days = 90 }
		}
		add_political_power = -20

	}
	option = {
		name = IBR.693.c
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_693_misc_costs days = 90 }
		}
		add_political_power = -50
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = 1
		}
	}
}
country_event = {
	id = IBR.694
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.694" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.694.t
	desc = IBR.694.d
	option = {
		name = IBR.694.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_political_power = 25
		custom_effect_tooltip = IBR_add_stability_small_tt
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = -1
		}
	}
	option = {
		name = IBR.694.b
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_694_misc_costs days = 90 }
		}
		add_political_power = -20


	}
	option = {
		name = IBR.694.c
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_694_misc_costs days = 90 }
		}
		add_political_power = -50
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = 1
		}
	}
}
country_event = {
	id = IBR.695
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.695" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.695.t
	desc = IBR.695.d
	option = {
		name = IBR.695.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_political_power = 25
		custom_effect_tooltip = IBR_add_stability_small_tt
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = -1
		}
	}
	option = {
		name = IBR.695.b
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_695_misc_income days = 90 }
		}
		add_political_power = -20

	}
	option = {
		name = IBR.695.c
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_695_misc_income days = 90 }
		}
		add_political_power = -50
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = 1
		}
	}
}
country_event = {
	id = IBR.696
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.696" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.696.t
	desc = IBR.696.d
	option = {
		name = IBR.696.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_political_power = 25
		custom_effect_tooltip = IBR_add_stability_small_tt
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = -1
		}
	}
	option = {
		name = IBR.696.b
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_696_misc_costs days = 90 }
		}
		add_political_power = -20

	}
	option = {
		name = IBR.696.c
		ai_chance = { factor = 10 }
		IBR = {
			add_timed_idea = { idea = IBR_696_misc_costs days = 90 }
		}
		add_political_power = -50
		add_to_variable = {
			var = IBRAlianzaPopularPopularity
			value = 1
		}
	}
}



####Load the congress tree#
###########################

country_event = {
	id = IBR.700
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.700" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.700.t
	desc = IBR.700.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.700.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_the_iberian_congress
			keep_completed = yes
		}

		hidden_effect = {
			country_event = {
				id = IBR.3175
				days = 20
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3185
				days = 5
			}
		}
	}
}
###########################
### Load the union tree ###
###########################
###########################

country_event = {
	id = IBR.701
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.701" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.701.t
	desc = IBR.701.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.701.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_the_iberian_union
			keep_completed = yes
		}

		hidden_effect = {
			country_event = {
				id = IBR.3175
				days = 20
			}
		}
		hidden_effect = {
			country_event = {
				id = IBR.3185
				days = 5
			}
		}
	}
}
## Load the foreign tree(c) ##ACTUALLY PRE ELECTION BUT OK
##############################

country_event = {
	id = IBR.702
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.702" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.702.t
	desc = IBR.702.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.702.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_iberian_preparing_democracy
			keep_completed = yes
		}
	}
}

##############################
## Load the foreign tree(u) ##
##############################
##############################

country_event = {
	id = IBR.703
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.703" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.703.t
	desc = IBR.703.d
	trigger = {
		tag = IBR
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.703.a
		ai_chance = { factor = 10 }
		load_focus_tree = {
			tree = IBR_iberian_foreign_relations_union
			keep_completed = yes
		}
	}
}

## Load the civil war tree ##
#############################
#############################

country_event = {
	id = IBR.704
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.704" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.704.t
	desc = IBR.704.d
	trigger = {
		tag = IBR
		has_global_flag = german_civil_war
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.704.a
		ai_chance = { factor = 10 }
		set_country_flag = IBR_started_germany_in_flames
		load_focus_tree = {
			tree = IBR_germany_in_flames_tree
			keep_completed = yes
		}
		if = {
			limit = { NOT = { has_country_flag = Iberia_Wakes_Up } }

			hidden_effect = {
				country_event = {
					id = IBR.55
					days = 5
				}
			}
		}
	}
}

country_event = {
	id = IBR.705
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.705" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.705.t
	desc = IBR.705.d
	option = {
		name = IBR.705.a
		ai_chance = { factor = 10 }
		set_cosmetic_tag = IBR_CONGRESS
	}
}

#############################
#### OFN foreign policy #####
#############################

country_event = {
	id = IBR.706
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.706" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.706.t
	desc = IBR.706.d
	option = {
		name = IBR.706.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.707
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.707" }
	picture = GFX_report_event_USA_white_house_color
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.707.t
	desc = IBR.707.d
	option = {
		name = IBR.707.a
		ai_chance = { factor = 10 }
		if = {
			limit = { has_country_flag = IBRChoseUnion }

			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		else = {
			if = {
				limit = {
					OR = {
						has_country_leader = {
							character = IBR_Torcuato_Fernandez_Miranda
							ruling_only = yes
						}
						has_country_leader = {
							character = IBR_Manuel_Gutierrez
							ruling_only = yes
						}
					}
				}

				IBR_add_10_soclib = yes
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = IBR_Alberto_Ullastres_Calvo
						ruling_only = yes
					}
				}

				IBR_add_10_marklib = yes
			}
			else_if = {
				limit = { has_government = conservatism }

				IBR_add_10_soccon = yes
			}
			else_if = {
				limit = { has_government = anocracy }

				IBR_add_10_authdem = yes
			}
		}


		if = {
			limit = { has_country_flag = IBRAuthDemCongress }

			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = -6
			}
			custom_effect_tooltip = IBR_sub_auth_big_tt
		}

		if = {
			limit = {
				USA = {
					is_ai = yes
				}
			}

			USA = { add_to_faction = IBR }
			add_to_array = {
				global.OFN_members = var:OFN_candidate
			}
			add_ideas = OFN_Independent_Member
			USA = {
				set_temp_variable = { SeaZone_ID = 5 } # 5; Med
				Cold_War_GUI_PowerProjection_AddSeaZone = yes
			}
			hidden_effect = {
				every_country = {
					limit = {
						is_subject_of = IBR
					}
					add_to_array = { global.OFN_members = THIS }
					remove_faction_status = yes
					add_ideas = OFN_Dependent_Member
				}
			}
		}
	}
}

country_event = {
	id = IBR.708
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.708" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.708.t
	desc = IBR.708.d
	option = {
		name = IBR.708.a
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }
	}
	option = {
		name = IBR.708.b
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = IBR.709
				days = 4
			}
		}
	}
}

country_event = {
	id = IBR.709
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.709" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.709.t
	desc = IBR.709.d
	option = {
		name = IBR.709.a
		ai_chance = { factor = 10 }
		set_temp_variable = { money_reserves_temp = 0.01 }
		econ_money_reserves_change_raw_money = yes
	}
}

country_event = {
	id = IBR.710
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.710" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.710.t
	desc = IBR.710.d
	option = {
		name = IBR.710.a
		trigger = {
			is_ai = no
			IBR = { has_country_flag = IBRDemUnion }
		}
		set_variable = { OFN_candidate = IBR.id }
		USA_OFN_start_vote_on_candidate = yes
	}
	option = {
		name = IBR.710.b
		trigger = {
			is_ai = no
			IBR = { has_country_flag = IBRDemUnion }
		}
		IBR = {
			country_event = {
				id = IBR.711
				days = 1
			}
		}
	}
	option = {
		name = IBR.710.c
		ai_chance = { factor = 10 }
		trigger = { is_ai = yes }

		if = {
			limit = {
				IBR = { has_country_flag = IBRDemUnion }
			}
			IBR = {
				country_event = {
					id = IBR.707
					days = 1
				}
			}
		}
		else = {
			IBR = {
				country_event = {
					id = IBR.711
					days = 1
				}
			}
		}
	}
	option = {
		name = IBR.710.e
		trigger = {
			is_ai = no
			IBR = { NOT = { has_country_flag = IBRDemUnion } }
		}

		IBR = {
			country_event = {
				id = IBR.711
				days = 1
			}
		}
	}
}

country_event = {
	id = IBR.711
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.711" }
	picture = GFX_report_event_USA_white_house_color
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.711.t
	desc = IBR.711.d
	option = {
		name = IBR.711.a
		ai_chance = { factor = 10 }
		add_ideas = OFN_Observer
		diplomatic_relation = {
			country = USA
			relation = guarantee
			active = yes
		}
		diplomatic_relation = {
			country = USA
			relation = non_aggression_pact
			active = yes
		}
		diplomatic_relation = {
			country = USA
			relation = military_access
			active = yes
		}
		USA = {
			diplomatic_relation = {
				country = IBR
				relation = guarantee
				active = yes
			}
			diplomatic_relation = {
				country = IBR
				relation = non_aggression_pact
				active = yes
			}
			diplomatic_relation = {
				country = IBR
				relation = military_access
				active = yes
			}
		}

		if = {
			limit = { has_country_flag = IBRAuthDemCongress }

			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = -3
			}
			custom_effect_tooltip = IBR_sub_auth_med_tt
		}
	}
}

country_event = {
	id = IBR.712
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.712" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.712.t
	desc = IBR.712.d
	option = {
		name = IBR.712.a
		ai_chance = { factor = 10 }
		trigger = { IBR = { has_country_flag = IBRDemUnion } }

		IBR = {
			country_event = {
				id = IBR.713
				days = 1
			}
		}
	}
	option = {
		name = IBR.712.b
		ai_chance = { factor = 10 }
		trigger = { IBR = { has_country_flag = IBRAuthDemCongress } }

		IBR = {
			country_event = {
				id = IBR.714
				days = 1
			}
		}
	}
}

country_event = {
	id = IBR.713
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.713" }
	picture = GFX_report_event_IBR_madrid_palace_hotel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.713.t
	desc = IBR.713.d
	option = {
		name = IBR.713.a
		ai_chance = { factor = 10 }

		add_political_power = 25
	}
}

country_event = {
	id = IBR.714
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.714" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.714.t
	desc = IBR.714.d
	option = {
		name = IBR.714.a
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}

country_event = { #American Advisors Arrive
	id = IBR.726
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.726" }
	picture = GFX_report_event_IBR_american_army_advisors
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.726.t
	desc = IBR.726.d
	option = {
		name = IBR.726.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		if = {
			limit = {
				has_country_leader = {
					character = IBR_Torcuato_Fernandez_Miranda
					ruling_only = yes
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.727
					days = 4
				}
			}
		}
	}
	option = {
		name = IBR.726.b
		ai_chance = { factor = 10 }

		add_stability = 0.03

		if = {
			limit = {
				OR = {
					has_country_flag = IBRNationalUnionVictory
					has_country_flag = IBR_auth_congress_authoritarianism
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.728
					days = 4
				}
			}
		}
	}
}

country_event = { #American Presence in the Military
	id = IBR.727
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.727" }
	picture = GFX_report_event_IBR_military_parade_big
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.727.t
	desc = IBR.727.d
	option = {
		name = IBR.727.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRMilitaryHostility
			value = -1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt
	}
}

country_event = { #Iberians Approve Of Less American Involvement
	id = IBR.728
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.728" }
	picture = GFX_report_event_IBR_military_parade
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.728.t
	desc = IBR.728.d
	option = {
		name = IBR.728.a
		ai_chance = { factor = 10 }
		add_political_power = 25
		if = {
			limit = { has_country_flag = IBRNationalUnionVictory }
			add_to_variable = {
				var = IBR_pop_militancy_natu
				value = -1
			}
			custom_effect_tooltip = IBR_sub_pop_militancy_small_tt
		}
		else = {
			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = -1
			}
			custom_effect_tooltip = IBR_sub_auth_small_tt
		}
	}
}

#####DEATH OF SALAZAR EVENTS######

country_event = { #A Worthy Successor - WIP
	id = IBR.5180
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5180" }
	picture = GFX_report_event_IBR_salazar_dead
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5180.t
	desc = IBR.5180.d
	option = {
		name = IBR.5180.a
		ai_chance = { factor = 10 }

		add_stability = 0.05
	}
}

country_event = { #Choose Caetano - WIP
	id = IBR.5181
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5181" }
	picture = GFX_report_event_IBR_caetano
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5181.t
	desc = IBR.5181.d
	option = {
		name = IBR.5181.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_chose_caetano
	}
}

country_event = { #Go With da Motta Veiga - WIP
	id = IBR.5182
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5182" }
	picture = GFX_report_event_IBR_motta
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5182.t
	desc = IBR.5182.d
	option = {
		name = IBR.5182.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #A Lone Caudillo - WIP
	id = IBR.5183
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5183" }
	picture = GFX_report_event_IBR_franco
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5183.t
	desc = IBR.5183.d
	option = {
		name = IBR.5183.a
		ai_chance = { factor = 10 }

		add_political_power = 50
	}
}

country_event = { #Final Preparations
	id = IBR.5184
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5184" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5184.t
	desc = IBR.5184.d
	option = {
		name = IBR.5184.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBR_chose_caetano }

			hidden_effect = {
				country_event = {
					id = IBR.5185
					days = 7
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5186
					days = 1
				}
			}
		}
	}
}

country_event = { #The Chosen Successor
	id = IBR.5185
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5185" }
	picture = GFX_report_event_IBR_portugal_building_crowd
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5185.t
	desc = IBR.5185.d
	option = {
		name = IBR.5185.a
		ai_chance = { factor = 10 }

		add_political_power = 100
		add_stability = 0.1

		clr_country_flag = IBR_Salazar_transition

		set_country_flag = IBR_caetano_path

		if = {
			limit = {
				has_country_flag = advisory_council
			}

			country_event = {
				id = IBR.3128
				days = 1
			}
		}
		else = {
			country_event = {
				id = IBR.3129
				days = 1
			}
		}
	}
}

country_event = { #Disturbing Allegations Arise
	id = IBR.5186
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5186" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5186.t
	desc = IBR.5186.d
	option = {
		name = IBR.5186.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5187
				days = 2
			}
		}
	}
}

country_event = { #Evidence Surfaces
	id = IBR.5187
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5187" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5187.t
	desc = IBR.5187.d
	option = {
		name = IBR.5187.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5188
				days = 3
			}
		}
	}
}

country_event = { #Portuguese Statistics Completely Fabricated
	id = IBR.5188
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5188" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5188.t
	desc = IBR.5188.d
	option = {
		name = IBR.5188.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_salazar_4
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_4
		}
		IBR_council_clamp = yes

		hidden_effect = {
			country_event = {
				id = IBR.5189
				days = 5
			}
		}
	}
}

country_event = { #An Unlikely Outcome
	id = IBR.5189
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5189" }
	picture = GFX_report_event_IBR_portugal_building_crowd
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5189.t
	desc = IBR.5189.d
	option = {
		name = IBR.5189.a
		ai_chance = { factor = 10 }

		add_political_power = -50
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		#swap_ideas = {
		#	remove_idea = IBR_Antonio_da_Mota_Veiga_hog
		#	add_idea = IBR_Marcelo_Caetano_hog
		#}

		clr_country_flag = IBR_Salazar_transition

		set_country_flag = IBR_caetano_path

		if = {
			limit = {
				has_country_flag = advisory_council
			}

			country_event = {
				id = IBR.3128
				days = 1
			}
		}
		else = {
			country_event = {
				id = IBR.3129
				days = 1
			}
		}
	}
}

country_event = { #A Message to Iberia
	id = IBR.5190
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5190" }
	picture = GFX_report_event_IBR_franco_speech
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5190.t
	desc = IBR.5190.d
	option = {
		name = IBR.5190.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5191
				days = 3
			}
		}
	}
}

country_event = { #Protests Across Portugal
	id = IBR.5191
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5191" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5191.t
	desc = IBR.5191.d
	option = {
		name = IBR.5191.a
		ai_chance = { factor = 10 }

		add_stability = -0.05

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5192
				days = 5
			}
		}
	}
}

country_event = { #Portuguese Bureaucrats Resign
	id = IBR.5192
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5192" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5192.t
	desc = IBR.5192.d
	option = {
		name = IBR.5192.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = { has_country_flag = legislature_council }

			hidden_effect = {
				country_event = {
					id = IBR.5193
					days = 7
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5194
					days = 4
				}
			}
		}
	}
}

country_event = { #Council Members Table Condemnation
	id = IBR.5193
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5193" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5193.t
	desc = IBR.5193.d
	option = {
		name = IBR.5193.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_salazar_5
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_5
		}
		IBR_council_clamp = yes

		load_focus_tree = {
			tree = IBR_death_of_salazar_franco
			keep_completed = yes
		}
	}
}

country_event = { #Council Members Leave in Protest
	id = IBR.5194
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5194" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5194.t
	desc = IBR.5194.d
	option = {
		name = IBR.5194.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_salazar_5
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_5
		}
		IBR_council_clamp = yes

		load_focus_tree = {
			tree = IBR_death_of_salazar_franco
			keep_completed = yes
		}
	}
}

##Caetano sub tree

country_event = { #Caetano's First Day - No scandal WIP
	id = IBR.5195
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5195" }
	picture = GFX_report_event_IBR_caetano
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5195.t
	desc = IBR.5195.d
	option = {
		name = IBR.5195.a
		ai_chance = { factor = 10 }

		add_political_power = 25
	}
}

country_event = { #Caetano's First Day - After scandal WIP
	id = IBR.5196
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5196" }
	picture = GFX_report_event_IBR_caetano
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5196.t
	desc = IBR.5196.d
	option = {
		name = IBR.5196.a
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}

country_event = { #Touring Iberia
	id = IBR.5197
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5197" }
	picture = GFX_report_event_IBR_gibraltar
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5197.t
	desc = IBR.5197.d
	option = {
		name = IBR.5197.a
		ai_chance = { factor = 10 }

		add_stability = 0.02
	}
}

country_event = { #For the Good of The Union - WIP
	id = IBR.5198
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5198" }
	picture = GFX_report_event_IBR_invitation
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5198.t
	desc = IBR.5198.d
	option = {
		name = IBR.5198.a
		ai_chance = { factor = 10 }

		add_political_power = 50
		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				country_event = {
					id = IBR.701
					days = 14
				}
			}
			else = {
				country_event = {
					id = IBR.700
					days = 14
				}
			}
		}
	}
}

##Franco Sub Tree

country_event = { #A Report From Lisbon
	id = IBR.5199
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5199" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5199.t
	desc = IBR.5199.d
	option = {
		name = IBR.5199.a
		ai_chance = { factor = 10 }

		add_stability = -0.02
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 2
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_mid_tt
	}
}

#containing the protesters chain

country_event = { #Ending the Madness
	id = IBR.5200
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5200" }
	picture = GFX_report_event_generic_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5200.t
	desc = IBR.5200.d
	option = { #The Guardia Civil will put an end to this
		name = IBR.5200.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = death_strong_franco }

			hidden_effect = {
				country_event = {
					id = IBR.5201
					days = 2
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5202
					days = 3
				}
			}
		}
	}
	option = { #More men are needed, but so is restraint!
		name = IBR.5200.b
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = death_strong_franco }

			hidden_effect = {
				country_event = {
					id = IBR.5205
					days = 2
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5206
					days = 6
				}
			}
		}
	}
}

country_event = { #Protesters Expertly Dispersed
	id = IBR.5201
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5201" }
	picture = GFX_report_event_IBR_guardia_civil
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5201.t
	desc = IBR.5201.d
	option = {
		name = IBR.5201.a
		ai_chance = { factor = 10 }

		add_political_power = 50
		add_stability = 0.05

		add_to_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		add_to_variable = {
			var = IBR_FSLP_Support
			value = -2
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_sub_fslp_support_mid_tt
	}
}

country_event = { #Protesters Refuse to Back Down
	id = IBR.5202
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5202" }
	picture = GFX_report_event_IBR_pide_arrest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5202.t
	desc = IBR.5202.d
	option = {
		name = IBR.5202.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = death_weak_franco }

			hidden_effect = {
				country_event = {
					id = IBR.5203
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5204
					days = 3
				}
			}
		}
	}
}

country_event = { #Protesters Dispersed With Few Fatalities
	id = IBR.5203
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5203" }
	picture = GFX_report_event_IBR_basque_protestors_beaten
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5203.t
	desc = IBR.5203.d
	option = {
		name = IBR.5203.a
		ai_chance = { factor = 10 }
		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
	}
}

country_event = { #Massacre in Lisbon
	id = IBR.5204
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5204" }
	picture = GFX_report_event_IBR_iberian_wars_11
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5204.t
	desc = IBR.5204.d
	option = {
		name = IBR.5204.a
		ai_chance = { factor = 10 }

		add_political_power = -75
		add_stability = -0.05

		add_to_variable = {
			var = IBRIberiaStability
			value = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		add_to_variable = {
			var = IBR_FSLP_Support
			value = 3
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_big_tt
	}
}

country_event = { #Protests Successfully Weakened
	id = IBR.5205
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5205" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5205.t
	desc = IBR.5205.d
	option = {
		name = IBR.5205.a
		ai_chance = { factor = 10 }

		add_stability = 0.02

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_FSLP_Support
			value = -1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_sub_fslp_support_small_tt
	}
}

country_event = { #Protests Continue
	id = IBR.5206
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5206" }
	picture = GFX_report_event_IBR_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5206.t
	desc = IBR.5206.d
	option = {
		name = IBR.5206.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = death_weak_franco }

			hidden_effect = {
				country_event = {
					id = IBR.5207
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5208
					days = 7
				}
			}
		}
	}
}

country_event = { #Protests Slightly Weakened
	id = IBR.5207
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5207" }
	picture = GFX_report_event_IBR_iberian_wars_6
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5207.t
	desc = IBR.5207.d
	option = {
		name = IBR.5207.a
		ai_chance = { factor = 10 }

		add_stability = -0.02

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_6

		}
		IBR_council_clamp = yes
	}
}

country_event = { #Protests Gain in Strength
	id = IBR.5208
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5208" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5208.t
	desc = IBR.5208.d
	option = {
		name = IBR.5208.a
		ai_chance = { factor = 10 }

		add_stability = -0.03

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_FSLP_Support
			value = 2
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_mid_tt

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_7
		}
		IBR_council_clamp = yes
	}
}

#convincing the politicians chain

country_event = { #An Emergency Meeting
	id = IBR.5209
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5209" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5209.t
	desc = IBR.5209.d
	option = { #These advisors should show some loyalty!
		name = IBR.5209.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = death_strong_salazar }

			hidden_effect = {
				country_event = {
					id = IBR.5210
					days = 4
				}
			}
		}
		else_if = {
			limit = { has_country_flag = death_weak_salazar }

			hidden_effect = {
				country_event = {
					id = IBR.5211
					days = 4
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5212
					days = 4
				}
			}
		}
	}
	option = { #Some concessions may be in order...
		name = IBR.5209.b
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = death_strong_salazar }

			hidden_effect = {
				country_event = {
					id = IBR.5213
					days = 4
				}
			}
		}
		else_if = {
			limit = { has_country_flag = death_weak_salazar }

			hidden_effect = {
				country_event = {
					id = IBR.5214
					days = 4
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5215
					days = 4
				}
			}
		}
	}
}

country_event = { #Politicians Across Iberia Quit in Protest
	id = IBR.5210
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5210" }
	picture = GFX_report_event_IBR_portugal_building_crowd
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5210.t
	desc = IBR.5210.d
	option = {
		name = IBR.5210.a
		ai_chance = { factor = 10 }

		add_political_power = -150

		add_to_variable = {
			var = IBRIberiaStability
			value = -7
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = { #More Council Members Resign
	id = IBR.5211
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5211" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5211.t
	desc = IBR.5211.d
	option = {
		name = IBR.5211.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = { #Reined in for the Time Being
	id = IBR.5212
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5212" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5212.t
	desc = IBR.5212.d
	option = {
		name = IBR.5212.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -4 }
			custom_effect_tooltip = IBR_influence_tt_salazar_6
		}
		IBR_council_clamp = yes
	}
}

country_event = { #Any Offer Deemed Unacceptable
	id = IBR.5213
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5213" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5213.t
	desc = IBR.5213.d
	option = {
		name = IBR.5213.a
		ai_chance = { factor = 10 }

		add_political_power = -100

		add_to_variable = {
			var = IBRIberiaStability
			value = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 4 }
			custom_effect_tooltip = IBR_influence_tt_salazar_7
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_11
		}
		IBR_council_clamp = yes
	}
}

country_event = { #Politicians Demand More
	id = IBR.5214
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5214" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5214.t
	desc = IBR.5214.d
	option = {
		name = IBR.5214.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 1 }
			custom_effect_tooltip = IBR_influence_tt_salazar_8
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_8
		}
		IBR_council_clamp = yes

		hidden_effect = {
			country_event = {
				id = IBR.5215
				days = 3
			}
		}
	}
}

country_event = { #Politicians Accept the Offer
	id = IBR.5215
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5215" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5215.t
	desc = IBR.5215.d
	option = {
		name = IBR.5215.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 1 }
			custom_effect_tooltip = IBR_influence_tt_salazar_9
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_9
		}
		IBR_council_clamp = yes
	}
}

#the dust settles

country_event = { #A Dangerous Gambit
	id = IBR.5216
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5216" }
	picture = GFX_report_event_IBR_franco
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5216.t
	desc = IBR.5216.d
	option = {
		name = IBR.5216.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5217
				days = 6
			}
		}
	}
}

country_event = { #The Die is Cast
	id = IBR.5217
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5217" }
	picture = GFX_report_event_generic_city_fire
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5217.t
	desc = IBR.5217.d
	option = {
		name = IBR.5217.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.1027
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5218
					days = 3
				}
			}
		}
	}
}

country_event = { #A Painful Admission
	id = IBR.5218
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5218" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5218.t
	desc = IBR.5218.d
	option = {
		name = IBR.5218.a
		ai_chance = { factor = 10 }

		add_political_power = -100
		add_stability = 0.15

		#swap_ideas = {
		#	remove_idea = IBR_Iberian_Council_hog
		#	add_idea = IBR_Marcelo_Caetano_hog
		#}

		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 4 }
			custom_effect_tooltip = IBR_influence_tt_salazar_10
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 8 }
			custom_effect_tooltip = IBR_reformist_tt_salazar_10
		}
		IBR_council_clamp = yes

		clr_country_flag = IBR_Salazar_transition

		if = {
			limit = {
				has_country_flag = advisory_council
			}

			country_event = {
				id = IBR.3128
				days = 1
			}
		}
		else = {
			country_event = {
				id = IBR.3129
				days = 1
			}
		}
	}
}


#########################################Congress/Union Trees Events

###UNION TREE###

country_event = { #The Caudillos Give a Speech About the Council
	id = IBR.718
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.718" }
	picture = GFX_report_event_IBR_franco_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.718.t
	desc = IBR.718.d
	option = {
		name = IBR.718.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Special Meeting of the Council
	id = IBR.719
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.719" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.719.t
	desc = IBR.719.d
	option = {
		name = IBR.719.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #A Very Long Meeting
	id = IBR.720
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.720" }
	picture = GFX_report_event_IBR_coup_attempt
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.720.t
	desc = IBR.720.d
	option = {
		name = IBR.720.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = { #Addresing Real Problems
	id = IBR.721
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.721" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.721.t
	desc = IBR.721.d
	option = {
		name = IBR.721.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Planning Before We Strike
	id = IBR.5080
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5080" }
	picture = GFX_report_event_IBR_politicians_discussing
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5080.t
	desc = IBR.5080.d
	option = { #Mass Propaganda
		name = IBR.5080.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_plans_of_attack

		country_event = {
			id = IBR.5081
			days = 1
		}
	}
	option = { #Covert Actions
		name = IBR.5080.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_plans_of_attack

		country_event = {
			id = IBR.5082
			days = 1
		}
	}
}

country_event = { #The Great Propaganda Offensive
	id = IBR.5081
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5081" }
	picture = GFX_report_event_IBR_meeting_small
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5081.t
	desc = IBR.5081.d
	option = { #Push it in Iberia as a whole
		name = IBR.5081.a
		ai_chance = { factor = 10 }

		add_political_power = -10

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		set_country_flag = IBR_push_iberia
	}
	option = { #Push it in minority regions
		name = IBR.5081.b
		ai_chance = { factor = 10 }

		add_political_power = -10

		add_to_variable = {
			var = IBR_CNT_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = -1
		}

		custom_effect_tooltip = IBR_sub_cnt_support_small_tt
		custom_effect_tooltip = IBR_sub_eta_support_small_tt
		custom_effect_tooltip = IBR_sub_fslp_support_small_tt
		custom_effect_tooltip = IBR_sub_tba_support_small_tt

		set_country_flag = IBR_push_minority_regions

		IBR_terror_vunerable_check = yes
	}
}

country_event = { #New AAS Programs
	id = IBR.5082
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5082" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5082.t
	desc = IBR.5082.d
	option = { #Infiltrate the universities
		name = IBR.5082.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -2
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_tt

		add_political_power = 50

		set_country_flag = IBR_infiltrate_universities
	}
	option = { #Infiltrate the terrorist groups
		name = IBR.5082.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -1
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -0.5
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -0.5
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -0.5
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -0.5
		}

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		set_country_flag = IBR_infiltrate_terrorists

		IBR_terror_vunerable_check = yes
	}
}

country_event = { #Rebuilding Strength with Propaganda
	id = IBR.5083
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5083" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5083.t
	desc = IBR.5083.d
	option = {
		name = IBR.5083.a
		ai_chance = { factor = 10 }

		add_political_power = 75

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #More Resources to the AAS
	id = IBR.5084
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5084" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5084.t
	desc = IBR.5084.d
	option = {
		name = IBR.5084.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 5
		}
		custom_effect_tooltip = IBR_add_aas_tt

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Reassuring the People
	id = IBR.5085
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5085" }
	picture = GFX_report_event_IBR_salazar_and_franco
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5085.t
	desc = IBR.5085.d
	option = {
		name = IBR.5085.a
		ai_chance = { factor = 10 }

		add_stability = 0.075

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #The Target
	id = IBR.5086
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5086" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5086.t
	desc = IBR.5086.d
	option = { #The Intellectuals
		name = IBR.5086.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_target_intellectuals

		country_event = {
			id = IBR.5087
			hours = 1
		}
	}
	option = { #Reformist Politicians
		name = IBR.5086.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_target_politicians

		country_event = {
			id = IBR.5087
			hours = 1
		}
	}
	option = { #The Terrorists
		name = IBR.5086.c
		ai_chance = { factor = 10 }

		set_country_flag = IBR_target_terrorists

		country_event = {
			id = IBR.5087
			hours = 1
		}
	}
}

country_event = { #The Method
	id = IBR.5087
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5087" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5087.t
	desc = IBR.5087.d
	option = { #With a Velvet Glove
		name = IBR.5087.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_push_iberia
				has_country_flag = IBR_target_politicians
			}
			hidden_effect = {
				country_event = {
					id = IBR.5089
					days = 13
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5092
					days = 13
				}
			}
		}
	}
	option = { #In the Shadows
		name = IBR.5087.b
		ai_chance = { factor = 10 }

		if = { #terrorists
			limit = {
				has_country_flag = IBR_infiltrate_terrorists
				has_country_flag = IBR_target_terrorists
			}
			hidden_effect = {
				country_event = {
					id = IBR.5090
					days = 13
				}
			}
		}
		else_if = { #intellectuals
			limit = {
				has_country_flag = IBR_infiltrate_universities
				has_country_flag = IBR_target_intellectuals
			}
			hidden_effect = {
				country_event = {
					id = IBR.5091
					days = 13
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5093
					days = 13
				}
			}
		}
	}
	option = { #Openly, with Great Force
		name = IBR.5087.c
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_push_minority_regions
				has_country_flag = IBR_target_terrorists
			}
			hidden_effect = {
				country_event = {
					id = IBR.5088
					days = 13
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5094
					days = 13
				}
			}
		}
	}
}

country_event = { #Anti Terrorist Offensive Successful
	id = IBR.5088
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5088" }
	picture = GFX_report_event_IBR_iberian_wars_6
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5088.t
	desc = IBR.5088.d
	option = {
		name = IBR.5088.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = 10 }
		custom_effect_tooltip = IBR_influence_tt_unioncouncil_1
		IBR_council_clamp = yes

		add_political_power = 100
		add_stability = 0.2

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -3
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -3
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -3
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -3
		}

		custom_effect_tooltip = IBR_sub_cnt_activity_big_tt
		custom_effect_tooltip = IBR_sub_eta_activity_big_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_big_tt
		custom_effect_tooltip = IBR_sub_tba_activity_big_tt

		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 5
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt
	}
}

country_event = { #Removal of Reformist Politicians Celebrated
	id = IBR.5089
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5089" }
	picture = GFX_report_event_IBR_basques_arrested
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5089.t
	desc = IBR.5089.d
	option = {
		name = IBR.5089.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = -5 }
		custom_effect_tooltip = IBR_influence_tt_unioncouncil_2
		IBR_council_clamp = yes

		add_popularity = {
			ideology = despotism
			popularity = 0.15
		}
		add_popularity = {
			ideology = anocracy
			popularity = 0.1
		}

		add_political_power = 200
		add_stability = 0.3

		add_to_variable = {
			var = IBRIberiaStability
			value = 10
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt
	}
}

country_event = { #Crippling Anti Terror Raids
	id = IBR.5090
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5090" }
	picture = GFX_report_event_IBR_AAS_raid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5090.t
	desc = IBR.5090.d
	option = {
		name = IBR.5090.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = 5 }
		custom_effect_tooltip = IBR_influence_tt_unioncouncil_3
		IBR_council_clamp = yes

		add_political_power = 50
		add_stability = 0.1

		add_to_variable = {
			var = IBR_CNT_Resources
			value = -2
		}
		add_to_variable = {
			var = IBR_ETA_Resources
			value = -2
		}
		add_to_variable = {
			var = IBR_TBA_Resources
			value = -2
		}
		add_to_variable = {
			var = IBR_FSLP_Resources
			value = -2
		}

		custom_effect_tooltip = IBR_sub_cnt_supplies_mid_tt
		custom_effect_tooltip = IBR_sub_eta_supplies_mid_tt
		custom_effect_tooltip = IBR_sub_fslp_supplies_mid_tt
		custom_effect_tooltip = IBR_sub_tba_supplies_mid_tt

		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
	}
}

country_event = { #Liberal Intellectuals Neutralized
	id = IBR.5091
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5091" }
	picture = GFX_report_event_IBR_basques_arrested
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5091.t
	desc = IBR.5091.d
	option = {
		name = IBR.5091.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = 3 }
		custom_effect_tooltip = IBR_influence_tt_unioncouncil_4
		IBR_council_clamp = yes

		add_popularity = {
			ideology = despotism
			popularity = 0.05
		}
		add_popularity = {
			ideology = anocracy
			popularity = 0.075
		}

		add_political_power = 100
		add_stability = 0.15

		add_to_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt
	}
}

country_event = { #Iberian Government Appears Weak
	id = IBR.5092
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5092" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5092.t
	desc = IBR.5092.d
	option = {
		name = IBR.5092.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = -14 }
		if = {
			limit = { has_country_flag = IBR_target_terrorists }

			custom_effect_tooltip = IBR_influence_tt_unioncouncil_5
		}
		else = {
			custom_effect_tooltip = IBR_influence_tt_unioncouncil_6
		}
		IBR_council_clamp = yes

		add_popularity = {
			ideology = fascism
			popularity = 0.1
		}

		add_popularity = {
			ideology = despotism
			popularity = -0.075
		}
		add_popularity = {
			ideology = anocracy
			popularity = -0.05
		}

		add_political_power = -150
		add_stability = -0.2

		add_to_variable = {
			var = IBR_CNT_Activity
			value = 2
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 2
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 2
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = 2
		}

		custom_effect_tooltip = IBR_add_cnt_activity_mid_tt
		custom_effect_tooltip = IBR_add_eta_activity_mid_tt
		custom_effect_tooltip = IBR_add_fslp_activity_mid_tt
		custom_effect_tooltip = IBR_add_tba_activity_mid_tt

		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -7
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_plans_of_attack } }

			set_country_flag = IBR_velvet_glove
		}
	}
}

country_event = { #Gross Axencia Incompetence
	id = IBR.5093
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5093" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5093.t
	desc = IBR.5093.d
	option = {
		name = IBR.5093.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = -12 }
		if = {
			limit = { has_country_flag = IBR_target_terrorists }

			custom_effect_tooltip = IBR_influence_tt_unioncouncil_7
		}
		else = {
			custom_effect_tooltip = IBR_influence_tt_unioncouncil_8
		}
		IBR_council_clamp = yes

		add_popularity = {
			ideology = despotism
			popularity = -0.05
		}
		add_popularity = {
			ideology = anocracy
			popularity = -0.05
		}

		add_political_power = -175
		add_stability = -0.25

		add_to_variable = {
			var = IBR_AAS_Resources
			value = -15
		}
		clamp_variable = {
			var = IBR_AAS_Resources
			min = 0
			max = 200
		}
		custom_effect_tooltip = IBR_sub_aas_big_tt

		add_to_variable = {
			var = IBRIberiaStability
			value = -6
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_plans_of_attack } }
			set_country_flag = IBR_in_the_shadows
		}
	}
}

country_event = { #Backlash Against Excessive Force
	id = IBR.5094
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5094" }
	picture = GFX_report_event_IBR_basque_protestors_beaten
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5094.t
	desc = IBR.5094.d
	option = {
		name = IBR.5094.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_influence = -16 }
		if = {
			limit = { has_country_flag = IBR_target_politicians }

			custom_effect_tooltip = IBR_influence_tt_unioncouncil_10
		}
		else = {
			custom_effect_tooltip = IBR_influence_tt_unioncouncil_9
		}
		IBR_council_clamp = yes

		add_popularity = {
			ideology = despotism
			popularity = -0.1
		}
		add_popularity = {
			ideology = anocracy
			popularity = -0.05
		}

		add_political_power = -100
		add_stability = -0.3

		add_to_variable = {
			var = IBR_CNT_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 3
		}

		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_add_eta_support_big_tt
		custom_effect_tooltip = IBR_add_fslp_support_big_tt
		custom_effect_tooltip = IBR_add_tba_support_big_tt

		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -8
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_plans_of_attack } }

			set_country_flag = IBR_openly_great_force
		}
	}
}

###CONGRESS TREE###

country_event = { #Conservatives Raise Concerns
	id = IBR.5100
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5100" }
	picture = GFX_report_event_IBR_falange_standard_bearers
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5100.t
	desc = IBR.5100.d
	option = {
		name = IBR.5100.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5101
				days = 3
			}
		}
	}
	option = {
		name = IBR.5100.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5102
				days = 3
			}
		}
	}
}

country_event = { #conservatives happy
	id = IBR.5101
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5101" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5101.t
	desc = IBR.5101.d
	option = {
		name = IBR.5101.a
		ai_chance = { factor = 10 }

		IBR_add_5_authdem = yes

		set_country_flag = IBR_congress_conservatives
	}
}

country_event = { #conservatives mad
	id = IBR.5102
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5102" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5102.t
	desc = IBR.5102.d
	option = {
		name = IBR.5102.a
		ai_chance = { factor = 10 }

		add_stability = -0.05
		IBR_add_5_soccon = yes
	}
}

country_event = { #The Regional Debate
	id = IBR.5103
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5103" }
	picture = GFX_report_event_IBR_democratic_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5103.t
	desc = IBR.5103.d
	option = {
		name = IBR.5103.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5104
				days = 3
			}
		}
	}
	option = {
		name = IBR.5103.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5105
				days = 3
			}
		}
	}
}

country_event = { #separatists happy
	id = IBR.5104
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5104" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5104.t
	desc = IBR.5104.d
	option = {
		name = IBR.5104.a
		ai_chance = { factor = 10 }

		IBR_add_5_authdem = yes

		set_country_flag = IBR_congress_separatists
	}
}

country_event = { #separatists mad
	id = IBR.5105
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5105" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5105.t
	desc = IBR.5105.d
	option = {
		name = IBR.5105.a
		ai_chance = { factor = 10 }

		IBR_add_5_soclib = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		add_to_variable = {
			IBR_CNT_Support = 1
		}
		add_to_variable = {
			IBR_ETA_Support = 1
		}
		add_to_variable = {
			IBR_TBA_Support = 1
		}
		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Technocrats Appeal to the Congress
	id = IBR.5106
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5106" }
	picture = GFX_report_event_IBR_opus_dei_lads
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5106.t
	desc = IBR.5106.d
	option = {
		name = IBR.5106.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5107
				days = 3
			}
		}
	}
	option = {
		name = IBR.5106.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5108
				days = 3
			}
		}
	}
}

country_event = { #opus dei happy
	id = IBR.5107
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5107" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5107.t
	desc = IBR.5107.d
	option = {
		name = IBR.5107.a
		ai_chance = { factor = 10 }

		IBR_add_5_authdem = yes

		set_country_flag = IBR_congress_technocrats
	}
}

country_event = { #opus dei mad
	id = IBR.5108
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5108" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5108.t
	desc = IBR.5108.d
	option = {
		name = IBR.5108.a
		ai_chance = { factor = 10 }

		add_political_power = -50
		IBR_sub_5_marklib = yes
	}
}

country_event = { #The Armed Forces Role
	id = IBR.5109
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5109" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5109.t
	desc = IBR.5109.d
	option = {
		name = IBR.5109.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5110
				days = 3
			}
		}
	}
	option = {
		name = IBR.5109.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5111
				days = 3
			}
		}
	}
}

country_event = { #liberals outraged
	id = IBR.5110
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5110" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5110.t
	desc = IBR.5110.d
	option = {
		name = IBR.5110.a
		ai_chance = { factor = 10 }

		IBR_add_5_soclib = yes

		add_to_variable = {
			IBR_CNT_Support = 0.2
		}
		add_to_variable = {
			IBR_ETA_Support = 0.2
		}
		add_to_variable = {
			IBR_TBA_Support = 0.2
		}
			add_to_variable = {
			IBR_FSLP_Support = 0.2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

		set_country_flag = IBR_congress_militarists
	}
}

country_event = { #conservatives and army mad
	id = IBR.5111
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5111" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5111.t
	desc = IBR.5111.d
	option = {
		name = IBR.5111.a
		ai_chance = { factor = 10 }

		add_stability = -0.03
		IBR_add_5_soccon = yes
	}
}

country_event = { #Broadcasting the debates?
	id = IBR.5112
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5112" }
	picture = GFX_report_event_IBR_lisbon_tv_station
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5112.t
	desc = IBR.5112.d
	option = {
		name = IBR.5112.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5113
				days = 3
			}
		}
	}
	option = {
		name = IBR.5112.b
		ai_chance = { factor = 10 }
	}
}

country_event = { #Iberians Eagerly Await the Final Debates
	id = IBR.5113
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5113" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5113.t
	desc = IBR.5113.d
	option = {
		name = IBR.5113.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_congress_broadcast
	}
}

#The final debate (focus)

country_event = { #A Momentous Day in Iberian History
	id = IBR.5114
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5114" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5114.t
	desc = IBR.5114.d
	option = {
		name = IBR.5114.a
		ai_chance = { factor = 10 }

		hidden_effect = {

			if = {
				limit = {
					has_country_flag = IBR_congress_technocrats
					OR = {
						has_country_flag = IBR_congress_militarists
						has_country_flag = IBR_congress_conservatives
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_congress_technocrats
						has_country_flag = IBR_congress_militarists
					}
					country_event = {
						id = IBR.5117
						days = 1
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_congress_technocrats
						has_country_flag = IBR_congress_conservatives
					}
					country_event = {
						id = IBR.5118
						days = 2
					}
				}
			}
			else = {
				if = {
					limit = {
						has_country_flag = IBR_congress_technocrats
					}
					country_event = {
						id = IBR.5115
						days = 1
					}
					set_country_flag = IBR_congress_liberty_lib
				}
				else = {
					country_event = {
						id = IBR.5116
						days = 1
					}
					set_country_flag = IBR_congress_liberty_con
				}
			}
		}
	}
}

country_event = { #Civil Liberty Reforms Pushed
	id = IBR.5115
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5115" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5115.t
	desc = IBR.5115.d
	option = {
		name = IBR.5115.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = 4 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_1
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_stability = 0.075

			add_to_variable = {
				var = IBRIberiaStability
				value = 1.5
			}
			custom_effect_tooltip = IBR_add_stability_small_tt

			IBR_add_15_marklib = yes

			custom_effect_tooltip = IBR_broadcast_pos_tt
		}
		else = {
			add_stability = 0.05

			IBR_add_10_marklib = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		hidden_effect = {
			country_event = {
				id = IBR.5127
				hours = 1
			}
		}
	}
}

country_event = { #Drafting of Minor Reforms
	id = IBR.5116
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5116" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5116.t
	desc = IBR.5116.d
	option = {
		name = IBR.5116.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -1 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_2
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_stability = 0.03

			IBR_add_5_soccon = yes

			custom_effect_tooltip = IBR_broadcast_pos_tt
		}
		else = {
			add_stability = 0.02

			IBR_add_3_soccon = yes
		}

		hidden_effect = {
			country_event = {
				id = IBR.5127
				hours = 1
			}
		}
	}
}

country_event = { #Militarists Clash with Technocrats
	id = IBR.5117
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5117" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5117.t
	desc = IBR.5117.d
	option = {
		name = IBR.5117.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -2 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_3
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_political_power = -75

			add_to_variable = {
				var = IBRIberiaStability
				value = -2.25
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt

			custom_effect_tooltip = IBR_broadcast_neg_tt
		}
		else = {

			add_political_power = -50

			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		hidden_effect = {
			country_event = {
				id = IBR.5127
				hours = 1
			}
		}
	}
}

country_event = { #Conservatives Clash with Technocrats
	id = IBR.5118
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5118" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5118.t
	desc = IBR.5118.d
	option = {
		name = IBR.5118.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -1 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_4
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_political_power = -40

			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt

			custom_effect_tooltip = IBR_broadcast_neg_tt
		}
		else = {

			add_political_power = -25

			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		hidden_effect = {
			country_event = {
				id = IBR.5127
				hours = 1
			}
		}
	}
}

country_event = { #Special Regions Pursued
	id = IBR.5119
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5119" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5119.t
	desc = IBR.5119.d
	option = {
		name = IBR.5119.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = 4 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_5
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_stability = 0.075

			add_to_variable = {
				var = IBRIberiaStability
				value = 1.5
			}
			custom_effect_tooltip = IBR_add_stability_small_tt

			IBR_add_15_soclib = yes

			custom_effect_tooltip = IBR_broadcast_pos_tt
		}
		else = {
			add_stability = 0.05

			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt

			IBR_add_10_soclib = yes
		}

		hidden_effect = {
			country_event = {
				id = IBR.5128
				hours = 1
			}
		}
	}
}

country_event = { #Token Autonomy Discussed
	id = IBR.5120
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5120" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5120.t
	desc = IBR.5120.d
	option = {
		name = IBR.5120.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -1 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_6
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_stability = 0.06

			IBR_add_5_soccon = yes

			custom_effect_tooltip = IBR_broadcast_pos_tt
		}
		else = {
			add_stability = 0.02
			IBR_add_3_soccon = yes
		}

		hidden_effect = {
			country_event = {
				id = IBR.5128
				hours = 1
			}
		}
	}
}

country_event = { #Militarists Clash with Regionalists
	id = IBR.5121
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5121" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5121.t
	desc = IBR.5121.d
	option = {
		name = IBR.5121.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -2 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_7
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_political_power = -75

			add_to_variable = {
				var = IBRIberiaStability
				value = -2.25
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt

			custom_effect_tooltip = IBR_broadcast_neg_tt
		}
		else = {

			add_political_power = -50

			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		hidden_effect = {
			country_event = {
				id = IBR.5128
				hours = 1
			}
		}
	}
}

country_event = { #Conservatives Clash with Regionalists
	id = IBR.5122
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5122" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5122.t
	desc = IBR.5122.d
	option = {
		name = IBR.5122.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -3 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_8
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_political_power = -150

			add_to_variable = {
				var = IBRIberiaStability
				value = -4.5
			}
			custom_effect_tooltip = IBR_sub_stability_really_big_tt

			custom_effect_tooltip = IBR_broadcast_neg_tt
		}
		else = {
			add_political_power = -100

			add_to_variable = {
				var = IBRIberiaStability
				value = -3
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt
		}

		hidden_effect = {
			country_event = {
				id = IBR.5128
				hours = 1
			}
		}
	}
}

country_event = { #FINAL DEBATE OVER - no bad combos - LIB VICTORY
	id = IBR.5123
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5123" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5123.t
	desc = IBR.5123.d
	option = {
		name = IBR.5123.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_reformist_tt_councildebate_9

		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_to_variable = { IBR_council_reformism = 15 }
			IBR_council_clamp = yes
			add_political_power = 150

			IBR_add_20_marklib = yes
			IBR_add_20_soclib = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 6
			}
			custom_effect_tooltip = IBR_add_stability_really_big_tt

			custom_effect_tooltip = IBR_broadcast_pos_tt
		}
		else = {

			add_to_variable = { IBR_council_reformism = 10 }
			IBR_council_clamp = yes
			add_political_power = 100

			IBR_add_15_marklib = yes
			IBR_add_15_soclib = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 4
			}
			custom_effect_tooltip = IBR_add_stability_really_big_tt
		}

		set_country_flag = IBR_congress_debate_over
		clr_country_flag = IBR_congress_broadcast
	}
}

country_event = { #FINAL DEBATE OVER - no bad combos - CON VICTORY
	id = IBR.5124
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5124" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5124.t
	desc = IBR.5124.d
	option = {
		name = IBR.5124.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -2 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_10
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_political_power = 75

			IBR_add_15_soccon = yes
			IBR_sub_15_authdem = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 4.5
			}
			custom_effect_tooltip = IBR_add_stability_really_big_tt

			custom_effect_tooltip = IBR_broadcast_pos_tt
		}
		else = {

			add_political_power = 50

			IBR_add_10_soccon = yes
			IBR_sub_10_authdem = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 3
			}
			custom_effect_tooltip = IBR_add_stability_really_big_tt
		}

		set_country_flag = IBR_congress_debate_over
		clr_country_flag = IBR_congress_broadcast
	}
}

country_event = { #FINAL DEBATE OVER - 1 bad combo - MIXED ENDING
	id = IBR.5125
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5125" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5125.t
	desc = IBR.5125.d
	option = {
		name = IBR.5125.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_council_reformism = -4 }
		custom_effect_tooltip = IBR_reformist_tt_councildebate_11
		IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_political_power = -40

			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt

			custom_effect_tooltip = IBR_broadcast_neg_tt
		}
		else = {

			add_political_power = -25

			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}

		set_country_flag = IBR_congress_debate_over
		clr_country_flag = IBR_congress_broadcast
	}
}

country_event = { #FINAL DEBATE OVER - at least 2 bad combos - BAD ENDING
	id = IBR.5126
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5126" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5126.t
	desc = IBR.5126.d
	option = {
		name = IBR.5126.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_reformist_tt_councildebate_12

		if = {
			limit = { has_country_flag = IBR_congress_broadcast }

			add_to_variable = { IBR_council_reformism = -15 }
			IBR_council_clamp = yes
			add_political_power = -100

			add_to_variable = {
				var = IBRIberiaStability
				value = -4.5
			}
			custom_effect_tooltip = IBR_sub_stability_really_big_tt

			custom_effect_tooltip = IBR_broadcast_neg_tt
		}
		else = {

			add_to_variable = { IBR_council_reformism = -10 }
			IBR_council_clamp = yes
			add_political_power = -75

			add_to_variable = {
				var = IBRIberiaStability
				value = -3
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt
		}

		set_country_flag = IBR_congress_debate_over
		clr_country_flag = IBR_congress_broadcast
	}
}

country_event = { #WHICH REGIONAL DEBATE EVENT
	id = IBR.5127
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5127" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.5127.t
	desc = IBR.5127.d
	option = {
		name = IBR.5127.a
		ai_chance = { factor = 10 }

		hidden_effect = {

			if = {
				limit = {
					has_country_flag = IBR_congress_separatists
					OR = {
						has_country_flag = IBR_congress_militarists
						has_country_flag = IBR_congress_conservatives
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_congress_separatists
						has_country_flag = IBR_congress_militarists
					}
					country_event = {
						id = IBR.5121
						days = 1
					}
				}
				if = {
					limit = {
						has_country_flag = IBR_congress_separatists
						has_country_flag = IBR_congress_conservatives
					}
					country_event = {
						id = IBR.5122
						days = 2
					}
				}
			}
			else = {
				if = {
					limit = {
						has_country_flag = IBR_congress_separatists
					}
					country_event = {
						id = IBR.5119
						days = 1
					}
					set_country_flag = IBR_congress_regions_lib
				}
				else = {
					country_event = {
						id = IBR.5120
						days = 1
					}
					set_country_flag = IBR_congress_regions_con
				}
			}
		}
	}
}

country_event = { #WHICH ENDING EVENT
	id = IBR.5128
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5128" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.5128.t
	desc = IBR.5128.d
	option = {
		name = IBR.5128.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			if = { #LIB ENDING
				limit = {
					has_country_flag = IBR_congress_liberty_lib
					has_country_flag = IBR_congress_regions_lib
				}
				country_event = {
					id = IBR.5123
					days = 1
				}
			}
			else_if = { #CON ENDING
				limit = {
					OR = {
						AND = {
							has_country_flag = IBR_congress_liberty_con
							has_country_flag = IBR_congress_regions_con
						}
						AND = {
							has_country_flag = IBR_congress_liberty_lib
							has_country_flag = IBR_congress_regions_con
						}
						AND = {
							has_country_flag = IBR_congress_liberty_con
							has_country_flag = IBR_congress_regions_lib
						}
					}
				}
				country_event = {
					id = IBR.5124
					days = 1
				}
			}
			else_if = { #BAD ENDING
				limit = {
					count_triggers = {
						amount = 2
						AND = {
							has_country_flag = IBR_congress_separatists
							has_country_flag = IBR_congress_conservatives
						}
						AND = {
							has_country_flag = IBR_congress_separatists
							has_country_flag = IBR_congress_militarists
						}
						AND = {
							has_country_flag = IBR_congress_technocrats
							has_country_flag = IBR_congress_conservatives
						}
						AND = {
							has_country_flag = IBR_congress_technocrats
							has_country_flag = IBR_congress_militarists
						}
					}
				}
				country_event = {
					id = IBR.5126
					days = 1
				}
			}
			else = { #MIXED
				country_event = {
					id = IBR.5125
					days = 1
				}
			}
		}
		#CLEARIN ALL OF THEM FLAGS EXCEPT THE BROADCAST ONE#
		clr_country_flag = IBR_congress_technocrats
		clr_country_flag = IBR_congress_separatists
		clr_country_flag = IBR_congress_militarists
		clr_country_flag = IBR_congress_conservatives
		clr_country_flag = IBR_congress_liberty_lib
		clr_country_flag = IBR_congress_liberty_con
		clr_country_flag = IBR_congress_regions_lib
		clr_country_flag = IBR_congress_regions_con
	}
}


####AuthDem Congress 1970 tree####
#########(AUTH CONGRESS)##########
##################################



country_event = { #The Madrid Families Festival
	id = IBR.689
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.689" }
	picture = GFX_report_event_IBR_propaganda_family
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.689.t
	desc = IBR.689.d
	option = {
		name = IBR.689.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Iberian Woman Appreciation Day
	id = IBR.691
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.691" }
	picture = GFX_report_event_IBR_propaganda_woman
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.691.t
	desc = IBR.691.d
	option = {
		name = IBR.691.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Hierarchy and Society
	id = IBR.5130
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5130" }
	picture = GFX_report_event_IBR_falange_standard_bearers
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5130.t
	desc = IBR.5130.d
	option = {
		name = IBR.5130.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 3
		}
		custom_effect_tooltip = IBR_add_auth_med_tt

		set_country_flag = IBR_ac_social_window_strong
	}
	option = {
		name = IBR.5130.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt

		set_country_flag = IBR_ac_social_window_weak
	}
}

country_event = { #Maintaining What We Have
	id = IBR.5131
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5131" }
	picture = GFX_report_event_IBR_opus_dei_lads
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5131.t
	desc = IBR.5131.d
	option = {
		name = IBR.5131.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt

		tno_trade_laws_improve = yes

		IBR_sub_5_authdem = yes

		if = {
			limit = {
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
				check_variable = {
					IBR_ac_authoritarianism > 2
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5163
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
				check_variable = {
					IBR_ac_authoritarianism < -2
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5159
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
			}
			hidden_effect = {
				country_event = {
					id = IBR.5167
					days = 3
				}
			}
		}
		else = {
			set_country_flag = IBR_ac_fp_economics
		}
		if = {
			limit = {
				has_country_flag = IBR_ac_fp_economics
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
			}
			clr_country_flag = IBR_ac_fp_economics
			clr_country_flag = IBR_ac_fp_politics
			clr_country_flag = IBR_ac_fp_minorities

			clr_country_flag = IBR_ac_keep_things_right
			clr_country_flag = IBR_ac_social_window_strong
			clr_country_flag = IBR_ac_social_window_weak

			clr_country_flag = IBR_ac_new_part_of_congress
			clr_country_flag = IBR_ac_restructuring_unfair
			clr_country_flag = IBR_ac_what_they_want
			clr_country_flag = IBR_ac_multiparty_system

			clr_country_flag = IBR_auth_congress_authoritarianism
		}
	}
	option = {
		name = IBR.5131.b
		ai_chance = { factor = 10 }

		if = {
			limit = { has_idea = tno_trade_laws_limited_exports }

			tno_trade_laws_worsen = yes
		}
		else = {
			TNO_improve_trade_laws_policy_effectiveness_low = yes
		}

		if = {
			limit = {
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
				check_variable = {
					IBR_ac_authoritarianism > 2
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5163
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
				check_variable = {
					IBR_ac_authoritarianism < -2
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5159
					days = 3
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
			}
			hidden_effect = {
				country_event = {
					id = IBR.5167
					days = 3
				}
			}
		}
		else = {
			set_country_flag = IBR_ac_fp_economics
		}
		if = {
			limit = {
				has_country_flag = IBR_ac_fp_economics
				has_country_flag = IBR_ac_fp_politics
				has_country_flag = IBR_ac_fp_minorities
			}
			clr_country_flag = IBR_ac_fp_economics
			clr_country_flag = IBR_ac_fp_politics
			clr_country_flag = IBR_ac_fp_minorities

			clr_country_flag = IBR_ac_keep_things_right
			clr_country_flag = IBR_ac_social_window_strong
			clr_country_flag = IBR_ac_social_window_weak

			clr_country_flag = IBR_ac_new_part_of_congress
			clr_country_flag = IBR_ac_restructuring_unfair
			clr_country_flag = IBR_ac_what_they_want
			clr_country_flag = IBR_ac_multiparty_system

			clr_country_flag = IBR_auth_congress_authoritarianism
		}
	}
}

country_event = { #Restructuring Unfair Systems
	id = IBR.5132
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5132" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5132.t
	desc = IBR.5132.d
	option = {
		name = IBR.5132.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -5
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = -0.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = -0.5
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = -0.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = -0.5
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_sub_cnt_support_small_tt
		custom_effect_tooltip = IBR_sub_eta_support_small_tt
		custom_effect_tooltip = IBR_sub_tba_support_small_tt
		custom_effect_tooltip = IBR_sub_fslp_support_small_tt
	}
	option = {
		name = IBR.5132.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -2
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
	}
}

country_event = { #Toning Down the Rhetoric
	id = IBR.5133
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5133" }
	picture = GFX_report_event_IBR_franco_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5133.t
	desc = IBR.5133.d
	option = {
		name = IBR.5133.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
	}
	option = {
		name = IBR.5133.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -1
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
	}
}

country_event = { #Find out What They Want
	id = IBR.5134
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5134" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5134.t
	desc = IBR.5134.d
	option = {
		name = IBR.5134.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -2
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
	}
	option = {
		name = IBR.5134.b
		ai_chance = { factor = 10 }
	}
}

#MIDDLE BRANCH UNDER

country_event = { #The Presidents' Speech
	id = IBR.5135
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5135" }
	picture = GFX_report_event_IBR_franco_boomer
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5135.t
	desc = IBR.5135.d
	option = {
		name = IBR.5135.a
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBR_ac_social_window_strong }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 3
		}
		custom_effect_tooltip = IBR_add_auth_med_tt
		IBR_add_5_authdem = yes
	}
	option = {
		name = IBR.5135.b
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBR_ac_social_window_weak }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
		IBR_add_3_authdem = yes
	}
	option = {
		name = IBR.5135.c
		ai_chance = { factor = 10 }
		trigger = {
			NOT = {
				has_country_flag = IBR_ac_social_window_weak
				has_country_flag = IBR_ac_social_window_strong
			}
		}

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -1
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
		IBR_sub_3_authdem = yes
	}
}

country_event = { #Power to the Regions
	id = IBR.5136
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5136" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5136.t
	desc = IBR.5136.d
	option = { #Decentralization is the goal
		name = IBR.5136.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -6
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt
	}
	option = { #Limited power, but power all the same
		name = IBR.5136.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
	}
}

country_event = { #Keeping Regional Promises?
	id = IBR.5137
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5137" }
	picture = GFX_report_event_IBR_meeting_small
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5137.t
	desc = IBR.5137.d
	option = { #Local legislatures, but limited power
		name = IBR.5137.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
	}
	option = { #Actually this is all mainly rhetoric...
		name = IBR.5137.b
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}

country_event = { #A Fundamentally Broken Political System
	id = IBR.5138
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5138" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5138.t
	desc = IBR.5138.d
	option = { #A thorough overhaul is in order
		name = IBR.5138.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -6
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt
		add_ideas = tno_vote_franchise_registered_voting
	}
	option = { #Let us focus on the tabled reforms
		name = IBR.5138.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt

	}
}

country_event = { #Improving Representation in Iberia
	id = IBR.5139
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5139" }
	picture = GFX_report_event_IBR_meeting_small
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5139.t
	desc = IBR.5139.d
	option = { #Start working through the tabled reforms
		name = IBR.5139.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
	}
	option = { #We should probably focus on the most important ones...
		name = IBR.5139.b
		ai_chance = { factor = 10 }

		add_political_power = -10

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -2
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
	}
}

country_event = { #Surveillance for the Greater Good
	id = IBR.5140
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5140" }
	picture = GFX_report_event_IBR_wiretapping_surveillance
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5140.t
	desc = IBR.5140.d
	option = {
		name = IBR.5140.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			if = {
				limit = { has_country_flag = IBR_ac_keep_things_right }
				country_event = {
					id = IBR.5141
					days = 4
				}
			}
			else = {
				country_event = {
					id = IBR.5143
					days = 4
				}
			}
		}
	}
}

country_event = { #Everything According to Plan
	id = IBR.5141
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5141" }
	picture = GFX_report_event_IBR_ballot_boxes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5141.t
	desc = IBR.5141.d
	option = { #Now, about those voting booths...
		name = IBR.5141.a
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				has_country_flag = IBR_ac_social_window_weak
				has_country_flag = IBR_ac_social_window_strong
			}
		}

		add_political_power = 25
		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 2
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5142
				days = 5
			}
		}
	}
	option = { #All in a days work
		name = IBR.5141.b
		ai_chance = { factor = 10 }
		trigger = {
			NOT = {
				has_country_flag = IBR_ac_social_window_weak
				has_country_flag = IBR_ac_social_window_strong
			}
		}

		add_political_power = 25
		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 2
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
	}
}

country_event = { #Stronger Electoral Control
	id = IBR.5142
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5142" }
	picture = GFX_report_event_IBR_voting_nuns
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5142.t
	desc = IBR.5142.d
	option = {
		name = IBR.5142.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 3
		}
		custom_effect_tooltip = IBR_add_auth_med_tt
	}
}

country_event = { #Attempts at Monitoring Elections Blocked
	id = IBR.5143
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5143" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5143.t
	desc = IBR.5143.d
	option = {
		name = IBR.5143.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
	}
}

country_event = { #A Plan for Election Results
	id = IBR.5144
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5144" }
	picture = GFX_report_event_IBR_election_line
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5144.t
	desc = IBR.5144.d
	option = { #The people's decisions should ideally be binding
		name = IBR.5144.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -5
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt
		hidden_effect = {
			if = {
				limit = { has_country_flag = IBR_ac_new_part_of_congress }
				country_event = {
					id = IBR.5145
					days = 2
				}
			}
		}
	}
	option = { #The people guide, but do not rule
		name = IBR.5144.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
		hidden_effect = {
			if = {
				limit = {
					NOT = {
						has_country_flag = IBR_ac_keep_things_right
					}
				}
				country_event = {
					id = IBR.5147
					days = 3
				}
			}
		}
	}
}

country_event = { #The Party Question
	id = IBR.5145
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5145" }
	picture = GFX_report_event_IBR_alianza_popular
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5145.t
	desc = IBR.5145.d
	option = { #Iberia benefits from multiple parties
		name = IBR.5145.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.5146
			days = 3
		}
	}
	option = { #That is one step too far...
		name = IBR.5145.b
		ai_chance = { factor = 10 }
	}
}

country_event = { #Presidents Speak in Favor of Parties
	id = IBR.5146
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5146" }
	picture = GFX_report_event_IBR_franco_boomer
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5146.t
	desc = IBR.5146.d
	option = {
		name = IBR.5146.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -4
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
		set_country_flag = IBR_ac_multiparty_system
	}
}

country_event = { #Internal Transcripts Leak
	id = IBR.5147
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5147" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5147.t
	desc = IBR.5147.d
	option = {
		name = IBR.5147.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5148
				days = 3
			}
		}
	}
}


country_event = { #Protests for Binding Elections
	id = IBR.5148
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5148" }
	picture = GFX_report_event_IBR_democratic_rally
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5148.t
	desc = IBR.5148.d
	option = {
		name = IBR.5148.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -3
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
	}
}

country_event = { #Moving Towards a Multiparty System
	id = IBR.5149
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5149" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5149.t
	desc = IBR.5149.d
	option = {
		name = IBR.5149.a
		ai_chance = { factor = 10 }

		add_stability = 0.1

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -8
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt
	}
}

country_event = { #The Rise of the Parties
	id = IBR.5150
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5150" }
	picture = GFX_report_event_IBR_alianza_popular
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5150.t
	desc = IBR.5150.d
	option = { #Tell Iberians that competition is healthy
		name = IBR.5150.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -2
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt

		IBR_add_5_soccon = yes
		IBR_add_3_soclib = yes

		hidden_effect = {
			country_event = {
				id = IBR.5151
				days = 6
			}
		}
	}
	option = { #Campaign Against Them
		name = IBR.5150.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 2
		}
		custom_effect_tooltip = IBR_add_auth_small_tt

		IBR_add_5_soccon = yes
		IBR_add_3_soclib = yes

		hidden_effect = {
			if = {
				limit = { has_country_flag = IBR_ac_keep_things_right }
				country_event = {
					id = IBR.5152
					days = 6
				}
			}
			else = {
				country_event = {
					id = IBR.5153
					days = 3
				}
			}
		}
	}
}

country_event = { #The Party Growth Slows
	id = IBR.5151
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5151" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5151.t
	desc = IBR.5151.d
	option = { #The parties need some help gaining strength
		name = IBR.5151.a
		ai_chance = { factor = 10 }
		trigger = {
			NOT = {
				has_country_flag = IBR_ac_keep_things_right
			}
		}

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -4
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
		IBR_add_10_soccon = yes
		country_event = {
			id = IBR.5149
			days = 2
		}
	}
	option = { #The strategy worked, we can relax
		name = IBR.5151.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -1
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
		IBR_add_3_soccon = yes
	}
	option = { #Strike them while they are weak!
		name = IBR.5151.c
		ai_chance = { factor = 10 }
		trigger = {
			has_country_flag = IBR_ac_keep_things_right
		}

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
		IBR_add_3_soccon = yes
		country_event = {
			id = IBR.5155
			days = 2
		}
	}
}

country_event = { #The Party Growth Slows Greatly
	id = IBR.5152
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5152" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5152.t
	desc = IBR.5152.d
	option = { #The strategy worked, we can relax
		name = IBR.5152.a
		ai_chance = { factor = 10 }
	}
	option = { #Strike them while they are weak!
		name = IBR.5152.b
		ai_chance = { factor = 10 }
		trigger = {
			has_country_flag = IBR_ac_keep_things_right
		}

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
		country_event = {
			id = IBR.5155
			days = 2
		}
	}
}

country_event = { #Propaganda Perceived as Weak
	id = IBR.5153
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5153" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5153.t
	desc = IBR.5153.d
	option = {
		name = IBR.5153.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -1
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt
		hidden_effect = {
			country_event = {
				id = IBR.5154
				days = 3
			}
		}
	}
}

country_event = { #The Party Growth Increases
	id = IBR.5154
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5154" }
	picture = GFX_report_event_IBR_fraga_rally
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5154.t
	desc = IBR.5154.d
	option = {
		name = IBR.5154.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -4
		}
		custom_effect_tooltip = IBR_sub_auth_med_tt
		IBR_add_10_soccon = yes
		IBR_add_5_marklib = yes
		IBR_add_3_soclib = yes
	}
}

country_event = { #A Final Blow to the Opportunists
	id = IBR.5155
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5155" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5155.t
	desc = IBR.5155.d
	option = {
		name = IBR.5155.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			if = {
				limit = { has_country_flag = IBR_ac_social_window_strong }
				country_event = {
					id = IBR.5156
					days = 4
				}
			}
			else_if = {
				limit = { has_country_flag = IBR_ac_social_window_weak }
				country_event = {
					id = IBR.5157
					days = 4
				}
			}
			else = {
				country_event = {
					id = IBR.5158
					days = 4
				}
			}
		}
	}
}

country_event = { #The Parties Crushed
	id = IBR.5156
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5156" }
	picture = GFX_report_event_IBR_congress_clapping
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5156.t
	desc = IBR.5156.d
	option = {
		name = IBR.5156.a
		ai_chance = { factor = 10 }

		add_political_power = 100
		add_stability = -0.2

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 7
		}
		custom_effect_tooltip = IBR_add_auth_big_tt
		IBR_sub_30_soccon = yes
		IBR_sub_15_marklib = yes
		IBR_sub_15_soclib = yes
	}
}

country_event = { #Parties Slightly Weakened, but Relevant
	id = IBR.5157
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5157" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5157.t
	desc = IBR.5157.d
	option = {
		name = IBR.5157.a
		ai_chance = { factor = 10 }

		add_political_power = 25
		add_stability = -0.05

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 1
		}
		custom_effect_tooltip = IBR_add_auth_small_tt
		IBR_sub_5_soccon = yes
		IBR_sub_5_marklib = yes
		IBR_sub_3_soclib = yes
	}
}

country_event = { #Crackdown Blocked by Institutions
	id = IBR.5158
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5158" }
	picture = GFX_report_event_IBR_congress_panic
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.5158.t
	desc = IBR.5158.d
	option = {
		name = IBR.5158.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -10
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt
		IBR_add_15_soccon = yes
		IBR_add_5_marklib = yes
		IBR_add_3_soclib = yes
	}
}

##AUTH CONGRESS FLASHPOINTS##

#Carnation Rev Flashpoint

country_event = { #Pro-democracy Protest in the Capital
	id = IBR.5159
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5159" }
	picture = GFX_report_event_IBR_democratic_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5159.t
	desc = IBR.5159.d
	option = {
		name = IBR.5159.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5160
				days = 5
			}
		}
	}
}

country_event = { #Pro-democracy Movement Spreads
	id = IBR.5160
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5160" }
	picture = GFX_report_event_IBR_cnt_barcelona_protest_70s
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5160.t
	desc = IBR.5160.d
	option = {
		name = IBR.5160.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_in_crisis

		add_political_power = -50

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5161
				days = 2
			}
		}
	}
}

country_event = { #The Confrontation
	id = IBR.5161
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5161" }
	picture = GFX_report_event_IBR_guardia_civil_joins_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5161.t
	desc = IBR.5161.d
	option = {
		name = IBR.5161.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5162
				days = 4
			}
		}
	}
}

country_event = { #The End of an Era
	id = IBR.5162
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5162" }
	picture = GFX_report_event_IBR_army_joins_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5162.t
	desc = IBR.5162.d
	option = {
		name = IBR.5162.a
		ai_chance = { factor = 10 }

		add_political_power = 100

		add_to_variable = {
			var = IBRIberiaStability
			value = 6
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt
		set_politics = {
			ruling_party = liberalism
		}
		add_country_leader_role = {
			character = IBR_Manuel_Gutierrez
			promote_leader = yes
			country_leader = {
				desc = "POLITICS_MANUEL_MELLADO_DESC"
				expire = "1981.10.20"
				ideology = liberalism_subtype
				traits = {
					#
				}
			}
		}
		remove_all_ministers = yes
		add_ideas = IBR_Adelino_Palma_hog
		add_ideas = IBR_Manuel_Gutierrez_sec
		add_ideas = IBR_Joaquin_Gimenez_for
		add_ideas = IBR_Licinio_Fuente_eco
		set_cosmetic_tag = IBR_CONGRESS
		clr_country_flag = IBR_auth_congress_authoritarianism
		load_focus_tree = {
			tree = IBR_politics_carnation_revolution
			keep_completed = yes
		}

		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.1503
					days = 1
				}
			}
		}
	}
}

#Wars Flashpoint

country_event = { #Anti-government Protest in the Capital
	id = IBR.5163
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5163" }
	picture = GFX_report_event_IBR_democratic_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5163.t
	desc = IBR.5163.d
	option = {
		name = IBR.5163.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5164
				days = 5
			}
		}
	}
}

country_event = { #Anti-government Movement Spreads
	id = IBR.5164
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5164" }
	picture = GFX_report_event_generic_protest
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5164.t
	desc = IBR.5164.d
	option = {
		name = IBR.5164.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5165
				days = 2
			}
		}
		set_country_flag = IBR_in_crisis
	}
}

country_event = { #The Slaughter
	id = IBR.5165
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5165" }
	picture = GFX_report_event_GER_riot_chaos
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5165.t
	desc = IBR.5165.d
	option = {
		name = IBR.5165.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5166
				days = 4
			}
		}
	}
}

country_event = { #Chaos Descends
	id = IBR.5166
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5166" }
	picture = GFX_report_event_IBR_iberian_wars_10
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5166.t
	desc = IBR.5166.d
	option = {
		name = IBR.5166.a
		ai_chance = { factor = 10 }

		add_political_power = -150

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 10
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

#Nothing happens at Flashpoint

country_event = { #Minor Protests in the Capital
	id = IBR.5167
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5167" }
	picture = GFX_report_event_IBR_UR_rally
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5167.t
	desc = IBR.5167.d
	option = {
		name = IBR.5167.a
		ai_chance = { factor = 10 }

		add_political_power = -10
		hidden_effect = {
			country_event = {
				id = IBR.5168
				days = 3
			}
		}
	}
}

country_event = { #Protests Dissipate
	id = IBR.5168
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5168" }
	picture = GFX_report_event_IBR_madrid
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5168.t
	desc = IBR.5168.d
	option = {
		name = IBR.5168.a
		ai_chance = { factor = 10 }

		add_stability = 0.05
	}
}
#Carnation Tree events
country_event = {
	id = IBR.5169
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5169" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5169.t
	desc = IBR.5169.d
	option = {
		name = IBR.5169.a
		ai_chance = { factor = 10 }
		add_stability = 0.05
	}
}
country_event = {
	id = IBR.5170
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5170" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5170.t
	desc = IBR.5170.d
	option = {
		name = IBR.5170.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5171
				days = 10
			}
		}
	}
}
country_event = {
	id = IBR.5171
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5171" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5171.t
	desc = IBR.5171.d
	option = {
		name = IBR.5171.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5172
				days = 10
			}
		}
	}
}
country_event = {
	id = IBR.5172
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5172" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5172.t
	desc = IBR.5172.d
	option = {
		name = IBR.5172.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5173
				days = 10
			}
		}
	}
}
country_event = {
	id = IBR.5173
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5173" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.5173.t
	desc = IBR.5173.d
	option = {
		name = IBR.5173.a
		ai_chance = { factor = 10 }
	}
}
###############################################Einheitspakt foreign policy

country_event = { #Iberia Proposes a Non-agression Pact
	id = IBR.722
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.722" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.722.t
	desc = IBR.722.d
	option = {
		name = IBR.722.a
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }
		diplomatic_relation = {
			country = IBR
			relation = non_aggression_pact
			active = yes
		}
		IBR = {
			country_event = {
				id = IBR.729
				days = 6
			}
		}
	}
	option = {
		name = IBR.722.b
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }
		add_political_power = 25

		IBR = {
			country_event = {
				id = IBR.736
				days = 6
			}
		}
	}
	option = {
		name = IBR.722.c
		ai_chance = { factor = 10 }
		trigger = { is_ai = yes }

		if = {
			limit = {
				has_country_leader = {
					character = GER_martin_bormann
					ruling_only = yes
				}
			}

			random_list = {
				60 = {
					diplomatic_relation = {
						country = IBR
						relation = non_aggression_pact
						active = yes
					}
					IBR = {
						country_event = {
							id = IBR.729
							days = 6
						}
					}
				}
				40 = {
					IBR = {
						country_event = {
							id = IBR.736
							days = 6
						}
					}
				}
			}
		}
		else = {
			diplomatic_relation = {
				country = IBR
				relation = non_aggression_pact
				active = yes
			}
			IBR = {
				country_event = {
					id = IBR.729
					days = 6
				}
			}
		}
	}
}

country_event = { #German-Iberian Non-Agression Pact
	id = IBR.729
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.729" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.729.t
	desc = IBR.729.d
	option = {
		name = IBR.729.a
		ai_chance = { factor = 10 }

		add_political_power = 50
		if = {
			limit = { has_country_flag = IBRDespotistUnion }

			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		if = {
			limit = {
				GER = { has_country_leader = { character = GER_albert_speer ruling_only = yes } }
				has_country_flag = IBRAuthDemCongress
			}
			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = 3
			}
			custom_effect_tooltip = IBR_add_auth_med_tt
		}
		else_if = {
			limit = {
				has_country_flag = IBRAuthDemCongress
			}
			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = 6
			}
			custom_effect_tooltip = IBR_add_auth_big_tt
		}
	}
}

country_event = { #Germany Rejects Our Proposal
	id = IBR.736
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.736" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.736.t
	desc = IBR.736.d
	option = {
		name = IBR.736.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		if = {
			limit = { has_government = despotism }
			add_to_variable = {
				var = IBRIberiaStability
				value = -2
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt
		}
	}
}

country_event = { #Iberia Wants Assistance With The Dam
	id = IBR.724
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.724" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.724.t
	desc = IBR.724.d
	option = {
		name = IBR.724.a
		ai_chance = { factor = 10 }
		add_political_power = -25

		#IBR = {
		#	country_event = {
		#		id = IBR.725
		#		days = 1
		#	}
		#}
	}
}

country_event = { #Germany Says They Won't Help With The Dam
	id = IBR.725
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.725" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.725.t
	desc = IBR.725.d
	option = {
		name = IBR.725.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Iberia Ask For Non aggression pact
	id = IBR.780
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.780" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.780.t
	desc = IBR.780.d

	option = { #Sure
		name = IBR.780.a
		diplomatic_relation = {
			country = IBR
			relation = non_aggression_pact
			active = yes
		}

		if = {
			limit = { tag = ENG }

			IBR = {
				country_event = {
					id = IBR.781
					days = 3
				}
			}
		}
		else = {

			IBR = {
				country_event = {
					id = IBR.782
					days = 3
				}
			}
		}
	}
	option = { #No Way
		name = IBR.780.b
		trigger = { is_ai = no }
		set_country_flag = IBR_refused_pact #IDK what this is for tbqh

		if = {
			limit = { tag = ENG }

			IBR = {
				country_event = {
					id = IBR.783
					days = 3
				}
			}
		}
		else = {

			IBR = {
				country_event = {
					id = IBR.784
					days = 3
				}
			}
		}
	}
}

country_event = { #Britain/England Agrees
	id = IBR.781
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.781" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.781.t
	desc = IBR.781.d

	option = {
		name = IBR.781.a
	}
}

country_event = { #France Agrees
	id = IBR.782
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.782" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.782.t
	desc = IBR.782.d

	option = {
		name = IBR.782.a
	}
}

country_event = { #cosmetic england no lol
	id = IBR.783
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.783" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.783.t
	desc = IBR.783.d

	option = {
		name = IBR.783.a
	}
}

country_event = { #cosmetic france no lol
	id = IBR.784
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.784" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.784.t
	desc = IBR.784.d

	option = {
		name = IBR.784.a
	}
}

###############################################Mediterranean foreign policy

country_event = { #italy open borders
	id = IBR.730
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.730" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.730.t
	desc = IBR.730.d
	option = {
		name = IBR.730.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
		every_country = {
			limit = {
				is_subject_of = ITA
			}
			set_temp_variable = { temp_modifier = 100 }
			IBR = { add_to_trade_modifier_PREV = yes }
			give_military_access = IBR
		}
	}
	option = {
		name = IBR.730.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
		if = {
			limit = {
				has_military_access_to = IBR
			}
			IBR = {
				diplomatic_relation = {
					country = ITA
					relation = military_access
					active = no
				}
			}
		}
	}
}

country_event = { #turkey open borders
	id = IBR.731
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.731" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.731.t
	desc = IBR.731.d
	option = {
		name = IBR.731.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.731.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
		if = {
			limit = {
				has_military_access_to = IBR
			}
			IBR = {
				diplomatic_relation = {
					country = TUR
					relation = military_access
					active = no
				}
			}
		}
	}
}

country_event = { #greece open borders
	id = IBR.732
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.732" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.732.t
	desc = IBR.732.d
	option = {
		name = IBR.732.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.732.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
		if = {
			limit = {
				has_military_access_to = IBR
			}
			IBR = {
				diplomatic_relation = {
					country = GRE
					relation = military_access
					active = no
				}
			}
		}
	}
}

country_event = { #Egypt open borders
	id = IBR.733
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.733" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.733.t
	desc = IBR.733.d
	option = {
		name = IBR.733.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.733.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
	}
}

country_event = { #Syria opens borders
	id = IBR.7334
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7334" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.7334.t
	desc = IBR.7334.d
	option = {
		name = IBR.7334.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.7334.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
	}
}

country_event = { # Algeria opens borders
	id = IBR.7335
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7335" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.7335.t
	desc = IBR.7335.d
	option = {
		name = IBR.7335.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.7335.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
	}
}

country_event = { # Israel opens borders
	id = IBR.7336
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7336" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.7336.t
	desc = IBR.7336.d
	option = {
		name = IBR.7336.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.7336.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
	}
}

country_event = { # Palestine opens borders
	id = IBR.7337
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7337" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.7337.t
	desc = IBR.7337.d
	option = {
		name = IBR.7337.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.7337.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
	}
}

country_event = { # Lebanon opens borders
	id = IBR.7338
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.7338" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.7338.t
	desc = IBR.7338.d
	option = {
		name = IBR.7338.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}
		set_temp_variable = { temp_modifier = 100 }
		IBR = { add_to_trade_modifier_PREV = yes }
		give_military_access = IBR
	}
	option = {
		name = IBR.7338.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20
	}
}

country_event = { #NONAG ITALY
	id = IBR.734
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.734" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.734.t
	desc = IBR.734.d
	option = {
		name = IBR.734.a
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }

		diplomatic_relation = {
			country = IBR
			relation = non_aggression_pact
			active = yes
		}
		IBR = {
			country_event = {
				id = IBR.867
				days = 5
			}
		}
	}
	option = {
		name = IBR.734.b
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }
		add_political_power = 20

	}
	option = {
		name = IBR.734.c
		trigger = { is_ai = yes }
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_leader = {
					character = ITA_Carlo_Scorza
					ruling_only = yes
				}
				ILG = {
					has_country_leader = {
						character = ILG_messali_hadj
						ruling_only = yes
					}
				}
			}
			if = {
				limit = { IBR = { has_country_flag = IBRChoseUnion } }
				random_list = {
					90 = {
						modifier = {
							factor = 0
							has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
						}
						diplomatic_relation = {
							country = IBR
							relation = non_aggression_pact
							active = yes
						}
						IBR = {
							country_event = {
								id = IBR.867
								days = 6
							}
						}
					}
					10 = {
						modifier = {
							factor = 0
							has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
						}
						IBR = {
							country_event = {
								id = IBR.868
								days = 6
							}
						}
					}
				}
			}
			else_if = {
				limit = { IBR = { has_country_flag = IBRAuthDemCongress } }
				random_list = {
					60 = {
						modifier = {
							factor = 0
							has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
						}
						diplomatic_relation = {
							country = IBR
							relation = non_aggression_pact
							active = yes
						}
						IBR = {
							country_event = {
								id = IBR.867
								days = 6
							}
						}
					}
					40 = {
						modifier = {
							factor = 0
							has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
						}
						IBR = {
							country_event = {
								id = IBR.868
								days = 6
							}
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				has_country_leader = {
					character = ITA_Carlo_Scorza
					ruling_only = yes
				}
			}

			IBR = {
				country_event = {
					id = IBR.868
					days = 6
				}
			}
		}
		else = {
			if = {
				limit = { IBR = { has_country_flag = IBRDespotistUnion } }

				IBR = {
					country_event = {
						id = IBR.868
						days = 6
					}
				}
			}
			else = {
				diplomatic_relation = {
					country = IBR
					relation = non_aggression_pact
					active = yes
				}
				IBR = {
					country_event = {
						id = IBR.867
						days = 6
					}
				}
			}
		}
	}
}

country_event = { #TURKEY NONAG
	id = IBR.735
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.735" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.735.t
	desc = IBR.735.d
	option = {
		name = IBR.735.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
			}
		}

		diplomatic_relation = {
			country = IBR
			relation = non_aggression_pact
			active = yes
		}
	}
	option = {
		name = IBR.735.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
			}
		}
		add_political_power = 20

	}
	option = {
		name = IBR.735.c
		ai_chance = { factor = 10 }
		trigger = { is_ai = yes }

		if = {
			limit = { IBR = { has_country_flag = IBRChoseUnion } }
			random_list = {
				90 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
					}
					diplomatic_relation = {
						country = IBR
						relation = non_aggression_pact
						active = yes
					}
					IBR = {
						country_event = {
							id = IBR.869
							days = 6
						}
					}
				}
				10 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
					}
					IBR = {
						country_event = {
							id = IBR.870
							days = 6
						}
					}
				}
			}
		}
		else_if = {
			limit = { IBR = { has_country_flag = IBRAuthDemCongress } }
			random_list = {
				75 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
					}
					diplomatic_relation = {
						country = IBR
						relation = non_aggression_pact
						active = yes
					}
					IBR = {
						country_event = {
							id = IBR.869
							days = 6
						}
					}
				}
				25 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
					}
					IBR = {
						country_event = {
							id = IBR.870
							days = 6
						}
					}
				}
			}
		}
		else = {
			random_list = {
				50 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_FAILURE }
					}
					diplomatic_relation = {
						country = IBR
						relation = non_aggression_pact
						active = yes
					}
					IBR = {
						country_event = {
							id = IBR.869
							days = 6
						}
					}
				}
				50 = {
					modifier = {
						factor = 0
						has_game_rule = { rule = IBR_MEDITERRANEAN_RECONCILIATION_PATH option = IBR_MEDITERRANEAN_RECONCILIATION_PATH_SUCCESSFUL }
					}
					IBR = {
						country_event = {
							id = IBR.870
							days = 6
						}
					}
				}
			}
		}
	}
}

country_event = { #Italo-Iberian Non-Agression Pact
	id = IBR.867
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.867" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.867.t
	desc = IBR.867.d
	option = {
		name = IBR.867.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBRChoseUnion }

			add_to_variable = {
				var = IBRIberiaStability
				value = 0.5
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		else = {
			if = {
				limit = {
					OR = {
						has_country_leader = {
							character = IBR_Torcuato_Fernandez_Miranda
							ruling_only = yes
						}
						has_country_leader = {
							character = IBR_Manuel_Gutierrez
							ruling_only = yes
						}
					}
				}

				IBR_add_5_soclib = yes
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = IBR_Alberto_Ullastres_Calvo
						ruling_only = yes
					}
				}

				IBR_add_5_marklib = yes
			}
			else_if = {
				limit = { has_government = conservatism }

				IBR_add_5_soccon = yes
			}
			else_if = {
				limit = { has_government = anocracy }

				IBR_add_5_authdem = yes
			}
		}

		if = {
			limit = {
				ITA = { has_government = fascism }
				has_country_flag = IBRAuthDemCongress
			}
			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = 3
			}
			custom_effect_tooltip = IBR_add_auth_med_tt
		}
		else_if = {
			limit = {
				NOT = {
					ITA = { has_government = fascism }
					ITA = { has_government = despotism }
					ITA = { has_government = anocracy }
				}
				has_country_flag = IBRAuthDemCongress
			}
			add_to_variable = {
				var = IBR_ac_authoritarianism
				value = -3
			}
			custom_effect_tooltip = IBR_sub_auth_med_tt
		}
	}
}

country_event = { #Italy Turns Down Our Offer
	id = IBR.868
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.868" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.868.t
	desc = IBR.868.d
	option = {
		name = IBR.868.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBRChoseUnion }

			add_to_variable = {
				var = IBRIberiaStability
				value = -0.5
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}
		else = {
			if = {
				limit = {
					OR = {
						has_country_leader = {
							character = IBR_Torcuato_Fernandez_Miranda
							ruling_only = yes
						}
						has_country_leader = {
							character = IBR_Manuel_Gutierrez
							ruling_only = yes
						}
					}
				}

				IBR_sub_5_soclib = yes
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = IBR_Alberto_Ullastres_Calvo
						ruling_only = yes
					}
				}

				IBR_sub_5_marklib = yes
			}
			else_if = {
				limit = { has_government = conservatism }

				IBR_sub_5_soccon = yes
			}
			else_if = {
				limit = { has_government = anocracy }

				IBR_sub_5_authdem = yes
			}
		}
	}
}

country_event = { #Turco-Iberian Non-Agression Pact
	id = IBR.869
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.869" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.869.t
	desc = IBR.869.d
	option = {
		name = IBR.869.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBRChoseUnion }

			add_to_variable = {
				var = IBRIberiaStability
				value = 0.25
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		else = {
			if = {
				limit = {
					OR = {
						has_country_leader = {
							character = IBR_Torcuato_Fernandez_Miranda
							ruling_only = yes
						}
						has_country_leader = {
							character = IBR_Manuel_Gutierrez
							ruling_only = yes
						}
					}
				}

				IBR_add_3_soclib = yes
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = IBR_Alberto_Ullastres_Calvo
						ruling_only = yes
					}
				}

				IBR_add_3_marklib = yes
			}
			else_if = {
				limit = { has_government = conservatism }

				IBR_add_3_soccon = yes
			}
			else_if = {
				limit = { has_government = anocracy }

				IBR_add_3_authdem = yes
			}
		}
	}
}

country_event = { #Turkey Turns Down Our Offer
	id = IBR.870
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.870" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.870.t
	desc = IBR.870.d
	option = {
		name = IBR.870.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBRChoseUnion }

			add_to_variable = {
				var = IBRIberiaStability
				value = -0.25
			}
			custom_effect_tooltip = IBR_sub_stability_small_tt
		}
		else = {
			if = {
				limit = {
					OR = {
						has_country_leader = {
							character = IBR_Torcuato_Fernandez_Miranda
							ruling_only = yes
						}
						has_country_leader = {
							character = IBR_Manuel_Gutierrez
							ruling_only = yes
						}
					}
				}

				IBR_sub_3_soclib = yes
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = IBR_Alberto_Ullastres_Calvo
						ruling_only = yes
					}
				}

				IBR_sub_3_marklib = yes
			}
			else_if = {
				limit = { has_government = conservatism }

				IBR_sub_3_soccon = yes
			}
			else_if = {
				limit = { has_government = anocracy }

				IBR_sub_3_authdem = yes
			}
		}
	}
}

###########################
########## 1970 ###########
##### AUTH UNION TREE #####
###########################

##A Union of Morals
#The Archbishop of Madrid speaks to the Council
country_event = {
	id = IBR.740
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.740" }
	picture = GFX_report_event_IBR_bishop_of_madrid
	title = IBR.740.t
	desc = IBR.740.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.740.a
		ai_chance = { factor = 10 }
	}
}

##A Limited Council
#The Lisbon Speech
country_event = {
	id = IBR.741
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.741" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.741.t
	desc = IBR.741.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.741.a
		ai_chance = { factor = 10 }
	}
}

##A Firm Hand on Minorities
#Caudillo Salazar gives on a speech on Iberianism
country_event = {
	id = IBR.742
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.742" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.742.t
	desc = IBR.742.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.742.a
		ai_chance = { factor = 10 }
	}
}

##Ignore their Pleas
#The trial of Garaile Kanoi
country_event = {
	id = IBR.743
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.743" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.743.t
	desc = IBR.743.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	#Push for him to be sentenced
	option = {
		name = IBR.743.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					country_event = {
						id = IBR.747
						days = 5
					}
				}
				60 = {
					country_event = {
						id = IBR.748
						days = 5
					}
				}
			}
		}
	}

	#Allow the trial to run unmolested
	option = {
		name = IBR.743.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				60 = {
					country_event = {
						id = IBR.747
						days = 5
					}
				}
				40 = {
					country_event = {
						id = IBR.748
						days = 5
					}
				}
			}
		}
	}
}

##Curb Opus Dei Influence
#"On the Subject of the Opus Dei"
country_event = {
	id = IBR.744
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.744" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.744.t
	desc = IBR.744.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.744.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_744_tt
		subtract_from_variable = {
			variable = IBRMarketLiberalPopularity
			value = 1

		}
	}
}

##The People Calmed
#The Firm Hand
country_event = {
	id = IBR.745
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.745" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.745.t
	desc = IBR.745.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.745.a
		ai_chance = { factor = 10 }
	}
}

##A Guided Democracy
#The Caudillos Give a Rousing Speech to the Council
country_event = {
	id = IBR.746
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.746" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.746.t
	desc = IBR.746.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.746.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_746_tt
		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
	}
}

#The Public believes Garaile Kanoi to be innocent
country_event = {
	id = IBR.747
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.747" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.747.t
	desc = IBR.747.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.747.a
		ai_chance = { factor = 10 }

		add_political_power = -10

		custom_effect_tooltip = IBR_747_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 0.2
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 0.2
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 0.2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

#The Public believes Garaile Kanoi to be guilty
country_event = {
	id = IBR.748
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.748" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.748.t
	desc = IBR.748.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.748.a
		ai_chance = { factor = 10 }
		add_political_power = 10

		custom_effect_tooltip = IBR_747_tt

		add_to_variable = {
			var = IBR_AAS_Resources
			value = 1
		}
		custom_effect_tooltip = IBR_add_aas_tt
	}
}
####Unión Republicana Oil Crisis#
#################################
country_event = {
	id = IBR.749
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.749" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.749.t
	desc = IBR.749.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.749.a
		ai_chance = { factor = 10 }
	}
}

####Salvation Coalition Events
country_event = { #Investigating Federal Agencies
	id = IBR.750
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.750" }
	picture = GFX_report_event_IBR_aramburu
	title = IBR.750.t
	desc = IBR.750.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.750.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.751
				days = 21
			}
		}
	}
}

country_event = { #Investigating Federal Agencies 2
	id = IBR.751
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.751" }
	picture = GFX_report_event_IBR_aramburu
	title = IBR.751.t
	desc = IBR.751.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.751.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Lots Of Information Found
	id = IBR.752
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.752" }
	picture = GFX_report_event_IBR_filing_cabinet
	title = IBR.752.t
	desc = IBR.752.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.752.a
		ai_chance = { factor = 10 }
		IBR_sub_10_authdem = yes
	}
}

country_event = { #Records Found Burned
	id = IBR.753
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.753" }
	picture = GFX_report_event_generic_burning_books
	title = IBR.753.t
	desc = IBR.753.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.753.a
		ai_chance = { factor = 10 }
		IBR_sub_5_authdem = yes
	}
}

country_event = { #Small amounts of evidence found
	id = IBR.754
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.754" }
	picture = GFX_report_event_IBR_meeting_table
	title = IBR.754.t
	desc = IBR.754.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.754.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Auditing Polls
	id = IBR.755
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.755" }
	picture = GFX_report_event_IBR_falange_hq
	title = IBR.755.t
	desc = IBR.755.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.755.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					country_event = {
						id = IBR.752
						days = 14
					}
				}
				30 = {
					country_event = {
						id = IBR.753
						days = 14
					}
				}
				30 = {
					country_event = {
						id = IBR.754
						days = 14
					}
				}
			}
		}
	}
}

country_event = { #Putting National Union on trial
	id = IBR.756
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.756" }
	picture = GFX_report_event_generic_court_case_1
	title = IBR.756.t
	desc = IBR.756.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.756.a
		ai_chance = { factor = 10 }
		#hidden_effect = {
		#country_event = {
		#	id = IBR.757
		#	days = 4
		#}
		#}
	}
}

country_event = { #Putting National Union on trial - supporters protest outside courthouses
	id = IBR.757
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.757" }
	picture = GFX_report_event_IBR_franco_boomer
	title = IBR.757.t
	desc = IBR.757.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.757.a
		ai_chance = { factor = 10 }
		add_stability = -0.05
		hidden_effect = {
			country_event = {
				id = IBR.758
				days = 39
			}
		}
	}
}

country_event = { #Finally protests end
	id = IBR.758
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.758" }
	picture = GFX_report_event_IBR_madrid
	title = IBR.758.t
	desc = IBR.758.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.758.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Accountability Event
	id = IBR.759
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.759" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	title = IBR.759.t
	desc = IBR.759.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	option = {
		name = IBR.759.a
		ai_chance = { factor = 10 }
		random_list = {
			34 = {
				IBR_add_5_soccon = yes
			}
			33 = {
				IBR_add_5_marklib = yes
			}
			33 = {
				IBR_add_5_soclib = yes
			}
		}
	}
}

country_event = { #Reassuring The People
	id = IBR.760
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.760" }
	picture = GFX_report_event_IBR_madrid_crowd
	title = IBR.760.t
	desc = IBR.760.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.760.a
		ai_chance = { factor = 10 }
		add_stability = 0.05
		add_to_variable = { IBRIberiaStability = 1 }
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Breaking Corporatism
	id = IBR.761
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.761" }
	picture = GFX_report_event_IND_factory_2
	title = IBR.761.t
	desc = IBR.761.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.761.a
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_GDP_boost_flat = 0.012 } #already converted to billion
		econ_GDP_boost_once_flat = yes

		set_temp_variable = { gdp_growth_temp = 1.3 }
		econ_gdp_growth_change = yes
	}
}

country_event = { #Getting Propaganda Out Of Schools
	id = IBR.762
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.762" }
	picture = GFX_report_event_IBR_iberian_classroom
	title = IBR.762.t
	desc = IBR.762.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.762.a
		ai_chance = { factor = 10 }
		IBR_sub_10_authdem = yes
		add_popularity = {
			ideology = despotism
			popularity = -0.05
		}
		add_popularity = {
			ideology = fascism
			popularity = -0.05
		}
	}
}

country_event = { #New Election Laws
	id = IBR.763
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.763" }
	picture = GFX_report_event_IBR_congress_clapping
	title = IBR.763.t
	desc = IBR.763.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.763.a
		ai_chance = { factor = 10 }
		add_to_variable = { IBRIberiaStability = 1 }
		add_stability = 0.05
		TNO_improve_vote_franchise_policy_effectiveness_low = yes
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Cracking Down On Political Violence
	id = IBR.764
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.764" }
	picture = GFX_report_event_IBR_guardia_civil_joins_protest
	title = IBR.764.t
	desc = IBR.764.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.764.a
		ai_chance = { factor = 10 }
		add_stability = 0.05
		TNO_improve_vote_franchise_policy_effectiveness_low = yes
		add_to_variable = { IBRIberiaStability = 1 }
	}
}

###########Despotist Union events###########

country_event = { #Marketing the Treason Law
	id = IBR.5300
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5300" }
	title = IBR.5300.t
	desc = IBR.5300.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = yes
	fire_only_once = yes

	option = { #It will stop the scheming plotters
		name = IBR.5300.a
		ai_chance = { factor = 10 }
	}
	option = { #It will stop the rabblerousers on the streets
		name = IBR.5300.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_treason_law
	}
}

country_event = { #Reactions to the Exile Plan
	id = IBR.5301
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5301" }
	title = IBR.5301.t
	desc = IBR.5301.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #We can send even more
		name = IBR.5301.a
		ai_chance = { factor = 10 }
	}
	option = { #Stick to the current plan
		name = IBR.5301.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_exile_colonies
	}
}

country_event = { #Mass Arrests Begin
	id = IBR.5302
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5302" }
	title = IBR.5302.t
	desc = IBR.5302.d
	picture = GFX_report_event_IBR_basques_arrested

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5302.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_treason_law
				has_country_flag = IBR_despotist_exile_colonies
			}

			hidden_effect = {
				country_event = {
					id = IBR.5303
					days = 15
				}
			}
		}
		else_if = {
			limit = { has_country_flag = IBR_despotist_exile_colonies }

			hidden_effect = {
				country_event = {
					id = IBR.5305
					days = 6
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5308
					days = 20
				}
			}
		}
	}
}

country_event = { #Enemies Locked up in Tarrafal
	id = IBR.5303
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5303" }
	title = IBR.5303.t
	desc = IBR.5303.d
	picture = GFX_report_event_IBR_tarrafal1

	is_triggered_only = yes
	fire_only_once = no

	option = { #
		name = IBR.5303.a
		ai_chance = { factor = 10 }


		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = -1.5
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = -1.5
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = -1.5
		}
		add_to_variable = {
			var = IBR_FSLP_Activity
			value = -1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_activity_small_tt
		custom_effect_tooltip = IBR_sub_eta_activity_small_tt
		custom_effect_tooltip = IBR_sub_fslp_activity_small_tt
		custom_effect_tooltip = IBR_sub_tba_activity_small_tt

		set_country_flag = IBR_despotist_good_ending_1

		if = {
			limit = {
				has_country_flag = IBR_despotist_caudillos_know_best
			}

			hidden_effect = {
				country_event = {
					id = IBR.5304
					days = 4
				}
			}
		}
		set_country_flag = IBR_despotist_tarrafal_good
	}
}

country_event = { #Iberians Celebrate Exile of Enemies
	id = IBR.5304
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5304" }
	title = IBR.5304.t
	desc = IBR.5304.d
	picture = GFX_report_event_IBR_commuters_madrid_subway

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5304.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = -1.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = -1.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = -1.5
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = -1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_support_small_tt
		custom_effect_tooltip = IBR_sub_eta_support_small_tt
		custom_effect_tooltip = IBR_sub_fslp_support_small_tt
		custom_effect_tooltip = IBR_sub_tba_support_small_tt
	}
}

country_event = { #Protests Against Mass Deportations
	id = IBR.5305
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5305" }
	title = IBR.5305.t
	desc = IBR.5305.d
	picture = GFX_report_event_IBR_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5305.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		if = {
			limit = {
				has_country_flag = IBR_despotist_guardia_civil
			}

			hidden_effect = {
				country_event = {
					id = IBR.5306
					days = 3
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5307
					days = 3
				}
			}
		}
	}
}

country_event = { #Guardia Civil Crushes Protests
	id = IBR.5306
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5306" }
	title = IBR.5306.t
	desc = IBR.5306.d
	picture = GFX_report_event_IBR_guardia_civil

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5306.a
		ai_chance = { factor = 10 }

		add_political_power = 25

	}
}

country_event = { #Protests Contained by Guardia Civil
	id = IBR.5307
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5307" }
	title = IBR.5307.t
	desc = IBR.5307.d
	picture = GFX_report_event_IBR_basque_protestors_beaten

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5307.a
		ai_chance = { factor = 10 }

		add_political_power = 10

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Unrest at Tarrafal
	id = IBR.5308
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5308" }
	title = IBR.5308.t
	desc = IBR.5308.d
	picture = GFX_report_event_IBR_tarrafal1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5308.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5309
				days = 6
			}
		}
	}
}

country_event = { #Prisoners Take Over Tarrafal
	id = IBR.5309
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5309" }
	title = IBR.5309.t
	desc = IBR.5309.d
	picture = GFX_report_event_IBR_tarrafal2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5309.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5310
				days = 5
			}
		}
	}
}

country_event = { #A Bloody Battle
	id = IBR.5310
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5310" }
	title = IBR.5310.t
	desc = IBR.5310.d
	picture = GFX_report_event_IBR_iberian_wars_6

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5310.a
		ai_chance = { factor = 10 }

		add_manpower = -63

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				NOT = { has_country_flag = IBR_despotist_treason_law }
			}

			hidden_effect = {
				country_event = {
					id = IBR.5311
					days = 4
				}
			}
		}
	}
}

country_event = { #Massive Protests Against the Slaughter
	id = IBR.5311
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5311" }
	title = IBR.5311.t
	desc = IBR.5311.d
	picture = GFX_report_event_generic_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5311.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_FSLP_Support
			value = 1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

		if = {
			limit = {
				has_country_flag = IBR_despotist_guardia_civil
			}

			hidden_effect = {
				country_event = {
					id = IBR.5307
					days = 3
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5312
					days = 3
				}
			}
		}
		set_country_flag = IBR_despotist_tarrafal_bad
	}
}

country_event = { #Protests out of Control
	id = IBR.5312
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5312" }
	title = IBR.5312.t
	desc = IBR.5312.d
	picture = GFX_report_event_ORE_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5312.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBRIberiaStability
			value = -4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt
	}
}

country_event = { #Axencia Oppose Military Influence
	id = IBR.5313
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5313" }
	title = IBR.5313.t
	desc = IBR.5313.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5313.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5314
					days = 5
				}
			}
		}
	}
}

country_event = { #Ringing Down the Hallways
	id = IBR.5314
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5314" }
	title = IBR.5314.t
	desc = IBR.5314.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5314.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5315
				hours = 6
			}
		}
	}
}

country_event = { #The Council Listens
	id = IBR.5315
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5315" }
	title = IBR.5315.t
	desc = IBR.5315.d
	picture = GFX_report_event_IBR_coup_attempt

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5315.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5316
				hours = 22
			}
		}
	}
}

country_event = { #Chaos in Madrid
	id = IBR.5316
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5316" }
	title = IBR.5316.t
	desc = IBR.5316.d
	picture = GFX_report_event_IBR_military_police

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5316.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5317
				hours = 5
			}
		}
	}
}

country_event = { #Caudillos Address the Nation
	id = IBR.5317
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5317" }
	title = IBR.5317.t
	desc = IBR.5317.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5317.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5318
				hours = 10
			}
		}
	}
}

country_event = { #The Siege Intensifies
	id = IBR.5318
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5318" }
	title = IBR.5318.t
	desc = IBR.5318.d
	picture = GFX_report_event_IBR_iberian_wars_10

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5318.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5318
				days = 1
			}
		}
	}
}

country_event = { #A Bloody Conclusion
	id = IBR.5319
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5319" }
	title = IBR.5319.t
	desc = IBR.5319.d
	picture = GFX_report_event_IBR_cortes_building

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5319.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -15
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.1023
				days = 7
			}
		}
	}
}

country_event = { #Groups Criticize Lack of Religious Education
	id = IBR.5320
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5320" }
	title = IBR.5320.t
	desc = IBR.5320.d
	picture = GFX_report_event_IBR_catholic_bible

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5320.a
		ai_chance = { factor = 10 }

		add_popularity = {
			ideology = despotism
			popularity = -0.05
		}

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

country_event = { #The Future of Iberia
	id = IBR.5321
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5321" }
	title = IBR.5321.t
	desc = IBR.5321.d
	picture = GFX_report_event_IBR_portuguese_youth

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Push for higher political youth organizing
		name = IBR.5321.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_youth_A
	}
	option = { #Tailor the message to them
		name = IBR.5321.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_youth_B
	}
}

country_event = { #A Grand Sporting Event
	id = IBR.5322
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5322" }
	title = IBR.5322.t
	desc = IBR.5322.d
	picture = GFX_report_event_IBR_grand_prix

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5322.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #The Iberian Grand Prix
	id = IBR.5323
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5323" }
	title = IBR.5323.t
	desc = IBR.5323.d
	picture = GFX_report_event_IBR_grand_prix

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5323.a
		ai_chance = { factor = 10 }

		add_political_power = -10

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #A Powerful Military Showing
	id = IBR.5324
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5324" }
	title = IBR.5324.t
	desc = IBR.5324.d
	picture = GFX_report_event_IBR_military_parade_big

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5324.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Iberians Celebrate The Grand Parade
	id = IBR.5325
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5325" }
	title = IBR.5325.t
	desc = IBR.5325.d
	picture = GFX_report_event_IBR_military_parade_horses

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5325.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
	}
}

country_event = { #Military Parade in Madrid
	id = IBR.5326
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5326" }
	title = IBR.5326.t
	desc = IBR.5326.d
	picture = GFX_report_event_IBR_military_parade

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5326.a
		ai_chance = { factor = 10 }

		add_political_power = -10

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Reinforcing the Media
	id = IBR.5327
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5327" }
	title = IBR.5327.t
	desc = IBR.5327.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Focus on riling up the masses
		name = IBR.5327.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_media_2
	}
	option = { #Focus on subtly implanting propaganda
		name = IBR.5327.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_media_3
	}
	option = { #We can do both actually
		name = IBR.5327.c
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5328
				days = 1
			}
		}
	}
}

country_event = { #A Refined Propaganda Strategy
	id = IBR.5328
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5328" }
	title = IBR.5328.t
	desc = IBR.5328.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Meld them together
		name = IBR.5328.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_media_1
	}
	option = { #Separate, but equally important
		name = IBR.5328.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_media_4
	}
}

country_event = { #The Spectre of Democracy
	id = IBR.5329
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5329" }
	title = IBR.5329.t
	desc = IBR.5329.d
	picture = GFX_report_event_IBR_cortes

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Launch a national campaign
		name = IBR.5329.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5330
				days = 3
			}
		}
	}
	option = { #Infiltrate their illicit sources of media
		name = IBR.5329.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5335
				days = 3
			}
		}
	}
}

country_event = { #A Plea to Iberia
	id = IBR.5330
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5330" }
	title = IBR.5330.t
	desc = IBR.5330.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5330.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_despotist_media_2
					has_country_flag = IBR_despotist_media_4
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5331
					days = 4
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5332
					days = 4
				}
			}
		}
	}
}

country_event = { #Iberians Rise Up
	id = IBR.5331
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5331" }
	title = IBR.5331.t
	desc = IBR.5331.d
	picture = GFX_report_event_generic_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5331.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		if = {
			limit = {
				has_country_flag = IBR_despotist_youth_A
			}

			hidden_effect = {
				country_event = {
					id = IBR.5333
					days = 3
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5334
					days = 3
				}
			}
		}
	}
}

country_event = { #An Uninspired Response
	id = IBR.5332
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5332" }
	title = IBR.5332.t
	desc = IBR.5332.d
	picture = GFX_report_event_IBR_commuters_madrid_subway

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5332.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5340
				days = 9
			}
		}

		set_country_flag = IBR_despotist_bad_democracy
	}
}

country_event = { #The Youth Against Democracy
	id = IBR.5333
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5333" }
	title = IBR.5333.t
	desc = IBR.5333.d
	picture = GFX_report_event_IBR_portuguese_youth

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5333.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5340
				days = 6
			}
		}
	}
}

country_event = { #Youth in Counter Protests
	id = IBR.5334
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5334" }
	title = IBR.5334.t
	desc = IBR.5334.d
	picture = GFX_report_event_IBR_basque_protestors_beaten

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5334.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5340
				days = 6
			}
		}
	}
}

country_event = { #A Shadow Information War
	id = IBR.5335
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5335" }
	title = IBR.5335.t
	desc = IBR.5335.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5335.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				OR = {
					has_country_flag = IBR_despotist_media_3
					has_country_flag = IBR_despotist_media_4
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.5336
					days = 10
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5337
					days = 10
				}
			}
		}
	}
}

country_event = { #Slowly Changing the Narrative
	id = IBR.5336
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5336" }
	title = IBR.5336.t
	desc = IBR.5336.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5336.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		if = {
			limit = {
				has_country_flag = IBR_despotist_youth_B
			}

			hidden_effect = {
				country_event = {
					id = IBR.5338
					days = 7
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5339
					days = 7
				}
			}
		}
	}
}

country_event = { #Laughable Attempts at Influencing
	id = IBR.5337
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5337" }
	title = IBR.5337.t
	desc = IBR.5337.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5337.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5340
				days = 9
			}
		}
		set_country_flag = IBR_despotist_bad_democracy
	}
}

country_event = { #A Closing Generational Divide
	id = IBR.5338
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5338" }
	title = IBR.5338.t
	desc = IBR.5338.d
	picture = GFX_report_event_IBR_portuguese_youth

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5338.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5340
				days = 6
			}
		}
	}
}

country_event = { #The Disinterested Young
	id = IBR.5339
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5339" }
	title = IBR.5339.t
	desc = IBR.5339.d
	picture = GFX_report_event_IBR_commuters_madrid_subway

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5339.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5340
				days = 6
			}
		}
	}
}

country_event = { #The Powerful Traitors
	id = IBR.5340
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5340" }
	title = IBR.5340.t
	desc = IBR.5340.d
	picture = GFX_report_event_IBR_franco_speech

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5340.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_bad_democracy
			}

			hidden_effect = {
				country_event = {
					id = IBR.5341
					days = 3
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5344
					days = 5
				}
			}
		}
	}
}

country_event = { #High Ranking Officials Resign
	id = IBR.5341
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5341" }
	title = IBR.5341.t
	desc = IBR.5341.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5341.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5342
				days = 2
			}
		}
	}
}

country_event = { #Traitors Speak out Against Caudillos
	id = IBR.5342
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5342" }
	title = IBR.5342.t
	desc = IBR.5342.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5342.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5343
				days = 3
			}
		}
	}
}

country_event = { #Protests in Support of Democracy
	id = IBR.5343
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5343" }
	title = IBR.5343.t
	desc = IBR.5343.d
	picture = GFX_report_event_generic_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5343.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5344
				days = 4
			}
		}
	}
}

country_event = { #Cutting the Head Off the Snake
	id = IBR.5344
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5344" }
	title = IBR.5344.t
	desc = IBR.5344.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5344.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5345
				days = 2
			}
		}
	}
}

country_event = { #Paraded for All to See
	id = IBR.5345
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5345" }
	title = IBR.5345.t
	desc = IBR.5345.d
	picture = GFX_report_event_IBR_basques_arrested

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5345.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5346
				days = 6
			}
		}
	}
}

country_event = { #Televised Trials
	id = IBR.5346
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5346" }
	title = IBR.5346.t
	desc = IBR.5346.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5346.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5348
					days = 5
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5347
					days = 5
				}
			}
		}
	}
}

country_event = { #Caudillos Victorious
	id = IBR.5347
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5347" }
	title = IBR.5347.t
	desc = IBR.5347.d
	picture = GFX_report_event_IBR_salazar_speech

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5347.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		set_country_flag = IBR_despotist_good_ending_2
	}
}

country_event = { #Massive Opposition to "Great Purge"
	id = IBR.5348
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5348" }
	title = IBR.5348.t
	desc = IBR.5348.d
	picture = GFX_report_event_ORE_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5348.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5349
				days = 5
			}
		}
	}
}

country_event = { #Violence Erupts Across Iberia
	id = IBR.5349
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5349" }
	title = IBR.5349.t
	desc = IBR.5349.d
	picture = GFX_report_event_IBR_iberian_wars_6

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5349.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -15
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.1023
				days = 6
			}
		}
	}
}

country_event = { #The Caudillos Lead The Way
	id = IBR.5350
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5350" }
	title = IBR.5350.t
	desc = IBR.5350.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5350.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Franco Speaks About Minorities
	id = IBR.5351
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5351" }
	title = IBR.5351.t
	desc = IBR.5351.d
	picture = GFX_report_event_IBR_franco_speech

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5351.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_tarrafal_good
			}
			hidden_effect = {
				country_event = {
					id = IBR.5352
					days = 4
				}
			}
		}
		else_if = {
			limit = {
				has_country_flag = IBR_despotist_tarrafal_bad
			}
			hidden_effect = {
				country_event = {
					id = IBR.5353
					days = 4
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5354
					days = 4
				}
			}
		}
	}
}

country_event = { #Few Dare Protest Franco's Wisdom
	id = IBR.5352
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5352" }
	title = IBR.5352.t
	desc = IBR.5352.d
	picture = GFX_report_event_IBR_madrid

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5352.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Massive Backlash Against Franco
	id = IBR.5353
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5353" }
	title = IBR.5353.t
	desc = IBR.5353.d
	picture = GFX_report_event_ORE_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5353.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 2
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 2
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_mid_tt
		custom_effect_tooltip = IBR_add_eta_support_mid_tt
		custom_effect_tooltip = IBR_add_tba_support_mid_tt
	}
}

country_event = { #Protests Against Franco's Speech
	id = IBR.5354
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5354" }
	title = IBR.5354.t
	desc = IBR.5354.d
	picture = GFX_report_event_IBR_catalonia_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5354.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Elevating the Worthy
	id = IBR.5355
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5355" }
	title = IBR.5355.t
	desc = IBR.5355.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Our trusted collaborators
		name = IBR.5355.a
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.5356
			days = 1
		}

		set_country_flag = IBR_despotist_trusted_collaborators
	}
	option = { #Fresh faces, ready to be molded
		name = IBR.5355.b
		ai_chance = { factor = 10 }

		country_event = {
			id = IBR.5356
			days = 1
		}
		set_country_flag = IBR_despotist_fresh_faces
	}
}

country_event = { #The Extent of the Program
	id = IBR.5356
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5356" }
	title = IBR.5356.t
	desc = IBR.5356.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Promote them in great numbers
		name = IBR.5356.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_great_numbers
	}
	option = { #Keep their numbers reasonable
		name = IBR.5356.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_despotist_numbers_reasonable
	}
}

country_event = { #The Regional Crackdown
	id = IBR.5357
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5357" }
	title = IBR.5357.t
	desc = IBR.5357.d
	picture = GFX_report_event_IBR_looking_out_window

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Prepare the bureaucracy
		name = IBR.5357.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_trusted_collaborators
			}

			hidden_effect = {
				country_event = {
					id = IBR.5358
					days = 7
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5359
					days = 7
				}
			}
		}
	}
	option = { #Launch a propaganda offensive
		name = IBR.5357.b
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_fresh_faces
			}

			hidden_effect = {
				country_event = {
					id = IBR.5360
					days = 7
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5361
					days = 7
				}
			}
		}
	}
}

country_event = { #A Strong Regional Bureaucracy
	id = IBR.5358
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5358" }
	title = IBR.5358.t
	desc = IBR.5358.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5358.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		hidden_effect = {
			country_event = {
				id = IBR.5362
				days = 4
			}
		}
		set_country_flag = IBR_despotist_strong_bureaucracy
	}
}

country_event = { #Bureaucracy Struggles to Keep Up
	id = IBR.5359
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5359" }
	title = IBR.5359.t
	desc = IBR.5359.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5359.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.5362
				days = 4
			}
		}
	}
}

country_event = { #A Strong Propaganda Campaign
	id = IBR.5360
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5360" }
	title = IBR.5360.t
	desc = IBR.5360.d
	picture = GFX_report_event_IBR_commuters_madrid_subway

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5360.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = -1
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = -1
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_support_small_tt
		custom_effect_tooltip = IBR_sub_eta_support_small_tt
		custom_effect_tooltip = IBR_sub_tba_support_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5362
				days = 4
			}
		}
	}
}

country_event = { #Disappointing Propaganda Campaign
	id = IBR.5361
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5361" }
	title = IBR.5361.t
	desc = IBR.5361.d
	picture = GFX_report_event_IBR_commuters_madrid_subway

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5361.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		hidden_effect = {
			country_event = {
				id = IBR.5362
				days = 4
			}
		}
	}
}

country_event = { #The End of Self Rule
	id = IBR.5362
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5362" }
	title = IBR.5362.t
	desc = IBR.5362.d
	picture = GFX_report_event_IBR_cortes_building

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5362.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_good_ending_2
			}

			if = {
				limit = {
					has_country_flag = IBR_despotist_fresh_faces
					has_country_flag = IBR_despotist_numbers_reasonable
				}
				hidden_effect = {
					country_event = {
						id = IBR.5365
						days = 6
					}
				}
			}
			else_if = {
				limit = {
					has_country_flag = IBR_despotist_trusted_collaborators
					has_country_flag = IBR_despotist_great_numbers
				}
				hidden_effect = {
					country_event = {
						id = IBR.5367
						days = 6
					}
				}
			}
			else_if = {
				limit = {
					has_country_flag = IBR_despotist_trusted_collaborators
					has_country_flag = IBR_despotist_numbers_reasonable
				}
				hidden_effect = {
					country_event = {
						id = IBR.5368
						days = 6
					}
				}
			}
			else = {

				hidden_effect = {
					country_event = {
						id = IBR.5372
						days = 3
					}
				}
			}

		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5363
					days = 7
				}
			}
		}
	}
}

country_event = { #Regional Officials Openly Speak Out
	id = IBR.5363
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5363" }
	title = IBR.5363.t
	desc = IBR.5363.d
	picture = GFX_report_event_IBR_commuters_madrid_subway

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5363.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.5364
				days = 2
			}
		}
	}
}

country_event = { #Traitorous Regionalists Arrested
	id = IBR.5364
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5364" }
	title = IBR.5364.t
	desc = IBR.5364.d
	picture = GFX_report_event_IBR_basques_arrested

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5364.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

			if = {
				limit = {
					has_country_flag = IBR_despotist_fresh_faces
					has_country_flag = IBR_despotist_numbers_reasonable
				}
				hidden_effect = {
					country_event = {
						id = IBR.5365
						days = 6
					}
				}
			}
			else_if = {
				limit = {
					has_country_flag = IBR_despotist_trusted_collaborators
					has_country_flag = IBR_despotist_great_numbers
				}
				hidden_effect = {
					country_event = {
						id = IBR.5367
						days = 6
					}
				}
			}
			else_if = {
				limit = {
					has_country_flag = IBR_despotist_trusted_collaborators
					has_country_flag = IBR_despotist_numbers_reasonable
				}
				hidden_effect = {
					country_event = {
						id = IBR.5368
						days = 6
					}
				}
			}
			else = {

				hidden_effect = {
					country_event = {
						id = IBR.5372
						days = 3
					}
				}
			}
	}
}

country_event = { #The New Officials Take a Stand
	id = IBR.5365
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5365" }
	title = IBR.5365.t
	desc = IBR.5365.d
	picture = GFX_report_event_IBR_speech

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5365.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5376
					days = 5
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5366
					days = 5
				}
			}
		}
	}
}

country_event = { #Astonishing Regional Success
	id = IBR.5366
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5366" }
	title = IBR.5366.t
	desc = IBR.5366.d
	picture = GFX_report_event_IBR_lisbon_working_class_neighborhood

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5366.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = -2
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = -2
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = -2
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_support_mid_tt
		custom_effect_tooltip = IBR_sub_eta_support_mid_tt
		custom_effect_tooltip = IBR_sub_tba_support_mid_tt

		set_country_flag = IBR_despotist_good_ending_3
	}
}

country_event = { #Backlash Actively Being Contained
	id = IBR.5367
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5367" }
	title = IBR.5367.t
	desc = IBR.5367.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5367.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_strong_bureaucracy
			}

			hidden_effect = {
				country_event = {
					id = IBR.5369
					days = 6
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5370
					days = 6
				}
			}
		}
	}
}

country_event = { #Backlash Growing Out of Control
	id = IBR.5368
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5368" }
	title = IBR.5368.t
	desc = IBR.5368.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5368.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_strong_bureaucracy
			}

			hidden_effect = {
				country_event = {
					id = IBR.5370
					days = 6
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5371
					days = 6
				}
			}
		}
	}
}

country_event = { #Low Opposition to Regional Law
	id = IBR.5369
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5369" }
	title = IBR.5369.t
	desc = IBR.5369.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5369.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 0.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 0.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

		set_country_flag = IBR_despotist_good_ending_3

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5376
					days = 4
				}
			}
		}
	}
}

country_event = { #Sizable Opposition to Regional Law
	id = IBR.5370
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5370" }
	title = IBR.5370.t
	desc = IBR.5370.d
	picture = GFX_report_event_IBR_AAS_raid

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5370.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5376
					days = 4
				}
			}
		}
	}
}

country_event = { #Great Opposition to Regional Law
	id = IBR.5371
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5371" }
	title = IBR.5371.t
	desc = IBR.5371.d
	picture = GFX_report_event_IBR_basque_protestors_beaten

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5371.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 3
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 3
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_add_eta_support_big_tt
		custom_effect_tooltip = IBR_add_tba_support_big_tt

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5376
					days = 4
				}
			}
		}
	}
}

country_event = { #Voting on Regional Law Bombed!
	id = IBR.5372
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5372" }
	title = IBR.5372.t
	desc = IBR.5372.d
	picture = GFX_report_event_IBR_eta_bombing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5372.a
		ai_chance = { factor = 10 }

		add_political_power = -75

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5373
				days = 5
			}
		}
	}
}

country_event = { #Guardia Civil Arrests Regionalist Officials
	id = IBR.5373
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5373" }
	title = IBR.5373.t
	desc = IBR.5373.d
	picture = GFX_report_event_IBR_guardia_civil

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5373.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -4
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		add_to_variable = {
			var = IBR_CNT_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_ETA_Activity
			value = 3
		}
		add_to_variable = {
			var = IBR_TBA_Activity
			value = 3
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_activity_big_tt
		custom_effect_tooltip = IBR_add_eta_activity_big_tt
		custom_effect_tooltip = IBR_add_tba_activity_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5374
				days = 4
			}
		}
	}
}

country_event = { #Purging Regional Politicians
	id = IBR.5374
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5374" }
	title = IBR.5374.t
	desc = IBR.5374.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5374.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -6
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 4
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 4
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 4
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_big_tt
		custom_effect_tooltip = IBR_add_eta_support_big_tt
		custom_effect_tooltip = IBR_add_tba_support_big_tt

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5376
					days = 3
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5375
					days = 3
				}
			}
		}
	}
}

country_event = { #A Bullet Dodged
	id = IBR.5375
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5375" }
	title = IBR.5375.t
	desc = IBR.5375.d
	picture = GFX_report_event_IBR_madrid_plaza_de_oriente

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5375.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Unrest Growing in Regions
	id = IBR.5376
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5376" }
	title = IBR.5376.t
	desc = IBR.5376.d
	picture = GFX_report_event_generic_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5376.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -3
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.5377
				days = 6
			}
		}
	}
}

country_event = { #Regions in Lockdown
	id = IBR.5377
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5377" }
	title = IBR.5377.t
	desc = IBR.5377.d
	picture = GFX_report_event_IBR_catalonia_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5377.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -15
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		hidden_effect = {
			country_event = {
				id = IBR.1023
				days = 6
			}
		}
	}
}

country_event = { #The Language Problem
	id = IBR.5378
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5378" }
	title = IBR.5378.t
	desc = IBR.5378.d
	picture = GFX_report_event_IBR_guy_paper_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Spanish and Portuguese will reign supreme!
		name = IBR.5378.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				has_country_flag = IBR_despotist_fresh_faces
				has_country_flag = IBR_despotist_numbers_reasonable
			}
			hidden_effect = {
				country_event = {
					id = IBR.5380
					days = 5
				}
			}
		}
		else = {

			hidden_effect = {
				country_event = {
					id = IBR.5379
					days = 5
				}
			}
		}
	}
	option = { #We can do small concessions...
		name = IBR.5378.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.5381
				days = 5
			}
		}
	}
}

country_event = { #Protests for Regional Languages
	id = IBR.5379
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5379" }
	title = IBR.5379.t
	desc = IBR.5379.d
	picture = GFX_report_event_IBR_basque_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5379.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		add_to_variable = {
			var = IBR_CNT_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_ETA_Support
			value = 1.5
		}
		add_to_variable = {
			var = IBR_TBA_Support
			value = 1.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Minor Language Protests
	id = IBR.5380
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5380" }
	title = IBR.5380.t
	desc = IBR.5380.d
	picture = GFX_report_event_IBR_basque_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5380.a
		ai_chance = { factor = 10 }

		add_political_power = -25
	}
}

country_event = { #Hardliners Denounce Weakness
	id = IBR.5381
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5381" }
	title = IBR.5381.t
	desc = IBR.5381.d
	picture = GFX_report_event_IBR_falange_standard_bearers

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5381.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #The Archbishop of Madrid speaks to the People
	id = IBR.5382
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5382" }
	title = IBR.5382.t
	desc = IBR.5382.d
	picture = GFX_report_event_IBR_bishop_of_madrid

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5382.a
		ai_chance = { factor = 10 }
	}
}

####OIL CRISIS EVENTS####

#SOCLIB OIL CRISIS

country_event = { #The Beggining of Rationing
	id = IBR.5400
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5400" }
	title = IBR.5400.t
	desc = IBR.5400.d
	picture = GFX_report_event_IBR_oil_crisis

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Strict rationing is required
		name = IBR.5400.a
		ai_chance = { factor = 10 }

		add_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
		add_to_variable = { IBR_OC_oil_ration_var = 0.05 }
		add_to_variable = { IBR_OC_oil_ration_stab_var = -0.03 }


		IBR_sub_10_soclib = yes

		set_country_flag = IBR_oilcrisis_right_1
	}
	option = { #Only ration what is absolutely necessary
		name = IBR.5400.b
		ai_chance = { factor = 10 }

		add_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
		add_to_variable = { IBR_OC_oil_ration_var = 0.03 }
		add_to_variable = { IBR_OC_oil_ration_stab_var = -0.015 }
	}
}

country_event = { #The Question of Interest Rates
	id = IBR.5401
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5401" }
	title = IBR.5401.t
	desc = IBR.5401.d
	picture = GFX_report_event_generic_sign_treaty3

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Up the numbers substantially
		name = IBR.5401.a
		ai_chance = { factor = 10 }

		IBR_sub_5_soclib = yes

		set_temp_variable = { interest_rates_temp = 1.5 } #already converted to percentage
		econ_interest_rates_change = yes

		set_country_flag = IBR_oilcrisis_right_2
	}
	option = { #A slight increase is enough
		name = IBR.5401.b
		ai_chance = { factor = 10 }

		set_temp_variable = { interest_rates_temp = 0.5 } #already converted to percentage
		econ_interest_rates_change = yes
	}
}

country_event = { #Paying Back What is Owed
	id = IBR.5402
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5402" }
	title = IBR.5402.t
	desc = IBR.5402.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Reach out to the world
		name = IBR.5402.a
		ai_chance = { factor = 10 }

		IBR_sub_5_soclib = yes

		set_temp_variable = { temp_econ_spending_amount = 0.192 }
		econ_spend_money_once_effect_raw_money = yes

		set_country_flag = IBR_oilcrisis_right_3
	}
	option = { #Only pay back domestic debt
		name = IBR.5402.b
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.054 }
		econ_spend_money_once_effect_raw_money = yes
	}
}

country_event = { #Fernández-Miranda Appears on TV
	id = IBR.5403
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5403" }
	title = IBR.5403.t
	desc = IBR.5403.d
	picture = GFX_report_event_IBR_torcuato

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5403.a
		ai_chance = { factor = 10 }

		add_stability = 0.02
	}
}

#MARLIB OIL CRISIS

country_event = { #Slashing Fuel Subsidies
	id = IBR.5404
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5404" }
	title = IBR.5404.t
	desc = IBR.5404.d
	picture = GFX_report_event_IBR_oil_crisis

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Can't pay? No oil for you!
		name = IBR.5404.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_oilcrisis_right_1

		add_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
		add_to_variable = { IBR_OC_oil_ration_var = 0.07 }
		add_to_variable = { IBR_OC_oil_ration_stab_var = -0.05 }

		IBR_sub_10_marklib = yes
	}
	option = { #The poor can keep a few subsidies
		name = IBR.5404.b
		ai_chance = { factor = 10 }

		add_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
		add_to_variable = { IBR_OC_oil_ration_var = 0.03 }
		add_to_variable = { IBR_OC_oil_ration_stab_var = -0.01 }
	}
}

country_event = { #Our Level of Involvement
	id = IBR.5405
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5405" }
	title = IBR.5405.t
	desc = IBR.5405.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #The invisible hand knows best
		name = IBR.5405.a
		ai_chance = { factor = 10 }

		IBR_sub_5_marklib = yes

		set_temp_variable = { interest_rates_temp = -2 } #already converted to percentage
		econ_interest_rates_change = yes
	}
	option = { #A little nudge in a time of crisis
		name = IBR.5405.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_oilcrisis_right_2

		set_temp_variable = { interest_rates_temp = -0.5 } #already converted to percentage
		econ_interest_rates_change = yes
	}
}

country_event = { #The Creditors' Demands
	id = IBR.5406
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5406" }
	title = IBR.5406.t
	desc = IBR.5406.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Their demands are fair
		name = IBR.5406.a
		ai_chance = { factor = 10 }

		IBR_sub_5_marklib = yes

		set_country_flag = IBR_oilcrisis_right_3

		set_temp_variable = { interest_rates_temp = -1.5 } #already converted to percentage
		econ_interest_rates_change = yes
	}
	option = { #That's a bit much, even for us
		name = IBR.5406.b
		ai_chance = { factor = 10 }

		set_temp_variable = { interest_rates_temp = -0.5 } #already converted to percentage
		econ_interest_rates_change = yes
	}
}

country_event = { #Ullastres Calvo Appears on TV
	id = IBR.5407
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5407" }
	title = IBR.5407.t
	desc = IBR.5407.d
	picture = GFX_report_event_IBR_ullastres_calvo

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5407.a
		ai_chance = { factor = 10 }

		add_stability = 0.01

	}
}

#SOCCON OIL CRISIS

country_event = { #Protests Against Social Security Cutbacks
	id = IBR.5408
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5408" }
	title = IBR.5408.t
	desc = IBR.5408.d
	picture = GFX_report_event_IBR_fraga_and_verstrynge

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Let the police deal with the protesters
		name = IBR.5408.a
		ai_chance = { factor = 10 }

		add_stability = -0.02

		IBR_sub_5_soccon = yes

		set_country_flag = IBR_oilcrisis_right_1

	}
	option = { #Partially revert the cutbacks
		name = IBR.5408.b
		ai_chance = { factor = 10 }

		TNO_improve_pensions_policy_effectiveness_low = yes
		TNO_improve_unemployment_policy_effectiveness_low = yes
	}
}

country_event = { #Changes to Tax Policy
	id = IBR.5409
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5409" }
	title = IBR.5409.t
	desc = IBR.5409.d
	picture = GFX_report_event_generic_sign_treaty1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Squeeze what we can out of them
		name = IBR.5409.a
		ai_chance = { factor = 10 }

		TNO_improve_income_taxation_policy_effectiveness_high = yes

		IBR_sub_10_soccon = yes

		set_country_flag = IBR_oilcrisis_right_2

	}
	option = { #All within reason...
		name = IBR.5409.b
		ai_chance = { factor = 10 }

		TNO_improve_income_taxation_policy_effectiveness_low = yes
	}
}

country_event = { #Confronting the Public Unions
	id = IBR.5410
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5410" }
	title = IBR.5410.t
	desc = IBR.5410.d
	picture = GFX_report_event_IBR_de_la_fuente

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Everyone has the right to work!
		name = IBR.5410.a
		ai_chance = { factor = 10 }

		add_stability = -0.03

		TNO_worsen_trade_unions_policy_effectiveness_med = yes

		set_temp_variable = { econ_centralization_temp = -4 }
		econ_centralization_change = yes

		IBR_add_5_soclib = yes
		IBR_add_3_socdem = yes

		set_country_flag = IBR_oilcrisis_right_3

	}
	option = { #These new private services will be limited
		name = IBR.5410.b
		ai_chance = { factor = 10 }

		TNO_worsen_trade_unions_policy_effectiveness_low = yes

		set_temp_variable = { econ_centralization_temp = -2 }
		econ_centralization_change = yes
	}
}

country_event = { #Fraga Appears on TV
	id = IBR.5411
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5411" }
	title = IBR.5411.t
	desc = IBR.5411.d
	picture = GFX_report_event_IBR_fraga

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5411.a
		ai_chance = { factor = 10 }

		add_stability = 0.02
	}
}

#NAT UNION OIL CRISIS

country_event = { #The Employment Situation
	id = IBR.5412
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5412" }
	title = IBR.5412.t
	desc = IBR.5412.d
	picture = GFX_report_event_IBR_poor_people_in_line

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Freeze their salaries outright
		name = IBR.5412.a
		ai_chance = { factor = 10 }

		add_stability = -0.01

		TNO_worsen_minimum_wage_policy_effectiveness_med = yes

		IBR_sub_5_authdem = yes

		set_country_flag = IBR_oilcrisis_right_1
	}
	option = { #Cut the salaries where it makes sense
		name = IBR.5412.b
		ai_chance = { factor = 10 }

		TNO_worsen_minimum_wage_policy_effectiveness_low = yes
	}
}

country_event = { #Collecting Additional Revenue
	id = IBR.5413
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5413" }
	title = IBR.5413.t
	desc = IBR.5413.d
	picture = GFX_report_event_IBR_politicians_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Raise them across the board
		name = IBR.5413.a
		ai_chance = { factor = 10 }

		TNO_improve_income_taxation_policy_effectiveness_med = yes

		IBR_sub_10_authdem = yes

		set_country_flag = IBR_oilcrisis_right_2

	}
	option = { #Spare the working consumer
		name = IBR.5413.b
		ai_chance = { factor = 10 }

		TNO_improve_income_taxation_policy_effectiveness_low = yes
	}
}

country_event = { #A Counteroffer
	id = IBR.5414
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5414" }
	title = IBR.5414.t
	desc = IBR.5414.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #There will be trials!
		name = IBR.5414.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 1
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_small_tt

		set_temp_variable = { interest_rates_temp = -1.5 } #already converted to percentage
		econ_interest_rates_change = yes

		set_country_flag = IBR_oilcrisis_right_3

	}
	option = { #That is... acceptable
		name = IBR.5414.b
		ai_chance = { factor = 10 }

		set_temp_variable = { interest_rates_temp = -0.25 } #already converted to percentage
		econ_interest_rates_change = yes
	}
}

country_event = { #Valcárcel Appears on TV
	id = IBR.5415
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5415" }
	title = IBR.5415.t
	desc = IBR.5415.d
	picture = GFX_report_event_IBR_valcarcel_speech

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5415.a
		ai_chance = { factor = 10 }

		add_stability = -0.01
	}
}

#AUTH CONGRESS OIL CRISIS

country_event = { #Reaching Out to the Technocrats
	id = IBR.5416
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5416" }
	title = IBR.5416.t
	desc = IBR.5416.d
	picture = GFX_report_event_IBR_opus_dei_lads

	is_triggered_only = yes
	fire_only_once = yes

	option = { #A pleasure doing business with you
		name = IBR.5416.a
		ai_chance = { factor = 10 }

		add_political_power = 20

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -1
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt

		IBR_add_10_marklib = yes

		set_country_flag = IBR_oilcrisis_right_1
	}
	option = { #This partnership will be at a distance
		name = IBR.5416.b
		ai_chance = { factor = 10 }

		add_political_power = 10
	}
}

country_event = { #Laying Off the Reins
	id = IBR.5417
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5417" }
	title = IBR.5417.t
	desc = IBR.5417.d
	picture = GFX_report_event_post_apoc_horse

	is_triggered_only = yes
	fire_only_once = yes

	option = { #We are willing to give up a significant chunk
		name = IBR.5417.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -1
		}
		custom_effect_tooltip = IBR_sub_auth_small_tt

		set_temp_variable = { gdp_growth_temp = 1.2 }
		econ_gdp_growth_change = yes

		IBR_sub_5_authdem = yes

		set_country_flag = IBR_oilcrisis_right_2
	}
	option = { #Many industries will be off the table
		name = IBR.5417.b
		ai_chance = { factor = 10 }

		set_temp_variable = { gdp_growth_temp = 0.3 } #already converted to percent
		econ_gdp_growth_change = yes
	}
}

country_event = { #Tightening the Belt
	id = IBR.5418
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5418" }
	title = IBR.5418.t
	desc = IBR.5418.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Temporary is a relative term...
		name = IBR.5418.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 3
		}
		custom_effect_tooltip = IBR_add_auth_med_tt

		TNO_worsen_unemployment_policy_effectiveness_low = yes
		TNO_worsen_pensions_policy_effectiveness_low = yes

		IBR_sub_5_authdem = yes

		set_country_flag = IBR_oilcrisis_right_3

		set_country_flag = IBR_oilcrisis_AC_bigausterity
	}
	option = { #Follow the established timeline
		name = IBR.5418.b
		ai_chance = { factor = 10 }
	}
}

#AUTH UNION OIL CRISIS

country_event = { #A Pragmatic Meeting
	id = IBR.5419
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5419" }
	title = IBR.5419.t
	desc = IBR.5419.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #As long as they don't cross the line...
		name = IBR.5419.a
		ai_chance = { factor = 10 }

		add_political_power = 10

		add_to_variable = {
			var = IBR_au_oppression
			value = -1
		}
		custom_effect_tooltip = IBR_sub_oppress_small_tt

		IBR_add_5_marklib = yes

		set_country_flag = IBR_oilcrisis_right_1

	}
	option = { #These masons cannot be trusted
		name = IBR.5419.b
		ai_chance = { factor = 10 }
	}
}

country_event = { #Delegation of Emergency Matters
	id = IBR.5420
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5420" }
	title = IBR.5420.t
	desc = IBR.5420.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Let the council steer the response
		name = IBR.5420.a
		ai_chance = { factor = 10 }

		add_political_power = -20

		add_to_variable = {
			var = IBR_au_oppression
			value = -2
		}
		custom_effect_tooltip = IBR_sub_oppress_med_tt

		set_country_flag = IBR_oilcrisis_right_2

	}
	option = { #The Caudillos provide valuable input
		name = IBR.5420.b
		ai_chance = { factor = 10 }
	}
}

country_event = { #Companies Ask For Leeway
	id = IBR.5421
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5421" }
	title = IBR.5421.t
	desc = IBR.5421.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Give them some slack in this trying time
		name = IBR.5421.a
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBR_au_poors_triggered
			value = 1
		}
		custom_effect_tooltip = IBR_add_anger_poors_small_tt

		IBR_sub_5_authdem = yes

		#DOENST MATTER

		#add_to_variable = { misc_income = -0.015 } #already converted to billion


		set_country_flag = IBR_oilcrisis_right_3
	}
	option = { #A few minor changes, nothing more
		name = IBR.5421.b
		ai_chance = { factor = 10 }

		#DOESNT MATTER

		#add_to_variable = { misc_income = -0.005 } #already converted to billion

	}
}

country_event = { #The Crisis Unrelenting
	id = IBR.5422
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5422" }
	title = IBR.5422.t
	desc = IBR.5422.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5422.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

#DESPOTIST OIL CRISIS

country_event = { #Responses from Iberian Homes
	id = IBR.5423
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5423" }
	title = IBR.5423.t
	desc = IBR.5423.d
	picture = GFX_report_event_IBR_candle

	is_triggered_only = yes
	fire_only_once = yes

	option = { #It is a necessary step to curb consumption
		name = IBR.5423.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		set_country_flag = IBR_oilcrisis_right_1

	}
	option = { #Divert some of the oil their way
		name = IBR.5423.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 0.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Problems with Food Distribution
	id = IBR.5424
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5424" }
	title = IBR.5424.t
	desc = IBR.5424.d
	picture = GFX_report_event_IBR_empty_plate

	is_triggered_only = yes
	fire_only_once = yes

	option = { #We have to stick to the plan
		name = IBR.5424.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		set_country_flag = IBR_oilcrisis_right_2

	}
	option = { #Send it where they are complaining
		name = IBR.5424.b
		ai_chance = { factor = 10 }

		add_to_variable = {
			var = IBRIberiaStability
			value = 0.5
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #The Pains of Virtue
	id = IBR.5425
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5425" }
	title = IBR.5425.t
	desc = IBR.5425.d
	picture = GFX_report_event_IBR_catholic_bible

	is_triggered_only = yes
	fire_only_once = yes

	option = { #They will get used to it in due time
		name = IBR.5425.a
		ai_chance = { factor = 10 }

		add_political_power = -50

	}
	option = { #We may have gone a bit too far here...
		name = IBR.5425.b
		ai_chance = { factor = 10 }

		set_country_flag = IBR_oilcrisis_right_3

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #The Rain Never Stops
	id = IBR.5426
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5426" }
	title = IBR.5426.t
	desc = IBR.5426.d
	picture = GFX_report_event_IBR_rain

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.5426.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

#OIL CRISIS ENDING EVENTS

#bad ending
country_event = { #A Slow Recovery from the Crisis
	id = IBR.5427
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5427" }
	title = IBR.5427.t
	desc = IBR.5427.d
	picture = GFX_report_event_IBR_oil_crisis

	is_triggered_only = yes
	fire_only_once = yes

	immediate = { clr_country_flag = IBR_in_crisis }

	option = { #soclib option
		name = IBR.5427.a
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				has_country_leader = {
					character = IBR_Torcuato_Fernandez_Miranda
					ruling_only = yes
				}
				has_country_leader = {
					character = IBR_Manuel_Gutierrez
					ruling_only = yes
				}
			}
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = -50
		add_stability = -0.075

		add_to_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
		IBR_check_military_hostility_events = yes
		custom_effect_tooltip = IBR_add_milhost_small_tt

		IBR_sub_20_soclib = yes
		hidden_effect = {
			country_event = {
				id = IBR.5430
				days = 180
			}
		}
	}
	option = { #marlib option
		name = IBR.5427.b
		ai_chance = { factor = 10 }
		trigger = {
			has_country_leader = {
				character = IBR_Alberto_Ullastres_Calvo
				ruling_only = yes
			}
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = -50
		add_stability = -0.075

		IBR_sub_20_marklib = yes
		hidden_effect = {
			country_event = {
				id = IBR.5430
				days = 180
			}
		}
	}
	option = { #soccon option
		name = IBR.5427.c
		ai_chance = { factor = 10 }
		trigger = { has_government = conservatism }

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		social_funding_maximal_increase_med = yes
		social_funding_minimal_increase_med = yes

		admin_funding_maximal_increase_med = yes
		admin_funding_minimal_increase_med = yes

		add_political_power = -50
		add_stability = -0.075

		IBR_sub_20_soccon = yes
		hidden_effect = {
			country_event = {
				id = IBR.5430
				days = 180
			}
		}
	}
	option = { #nat union option
		name = IBR.5427.e
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRNationalUnionVictory }

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = -50
		add_stability = -0.075

		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = 3
		}
		IBR_check_militancy_natu_events = yes #for the 2 events
		custom_effect_tooltip = IBR_add_pop_militancy_big_tt

		IBR_sub_20_authdem = yes
		hidden_effect = {
			country_event = {
				id = IBR.5430
				days = 180
			}
		}
	}
	option = { #auth congress option1
		name = IBR.5427.f
		ai_chance = { factor = 10 }
		trigger = {
			has_country_flag = IBRAuthDemCongress
			check_variable = {
				IBR_ac_authoritarianism > 0
			}
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_oilcrisis_AC_bigausterity } }

			social_funding_maximal_increase_med = yes
			social_funding_minimal_increase_med = yes

			admin_funding_maximal_increase_med = yes
			admin_funding_minimal_increase_med = yes
		}

		add_political_power = -50
		add_stability = -0.075

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 6
		}
		custom_effect_tooltip = IBR_add_auth_big_tt

		IBR_sub_20_authdem = yes
		#auth congress gets this one if they're authoritarian to push them further up
		hidden_effect = {
			country_event = {
				id = IBR.5430
				days = 180
			}
		}
	}
	option = { #auth congress option2
		name = IBR.5427.g
		ai_chance = { factor = 10 }
		trigger = {
			has_country_flag = IBRAuthDemCongress
			check_variable = {
				IBR_ac_authoritarianism < 0
			}
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_oilcrisis_AC_bigausterity } }

			social_funding_maximal_increase_med = yes
			social_funding_minimal_increase_med = yes

			admin_funding_maximal_increase_med = yes
			admin_funding_minimal_increase_med = yes
		}

		add_political_power = -50
		add_stability = -0.075

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -6
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt

		IBR_sub_20_authdem = yes
		#auth congress gets this one if they're not authoritarian to push them further down
		hidden_effect = {
			country_event = {
				id = IBR.5430
				days = 180
			}
		}
	}
	option = { #auth union option
		name = IBR.5427.h
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRAuthDemUnion }

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = -50
		add_stability = -0.075

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		IBR_sub_20_authdem = yes

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5422
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5431
					days = 250
				}
			}
		}
	}
	option = { #despotist union option
		name = IBR.5427.i
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRDespotistUnion }

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = -50
		add_stability = -0.075

		add_to_variable = {
			var = IBRIberiaStability
			value = -5
		}
		custom_effect_tooltip = IBR_sub_stability_really_big_tt

		add_popularity = {
			ideology = despotism
			popularity = -0.1
		}
		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5426
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5431
					days = 250
				}
			}
		}
	}
}

#good ending
country_event = { #Iberia Returning to Normal
	id = IBR.5428
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5428" }
	title = IBR.5428.t
	desc = IBR.5428.d
	picture = GFX_report_event_IBR_oil_crisis

	is_triggered_only = yes
	fire_only_once = yes

	immediate = { clr_country_flag = IBR_in_crisis }

	option = { #soclib option
		name = IBR.5428.a
		ai_chance = { factor = 10 }
		trigger = {
			OR = {
				has_country_leader = {
					character = IBR_Torcuato_Fernandez_Miranda
					ruling_only = yes
				}
				has_country_leader = {
					character = IBR_Manuel_Gutierrez
					ruling_only = yes
				}
			}
		}

		TNO_Oil_Crisis_reduce_effects = yes
		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_big_tt

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 1.3 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBRMilitaryHostility
			value = -1
		}
		custom_effect_tooltip = IBR_sub_milhost_small_tt

		IBR_add_15_soclib = yes

		hidden_effect = {
			country_event = {
				id = IBR.5429
				days = 120
			}
		}
	}
	option = { #marlib option
		name = IBR.5428.b
		ai_chance = { factor = 10 }
		trigger = {
			has_country_leader = {
				character = IBR_Alberto_Ullastres_Calvo
				ruling_only = yes
			}
		}

		TNO_Oil_Crisis_reduce_effects = yes
		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_big_tt

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 1.7 }
		econ_gdp_growth_change = yes

		IBR_add_15_marklib = yes

		hidden_effect = {
			country_event = {
				id = IBR.5429
				days = 120
			}
		}
	}
	option = { #soccon option
		name = IBR.5428.c
		ai_chance = { factor = 10 }
		trigger = { has_government = conservatism }

		TNO_Oil_Crisis_reduce_effects = yes
		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_big_tt

		social_funding_maximal_increase_med = yes
		social_funding_minimal_increase_med = yes

		admin_funding_maximal_increase_med = yes
		admin_funding_minimal_increase_med = yes

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 0.7 } #already converted to percent
		econ_gdp_growth_change = yes

		IBR_add_15_soccon = yes

		hidden_effect = {
			country_event = {
				id = IBR.5429
				days = 120
			}
		}
	}
	option = { #nat union option
		name = IBR.5428.e
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRNationalUnionVictory }

		TNO_Oil_Crisis_reduce_effects = yes
		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_big_tt

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 0.5 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBR_pop_militancy_natu
			value = -2
		}
		custom_effect_tooltip = IBR_sub_pop_militancy_big_tt

		IBR_add_15_authdem = yes

		hidden_effect = {
			country_event = {
				id = IBR.5429
				days = 120
			}
		}
	}
	option = { #auth congress option1
		name = IBR.5428.f
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRAuthDemCongress }

		TNO_Oil_Crisis_reduce_effects = yes
		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_big_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_oilcrisis_AC_bigausterity } }

			social_funding_maximal_increase_med = yes
			social_funding_minimal_increase_med = yes

			admin_funding_maximal_increase_med = yes
			admin_funding_minimal_increase_med = yes
		}

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 0.5 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = 5
		}
		custom_effect_tooltip = IBR_add_auth_big_tt

		IBR_add_15_authdem = yes

	}
	option = { #auth congress option2
		name = IBR.5428.g
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRAuthDemCongress }

		TNO_Oil_Crisis_reduce_effects = yes
		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_big_tt

		if = {
			limit = { NOT = { has_country_flag = IBR_oilcrisis_AC_bigausterity } }

			social_funding_maximal_increase_med = yes
			social_funding_minimal_increase_med = yes

			admin_funding_maximal_increase_med = yes
			admin_funding_minimal_increase_med = yes
		}

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 0.5 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBR_ac_authoritarianism
			value = -5
		}
		custom_effect_tooltip = IBR_sub_auth_big_tt

		IBR_add_15_authdem = yes

		hidden_effect = {
			country_event = {
				id = IBR.5429
				days = 120
			}
		}
	}
	option = { #auth union option
		name = IBR.5428.h
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRAuthDemUnion }

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 0.3 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 4
		}
		custom_effect_tooltip = IBR_add_stability_really_big_tt

		IBR_add_15_authdem = yes

		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5422
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5430
					days = 180
				}
			}
		}
	}
	option = { #despotist union option
		name = IBR.5428.i
		ai_chance = { factor = 10 }
		trigger = { has_country_flag = IBRDespotistUnion }

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		add_political_power = 50
		add_stability = 0.075

		set_temp_variable = { gdp_growth_temp = 0.4 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 3
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		add_popularity = {
			ideology = despotism
			popularity = 0.075
		}
		if = {
			limit = {
				check_variable = {
					IBRIberiaStability < 1
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.5426
					days = 6
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.5430
					days = 180
				}
			}
		}
	}
}

country_event = { #Good ending check
	id = IBR.5429
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5429" }
	picture = GFX_report_event_IBR_oil_crisis
	title = IBR.5429.t
	desc = IBR.5429.d

	is_triggered_only = yes
	fire_only_once = no
	hidden = no

	option = {
		name = IBR.5429.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = { OC_dynamic_modifier_counter = 4 }
			}
			set_country_flag = IBR_oilcrisis_idea_over
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		if = { # Once it hits five, remove the dynamic effect and clear the variables
			limit = {
				NOT = { has_country_flag = IBR_oilcrisis_idea_over }
			}

			hidden_effect = {
				country_event = {
					id = IBR.5429
					days = 120
				}
			}
		}
		else = {
			clr_country_flag = IBR_oilcrisis_idea_over

			if = {
				limit = {
					has_country_flag = IBR_oilcrisis_AC_bigausterity
					has_country_flag = IBRAuthDemCongress
				}

				social_funding_maximal_increase_med = yes
				social_funding_minimal_increase_med = yes

				admin_funding_maximal_increase_med = yes
				admin_funding_minimal_increase_med = yes
			}

			hidden_effect = {
				remove_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
				clear_variable = IBR_OC_oil_ration_var
				clear_variable = IBR_OC_oil_ration_stab_var
			}
		}
	}
}

country_event = { #Middle ending check
	id = IBR.5430
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5430" }
	picture = GFX_report_event_IBR_oil_crisis
	title = IBR.5430.t
	desc = IBR.5430.d

	is_triggered_only = yes
	fire_only_once = no
	hidden = no

	option = {
		name = IBR.5430.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = { OC_dynamic_modifier_counter = 4 }
			}
			set_country_flag = IBR_oilcrisis_idea_over
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		if = { # Once it hits five, remove the dynamic effect and clear the variables
			limit = {
				NOT = { has_country_flag = IBR_oilcrisis_idea_over }
			}

			hidden_effect = {
				country_event = {
					id = IBR.5430
					days = 180
				}
			}
		}
		else = {
			clr_country_flag = IBR_oilcrisis_idea_over

			if = {
				limit = {
					has_country_flag = IBR_oilcrisis_AC_bigausterity
					has_country_flag = IBRAuthDemCongress
				}

				social_funding_maximal_increase_med = yes
				social_funding_minimal_increase_med = yes

				admin_funding_maximal_increase_med = yes
				admin_funding_minimal_increase_med = yes
			}

			hidden_effect = {
				remove_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
				clear_variable = IBR_OC_oil_ration_var
				clear_variable = IBR_OC_oil_ration_stab_var
			}
		}
	}
}

country_event = { #Bad ending check
	id = IBR.5431
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5431" }
	picture = GFX_report_event_IBR_oil_crisis
	title = IBR.5431.t
	desc = IBR.5431.d

	is_triggered_only = yes
	fire_only_once = no
	hidden = no

	option = {
		name = IBR.5431.a
		ai_chance = { factor = 10 }

		if = {
			limit = {
				check_variable = { OC_dynamic_modifier_counter = 4 }
			}
			set_country_flag = IBR_oilcrisis_idea_over
		}

		TNO_Oil_Crisis_reduce_effects = yes
		IBR_Oil_Crisis_Clamp = yes
		custom_effect_tooltip = IBR_oil_crisis_remove_small_tt

		if = { # Once it hits five, remove the dynamic effect and clear the variables
			limit = {
				NOT = { has_country_flag = IBR_oilcrisis_idea_over }
			}

			hidden_effect = {
				country_event = {
					id = IBR.5431
					days = 250
				}
			}
		}
		else = {
			clr_country_flag = IBR_oilcrisis_idea_over

			hidden_effect = {
				remove_dynamic_modifier = { modifier = IBR_OC_oil_ration_dyn_mod } 
				clear_variable = IBR_OC_oil_ration_var
				clear_variable = IBR_OC_oil_ration_stab_var
			}
		}
	}
}

##########OLD DESPOTIST UNION EVENTS##########REMOVE THIS WHEN DONE########
###use effects for inspiration on new ones####

country_event = { #Tighten our grip
	id = IBR.765
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.765" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.765.t
	desc = IBR.765.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.765.a
		ai_chance = { factor = 10 }
		add_political_power = 25
		subtract_from_variable = {
			IBRIberiaStability = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Iberian Grand Prix
	id = IBR.766
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.766" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.766.t
	desc = IBR.766.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.766.a
		ai_chance = { factor = 10 }
		add_stability = 0.03
	}
}

country_event = { #Grand Parade
	id = IBR.767
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.767" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.767.t
	desc = IBR.767.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.767.a
		ai_chance = { factor = 10 }
		add_political_power = 15
	}
}

country_event = { #The Caudillos know best
	id = IBR.768
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.768" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.768.t
	desc = IBR.768.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.768.a
		ai_chance = { factor = 10 }
		add_stability = 0.02
		subtract_from_variable = {
			IBRIberiaStability = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Crush dissent
	id = IBR.769
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.769" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.769.t
	desc = IBR.769.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.769.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			IBRIberiaStability = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Matter of minorities
	id = IBR.770
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.770" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.770.t
	desc = IBR.770.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.770.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			IBR_CNT_Support = 1
		}
		add_to_variable = {
			IBR_ETA_Support = 1
		}
		add_to_variable = {
			IBR_TBA_Support = 1
		}
		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes
		subtract_from_variable = {
			IBRIberiaStability = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Promote the loyal
	id = IBR.771
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.771" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.771.t
	desc = IBR.771.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.771.a
		ai_chance = { factor = 10 }
		subtract_from_variable = {
			IBR_CNT_Support = 0.5
		}
		subtract_from_variable = {
			IBR_ETA_Support = 0.5
		}
		subtract_from_variable = {
			IBR_TBA_Support = 0.5
		}
		subtract_from_variable = {
			IBR_FSLP_Support = 0.5
		}
		IBR_terror_vunerable_check = yes

		custom_effect_tooltip = IBR_sub_cnt_support_small_tt
		custom_effect_tooltip = IBR_sub_eta_support_small_tt
		custom_effect_tooltip = IBR_sub_fslp_support_small_tt
		custom_effect_tooltip = IBR_sub_tba_support_small_tt
	}
}

country_event = { #Ending regional autonomy
	id = IBR.772
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.772" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.772.t
	desc = IBR.772.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.772.a
		ai_chance = { factor = 10 }
		add_stability = -0.03
		add_political_power = 25
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #Strengthen the Axencia
	id = IBR.773
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.773" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.773.t
	desc = IBR.773.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.773.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			IBR_AAS_Resources = 5
		}
		subtract_from_variable = {
			IBR_CNT_Support = 0.5
		}
		subtract_from_variable = {
			IBR_ETA_Support = 0.5
		}
		subtract_from_variable = {
			IBR_TBA_Support = 0.5
		}
		subtract_from_variable = {
			IBR_FSLP_Support = 0.5
		}
		IBR_terror_vunerable_check = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}

		custom_effect_tooltip = IBR_add_aas_big_tt
		custom_effect_tooltip = IBR_add_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Issue of languages
	id = IBR.774
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.774" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.774.t
	desc = IBR.774.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.774.a
		ai_chance = { factor = 10 }
		add_to_variable = {
			IBR_CNT_Support = 1
		}
		add_to_variable = {
			IBR_ETA_Support = 1
		}
		add_to_variable = {
			IBR_TBA_Support = 1
		}
		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
		custom_effect_tooltip = IBR_add_cnt_support_small_tt
		custom_effect_tooltip = IBR_add_eta_support_small_tt
		custom_effect_tooltip = IBR_add_fslp_support_small_tt
		custom_effect_tooltip = IBR_add_tba_support_small_tt
	}
}

country_event = { #Regions subdued
	id = IBR.775
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.775" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.775.t
	desc = IBR.775.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.775.a
		ai_chance = { factor = 10 }
		add_popularity = {
			ideology = despotism
			popularity = 0.05
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}
#############################
#### MARKET LIBERAL TREE ####
#############################

country_event = { #Ullastres holds speech on Iberia's need for free-market reforms
	id = IBR.5000
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5000" }
	picture = GFX_report_event_IBR_ullastres_calvo
	title = IBR.5000.t
	desc = IBR.5000.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5000.a
		ai_chance = { factor = 10 }
	}
}


country_event = { #Government Auction
	id = IBR.5001
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5001" }
	picture = GFX_report_event_generic_sign_treaty1
	title = IBR.5001.t
	desc = IBR.5001.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5001.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				20 = {
					IBR = {
						country_event = {
							id = IBR.5002
							days = 5
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.5003
							days = 5
						}
					}
				}
				20 = {
					IBR = {
						country_event = {
							id = IBR.5004
							days = 5
						}
					}
				}
			}
		}
	}
}

country_event = { #Government Auction Disaster
	id = IBR.5002
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5002" }
	picture = GFX_report_event_IBR_looking_out_window
	title = IBR.5002.t
	desc = IBR.5002.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5002.a
		ai_chance = { factor = 10 }
		IBR = {
			add_political_power = -150

			set_temp_variable = { money_reserves_temp = 0.1 }
			econ_money_reserves_change_raw_money = yes

			set_temp_variable = { temp_econ_GDP_boost_percentage = 0.005 }
			econ_GDP_boost_once_percentage = yes

			IBR_sub_15_marklib = yes
			add_to_variable = {
				var = IBRIberiaStability
				value = -2
			}
			custom_effect_tooltip = IBR_sub_stability_big_tt
			TNO_worsen_poverty_med = yes
			set_temp_variable = { econ_centralization_temp = -6 }
			econ_centralization_change = yes
		}
	}
}

country_event = { #Government Auction Averge
	id = IBR.5003
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5003" }
	picture = GFX_report_event_IBR_guy_paper_meeting
	title = IBR.5003.t
	desc = IBR.5003.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5003.a
		ai_chance = { factor = 10 }
		IBR = {
			set_temp_variable = { money_reserves_temp = 0.35 }
			econ_money_reserves_change_raw_money = yes

			set_temp_variable = { econ_centralization_temp = -6 }
			econ_centralization_change = yes

			set_temp_variable = { temp_econ_GDP_boost_percentage = 0.01 }
			econ_GDP_boost_once_percentage = yes

			add_political_power = 50
		}
	}
}

country_event = { #Government Auction Great Success
	id = IBR.5004
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5004" }
	picture = GFX_report_event_IBR_congress_clapping
	title = IBR.5004.t
	desc = IBR.5004.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5004.a
		ai_chance = { factor = 10 }
		IBR = {
			add_political_power = 150

			set_temp_variable = { money_reserves_temp = 0.68 }
			econ_money_reserves_change_raw_money = yes

			set_temp_variable = { econ_centralization_temp = -6 }
			econ_centralization_change = yes

			set_temp_variable = { temp_econ_GDP_boost_percentage = 0.015 }
			econ_GDP_boost_once_percentage = yes

			IBR_add_15_marklib = yes
		}
	}
}

country_event = { #A Nation of Opportunity
	id = IBR.5013
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5013" }
	picture = GFX_report_event_IBR_madrid_crowd
	title = IBR.5013.t
	desc = IBR.5013.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5013.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #A Work of God
	id = IBR.5018
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5018" }
	picture = GFX_report_event_IBR_opus_dei_lads
	title = IBR.5018.t
	desc = IBR.5018.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5018.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #The Importance of a Responsible Democracy
	id = IBR.5005
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5005" }
	picture = GFX_report_event_IBR_ullastres_calvo
	title = IBR.5005.t
	desc = IBR.5005.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5005.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Preparations for regional elections begin
	id = IBR.5006
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5006" }
	picture = GFX_report_event_IBR_ballot_boxes
	title = IBR.5006.t
	desc = IBR.5006.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5006.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5007
				days = 2
			}
		}
	}
}

country_event = { #Choosing a Posture on Social Issues
	id = IBR.5007
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5007" }
	picture = GFX_report_event_IBR_politicians_discussing
	title = IBR.5007.t
	desc = IBR.5007.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = { #Conservative posture
		name = IBR.5007.a
		ai_chance = { factor = 10 }
		IBR_add_5_marklib = yes
		IBR_sub_5_soccon = yes
		hidden_effect = {
			country_event = {
				id = IBR.5008
				days = 2
			}
		}
	}
	option = { #Liberal posture
		name = IBR.5007.b
		ai_chance = { factor = 10 }
		IBR_add_5_marklib = yes
		IBR_sub_5_soclib = yes
		hidden_effect = {
			set_country_flag = marlib_liberal_posture
		}
		hidden_effect = {
			country_event = {
				id = IBR.5008
				days = 2
			}
		}
	}
}

country_event = { #Clarifying our Economic Stance
	id = IBR.5008
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5008" }
	picture = GFX_report_event_IBR_politicians_discussing
	title = IBR.5008.t
	desc = IBR.5008.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = { #Fully committed to marlib
		name = IBR.5008.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = marlib_liberal_posture
				}
				country_event = {
					id = IBR.5011
					days = 5
				}
			}
			else = {
				country_event = {
					id = IBR.5009
					days = 5
				}
			}
		}
	}
	option = { #Reassure skeptics
		name = IBR.5008.b
		ai_chance = { factor = 10 }
		add_political_power = -50

		set_temp_variable = { interest_rates_temp = 1 } #already converted to percentage
		econ_interest_rates_change = yes

		hidden_effect = {
			if = {
				limit = {
					has_country_flag = marlib_liberal_posture
				}

				country_event = {
					id = IBR.5012
					days = 5
				}
			}
			else = {
				country_event = {
					id = IBR.5010
					days = 5
				}
			}
		}
	}
}

country_event = { #Moderate Gains in Conservative Regions
	id = IBR.5009
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5009" }
	picture = GFX_report_event_IBR_voting_nuns
	title = IBR.5009.t
	desc = IBR.5009.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5009.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		IBR_add_5_marklib = yes
		IBR_sub_10_soccon = yes
		IBR_add_5_soclib = yes
		IBR_sub_5_socdem = yes
	}
}

country_event = { #Large Gains in Conservative Regions
	id = IBR.5010
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5010" }
	picture = GFX_report_event_IBR_voting_nuns
	title = IBR.5010.t
	desc = IBR.5010.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5010.a
		ai_chance = { factor = 10 }
		add_political_power = 150
		add_to_variable = { IBRMarketLiberalPopularity = 30 }
		add_popularity = {
			ideology = liberal_conservatism
			popularity = 0.15
		}
		custom_effect_tooltip = IBR_marlib_positive_change
		add_to_variable = { IBRAlianzaPopularPopularity = -30 }
		add_popularity = {
			ideology = conservatism
			popularity = -0.15
		}
		IBR_add_15_socdem = yes
	}
}

country_event = { #Moderate Gains in Liberal Regions
	id = IBR.5011
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5011" }
	picture = GFX_report_event_IBR_voting_women
	title = IBR.5011.t
	desc = IBR.5011.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5011.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		IBR_add_5_marklib = yes
		IBR_add_10_soccon = yes
		IBR_sub_5_soclib = yes
		IBR_sub_5_socdem = yes
	}
}

country_event = { #Large Gains in Liberal Regions
	id = IBR.5012
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5012" }
	picture = GFX_report_event_IBR_voting_women
	title = IBR.5012.t
	desc = IBR.5012.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5012.a
		ai_chance = { factor = 10 }
		add_political_power = 150
		add_to_variable = { IBRMarketLiberalPopularity = 30 }
		add_popularity = {
			ideology = liberal_conservatism
			popularity = 0.15
		}
		custom_effect_tooltip = IBR_marlib_positive_change
		add_to_variable = { IBRIRMUDPopularity = -30 }
		add_popularity = {
			ideology = liberalism
			popularity = -0.15
		}
		custom_effect_tooltip = IBR_soclib_negative_change
		IBR_add_15_soccon = yes
	}
}

country_event = { #Protests for divorce (WIP)
	id = IBR.5014
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5014" }
	picture = GFX_report_event_IBR_divorce_protest
	title = IBR.5014.t
	desc = IBR.5014.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5014.a
		ai_chance = { factor = 10 } # Organize counter protests
		IBR_add_10_soclib = yes
		IBR_add_15_socdem = yes
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = marlib_liberal_posture
				}
				country_event = {
					id = IBR.5016
					days = 2
				}
			}
			else = {
				country_event = {
					id = IBR.5015
					days = 2
				}
			}
		}
	}
}

country_event = { #Counter protests Succeed
	id = IBR.5015
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5015" }
	picture = GFX_report_event_IBR_divorce_counter_protest
	title = IBR.5015.t
	desc = IBR.5015.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5015.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		IBR_add_15_soccon = yes
		IBR_add_10_marklib = yes
	}
}

country_event = { #Counter Protests Fail
	id = IBR.5016
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5016" }
	picture = GFX_report_event_IBR_divorce_counter_protest
	title = IBR.5016.t
	desc = IBR.5016.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5016.a
		ai_chance = { factor = 10 }
		add_political_power = -100
		IBR_add_15_soclib = yes
		IBR_add_15_socdem = yes
	}
}

country_event = { #Catholic Guidance
	id = IBR.5017
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5017" }
	picture = GFX_report_event_IBR_lisbon_tv_station
	title = IBR.5017.t
	desc = IBR.5017.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5017.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #For a Harmonious Society
	id = IBR.5019
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5019" }
	picture = GFX_report_event_IBR_madrid_plaza_de_oriente
	title = IBR.5019.t
	desc = IBR.5019.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5019.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Formulating a Strategy on Government Reform
	id = IBR.5020
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5020" }
	picture = GFX_report_event_IBR_marlib_rally
	title = IBR.5020.t
	desc = IBR.5020.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5020.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5021
				days = 1
			}
		}
	}
}

country_event = { #Advice From a Trusted Friend
	id = IBR.5021
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5021" }
	picture = GFX_report_event_IBR_inside_congress
	title = IBR.5021.t
	desc = IBR.5021.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5021.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Classified Transcript - Training Programs
	id = IBR.5022
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5022" }
	picture = GFX_report_event_IBR_escriva_neutral
	title = IBR.5022.t
	desc = IBR.5022.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5022.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Classified Transcript - Restructuring Government Agencies
	id = IBR.5023
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5023" }
	picture = GFX_report_event_IBR_escriva_neutral
	title = IBR.5023.t
	desc = IBR.5023.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5023.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Formulating an Anti-Corruption Strategy
	id = IBR.5024
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5024" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	title = IBR.5024.t
	desc = IBR.5024.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = { #Focus on the Political Establishment
		name = IBR.5024.a
		ai_chance = { factor = 10 }
		set_country_flag = marlib_focus_political
		hidden_effect = {
			country_event = {
				id = IBR.5025
				days = 1
			}
		}
	}
	option = { #Focus on Owners of Capital
		name = IBR.5024.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5025
				days = 1
			}
		}
	}
}

country_event = { #How Far Will We Go?
	id = IBR.5025
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5025" }
	picture = GFX_report_event_IBR_meeting_small
	title = IBR.5025.t
	desc = IBR.5025.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = { #A sweeping effort is needed
		name = IBR.5025.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = marlib_focus_political
			}
			add_political_power = -100
			IBR_sub_20_authdem = yes
			set_country_flag = marlib_opus_dei_strong
			hidden_effect = {
				country_event = {
					id = IBR.5026
					days = 5
				}
			}
		}
		else = {
			add_stability = 0.04
			IBR_add_20_soccon = yes

			set_temp_variable = { money_reserves_temp = 0.075 }
			econ_money_reserves_change_raw_money = yes

			hidden_effect = {
				country_event = {
					id = IBR.5036
					days = 5
				}
			}
		}
	}
	option = { #Target a select few
		name = IBR.5025.b
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = marlib_focus_political
			}

			add_political_power = -50
			IBR_sub_10_authdem = yes
			set_country_flag = marlib_opus_dei_medium

			hidden_effect = {
				country_event = {
					id = IBR.5027
					days = 5
				}
			}
		}
		else = {
			add_stability = 0.02
			IBR_add_10_soccon = yes

			set_temp_variable = { money_reserves_temp = 0.03 }
			econ_money_reserves_change_raw_money = yes

			hidden_effect = {
				country_event = {
					id = IBR.5036
					days = 5
				}
			}
		}
	}
}

country_event = { #Classified Transcript - Crackdown on Officials
	id = IBR.5026
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5026" }
	picture = GFX_report_event_IBR_escriva_smiling
	title = IBR.5026.t
	desc = IBR.5026.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5026.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5028
				days = 2
			}
		}
	}
}

country_event = { #Classified Transcript - Moves Against Officials
	id = IBR.5027
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5027" }
	picture = GFX_report_event_IBR_escriva_sad
	title = IBR.5027.t
	desc = IBR.5027.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5027.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Classified Transcript - Clearing the Business World
	id = IBR.5036
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5036" }
	picture = GFX_report_event_IBR_escriva_neutral
	title = IBR.5036.t
	desc = IBR.5036.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5036.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Protests Against Sweeping Arrests
	id = IBR.5028
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5028" }
	picture = GFX_report_event_IBR_military_police
	title = IBR.5028.t
	desc = IBR.5028.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5028.a
		ai_chance = { factor = 10 }
		add_political_power = -100
		add_stability = -0.05
		IBR_sub_10_marklib = yes
		add_to_variable = {
			var = IBRMilitaryHostility
			value = 5
		}
		IBR_check_military_hostility_events = yes
	}
}

country_event = { #Classified Transcript - Judicial Reforms
	id = IBR.5029
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5029" }
	picture = GFX_report_event_IBR_escriva_sad
	title = IBR.5029.t
	desc = IBR.5029.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5029.a
		ai_chance = { factor = 10 }
		add_political_power = 50
	}
}

country_event = { #Classified Transcript - Restructuring the Judiciary
	id = IBR.5030
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5030" }
	picture = GFX_report_event_IBR_escriva_smiling
	title = IBR.5030.t
	desc = IBR.5030.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5030.a
		ai_chance = { factor = 10 }
		add_political_power = 100
		hidden_effect = {
			country_event = {
				id = IBR.5031
				hours = 6
			}
		}
	}
}

country_event = { #An Attack on the Very Core of Our Project
	id = IBR.5031
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5031" }
	picture = GFX_report_event_IBR_ullastres_calvo
	title = IBR.5031.t
	desc = IBR.5031.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5031.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.5032
				days = 1
			}
		}
	}
}

country_event = { #The visit
	id = IBR.5032
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5032" }
	picture = GFX_report_event_IBR_intensive_care_hospital
	title = IBR.5032.t
	desc = IBR.5032.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5032.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Classified Transcript - Numeraries as Officials
	id = IBR.5033
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5033" }
	picture = GFX_report_event_IBR_opus_dei_lads
	title = IBR.5033.t
	desc = IBR.5033.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5033.a
		ai_chance = { factor = 10 }
		add_political_power = 200
		add_stability = -0.1
		add_to_variable = { IBRMarketLiberalPopularity = -20 }
		add_popularity = {
			ideology = liberal_conservatism
			popularity = -0.1
		}
		custom_effect_tooltip = IBR_marlib_negative_change
		set_country_flag = marlib_opus_dei_epic
	}
}

country_event = { #Classified Transcript - Promoting a Selection of Numeraries
	id = IBR.5034
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5034" }
	picture = GFX_report_event_IBR_escriva_neutral
	title = IBR.5034.t
	desc = IBR.5034.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.5034.a
		ai_chance = { factor = 10 }
		add_political_power = 100
		add_stability = -0.05
		IBR_sub_10_marklib = yes
		set_country_flag = marlib_opus_dei_kinda_epic
	}
}

country_event = { #Classified Transcript - A Prosperous Future for Iberia
	id = IBR.5035
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.5035" }
	picture = GFX_report_event_IBR_ullastres_handshake
	title = IBR.5035.t
	desc = IBR.5035.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	#bro you just posted cringe if you got this event
	option = {
		name = IBR.5035.a
		ai_chance = { factor = 10 }
		add_stability = 0.1
		add_to_variable = { IBRMarketLiberalPopularity = 20 }
		add_popularity = {
			ideology = liberal_conservatism
			popularity = 0.1
		}
		custom_effect_tooltip = IBR_marlib_positive_change

		set_temp_variable = { gdp_growth_temp = 1 }
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt
	}
}


####Market Liberal Oil Crisis####
#################################

country_event = { #Protests Against Lowered Salaries
	id = IBR.940
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.940" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.940.t
	desc = IBR.940.d

	option = {
		name = IBR.940.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.943
							days = 4
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.944
							days = 4
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.940.b
		ai_chance = { factor = 10 }
		add_political_power = -10
	}
}

country_event = { #Protests Against the Audit on Social Security
	id = IBR.941
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.941" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.941.t
	desc = IBR.941.d

	option = {
		name = IBR.941.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.943
							days = 4
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.944
							days = 4
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.941.b
		ai_chance = { factor = 10 }
		add_political_power = -10
	}
}

country_event = { #Profesionals Protest Against Privatization Efforts
	id = IBR.942
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.942" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.942.t
	desc = IBR.942.d

	option = {
		name = IBR.942.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				40 = {
					IBR = {
						country_event = {
							id = IBR.943
							days = 4
						}
					}
				}
				60 = {
					IBR = {
						country_event = {
							id = IBR.944
							days = 4
						}
					}
				}
			}
		}
	}
	option = {
		name = IBR.942.b
		ai_chance = { factor = 10 }
		add_political_power = -10
	}
}

country_event = { #Our Subversion of the Protests Succeeds
	id = IBR.943
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.943" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.943.t
	desc = IBR.943.d

	option = {
		name = IBR.943.a
		ai_chance = { factor = 10 }
		add_stability = 0.01
		add_political_power = 25
		IBR_add_5_marklib = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Our Subversion of the Protests Fails!
	id = IBR.944
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.944" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.944.t
	desc = IBR.944.d
	option = {
		name = IBR.944.a
		ai_chance = { factor = 10 }

		add_stability = -0.01
		add_political_power = -25

		IBR_sub_5_marklib = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

country_event = { #You can thank us later
	id = IBR.945
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.945" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.945.t
	desc = IBR.945.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.945.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #A Crucial Moment in History
	id = IBR.946
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.946" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.946.t
	desc = IBR.946.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.946.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Congress Meeting because of the Oil Crisis
	id = IBR.947
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.947" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.947.t
	desc = IBR.947.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.947.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Opus Dei will help with the Oil Crisis
	id = IBR.948
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.948" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.948.t
	desc = IBR.948.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.948.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Opus Dei refuses to help with the Oil Crisis
	id = IBR.949
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.949" }
	picture = GFX_report_event_IBR_road_work_2
	title = IBR.949.t
	desc = IBR.949.d

	is_triggered_only = yes
	fire_only_once = yes
	hidden = no

	option = {
		name = IBR.949.a
		ai_chance = { factor = 10 }
	}
}
###Military Coup 2: Electric Boogaloo


country_event = { #A Concerning Report
	id = IBR.980
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.980" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.980.t
	desc = IBR.980.d
	option = {
		name = IBR.980.a
		ai_chance = { factor = 10 }
		# Probably a fake, but investigate it.
		random_list = {
			10 = {
				country_event = {
					id = IBR.981
					days = 7
				}
			}
			70 = {
				country_event = {
					id = IBR.983
					days = 7
				}
			}
			20 = {
				country_event = {
					id = IBR.982
					days = 7
				}
			}
		}
	}
	option = {
		name = IBR.980.b
		ai_chance = { factor = 10 }
		# Increase security around our Deputies.
		random_list = {
			20 = {
				country_event = {
					id = IBR.981
					days = 7
				}
			}
			30 = {
				country_event = {
					id = IBR.983
					days = 7
				}
			}
			50 = {
				country_event = {
					id = IBR.982
					days = 7
				}
			}
		}
	}
	option = {
		name = IBR.980.c
		ai_chance = { factor = 10 }
		# Perhaps those officers can get a surprise re-assignment...
		random_list = {
			40 = {
				country_event = {
					id = IBR.981
					days = 7
				}
				subtract_from_variable = {
					var = IBRMilitaryHostility
					value = 3
				}
			}
			40 = {
				country_event = {
					id = IBR.983
					days = 7
				}
			}
			20 = {
				country_event = {
					id = IBR.982
					days = 7
				}
			}
		}
	}
}

country_event = { #Silence in Madrid
	id = IBR.981
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.981" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.981.t
	desc = IBR.981.d
	option = {
		name = IBR.981.a
		ai_chance = { factor = 10 }
		# Forget that this ever happened.
		subtract_from_variable = {
			var = IBRMilitaryHostility
			value = 1
		}
	}
	option = {
		name = IBR.981.b
		ai_chance = { factor = 10 }
		# Keep our guard up.
		add_political_power = 100
	}
}

country_event = {
	id = IBR.982
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.982" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.982.t
	desc = IBR.982.d
	option = {
		name = IBR.982.a
		ai_chance = { factor = 10 }
		# Success!
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		add_stability = -0.05
		custom_effect_tooltip = IBR_sub_stability_small_tt
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
	}
}

country_event = {
	id = IBR.983
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.983" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.983.t
	desc = IBR.983.d
	option = {
		name = IBR.983.a
		ai_chance = { factor = 10 }
		# No!
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 3
		}
		add_stability = -0.10
		custom_effect_tooltip = IBR_sub_stability_big_tt
		country_event = {
			id = IBR.984
			days = 1
		}
	}
}

country_event = {
	id = IBR.984
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.984" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.984.t
	desc = IBR.984.d
	option = {
		name = IBR.984.a
		ai_chance = { factor = 10 }
		# To Arms!
		if = {
			limit = {
				AND = {
					check_variable = {
						IBRIzquierdaPopularity > IBRMilitaryHostility
					}
					has_country_flag = IBR_socdem_curtailed_military
					has_country_flag = IBR_socdem_crackdown
				}
			}
			random_list = {
				5 = {
					country_event = {
						id = IBR.985
						days = 7
					}
				}
				70 = {
					country_event = {
						id = IBR.986
						days = 7
					}
				}
				25 = {
					country_event = {
						id = IBR.987
						days = 7
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRIzquierdaPopularity > IBRMilitaryHostility
					}
					has_country_flag = IBR_socdem_curtailed_military
				}
			}
			random_list = {
				10 = {
					country_event = {
						id = IBR.985
						days = 7
					}
				}
				75 = {
					country_event = {
						id = IBR.986
						days = 7
					}
				}
				15 = {
					country_event = {
						id = IBR.987
						days = 7
					}
				}
			}
		}
		else_if = {
			limit = {
				AND = {
					check_variable = {
						IBRIzquierdaPopularity > IBRMilitaryHostility
					}
					has_country_flag = IBR_socdem_crackdown
				}
			}
			random_list = {
				20 = {
					country_event = {
						id = IBR.985
						days = 7
					}
				}
				60 = {
					country_event = {
						id = IBR.986
						days = 7
					}
				}
				20 = {
					country_event = {
						id = IBR.987
						days = 7
					}
				}
			}
		}
		else_if = {
			limit = {
				check_variable = {
					IBRIzquierdaPopularity > IBRMilitaryHostility
				}
			}
			random_list = {
				20 = {
					country_event = {
						id = IBR.985
						days = 7
					}
				}
				50 = {
					country_event = {
						id = IBR.986
						days = 7
					}
				}
				30 = {
					country_event = {
						id = IBR.987
						days = 7
					}
				}
			}
		}
		else = {
			random_list = {
				40 = {
					country_event = {
						id = IBR.985
						days = 7
					}
				}
				30 = {
					country_event = {
						id = IBR.986
						days = 7
					}
				}
				30 = {
					country_event = {
						id = IBR.987
						days = 7
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.985
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.985" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.985.t
	desc = IBR.985.d
	option = {
		name = IBR.985.a
		ai_chance = { factor = 10 }
		# This is the end...
		set_politics = {
			ruling_party = anocracy
			elections_allowed = no
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 3
		}
		add_stability = -0.15
		custom_effect_tooltip = IBR_sub_stability_big_tt
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
	}
}

country_event = {
	id = IBR.986
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.986" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.986.t
	desc = IBR.986.d
	option = {
		name = IBR.986.a
		ai_chance = { factor = 10 }
		# Victory!
		country_event = {
			id = IBR.988
			days = 3
		}
		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
		add_stability = -0.05
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
	}
}

country_event = {
	id = IBR.987
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.987" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.987.t
	desc = IBR.987.d
	immediate = {
		hidden_effect = {
			IBR = { IBR_Alfonso_Armada = { set_nationality = SPA } }
		}
	}
	option = {
		name = IBR.987.a
		ai_chance = { factor = 10 }
		# No Pasaran!
		SPA = {
			set_cosmetic_tag = SPA_MILITARYCOUP
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_country_leader_role = {
				character = IBR_Alfonso_Armada
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_ALFONSO_ARMADA_DESC"
					ideology = fascism_falangism_subtype
					traits = { }
					expire = "1994.4.20"
					id = -1
				}
			}
			transfer_state = 998
			transfer_state = 181
			transfer_state = 997
			transfer_state = 180
			transfer_state = 171
			transfer_state = 174
			transfer_state = 995
			transfer_state = 172
			transfer_state = 996
			transfer_state = 170
			transfer_state = 1001
			transfer_state = 41
			transfer_state = 176
			transfer_state = 999
			transfer_state = 175
			transfer_state = 994
			every_controlled_state = {
				add_core_of = SPA
			}
			set_country_flag = IberianCivilWar2
			inherit_technology = IBR
			load_oob = SPA_MilitaryCoup
			declare_war_on = {
				target = IBR
				type = annex_everything
			}
		}
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
	}
	option = {
		name = IBR.987.b
		ai_chance = { factor = 10 }
		# Arriba Iberia!
		SPA = {
			set_cosmetic_tag = SPA_MILITARYCOUP
			set_politics = {
				ruling_party = fascism
				elections_allowed = no
			}
			add_country_leader_role = {
				character = IBR_Alfonso_Armada
				promote_leader = yes
				country_leader = {
					desc = "POLITICS_ALFONSO_ARMADA_DESC"
					ideology = fascism_falangism_subtype
					traits = { }
					expire = "1994.4.20"
					id = -1
				}
			}
			transfer_state = 998
			transfer_state = 181
			transfer_state = 997
			transfer_state = 180
			transfer_state = 171
			transfer_state = 174
			transfer_state = 995
			transfer_state = 172
			transfer_state = 996
			transfer_state = 170
			transfer_state = 1001
			transfer_state = 41
			transfer_state = 176
			transfer_state = 999
			transfer_state = 175
			transfer_state = 994
			every_controlled_state = {
				add_core_of = SPA
			}
			inherit_technology = IBR
			change_tag_from = IBR
			set_country_flag = IberianCivilWar2
			load_oob = SPA_MilitaryCoup
			declare_war_on = {
				target = IBR
				type = annex_everything
			}
		}
		set_variable = {
			var = IBRMilitaryHostility
			value = 0
		}
	}
}

country_event = {
	id = IBR.988
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.988" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.988.t
	desc = IBR.988.d
	option = {
		name = IBR.988.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = IBR_socdem_axencia
			}
			country_event = {
				id = IBR.989
				days = 3
			}
		}
		else = {
			random_list = {
				50 = {
					country_event = {
						id = IBR.989
						days = 3
					}
				}
				50 = {
					country_event = {
						id = IBR.990
						days = 3
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.989
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.989" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.989.t
	desc = IBR.989.d
	option = {
		name = IBR.989.a
		ai_chance = { factor = 10 }
		# Put them on trial!
		country_event = {
			id = IBR.991
			days = 3
		}
	}
}

country_event = {
	id = IBR.990
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.990" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.990.t
	desc = IBR.990.d
	option = {
		name = IBR.990.a
		ai_chance = { factor = 10 }
		# Damn!
	}
}

country_event = {
	id = IBR.991
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.991" }
	picture = GFX_report_event_IBR_road_work_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.991.t
	desc = IBR.991.d
	option = {
		name = IBR.991.a
		ai_chance = { factor = 10 }
		# Sentence them to prison
		add_war_support = 0.05
	}
	option = {
		name = IBR.991.b
		ai_chance = { factor = 10 }
		# Sentence them to death
		add_stability = 0.05
	}
}
country_event = { #Oil crisis trees trigger
	id = IBR.1001
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1001" }
	picture = GFX_report_event_IBR_oil_crisis
	is_triggered_only = yes #triggered from the oil crisis event
	fire_only_once = yes
	hidden = no
	title = IBR.1001.t
	desc = IBR.1001.d
	option = {
		name = IBR.1001.a
		ai_chance = { factor = 10 }
		set_country_flag = IBR_in_crisis
		if = {
			limit = {
				OR = {
					has_country_leader = {
						character = IBR_Torcuato_Fernandez_Miranda
						ruling_only = yes
					}
					has_country_leader = {
						character = IBR_Manuel_Gutierrez
						ruling_only = yes
					}
				}
			}
			load_focus_tree = { tree = IBR_politics_left_lib_oil keep_completed = yes }
		}
		if = {
			limit = {
				has_country_leader = {
					character = IBR_Alberto_Ullastres_Calvo
					ruling_only = yes
				}
			}
			load_focus_tree = { tree = IBR_politics_market_lib_oil keep_completed = yes }
		}
		if = {
			limit = {
				has_government = conservatism
			}
			load_focus_tree = { tree = IBR_politics_conservative_oil keep_completed = yes }
		}
		if = {
			limit = {
				has_focus_tree = IBR_politics_national_union
			}
			load_focus_tree = { tree = IBR_politics_national_union_oil keep_completed = yes }
		}
		if = {
			limit = {
				has_focus_tree = IBR_politics_auth_congress
			}
			load_focus_tree = { tree = IBR_politics_auth_congress_oil keep_completed = yes }
		}
		if = {
			limit = {
				has_focus_tree = IBR_politics_despotist_union
			}
			load_focus_tree = { tree = IBR_politics_despotist_union_oil keep_completed = yes }
		}
		hidden_effect = {
			country_event = {
				id = IBR.3208
				days = 11
			}
		}
	}
}
country_event = {
	id = IBR.1005
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1005" }
	picture = GFX_report_event_generic_dam_1
	is_triggered_only = yes
	hidden = yes
	title = IBR.1005.t
	desc = IBR.1005.d
	option = {
		name = IBR.1005.a
		ai_chance = { factor = 10 }
		add_to_variable = { IBR_dam_cost = -5 }
		add_to_variable = { IBR_dam_cost_upgrades = -5 }
		clamp_variable = {
			var = IBR_dam_cost_upgrades
			min = 0
			max = 2000
		}
		set_temp_variable = { IBR_dam_cost_temp = 0 }
		add_to_temp_variable = { IBR_dam_cost_temp = IBR_dam_cost_maintenance }
		add_to_temp_variable = { IBR_dam_cost_temp = IBR_dam_cost_upgrades }
		add_to_temp_variable = { IBR_dam_cost_temp = IBR_dam_cost_workers }
		set_variable = { IBR_dam_cost = IBR_dam_cost_temp }
		if = {
			limit = {
				check_variable = { IBR_dam_cost_upgrades > 0 }
			}
			country_event = {
				id = IBR.1005
				days = 40
			}
		}
	}
}
#########Decision Events
###HERE COME THE CAUDILLO

#Franco in Morocco

country_event = { #Making an entrance
	id = IBR.6000
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6000" }
	picture = GFX_report_event_IBR_morocco_hotel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.6000.t
	desc = IBR.6000.d
	option = { #roll out red carpet
		name = IBR.6000.a
		ai_chance = { factor = 40 }

		set_country_flag = red_carpet

		hidden_effect = {
			country_event = {
				id = IBR.6001
				days = 1
			}
		}
	}
	option = { #avoid limelight
		name = IBR.6000.b
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.6001
				days = 1
			}
		}
	}
}

country_event = { #Meeting local leaders
	id = IBR.6001
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6001" }
	picture = GFX_report_event_IBR_morocco_hotel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.6001.t
	desc = IBR.6001.d
	option = { #north africans should have autonomy
		name = IBR.6001.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		if = {
			limit = { has_country_flag = red_carpet }

			set_country_flag = mor_autonomy

			custom_effect_tooltip = IBR_add_stability_small_tt
			custom_effect_tooltip = IBR_improve_franco_natives_tt
			custom_effect_tooltip = IBR_worsen_franco_settlers_tt
			custom_effect_tooltip = IBR_worsen_franco_majority_tt

			add_to_variable = {
				var = IBR_native_alignment
				value = 4
			}
			add_to_variable = {
				var = IBR_settlers_alignment
				value = -4
			}
			add_to_variable = {
				var = IBR_majority_alignment
				value = -1
			}
			IBR_check_caudillo_popularity = yes
			add_to_variable = {
				var = IBRIberiaStability
				value = 1.5
			}
			hidden_effect = {
				country_event = {
					id = IBR.6002
					days = 1
				}
			}
		}
		else = {
			set_country_flag = mor_autonomy

			custom_effect_tooltip = IBR_add_stability_small_tt
			custom_effect_tooltip = IBR_improve_franco_natives_tt
			custom_effect_tooltip = IBR_worsen_franco_settlers_tt

			add_to_variable = {
				var = IBR_native_alignment
				value = 2
			}
			add_to_variable = {
				var = IBR_settlers_alignment
				value = -2
			}
			IBR_check_caudillo_popularity = yes
			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			hidden_effect = {
				country_event = {
					id = IBR.6002
					days = 1
				}
			}
		}
	}
	option = { #this land is iberian
		name = IBR.6001.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		if = {
			limit = { has_country_flag = red_carpet }

			custom_effect_tooltip = IBR_sub_stability_small_tt
			custom_effect_tooltip = IBR_worsen_franco_natives_tt
			custom_effect_tooltip = IBR_improve_franco_settlers_tt

			add_to_variable = {
				var = IBR_native_alignment
				value = -4
			}
			add_to_variable = {
				var = IBR_settlers_alignment
				value = 4
			}
			IBR_check_caudillo_popularity = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = -1.5
			}
			hidden_effect = {
				country_event = {
					id = IBR.6002
					days = 1
				}
			}
		}
		else = {
			custom_effect_tooltip = IBR_sub_stability_small_tt
			custom_effect_tooltip = IBR_worsen_franco_natives_tt
			custom_effect_tooltip = IBR_improve_franco_settlers_tt

			add_to_variable = {
				var = IBR_native_alignment
				value = -2
			}
			add_to_variable = {
				var = IBR_settlers_alignment
				value = 2
			}
			IBR_check_caudillo_popularity = yes
			add_to_variable = {
				var = IBRIberiaStability
				value = -1
			}
			hidden_effect = {
				country_event = {
					id = IBR.6002
					days = 1
				}
			}
		}
	}
}

country_event = { #Meeting settlers
	id = IBR.6002
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6002" }
	picture = GFX_report_event_IBR_morocco_hotel
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.6002.t
	desc = IBR.6002.d
	option = { #promise more funding
		name = IBR.6002.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		if = {
			limit = { has_country_flag = red_carpet }
			if = {
				limit = { has_country_flag = mor_autonomy }

				add_political_power = -50

				custom_effect_tooltip = IBR_improve_franco_settlers_tt

				add_to_variable = {
					var = IBR_settlers_alignment
					value = 4
				}
				IBR_check_caudillo_popularity = yes

				add_timed_idea = { idea = IBR_6002_misc_costs days = 90 }

				custom_effect_tooltip = TNO_colonial_misc_costs_increase_tt

				add_to_variable = { IBR_colony_subsidies_misc_cost_var = 0.05 }
			}
			else = {
				add_political_power = -25

				custom_effect_tooltip = IBR_improve_franco_settlers_tt

				add_to_variable = {
					var = IBR_settlers_alignment
					value = 4
				}
				IBR_check_caudillo_popularity = yes

				add_timed_idea = { idea = IBR_6002_misc_costs days = 90 }

				custom_effect_tooltip = TNO_colonial_misc_costs_increase_tt

				add_to_variable = { IBR_colony_subsidies_misc_cost_var = 0.025 }
			}
		}

		else = {

			if = {
				limit = { has_country_flag = mor_autonomy }

				add_political_power = -50

				custom_effect_tooltip = IBR_improve_franco_settlers_tt

				add_to_variable = {
					var = IBR_settlers_alignment
					value = 2
				}
				IBR_check_caudillo_popularity = yes

				add_timed_idea = { idea = IBR_6002_misc_costs days = 90 }

				custom_effect_tooltip = TNO_colonial_misc_costs_increase_tt

				add_to_variable = { IBR_colony_subsidies_misc_cost_var = 0.05 }
			}
			else = {
				add_political_power = -25

				custom_effect_tooltip = IBR_improve_franco_settlers_tt

				add_to_variable = {
					var = IBR_settlers_alignment
					value = 2
				}
				IBR_check_caudillo_popularity = yes

				add_timed_idea = { idea = IBR_6002_misc_costs days = 90 }

				custom_effect_tooltip = TNO_colonial_misc_costs_increase_tt

				add_to_variable = { IBR_colony_subsidies_misc_cost_var = 0.025 }
			}
		}
	}
	option = { #token concessions
		name = IBR.6002.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		if = {
			limit = { has_country_flag = red_carpet }

			custom_effect_tooltip = IBR_worsen_franco_settlers_tt

			add_to_variable = {
				var = IBR_settlers_alignment
				value = -2
			}
			IBR_check_caudillo_popularity = yes
		}
		else = {
			custom_effect_tooltip = IBR_worsen_franco_settlers_tt

			add_to_variable = {
				var = IBR_settlers_alignment
				value = -1
			}
			IBR_check_caudillo_popularity = yes
		}
	}
}

#Salazar meets High Command

country_event = { #What to wear
	id = IBR.6003
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6003" }
	picture = GFX_report_event_IBR_salazar_writing_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6003.t
	desc = IBR.6003.d
	option = { #uniform will impress
		name = IBR.6003.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.6004
				hours = 5
			}
		}
	}
	option = { #stick with suit
		name = IBR.6003.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.6005
				hours = 6
			}
		}
	}
}

country_event = { #Several Generals Offended
	id = IBR.6004
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6004" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6004.t
	desc = IBR.6004.d
	option = {
		name = IBR.6004.a
		ai_chance = { factor = 10 }

		add_political_power = -10

		custom_effect_tooltip = IBR_worsen_salazar_army_tt


		add_to_variable = {
			var = IBR_military_alignment
			value = 4
		}
		IBR_check_caudillo_popularity = yes


		hidden_effect = {
			country_event = {
				id = IBR.6005
				hours = 1
			}
		}
	}
}

country_event = { #The speech begins
	id = IBR.6005
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6005" }
	picture = GFX_report_event_IBR_airforce_hq
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6005.t
	desc = IBR.6005.d
	option = { #promise resources
		name = IBR.6005.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = -50

		custom_effect_tooltip = IBR_improve_salazar_army_tt

		army_funding_maximal_increase_med = yes
		army_funding_minimal_increase_med = yes

		add_to_variable = {
			var = IBR_military_alignment
			value = -13
		}
		IBR_check_caudillo_popularity = yes


		hidden_effect = {
			country_event = {
				id = IBR.6006
				hours = 1
			}
		}
	}
	option = { #vague platitudes
		name = IBR.6005.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.6006
				hours = 1
			}
		}
	}
}

country_event = { #Issue of minority groups
	id = IBR.6006
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6006" }
	picture = GFX_report_event_IBR_airforce_hq
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6006.t
	desc = IBR.6006.d
	option = { #they are terrorist sympathizers
		name = IBR.6006.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = 25

		custom_effect_tooltip = IBR_improve_salazar_army_tt


		add_to_variable = {
			var = IBR_military_alignment
			value = -6
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			random_list = {
				50 = {
					hidden_effect = {
						country_event = {
							id = IBR.6007
							days = 4
						}
					}
				}
				50 = {}
			}
		}
	}
	option = { #terrorists don't represent these people
		name = IBR.6006.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_political_power = -25

		custom_effect_tooltip = IBR_worsen_salazar_army_tt


		add_to_variable = {
			var = IBR_military_alignment
			value = 6
		}
		IBR_check_caudillo_popularity = yes

	}
}

country_event = { #Transcripts from meeting leak
	id = IBR.6007
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6007" }
	picture = GFX_report_event_IBR_barcelona_people
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6007.t
	desc = IBR.6007.d
	option = {
		name = IBR.6007.a
		ai_chance = { factor = 10 }

		add_political_power = -50
		add_stability = -0.02

		custom_effect_tooltip = IBR_worsen_salazar_regional_tt


		add_to_variable = {
			var = IBR_regional_alignment
			value = 8
		}
		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}

		add_to_variable = {
			IBR_CNT_Support = 1
		}
		add_to_variable = {
			IBR_ETA_Support = 1
		}
		add_to_variable = {
			IBR_TBA_Support = 1
		}
		add_to_variable = {
			IBR_FSLP_Support = 1
		}

		custom_effect_tooltip = IBR_sub_stability_big_tt
		if = {
			limit = { has_country_flag = IBRBarcelonaDefeated } 

			IBR_terror_vunerable_check = yes

			custom_effect_tooltip = IBR_add_cnt_support_small_tt
			custom_effect_tooltip = IBR_add_eta_support_small_tt
			custom_effect_tooltip = IBR_add_fslp_support_small_tt
			custom_effect_tooltip = IBR_add_tba_support_small_tt
		}
	}
}

#Salazar Church events

country_event = { #Salazar Enters Sanctuary of Fatima
	id = IBR.6008
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6008" }
	picture = GFX_report_event_IBR_sanctuary_fatima
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6008.t
	desc = IBR.6008.d
	option = { #Salazar talks about how he once considered becoming a priest
		name = IBR.6008.a
		ai_chance = {
			factor = 10

			modifier = {
				add = 40

				OR = {
					AND = {
						OR = {
							has_country_flag = cau_weak_salazar
							has_country_flag = cau_strong_salazar
						}
						OR = {
							has_country_flag = IBR_Neutral_AI
							has_country_flag = IBR_Franco_AI
						}
					}
					AND = {
						OR = {
							NOT = { has_country_flag = cau_weak_salazar }
							NOT = { has_country_flag = cau_strong_salazar }
						}
						OR = {
							has_country_flag = IBR_Salazar_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_franco_lead
							}
						}
					}
				}
			}
		}

		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.6009
					hours = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.6010
					hours = 5
				}
			}
		}
	}
	option = { #Focus on the issues
		name = IBR.6008.b
		ai_chance = {
			factor = 10

			modifier = {
				add = 40

				OR = {
					AND = {
						OR = {
							has_country_flag = cau_weak_salazar
							has_country_flag = cau_strong_salazar
						}
						has_country_flag = IBR_Salazar_AI
					}
					AND = {
						OR = {
							NOT = { has_country_flag = cau_weak_salazar }
							NOT = { has_country_flag = cau_strong_salazar }
						}
						OR = {
							has_country_flag = IBR_Franco_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_salazar_lead
							}
						}
					}
				}
			}
		}

		if = {
			limit = {
				OR = {
					has_country_flag = cau_weak_salazar
					has_country_flag = cau_strong_salazar
				}
			}
			hidden_effect = {
				country_event = {
					id = IBR.6012
					hours = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.6011
					hours = 5
				}
			}
		}
	}
}

country_event = { #Muted Reactions to Personal Anecdotes
	id = IBR.6009
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6009" }
	picture = GFX_report_event_IBR_sanctuary_fatima
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6009.t
	desc = IBR.6009.d
	option = { #
		name = IBR.6009.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_worsen_salazar_church_tt


		add_to_variable = {
			var = IBR_church_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

	}
}

country_event = { #Bishops Warm Up to Salazar
	id = IBR.6010
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6010" }
	picture = GFX_report_event_IBR_sanctuary_fatima
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6010.t
	desc = IBR.6010.d
	option = { #
		name = IBR.6010.a
		ai_chance = { factor = 10 }

		add_political_power = 30
		custom_effect_tooltip = IBR_improve_salazar_church_tt


		add_to_variable = {
			var = IBR_church_alignment
			value = -6
		}
		IBR_check_caudillo_popularity = yes


	}
}

country_event = { #Attempt to Bring up Issues Fails
	id = IBR.6011
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6011" }
	picture = GFX_report_event_IBR_sanctuary_fatima
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6011.t
	desc = IBR.6011.d
	option = { #
		name = IBR.6011.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_worsen_salazar_church_tt


		add_to_variable = {
			var = IBR_church_alignment
			value = 6
		}
		IBR_check_caudillo_popularity = yes

	}
}

country_event = { #Bishops Agree With Several of Salazar's Opinions
	id = IBR.6012
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6012" }
	picture = GFX_report_event_IBR_sanctuary_fatima
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6012.t
	desc = IBR.6012.d
	option = { #
		name = IBR.6012.a
		ai_chance = { factor = 10 }

		add_political_power = 50
		custom_effect_tooltip = IBR_improve_salazar_church_tt


		add_to_variable = {
			var = IBR_church_alignment
			value = -10
		}
		IBR_check_caudillo_popularity = yes


	}
}

#Franco Business

country_event = { #Choosing a Stage
	id = IBR.6013
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6013" }
	picture = GFX_report_event_IBR_madrid_palace_hotel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6013.t
	desc = IBR.6013.d
	option = { #Hold a speech on the main stage
		name = IBR.6013.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.6014
				hours = 2
			}
		}
	}
	option = { #Hold a speech behind closed doors
		name = IBR.6013.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.6015
				hours = 2
			}
		}
	}
}

country_event = { #Choosing a Posture for the Speech
	id = IBR.6014
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6014" }
	picture = GFX_report_event_IBR_madrid_palace_hotel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6014.t
	desc = IBR.6014.d
	option = { #A free market posture
		name = IBR.6014.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		custom_effect_tooltip = IBR_improve_franco_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 8
		}
		IBR_check_caudillo_popularity = yes

		IBR_add_10_marklib = yes


	}
	option = { #A business friendly, but conservative posture
		name = IBR.6014.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 2
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		custom_effect_tooltip = IBR_improve_franco_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 4
		}
		IBR_check_caudillo_popularity = yes

		IBR_add_10_soccon = yes


	}
	option = { #A strong, authoritarian posture
		name = IBR.6014.c
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		custom_effect_tooltip = IBR_worsen_franco_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = -10
		}
		IBR_check_caudillo_popularity = yes

		add_popularity = {
			ideology = despotism
			popularity = 0.025
		}

		IBR_add_5_authdem = yes


	}
}

country_event = { #Making promises?
	id = IBR.6015
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6015" }
	picture = GFX_report_event_IBR_madrid_palace_hotel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6015.t
	desc = IBR.6015.d
	option = { #Promise to push for free market reforms
		name = IBR.6015.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_political_power = 25

		custom_effect_tooltip = IBR_improve_franco_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 10
		}
		IBR_check_caudillo_popularity = yes

		if = {
			limit = {
				OR = {
					has_idea = tno_trade_laws_closed_economy
					has_idea = tno_trade_laws_limited_exports
				}
			}
			TNO_worsen_trade_laws_policy_effectiveness_low = yes
		}
		else = {
			TNO_improve_trade_laws_policy_effectiveness_low = yes
		}
	}
	option = { #Make no promises
		name = IBR.6015.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		hidden_effect = {
			country_event = {
				id = IBR.6016
				hours = 3
			}
		}
	}
}

country_event = { #An Offer is Made
	id = IBR.6016
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6016" }
	picture = GFX_report_event_IBR_madrid_palace_hotel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6016.t
	desc = IBR.6016.d
	option = { #Accept the offer
		name = IBR.6016.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_political_power = 50

		custom_effect_tooltip = IBR_improve_franco_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 15
		}
		IBR_check_caudillo_popularity = yes


		if = {
			limit = {
				OR = {
					has_idea = tno_trade_laws_closed_economy
					has_idea = tno_trade_laws_limited_exports
				}
			}
			TNO_worsen_trade_laws_policy_effectiveness_med = yes
		}
		else = {
			TNO_improve_trade_laws_policy_effectiveness_med = yes
		}

		hidden_effect = {
			random_list = {
				30 = {
					country_event = {
						id = IBR.6017
						days = 3
					}
				}
				70 = {}
			}
		}
	}
	option = { #Decline the offer
		name = IBR.6016.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 4
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}
	}
}

country_event = { #Franco's Corruption Exposed
	id = IBR.6017
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6017" }
	picture = GFX_report_event_IBR_madrid_palace_hotel
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6017.t
	desc = IBR.6017.d
	option = { #A blow to Franco's image among several key groups
		name = IBR.6017.a
		ai_chance = { factor = 10 }

		add_political_power = -100

		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt
		custom_effect_tooltip = IBR_worsen_franco_intellectuals_tt
		custom_effect_tooltip = IBR_worsen_franco_majority_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -10
		}
		add_to_variable = {
			var = IBR_intellectual_alignment
			value = -10
		}
		add_to_variable = {
			var = IBR_majority_alignment
			value = -4
		}


		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt


	}
}


#Salazar Book (Intellectuals)

country_event = { #The Genre
	id = IBR.6018
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6018" }
	picture = GFX_report_event_IBR_salazar_writing_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6018.t
	desc = IBR.6018.d
	option = { #A manifesto of Salazar's political philosophy
		name = IBR.6018.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 2
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		set_country_flag = intellectuals_1

		hidden_effect = {
			country_event = {
				id = IBR.6019
				hours = 5
			}
		}
	}
	option = { #An autobiography detailing Salazar's personal struggles
		name = IBR.6018.b
		ai_chance = { factor = 10 }

		ai_chance = {
			factor = 10

			modifier = {
				factor = 2
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_country_flag = majority_1

		hidden_effect = {
			country_event = {
				id = IBR.6019
				hours = 5
			}
		}
	}
}

country_event = { #The Content
	id = IBR.6019
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6019" }
	picture = GFX_report_event_IBR_salazar_writing_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6019.t
	desc = IBR.6019.d
	option = { #Inspirational and powerful advice to the reader
		name = IBR.6019.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					AND = {
						OR = {
							has_country_flag = IBR_Salazar_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_franco_lead
							}
						}
						has_country_flag = majority_1
					}
					AND = {
						OR = {
							has_country_flag = IBR_Franco_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_salazar_lead
							}
						}
						has_country_flag = intellectuals_1
					}
				}
			}
		}

		set_country_flag = majority_2

		hidden_effect = {
			country_event = {
				id = IBR.6020
				hours = 5
			}
		}
	}
	option = { #Salazar's prescriptions for society
		name = IBR.6019.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					AND = {
						OR = {
							has_country_flag = IBR_Franco_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_salazar_lead
							}
						}
						has_country_flag = majority_1
					}
					AND = {
						OR = {
							has_country_flag = IBR_Salazar_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_franco_lead
							}
						}
						has_country_flag = intellectuals_1
					}
				}
			}
		}

		set_country_flag = intellectuals_2

		hidden_effect = {
			country_event = {
				id = IBR.6020
				hours = 5
			}
		}
	}
}

country_event = { #The Conclusion
	id = IBR.6020
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6020" }
	picture = GFX_report_event_IBR_salazar_writing_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6020.t
	desc = IBR.6020.d
	option = { #A declaration that the educated will guide Iberia
		name = IBR.6020.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 0
				OR = {
					AND = {
						OR = {
							has_country_flag = IBR_Salazar_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_franco_lead
							}
						}
						has_country_flag = majority_1
						has_country_flag = majority_2
					}
					AND = {
						OR = {
							has_country_flag = IBR_Franco_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_salazar_lead
							}
						}
						has_country_flag = intellectuals_1
						has_country_flag = intellectuals_2
					}
				}
			}
		}

		if = {
			limit = {
				AND = {
					has_country_flag = intellectuals_1
					has_country_flag = intellectuals_2
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.6021
					days = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.6022
					days = 5
				}
			}
		}
	}
	option = { #A declaration that the common Iberian will lead the way
		name = IBR.6020.b
		ai_chance = { factor = 10 }

		ai_chance = {
			factor = 10

			modifier = {
				factor = 0
				OR = {
					AND = {
						OR = {
							has_country_flag = IBR_Franco_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_salazar_lead
							}
						}
						has_country_flag = majority_1
						has_country_flag = majority_2
					}
					AND = {
						OR = {
							has_country_flag = IBR_Salazar_AI
							AND = {
								has_country_flag = IBR_Neutral_AI
								has_country_flag = cau_franco_lead
							}
						}
						has_country_flag = intellectuals_1
						has_country_flag = intellectuals_2
					}
				}
			}
		}

		if = {
			limit = {
				AND = {
					has_country_flag = majority_1
					has_country_flag = majority_2
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.6023
					days = 5
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.6022
					days = 5
				}
			}
		}
	}
}

country_event = { #Iberia's Intellectuals Highly Impressed by Salazar's Manifesto
	id = IBR.6021
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6021" }
	picture = GFX_report_event_IBR_intellectuals_sitting
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6021.t
	desc = IBR.6021.d
	option = {
		name = IBR.6021.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		custom_effect_tooltip = IBR_improve_salazar_intellectuals_tt

		add_to_variable = {
			var = IBR_intellectual_alignment
			value = -5
		}

		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

country_event = { #Salazar's Book Gets Lackluster Response
	id = IBR.6022
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6022" }
	picture = GFX_report_event_IBR_salazar_sad_desk
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6022.t
	desc = IBR.6022.d
	option = {
		name = IBR.6022.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_worsen_salazar_intellectuals_tt
		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_intellectual_alignment
			value = 2
		}
		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}


		IBR_check_caudillo_popularity = yes


	}
}

country_event = { #Salazar's Autobiography Takes Iberia by Storm
	id = IBR.6023
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6023" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6023.t
	desc = IBR.6023.d
	option = {
		name = IBR.6023.a
		ai_chance = { factor = 10 }

		add_political_power = 75

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -3
		}


		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

	}
}

#Franco Bureaucrats

country_event = { #The Ministry of National Education
	id = IBR.6024
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6024" }
	picture = GFX_report_event_IBR_ministry_of_national_education
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6024.t
	desc = IBR.6024.d
	option = { #Education will be prioritized
		name = IBR.6024.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		set_country_flag = education_prio

		add_political_power = 30

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 3
		}


		IBR_check_caudillo_popularity = yes

		social_funding_maximal_increase_med = yes
		social_funding_minimal_increase_med = yes

		TNO_improve_education_policy_effectiveness_monthly_med = yes

		hidden_effect = {
			country_event = {
				id = IBR.6025
				days = 1
			}
		}
	}
	option = { #Promise to improve the situation somewhat
		name = IBR.6024.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		set_country_flag = education_improve

		add_political_power = 20

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

		social_funding_maximal_increase_low = yes
		social_funding_minimal_increase_low = yes

		TNO_improve_education_policy_effectiveness_monthly_low = yes

		hidden_effect = {
			country_event = {
				id = IBR.6025
				days = 1
			}
		}
	}
	option = { #Make no promises
		name = IBR.6024.c
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.6025
				days = 1
			}
		}
	}
}

country_event = { #The Ministry of Agriculture
	id = IBR.6025
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6025" }
	picture = GFX_report_event_IBR_ministry_of_agriculture
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6025.t
	desc = IBR.6025.d
	option = { #Agriculture will be prioritized
		name = IBR.6025.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		add_political_power = 30

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 3
		}


		IBR_check_caudillo_popularity = yes

		admin_funding_maximal_increase_med = yes
		admin_funding_minimal_increase_med = yes

		TNO_improve_agriculture_med = yes

		if = {
			limit = { has_country_flag = education_prio }

			hidden_effect = {
				country_event = {
					id = IBR.6026
					days = 1
				}
			}
		}
		else_if = {
			limit = { has_country_flag = education_improve }

			hidden_effect = {
				country_event = {
					id = IBR.6027
					days = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.6028
					days = 1
				}
			}
		}
	}
	option = { #Promise to improve the situation somewhat
		name = IBR.6025.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_political_power = 20

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

		admin_funding_maximal_increase_low = yes
		admin_funding_minimal_increase_low = yes

		TNO_improve_agriculture_low = yes

		if = {
			limit = { has_country_flag = education_prio }

			hidden_effect = {
				country_event = {
					id = IBR.6027
					days = 1
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.6028
					days = 1
				}
			}
		}
	}
	option = { #Make no promises
		name = IBR.6025.c
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.6028
				days = 1
			}
		}
	}
}

country_event = { #The Ministry of Development (Bad)
	id = IBR.6026
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6026" }
	picture = GFX_report_event_IBR_ministry_of_development
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6026.t
	desc = IBR.6026.d
	option = { #There may have to be some cuts...
		name = IBR.6026.a
		ai_chance = { factor = 10 }


		add_political_power = -100

		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -10
		}


		IBR_check_caudillo_popularity = yes

		admin_funding_maximal_decrease_high = yes
		admin_funding_minimal_decrease_high = yes

		TNO_worsen_industrial_expertise_high = yes

	}
}

country_event = { #The Ministry of Development
	id = IBR.6027
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6027" }
	picture = GFX_report_event_IBR_ministry_of_development
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6027.t
	desc = IBR.6027.d
	option = { #Promise to improve the situation somewhat
		name = IBR.6027.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}


		add_political_power = 20

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

		TNO_improve_industrial_expertise_low = yes

		admin_funding_maximal_increase_low = yes
		admin_funding_minimal_increase_low = yes
	}
	option = { #Make no promises
		name = IBR.6027.b
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		IBR_check_caudillo_popularity = yes
	}
}

country_event = { #The Ministry of Development
	id = IBR.6028
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.6028" }
	picture = GFX_report_event_IBR_ministry_of_development
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.6028.t
	desc = IBR.6028.d
	option = { #Development will be prioritized
		name = IBR.6028.a
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Franco_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_salazar_lead
					}
				}
			}
		}

		add_political_power = 30

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 3
		}


		IBR_check_caudillo_popularity = yes

		admin_funding_maximal_increase_med = yes
		admin_funding_minimal_increase_med = yes

		TNO_improve_industrial_expertise_med = yes
	}
	option = { #Promise to improve the situation somewhat
		name = IBR.6028.b
		ai_chance = { factor = 10 }

		add_political_power = 20

		custom_effect_tooltip = IBR_improve_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

		admin_funding_maximal_increase_low = yes
		admin_funding_minimal_increase_low = yes

		TNO_improve_industrial_expertise_low = yes

	}
	option = { #Make no promises
		name = IBR.6028.c
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				OR = {
					has_country_flag = IBR_Salazar_AI
					AND = {
						has_country_flag = IBR_Neutral_AI
						has_country_flag = cau_franco_lead
					}
				}
			}
		}

		custom_effect_tooltip = IBR_worsen_franco_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = -1
		}
		IBR_check_caudillo_popularity = yes
	}
}







	 ##   #  #####  #     #   #####
	# #  #  #      # # # #   #
   #  # #  #####  # # # #   #####
  #   ##  #      # # # #       #
 #    #  #####   #   #    #####
# Moon landing

country_event = {
	id = IBR.1015
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1015" }
	picture = GFX_report_event_GER_nazi_moon
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.1015.t
	desc = IBR.1015.d
	option = {
		name = IBR.1015.a
		ai_chance = { factor = 10 }
	}
}

### The Celebration of Union Day!

country_event = {
	id = IBR.1016
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1016" }
	picture = GFX_report_event_IBR_union_day
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.1016.t
	desc = IBR.1016.d
	trigger = {
		tag = IBR
		date > 1962.8.8
	}
	option = {
		# The Union makes us stronger!
		name = IBR.1016.a
		ai_chance = { factor = 10 }
		add_political_power = 20
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}




###Portuguese Independence day

country_event = {
	id = IBR.1017
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1017" }
	picture = GFX_report_event_IBR_portugal_unity
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.1017.t
	desc = IBR.1017.d
	trigger = {
		tag = IBR
		date > 1962.11.29
	}
	option = {
		# The New Iberia Will Preserve Portugal!
		name = IBR.1017.a
		ai_chance = { factor = 10 }
		add_political_power = 10
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

###Intro to Country

country_event = {
	id = IBR.1018
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1018" }
	picture = GFX_report_event_IBR_madrid_sixty
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1018.t
	desc = IBR.1018.d
	option = {
		name = IBR.1018.a
		ai_chance = { factor = 10 }
	}
}

###The Death of Salazar (falling off a chair lmao)

country_event = { #FLASHPOINT (SALAZAR DEATH)
	id = IBR.1020
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1020" }
	picture = GFX_report_event_IBR_salazar_sad_desk
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = IBR.1020.t
	desc = IBR.1020.d
	trigger = {
		tag = IBR
		date > 1968.4.3
		NOT = {
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = {
		name = IBR.1020.a
		ai_chance = { factor = 10 }
		retire_character = IBR_Antonio_Salazar
		add_stability = -0.2
		add_political_power = -200
		clear_variable = IBR_caudillo_correct_var
		clear_variable = IBR_caudillo_change_var
		set_country_flag = IBR_caudillo_mechanic_over
		set_country_flag = IBR_Salazar_dead
		set_country_flag = IBR_Salazar_transition

		clr_country_flag = cau_strong_franco
		clr_country_flag = cau_weak_franco
		clr_country_flag = cau_council
		clr_country_flag = cau_weak_salazar
		clr_country_flag = cau_strong_salazar

		clr_country_flag = IBR_Salazar_AI
		clr_country_flag = IBR_Franco_AI

		clr_country_flag = IBR_decisions_stability
		clr_country_flag = IBR_decisions_economics
		clr_country_flag = IBR_decisions_terrorism
		clr_country_flag = IBR_decisions_foreign
		clr_country_flag = IBR_decisions_post_trium
		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.468
					days = 1
				}
			}
			if = {
				limit = {
					country_exists = SLG
				}
				country_event = {
					id = IBR.3001
					days = 1
				}
			}
		}
		if = {
			limit = {
				has_country_flag = advisory_council
				has_country_flag = cau_strong_salazar
			}
			subtract_from_variable = {
				var = IBRIberiaStability
				value = 5
			}
			custom_effect_tooltip = IBR_cauinfo_salazardeath_reallybig_tt
		}
		else_if = {
			limit = {
				OR = {
					AND = {
						has_country_flag = advisory_council
						has_country_flag = cau_weak_salazar
					}
					AND = {
						has_country_flag = legislature_council
						has_country_flag = cau_strong_salazar
					}
				}
			}
			subtract_from_variable = {
				var = IBRIberiaStability
				value = 4
			}
			custom_effect_tooltip = IBR_cauinfo_salazardeath_reallybig_tt
		}
		else_if = {
			limit = {
				OR = {
					AND = {
						has_country_flag = advisory_council
						has_country_flag = cau_council
					}
					AND = {
						has_country_flag = legislature_council
						has_country_flag = cau_weak_salazar
					}
				}
			}
			subtract_from_variable = {
				var = IBRIberiaStability
				value = 3
			}
			custom_effect_tooltip = IBR_cauinfo_salazardeath_big_tt
		}
		else_if = {
			limit = {
				has_country_flag = advisory_council
			}
			subtract_from_variable = {
				var = IBRIberiaStability
				value = 2
			}
			custom_effect_tooltip = IBR_cauinfo_salazardeath_advfrancolol_tt
		}
		else_if = {
			limit = {
				has_country_flag = legislature_council
			}
			subtract_from_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_cauinfo_salazardeath_smol_tt
		}
		if = {
			limit = {
				NOT = { has_country_flag = IBR_dissolving_the_union }
			}
			if = {
				limit = {
					has_game_rule = {
						rule = IBR_STABILITY_ROUTE
						option = IBR_STABILITY_ROUTE_COLLAPSE
					}
				}
				IBR = {
					set_variable = { IBRIberiaStability = 0 }
				}
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = IBR_STABILITY_ROUTE
						option = IBR_STABILITY_ROUTE_DIVORCE
					}
				}
				IBR = {
					if = {
						limit = {
							NOT = {
								check_variable = { IBRIberiaStability < 8 }
							}
						}
						set_variable = { IBRIberiaStability = 7 }
					}
					else_if = {
						limit = {
							NOT = {
								check_variable = { IBRIberiaStability > 0.9 }
							}
						}
						set_variable = { IBRIberiaStability = 1 }
					}
				}
			}
			if = {
				limit = {
					check_variable = {
						IBRIberiaStability < 1
					}
				}
				hidden_effect = {
					country_event = {
						id = IBR.1021
						days = 3
					}
				}
			}
			if = {
				limit = {
					check_variable = { IBRIberiaStability < 8 }
					check_variable = { IBRIberiaStability > 0.9 }
					NOT = {
						has_country_flag = IBRElectionsYES
					}
				}
				custom_effect_tooltip = IBR_divorce_decision_tt
				set_country_flag = IBR_divorce_decision_flag
				if = {
					limit = {
						IBR = {
							is_ai = yes
						}
					}
					country_event = {
						id = IBR.3003
					}
				}
				hidden_effect = {
					country_event = {
						id = IBR.4059
						days = 15
					}
				}
			}
		}
		#hidden_effect = {
		#	IBR_Marcelo_Caetano = {
		#		set_nationality = POR
		#	}
		#	POR = {
		#		kill_country_leader = yes
		#		add_country_leader_role = {
		#			character = IBR_Marcelo_Caetano
		#			promote_leader = yes
		#			country_leader = {
		#				ideology = despotism_civilian_dictatorship_subtype
		#				expire = "1981.10.20"
		#			}
		#		}
		#	}
		#}
		hidden_effect = {
			IBR = {
				promote_character = IBR_Francisco_Franco
				if = {
					limit = {
						has_country_leader_with_trait = weak_franco_trait
					}
					remove_country_leader_trait = weak_franco_trait
				}
				if = {
					limit = {
						has_country_leader_with_trait = strong_franco_trait
					}
					remove_country_leader_trait = strong_franco_trait
				}
				hidden_effect = {
					IBR = {
						remove_ideas_with_trait = head_of_government
					}
				}
				add_ideas = IBR_Iberian_Council_hog
			}

			if = {
				limit = {
					NOT = { has_country_flag = IBR_dissolving_the_union }
				}
				load_focus_tree = {
					tree = IBR_death_of_salazar
					keep_completed = yes
				}
			}
			if = {
				limit = { has_country_flag = cau_strong_franco }

				set_country_flag = death_strong_franco

				#swap_ideas = {
				#	remove_idea = IBR_Antonio_Salazar_hog
				#	add_idea = IBR_Iberian_Council_hog
				#}
			}
			else_if = {
				limit = { has_country_flag = cau_weak_franco }

				set_country_flag = death_weak_franco

				#swap_ideas = {
				#	remove_idea = IBR_Antonio_Salazar_hog
				#	add_idea = IBR_Iberian_Council_hog
				#}
			}
			else_if = {
				limit = { has_country_flag = cau_weak_salazar }

				set_country_flag = death_weak_salazar

				#swap_ideas = {
				#	remove_idea = IBR_Francisco_Franco_hog
				#	add_idea = IBR_Iberian_Council_hog
				#}
			}
			else_if = {
				limit = { has_country_flag = cau_strong_salazar }

				set_country_flag = death_strong_salazar

				#swap_ideas = {
				#	remove_idea = IBR_Francisco_Franco_hog
				#	add_idea = IBR_Iberian_Council_hog
				#}
			}
		}
	}
}

##Event for Salazar's death killing the Union

country_event = {
	id = IBR.1021
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1021" }
	picture = GFX_report_event_IBR_portugal_building_crowd
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1021.t
	desc = IBR.1021.d
	option = {
		name = IBR.1021.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

##Event for Franco's death killing the union

country_event = {
	id = IBR.1022
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1022" }
	picture = GFX_report_event_IBR_franco_dead
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1022.t
	desc = IBR.1022.d
	option = {
		name = IBR.1022.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

##Event for bad politics killing the Union

country_event = {
	id = IBR.1023
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1023" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1023.t
	desc = IBR.1023.d
	option = {
		name = IBR.1023.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

##Event for bad economics killing the Union

country_event = {
	id = IBR.1024
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1024" }
	picture = GFX_report_event_IBR_falange_standard_bearers
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1024.t
	desc = IBR.1024.d
	option = {
		name = IBR.1024.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

##Event for Franco trying to become the only caudillo after salazar's death killing the Union

country_event = {
	id = IBR.1027
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1027" }
	picture = GFX_report_event_IBR_franco
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1027.t
	desc = IBR.1027.d
	option = {
		name = IBR.1027.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.1112
				days = 3
			}
		}
	}
}

##Temporary FSR Spawn

country_event = {
	id = IBR.1025
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1025" }
	picture = GFX_report_event_generic_portugal_unity
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1025.t
	desc = IBR.1025.d
	option = {
		name = IBR.1025.a
		ai_chance = { factor = 10 }
		FSR = {
			transfer_state = 170
		}
	}
}

##Temporary CNT Spawn

country_event = {
	id = IBR.1026
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1026" }
	picture = GFX_report_event_generic_portugal_unity
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1026.t
	desc = IBR.1026.d
	option = {
		name = IBR.1026.a
		ai_chance = { factor = 10 }
		CNT = {
			transfer_state = 986
		}
	}
}

###The Union Is Dissolved
country_event = { #divorce 74 (good ending auth/despotist union)
	id = IBR.1110
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1110" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1110.t
	desc = IBR.1110.d

	trigger = {
		has_war = no
	}

	option = {
		name = IBR.1110.a
		ai_chance = { factor = 10 }
		load_focus_tree = IBR_letting_go_tree
		set_variable = {
			IBRPortugalAnger = 0
		}
		set_variable = {
			IBRSpainAnger = 0
		}
		set_variable = {
			IBRColonialBalance = 0
			# negative = portugal biased, positive = spain biased
		}
		set_variable = {
			IBREconomicBalance = 0
			# negative = portugal biased, positive = spain biased
		}
		set_variable = {
			IBREconomicStrength = 0
			# How durable both economies are to start with
		}
		set_variable = {
			IBRMilitaryBalance = 0
			# negative = portugal biased, positive = spain biased
		}
		hidden_effect = {
			IBR_remove_all_ideas = yes
			add_ideas = Dissolving_Iberian_Union
			set_country_flag = IBR_dissolving_the_union
			POR = {
				add_state_core = 1004
				add_state_core = 179
				add_state_core = 1000
				add_state_core = 112
				add_state_core = 998
				add_state_core = 181
				add_state_core = 180
				add_state_core = 997
				add_state_core = 698
				add_state_core = 697
				add_state_core = 1672
				add_state_core = 1673
				add_state_core = 1674
			}
			SPA = {
				add_state_core = 983
				add_state_core = 982
				add_state_core = 171
				add_state_core = 165
				add_state_core = 986
				add_state_core = 1012
				add_state_core = 987
				add_state_core = 167
				add_state_core = 177
				add_state_core = 168
				add_state_core = 993
				add_state_core = 984
				add_state_core = 985
				add_state_core = 166
				add_state_core = 172
				add_state_core = 994
				add_state_core = 1013
				add_state_core = 41
				add_state_core = 1002
				add_state_core = 175
				add_state_core = 999
				add_state_core = 996
				add_state_core = 995
				add_state_core = 174
				add_state_core = 176
				add_state_core = 1001
				add_state_core = 170
				add_state_core = 169
				add_state_core = 173
				add_state_core = 988
				add_state_core = 1003
				add_state_core = 118
				add_state_core = 178
				add_state_core = 1545
				add_state_core = 1546
				add_state_core = 1547
				add_state_core = 1701
				add_state_core = 1702
			}
		}
	}
}
country_event = { #divorce 66
	id = IBR.1111
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1111" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1111.t
	desc = IBR.1111.d

	option = {
		name = IBR.1111.a
		ai_chance = { factor = 10 }
		load_focus_tree = IBR_letting_go_tree
		set_variable = {
			IBRPortugalAnger = 0
		}
		set_variable = {
			IBRSpainAnger = 0
		}
		set_variable = {
			IBRColonialBalance = 0
			# negative = portugal biased, positive = spain biased
		}
		set_variable = {
			IBREconomicBalance = 0
			# negative = portugal biased, positive = spain biased
		}
		set_variable = {
			IBREconomicStrength = 0
			# How durable both economies are to start with
		}
		set_variable = {
			IBRMilitaryBalance = 0
			# negative = portugal biased, positive = spain biased
		}
		hidden_effect = {
			IBR_remove_all_ideas = yes
			add_ideas = Dissolving_Iberian_Union
			set_country_flag = IBR_dissolving_the_union
			POR = {
				add_state_core = 1004
				add_state_core = 179
				add_state_core = 1000
				add_state_core = 112
				add_state_core = 998
				add_state_core = 181
				add_state_core = 180
				add_state_core = 997
				add_state_core = 698
				add_state_core = 697
				add_state_core = 1672
				add_state_core = 1673
				add_state_core = 1674
			}
			SPA = {
				add_state_core = 983
				add_state_core = 982
				add_state_core = 171
				add_state_core = 165
				add_state_core = 986
				add_state_core = 1012
				add_state_core = 987
				add_state_core = 167
				add_state_core = 177
				add_state_core = 168
				add_state_core = 993
				add_state_core = 984
				add_state_core = 985
				add_state_core = 166
				add_state_core = 172
				add_state_core = 994
				add_state_core = 1013
				add_state_core = 41
				add_state_core = 1002
				add_state_core = 175
				add_state_core = 999
				add_state_core = 996
				add_state_core = 995
				add_state_core = 174
				add_state_core = 176
				add_state_core = 1001
				add_state_core = 170
				add_state_core = 169
				add_state_core = 173
				add_state_core = 988
				add_state_core = 1003
				add_state_core = 118
				add_state_core = 178
				add_state_core = 1545
				add_state_core = 1546
				add_state_core = 1547
				add_state_core = 1701
				add_state_core = 1702
			}
		}
	}
}

country_event = { #divorce 68-74
	id = IBR.1122
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1122" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1122.t
	desc = IBR.1122.d

	option = {
		name = IBR.1122.a
		ai_chance = { factor = 10 }
		load_focus_tree = IBR_letting_go_tree
		hidden_effect = {
			IBR_remove_all_ideas = yes
			add_ideas = Dissolving_Iberian_Union
			set_country_flag = IBR_dissolving_the_union
			POR = {
				add_state_core = 1004
				add_state_core = 179
				add_state_core = 1000
				add_state_core = 112
				add_state_core = 998
				add_state_core = 181
				add_state_core = 180
				add_state_core = 997
				add_state_core = 698
				add_state_core = 697
				add_state_core = 1672
				add_state_core = 1673
				add_state_core = 1674
			}
			SPA = {
				add_state_core = 983
				add_state_core = 982
				add_state_core = 171
				add_state_core = 165
				add_state_core = 986
				add_state_core = 1012
				add_state_core = 987
				add_state_core = 167
				add_state_core = 177
				add_state_core = 168
				add_state_core = 993
				add_state_core = 984
				add_state_core = 985
				add_state_core = 166
				add_state_core = 172
				add_state_core = 994
				add_state_core = 1013
				add_state_core = 41
				add_state_core = 1002
				add_state_core = 175
				add_state_core = 999
				add_state_core = 996
				add_state_core = 995
				add_state_core = 174
				add_state_core = 176
				add_state_core = 1001
				add_state_core = 170
				add_state_core = 169
				add_state_core = 173
				add_state_core = 988
				add_state_core = 1003
				add_state_core = 118
				add_state_core = 178
				add_state_core = 1545
				add_state_core = 1546
				add_state_core = 1547
				add_state_core = 1701
				add_state_core = 1702
			}
		}
	}
}

###Temporary Iberian Wars Trigger

country_event = {
	id = IBR.1112
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1112" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.1112.t
	desc = IBR.1112.d
	trigger = {
		OR = {
			NOT = { has_country_flag = IBRDemUnion }
			has_country_flag = IBRWarbyDebug
		}
		NOT = { has_war_with = GER }
	}
	option = {
		name = IBR.1112.a
		ai_chance = { factor = 10 }
		IBR = {
			country_event = {
				id = iberiawars.1
				days = 1
			}
		}
		USA = {
			set_temp_variable = { Victory_ID = 18 }
			Cold_War_GUI_AddVictory = yes
		}
		GER = {
			set_temp_variable = { Victory_ID = 18 }
			Cold_War_GUI_AddVictory = yes
		}
		JAP = {
			set_temp_variable = { Victory_ID = 18 }
			Cold_War_GUI_AddVictory = yes
		}
		set_country_flag = IBR_iberian_wars_happening
		set_country_flag = IBR_in_crisis
		clr_country_flag = IBR_Terrorism_GUI
		clr_country_flag = country_has_gui
		set_country_flag = IBRCNTBroken
		set_country_flag = IBRETABroken
		set_country_flag = IBRTBABroken
		set_country_flag = IBRFSLPBroken
		clr_country_flag = IBRWarbyDebug
	}
}

country_event = {
	id = IBR.1113
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1113" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1113.t
	desc = IBR.1113.d
	option = {
		name = IBR.1113.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Keep Northern Morocco and Rio de Oro.
		set_country_flag = IBRTransferWestAfrica1
	}
	option = {
		name = IBR.1113.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# Keep Northern Morocco, give them everything else
		set_country_flag = IBRTransferWestAfrica2
		subtract_from_variable = {
			var = IBRColonialBalance
			value = 1
		}
		add_to_variable = {
			var = IBRSpainAnger
			value = 1
		}
	}
	option = {
		name = IBR.1113.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Spain keeps everything lol
		add_to_variable = {
			var = IBRColonialBalance
			value = 1
		}
		add_to_variable = {
			var = IBRPortugalAnger
			value = 1
		}
	}
}

country_event = {
	id = IBR.1114
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1114" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1114.t
	desc = IBR.1114.d
	option = {
		name = IBR.1114.a
		ai_chance = { factor = 10 }
		# Spain gets Equatorial Africa, Portugal gets Sao Tome
	}
}

country_event = {
	id = IBR.1115
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1115" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1115.t
	desc = IBR.1115.d
	option = {
		name = IBR.1115.a
		ai_chance = { factor = 10 }
		# Transfer the islands
		set_country_flag = IBRTransferIslands1
		subtract_from_variable = {
			var = IBRPortugalAnger
			value = 1
		}
	}
}

country_event = {
	id = IBR.1116
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1116" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1116.t
	desc = IBR.1116.d
	option = {
		name = IBR.1116.a
		ai_chance = { factor = 10 }
		# Hand it over
	}
}

country_event = {
	id = IBR.1117
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1117" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1117.t
	desc = IBR.1117.d
	option = {
		name = IBR.1117.a
		ai_chance = { factor = 10 }
		# Build Embassies
		add_political_power = 50
	}
}

country_event = {
	id = IBR.1118
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1118" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1118.t
	desc = IBR.1118.d
	option = {
		name = IBR.1118.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Bias it in favor of Spain
		set_country_flag = IBRStockpilesSpainBias
		add_to_variable = {
			var = IBRPortugalAnger
			value = 1
		}
		add_to_variable = {
			var = IBRMilitaryBalance
			value = 1
		}
		set_equipment_fraction = 0.5
	}
	option = {
		name = IBR.1118.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# Bias it in favor of Portugal
		set_country_flag = IBRStockpilesPortugalBias
		add_to_variable = {
			var = IBRSpainAnger
			value = 1
		}
		subtract_from_variable = {
			var = IBRMilitaryBalance
			value = 1
		}
		set_equipment_fraction = 0.5
	}
	option = {
		name = IBR.1118.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Let's Play Fair.
		set_equipment_fraction = 0.5
	}
}

country_event = {
	id = IBR.1119
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1119" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1119.t
	desc = IBR.1119.d
	option = {
		name = IBR.1119.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Prefer Spanish military experience
		set_country_flag = IBROfficersSpainBias
		add_to_variable = {
			var = IBRMilitaryBalance
			value = 1
		}
		add_to_variable = {
			var = IBRPortugalAnger
			value = 1
		}
	}
	option = {
		name = IBR.1119.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# Prefer Portuguese military experience
		set_country_flag = IBROfficersPortugalBias
		subtract_from_variable = {
			var = IBRMilitaryBalance
			value = 1
		}
		add_to_variable = {
			var = IBRSpainAnger
			value = 1
		}
	}
	option = {
		name = IBR.1119.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		#
		set_country_flag = IBRStockpilesPortugalBias
	}
}

country_event = {
	id = IBR.1120
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1120" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1120.t
	desc = IBR.1120.d
	option = {
		name = IBR.1120.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Prefer Spanish companies
		add_to_variable = {
			var = IBRPortugalAnger
			value = 1
		}
		add_to_variable = {
			var = IBREconomicBalance
			value = 1
		}
	}
	option = {
		name = IBR.1120.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# Prefer Portuguese companies
		set_country_flag = IBRCompaniesPortugalBias
		add_to_variable = {
			var = IBRSpainAnger
			value = 1
		}
		add_to_variable = {
			var = IBREconomicBalance
			value = -1
		}
	}
	option = {
		name = IBR.1120.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		# Try to find balance
		add_to_variable = {
			var = IBREconomicStrength
			value = 1
		}
	}
}

country_event = {
	id = IBR.1121
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1121" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.1121.t
	desc = IBR.1121.d
	option = {
		name = IBR.1121.a
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# No port leasing
	}
	option = {
		name = IBR.1121.b
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# Portugal will lease ports to spain
		set_country_flag = IBRPortLeasingPTS
		add_to_variable = {
			var = IBRPortugalAnger
			value = 1
		}
		add_to_variable = {
			var = IBREconomicBalance
			value = 1
		}
	}
	option = {
		name = IBR.1121.c
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_BALANCE
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
				}
			}
		}
		#Spain will lease ports to Portugal
		set_country_flag = IBRPortLeasingSTP
		add_to_variable = {
			var = IBRSpainAnger
			value = 1
		}
		add_to_variable = {
			var = IBREconomicBalance
			value = -1
		}
	}
	option = {
		name = IBR.1121.e
		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_PORTUGAL
					}
					has_game_rule = {
						rule = IBR_DIVORCE_FATE
						option = IBR_DIVORCE_FATE_PRO_SPAIN
					}
				}
			}
		}
		# Both will lease ports
		set_country_flag = IBRPortLeasingPTS
		set_country_flag = IBRPortLeasingSTP
		add_to_variable = {
			var = IBRPortugalAnger
			value = 1
		}
		add_to_variable = {
			var = IBRSpainAnger
			value = 1
		}
		add_to_variable = {
			var = IBREconomicStrength
			value = 1
		}
	}
}

country_event = {
	id = IBR.1999
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.1999" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = IBR.1999.t
	desc = IBR.1999.d
	option = {
	}
}

country_event = {
	id = IBR.2000
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2000" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		NOT = { has_war_with = GER }
	}
	immediate = {
		hidden_effect = {
			POR = {
				set_country_flag = POR_divorce_happened
			}
			SPA = {
				set_country_flag = SPA_divorce_happened
			}
			every_country = {
				if = {
					limit = {
						check_variable = { ECON_SPHERE_LEADER = IBR }
					}
					clear_variable = ECON_SPHERE_LEADER
				}
			}
		}
	}
	hidden = no
	title = IBR.2000.t
	desc = IBR.2000.d
	option = {
		name = IBR.2000.a
		ai_chance = { factor = 10 }
		# Play Spain
		if = {
			limit = {
				SLG = {
					is_subject_of = IBR
				}
			}
			SLG = {
				transfer_state = 1006
				transfer_state = 459
				set_cosmetic_tag = SLG_FREE_YVES
			}
			IBR = {
				end_puppet = SLG
			}
		}
		IBR_divorce_generals = yes
		SPA = { inherit_technology = IBR }
		POR = { inherit_technology = IBR }
		SPA = {
			annex_country = {
				target = IBR
				transfer_troops = no
			}
		}
		SPA = {
			change_tag_from = IBR
		}
		if = {
			limit = {
				has_country_flag = IBR_Salazar_dead
			}
			POR = {
				kill_country_leader = yes
				add_country_leader_role = {
					character = POR_Pedro_Pereira
					promote_leader = yes
					country_leader = {
						desc = "POLITICS_PEDRO_PEREIRA_DESC"
						expire = "1981.10.20"
						ideology = despotism_civilian_dictatorship_subtype
						traits = {
							#
						}
					}
				}
			}
		}
		if = {
			limit = {
				IBR = {
					has_country_flag = IBR_franco_ded
					}
				}
			SPA = {
				kill_country_leader = yes
				add_country_leader_role = {
					character = SPA_Alejandro_Valcarcel
					promote_leader = yes
					country_leader = {
						desc = ""
						expire = "1981.10.20"
						ideology = despotism_civilian_dictatorship_subtype
						traits = {
							#
						}
					}
				}
			}
		}
		SPA = {
			load_oob = "SPA_1962"
			TNO_Country_Closing_Screen_Show = yes
			set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Dirigisme }
			econ_subtype_change = yes
		}
		custom_effect_tooltip = IBR_iberia_closing_screen_tt
		POR = {
			transfer_state = 112
			transfer_state = 179
			transfer_state = 180
			transfer_state = 181
			transfer_state = 997
			transfer_state = 998
			transfer_state = 1000
			transfer_state = 1004
			transfer_state = 296
			transfer_state = 705
			transfer_state = 1672
			transfer_state = 1673
			transfer_state = 1674
			set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Dirigisme }
			econ_subtype_change = yes
		}
		if = {
			limit = {
				has_country_flag = IBRTransferGuinea
			}
			POR = {
				transfer_state = 296
			}
			296 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferIslands1
			}
			POR = {
				transfer_state = 698
				transfer_state = 702
				transfer_state = 697
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferIslands2
			}
			POR = {
				transfer_state = 698
				transfer_state = 702
				transfer_state = 697
				transfer_state = 178
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferEquatorialAfrica1
			}
			POR = {
				transfer_state = 705
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferEquatorialAfrica2
			}
			POR = {
				transfer_state = 1186
				transfer_state = 297
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferWestAfrica1
			}
			POR = {
				transfer_state = 1010
				transfer_state = 1011
				transfer_state = 1158
				transfer_state = 1157
				transfer_state = 1009
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferWestAfrica2
			}
			POR = {
				transfer_state = 1010
				transfer_state = 1011
				transfer_state = 1158
				transfer_state = 1009
				transfer_state = 1156
				transfer_state = 1155
				transfer_state = 1157
				transfer_state = 699
			}
		}
		if = {
			limit = {
				has_country_flag = IBRStockpilesSpainBias
			}
			SPA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 20000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 2000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 2000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 250
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 500
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 500
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 250
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 500
					producer = IBR
				}
			}
			POR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 10000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 150
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 300
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 300
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 150
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 300
					producer = IBR
				}
			}
		}
		if = {
			limit = {
				has_country_flag = IBRStockpilesPortugalBias
			}
			POR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 20000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 2000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 2000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 250
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 500
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 500
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 250
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 500
					producer = IBR
				}
			}
			SPA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 10000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 150
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 300
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 300
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 150
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 300
					producer = IBR
				}
			}
		}
		if = {
			limit = {
				NOT = {
					AND = {
						has_country_flag = IBRStockpilesPortugalBias
						has_country_flag = IBRStockpilesSpainBias
					}
				}
			}
			SPA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 15000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1500
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 200
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 400
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 400
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 200
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 750
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 400
					producer = IBR
				}
			}
			POR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 15000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1500
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 200
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 400
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 400
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 200
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 750
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 400
					producer = IBR
				}
			}
		}
		if = {
			limit = {
				has_country_flag = IBROfficersSpainBias
			}
			SPA = {
				army_experience = 40
				navy_experience = 40
				air_experience = 40
			}
			POR = {
				army_experience = 10
				navy_experience = 10
				air_experience = 10
			}
		}
		if = {
			limit = {
				has_country_flag = IBROfficersPortugalBias
			}
			SPA = {
				army_experience = 10
				navy_experience = 10
				air_experience = 10
			}
			POR = {
				army_experience = 40
				navy_experience = 40
				air_experience = 40
			}
		}
		if = {
			limit = {
				NOT = {
					AND = {
						has_country_flag = IBROfficersSpainBias
						has_country_flag = IBROfficersPortugalBias
					}
				}
			}
			SPA = {
				army_experience = 25
				navy_experience = 25
				air_experience = 25
			}
			POR = {
				army_experience = 25
				navy_experience = 25
				air_experience = 25
			}
		}
		if = {
			limit = {
				has_country_flag = IBRPortLeasingPTS
			}
			SPA = {
				diplomatic_relation = {
					country = POR
					relation = docking_rights
					active = yes
				}
			}
		}
		if = {
			limit = {
				has_country_flag = IBRPortLeasingSTP
			}
			POR = {
				diplomatic_relation = {
					country = SPA
					relation = docking_rights
					active = yes
				}
			}
		}
		SPA = {
			add_to_variable = { GDP_growth = 2.5 }
		}
		POR = {
			add_to_variable = { GDP_growth = 2.5 }
		}
		if = {
			limit = {
				check_variable = {
					var = IBREconomicBalance
					value = 2
					compare = equals
				}
			}
			SPA = {
				add_to_variable = { GDP_growth = 1.4 }
			}
			POR = {
				add_to_variable = { GDP_growth = -1.4 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicBalance
						value = 1
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = 0.7 }
				}
				POR = {
					add_to_variable = { GDP_growth = -0.7 }
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicBalance
						value = -1
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = -0.7 }
				}
				POR = {
					add_to_variable = { GDP_growth = 0.7 }
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicBalance
						value = -2
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = -1.4 }
				}
				POR = {
					add_to_variable = { GDP_growth = 1.4 }
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					var = IBREconomicStrength
					value = 2
					compare = equals
				}
			}
			SPA = {
				add_to_variable = { GDP_growth = 1 }
			}
			POR = {
				add_to_variable = { GDP_growth = 1 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicStrength
						value = 1
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = 0.5 }
				}
				POR = {
					add_to_variable = { GDP_growth = 0.5 }
				}
			}
		}
		every_country = {
			limit = { is_ai = no }
			news_event = {
				id = WORLD.491
			}
		}
		every_state = {
			limit = { is_core_of = IBR }
			remove_core_of = IBR
		}
	}
	option = {
		name = IBR.2000.b
		ai_chance = { factor = 10 }
		# Play Portugal
		if = {
			limit = {
				SLG = {
					is_subject_of = IBR
				}
			}
			SLG = {
				transfer_state = 1006
				transfer_state = 459
				set_cosmetic_tag = SLG_FREE_YVES
			}
			IBR = {
				end_puppet = SLG
			}
		}
		IBR_divorce_generals = yes
		SPA = { inherit_technology = IBR }
		POR = { inherit_technology = IBR }
		SPA = {
			annex_country = {
				target = IBR
				transfer_troops = no
			}
		}
		if = {
			limit = {
				IBR = {
					has_country_flag = IBR_franco_ded
				}
			}
			SPA = {
				kill_country_leader = yes
				add_country_leader_role = {
					character = SPA_Alejandro_Valcarcel
					promote_leader = yes
					country_leader = {
						desc = ""
						expire = "1981.10.20"
						ideology = despotism_civilian_dictatorship_subtype
						traits = {
							#
						}
					}
				}
			}
		}
		SPA = {
			load_oob = "SPA_1962"
			set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Dirigisme }
			econ_subtype_change = yes
		}
		POR = {
			transfer_state = 112
			transfer_state = 179
			transfer_state = 180
			transfer_state = 181
			transfer_state = 997
			transfer_state = 998
			transfer_state = 1000
			transfer_state = 1004
			transfer_state = 296
			transfer_state = 705
			transfer_state = 1672
			transfer_state = 1673
			transfer_state = 1674
			set_temp_variable = { TNO_economy_subtype_temp = token:Econ_Subtype_Dirigisme }
			econ_subtype_change = yes
		}
		POR = {
			change_tag_from = IBR
		}
		if = {
			limit = {
				has_country_flag = IBR_Salazar_dead
			}
			POR = {
				kill_country_leader = yes
				add_country_leader_role = {
					character = POR_Pedro_Pereira
					promote_leader = yes
					country_leader = {
						desc = "POLITICS_PEDRO_PEREIRA_DESC"
						expire = "1981.10.20"
						ideology = despotism_civilian_dictatorship_subtype
						traits = {
							#
						}
					}
				}
			}
		}
		POR = {
			TNO_Country_Closing_Screen_Show = yes
		}
		custom_effect_tooltip = IBR_iberia_closing_screen_tt
		if = {
			limit = {
				has_country_flag = IBRTransferGuinea
			}
			POR = {
				transfer_state = 296
			}
			296 = {
				set_demilitarized_zone = yes
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferIslands1
			}
			POR = {
				transfer_state = 698
				transfer_state = 702
				transfer_state = 697
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferIslands2
			}
			POR = {
				transfer_state = 698
				transfer_state = 702
				transfer_state = 697
				transfer_state = 178
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferEquatorialAfrica1
			}
			POR = {
				transfer_state = 705
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferEquatorialAfrica2
			}
			POR = {
				transfer_state = 1186
				transfer_state = 297
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferWestAfrica1
			}
			POR = {
				transfer_state = 1010
				transfer_state = 1011
				transfer_state = 1158
				transfer_state = 1157
				transfer_state = 1009
			}
		}
		if = {
			limit = {
				has_country_flag = IBRTransferWestAfrica2
			}
			POR = {
				transfer_state = 1010
				transfer_state = 1011
				transfer_state = 1158
				transfer_state = 1009
				transfer_state = 1156
				transfer_state = 1155
				transfer_state = 1157
				transfer_state = 699
			}
		}
		if = {
			limit = {
				has_country_flag = IBRStockpilesSpainBias
			}
			SPA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 20000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 2000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 2000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 250
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 500
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 500
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 250
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 500
					producer = IBR
				}
			}
			POR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 10000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 150
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 300
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 300
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 150
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 300
					producer = IBR
				}
			}
		}
		if = {
			limit = {
				has_country_flag = IBRStockpilesPortugalBias
			}
			POR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 20000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 2000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 2000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 250
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 500
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 500
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 250
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 500
					producer = IBR
				}
			}
			SPA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 10000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1000
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 150
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 300
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 300
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 150
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 300
					producer = IBR
				}
			}
		}
		if = {
			limit = {
				NOT = {
					AND = {
						has_country_flag = IBRStockpilesPortugalBias
						has_country_flag = IBRStockpilesSpainBias
					}
				}
			}
			SPA = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 15000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1500
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 200
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 400
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 400
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 200
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 750
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 400
					producer = IBR
				}
			}
			POR = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_3
					amount = 15000
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 1500
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment_1
					amount = 1500
					producer = IBR
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
					}
					add_equipment_to_stockpile = {
						type = MBT_chassis_1
						amount = 200
						producer = IBR
						variant_name = "Monastrell"
					}
					add_equipment_to_stockpile = {
						type = IFV_chassis_1
						amount = 400
						producer = IBR
						variant_name = "Enasa-M"
					}
				}
				else = {
					add_equipment_to_stockpile = {
						type = IFV_equipment_1
						amount = 400
						producer = IBR
					}
					add_equipment_to_stockpile = {
						type = MBT_equipment_1
						amount = 200
						producer = IBR
					}
				}
				add_equipment_to_stockpile = {
					type = anti_tank_equipment_1
					amount = 750
					producer = IBR
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment_2
					amount = 400
					producer = IBR
				}
			}
		}
		if = {
			limit = {
				has_country_flag = IBROfficersSpainBias
			}
			SPA = {
				army_experience = 40
				navy_experience = 40
				air_experience = 40
			}
			POR = {
				army_experience = 10
				navy_experience = 10
				air_experience = 10
			}
		}
		if = {
			limit = {
				has_country_flag = IBROfficersPortugalBias
			}
			SPA = {
				army_experience = 10
				navy_experience = 10
				air_experience = 10
			}
			POR = {
				army_experience = 40
				navy_experience = 40
				air_experience = 40
			}
		}
		if = {
			limit = {
				NOT = {
					AND = {
						has_country_flag = IBROfficersSpainBias
						has_country_flag = IBROfficersPortugalBias
					}
				}
			}
			SPA = {
				army_experience = 25
				navy_experience = 25
				air_experience = 25
			}
			POR = {
				army_experience = 25
				navy_experience = 25
				air_experience = 25
			}
		}
		if = {
			limit = {
				has_country_flag = IBRPortLeasingPTS
			}
			SPA = {
				diplomatic_relation = {
					country = POR
					relation = docking_rights
					active = yes
				}
			}
		}
		if = {
			limit = {
				has_country_flag = IBRPortLeasingSTP
			}
			POR = {
				diplomatic_relation = {
					country = SPA
					relation = docking_rights
					active = yes
				}
			}
		}
		SPA = {
			add_to_variable = { GDP_growth = 2.5 }
		}
		POR = {
			add_to_variable = { GDP_growth = 2.5 }
		}
		if = {
			limit = {
				check_variable = {
					var = IBREconomicBalance
					value = 2
					compare = equals
				}
			}
			SPA = {
				add_to_variable = { GDP_growth = 1.4 }
			}
			POR = {
				add_to_variable = { GDP_growth = -1.4 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicBalance
						value = 1
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = 0.7 }
				}
				POR = {
					add_to_variable = { GDP_growth = -0.7 }
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicBalance
						value = -1
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = -0.7 }
				}
				POR = {
					add_to_variable = { GDP_growth = 0.7 }
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicBalance
						value = -2
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = -1.4 }
				}
				POR = {
					add_to_variable = { GDP_growth = 1.4 }
				}
			}
		}
		if = {
			limit = {
				check_variable = {
					var = IBREconomicStrength
					value = 2
					compare = equals
				}
			}
			SPA = {
				add_to_variable = { GDP_growth = 1 }
			}
			POR = {
				add_to_variable = { GDP_growth = 1 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = IBREconomicStrength
						value = 1
						compare = equals
					}
				}
				SPA = {
					add_to_variable = { GDP_growth = 0.5 }
				}
				POR = {
					add_to_variable = { GDP_growth = 0.5 }
				}
			}
		}
		every_country = {
			limit = { is_ai = no }
			news_event = {
				id = WORLD.491
			}
		}
		every_state = {
			limit = { is_core_of = IBR }
			remove_core_of = IBR
		}
	}
}
country_event = {
	id = IBR.2001
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2001" }
	picture = GFX_report_event_IBR_letting_go
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.1999.t
	desc = IBR.1999.d
	option = {
		name = IBR.2001.a
		ai_chance = { factor = 10 }
	}
}

#ZOLL EVENTS

country_event = { #Maybe we could join ZV, let's ask Germany
	id = IBR.2002
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2002" }
	picture = GFX_report_event_SGR_sad_speer_2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.2002.t
	desc = IBR.2002.d
	trigger = { NOT = { has_global_flag = IBR_FFR_negotiations_successful } }
	option = {
		name = IBR.2002.a
		ai_chance = { factor = 10 }
		GER = {
			country_event = {
				id = IBR.2003
			}
		}
	}
}
country_event = { #DO we let Iberia into the ZV?
	id = IBR.2003
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2003" }
	picture = GFX_report_event_SGR_speer_accords
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.2003.t
	desc = IBR.2003.d
	option = {
		name = IBR.2003.a #Hell yes
		ai_chance = { factor = 10 }

		IBR = {
			country_event = {
				id = IBR.2004
				days = 3
			}
		}
	}
	option = {
		name = IBR.2003.b #Hell no
		ai_chance = { factor = 10 }

		trigger = { is_ai = no }

		IBR = {
			country_event = {
				id = IBR.2005
				days = 3
			}
		}
	}
}
country_event = { #Germany allows us into ZV
	id = IBR.2004
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2004" }
	picture = GFX_report_event_SGR_speer_accords
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.2004.t
	desc = IBR.2004.d
	option = {
		name = IBR.2004.a #Yay!
		ai_chance = { factor = 10 }
		add_political_power = 50
		IBR = { join_zollverein = yes }
		if = {
			limit = {
				country_exists = SLG
				SLG = {
					is_puppet_of = IBR
				}
			}
			SLG = {
				join_zollverein = yes
			}
		}
		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.502
					days = 1
				}
			}
		}
	}
}
country_event = { #Germany doesn't allow us into ZV
	id = IBR.2005
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.2005" }
	picture = GFX_report_event_SGR_speer_accords
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.2005.t
	desc = IBR.2005.d
	option = {
		name = IBR.2005.a #Sad!
		ai_chance = { factor = 10 }

		add_political_power = -50

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}

######RANDOM CULTURAL EVENTS

country_event = {
	id = IBR.3000
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3000" }
	picture = GFX_report_event_IBR_mural
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.3000.t
	desc = IBR.3000.d
	option = {
		name = IBR.3000.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.3001
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3001" }
	picture = GFX_report_event_ALG_jean_claude_perez
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.3001.t
	desc = IBR.3001.d
	immediate = {
		hidden_effect = {
			SLG = {
				transfer_state = 1006
				transfer_state = 459
				set_cosmetic_tag = SLG_FREE_YVES
				econ_leave_sphere = yes
			}
			IBR = {
				end_puppet = SLG
			}
		}
	}
	option = {
		name = IBR.3001.a
		ai_chance = { factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LEGIONAIRRES_UPRISING_PATH option = IBR_LEGIONAIRRES_UPRISING_PATH_INVADE }
			}
		}
	}
	option = {
		name = IBR.3001.b
		ai_chance = { factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = IBR_LEGIONAIRRES_UPRISING_PATH option = IBR_LEGIONAIRRES_UPRISING_PATH_LEAVE }
			}
		}
		declare_war_on = {
			target = SLG
			type = annex_everything
		}
		set_country_flag = IBR_yves_algeria_war_flag
		activate_mission = IBR_yves_war_mission
	}
}

country_event = {
	id = IBR.3002
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3002" }
	picture = GFX_report_event_IBR_salsa
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.3002.t
	desc = IBR.3002.d
	option = {
		name = IBR.3002.a
		ai_chance = { factor = 10 }
		add_to_variable = { IBRIberiaStability = -1 }
		custom_effect_tooltip = IBR_sub_stability_small_tt
		add_to_variable = { IBR_caudillo_correct_var = -2 }
	}
}

country_event = {
	id = IBR.3003
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3003" }
	picture = GFX_report_event_IBR_salazar_and_franco
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.3003.t
	desc = IBR.3003.d
	option = {
		name = IBR.3003.a
		ai_chance = { factor = 10 }
		if = {
			limit = { has_country_flag = IBR_Salazar_dead }
			country_event = {
				id = IBR.1122
				hours = 6
			}
		}
		else = {
			country_event = {
				id = IBR.1111
				hours = 6
			}
		}
	}
	option = {
		name = IBR.3003.b
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.3005
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3005" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = IBR.3005.t
	desc = IBR.3005.d
	option = {
		name = IBR.3005.a
		ai_chance = { factor = 10 }
		IBR = {
			white_peace = SLG
			transfer_state = 1006
			transfer_state = 459
			set_autonomy = {
				target = SLG
				autonomy_state = autonomy_italy_governate
			}
		}
		SLG = {
			set_politics = {
				ruling_party = despotism
			}
			add_ideas = {
				SLG_Orlando_Cristina_hog
				SLG_Federico_Gomez_sec
				SLG_Cirilo_Canovas_Garcia_eco
				SLG_Baltasar_Rebelo_de_Sousa_for
			}
			remove_unit_leader_role = SLG_Jean_Souetre
			remove_unit_leader_role = SLG_Albert_Dovecar
			remove_unit_leader_role = SLG_Claude_Piegts
			remove_unit_leader_role = SLG_Pierre_Delhomme
			drop_cosmetic_tag = yes
			promote_character = SLG_Federico_Gomez_Salazar
			econ_join_sphere_IBR = yes
			set_popularities = {
				despotism = 50
				anocracy = 20
				fascism = 30
			}
		}
	}
}

country_event = {
	id = IBR.3006
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3006" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.3006.t
	desc = IBR.3006.d
	option = {
		name = IBR.3006.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = IBR.3007
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3007" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.3007.t
	desc = IBR.3007.d
	option = {
		name = IBR.3007.a
		ai_chance = { factor = 10 }
	}
}

####Flavor events for 1.1

country_event = { #The Procession
	id = IBR.3100
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3100" }
	title = IBR.3100.t
	desc = IBR.3100.d
	picture = GFX_report_event_IBR_military_parade_horses

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3100.a
		ai_chance = { factor = 1 }

		country_event = {
			id = IBR.3300
			hours = 5
		}
	}
}

country_event = { #Adeus a um Caudillo
	id = IBR.3300
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3300" }
	title = IBR.3300.t
	desc = IBR.3300.d
	picture = GFX_report_event_IBR_salazar_dead

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3300.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #First Day on the Job
	id = IBR.3101
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3101" }
	title = IBR.3101.t
	desc = IBR.3101.d
	picture = GFX_report_event_IBR_AAS_logo

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3101.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3102
				days = 44
			}
		}
	}
}

country_event = { #A Lesson to Remember
	id = IBR.3102
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3102" }
	title = IBR.3102.t
	desc = IBR.3102.d
	picture = GFX_report_event_IBR_iberian_classroom

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3102.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #CUT FOR TIME BEING
	id = IBR.3103
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3103" }
	title = IBR.3103.t
	desc = IBR.3103.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3103.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #CUT FOR TIME BEING
	id = IBR.3104
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3104" }
	title = IBR.3104.t
	desc = IBR.3104.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3104.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Fallen Revolutionaries
	id = IBR.3105
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3105" }
	title = IBR.3105.t
	desc = IBR.3105.d
	picture = GFX_report_event_IBR_barcelona_sandbags

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3105.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Alger war still going for "always sunny"?
	id = IBR.31051
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.31051" }
	title = IBR.31051.t
	desc = IBR.31051.d
	picture = GFX_report_event_IBR_canarias_ship
	hidden = yes
	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.31051.a
		ai_chance = { factor = 1 }

		if = {
			limit = { has_global_flag = algeria_war }

			country_event = {
				id = IBR.3107
				hours = 1
			}
			country_event = {
				id = IBR.31052
				days = 12
			}
		}
	}
}

country_event = { #Alger war still going for "letter"?
	id = IBR.31052
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.31052" }
	title = IBR.31052.t
	desc = IBR.31052.d
	picture = GFX_report_event_IBR_canarias_ship
	hidden = yes
	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.31052.a
		ai_chance = { factor = 1 }

		if = {
			limit = { has_global_flag = algeria_war }

			country_event = {
				id = IBR.3106
				hours = 1
			}
		}
	}
}

country_event = { #A Letter from Algeria
	id = IBR.3106
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3106" }
	title = IBR.3106.t
	desc = IBR.3106.d
	picture = GFX_report_event_ALG_algerian_war_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3106.a
		ai_chance = { factor = 1 }

		set_country_flag = IBR_letterfromalgeria
	}
}

country_event = { #It's Always Sunny in Oran
	id = IBR.3107
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3107" }
	title = IBR.3107.t
	desc = IBR.3107.d
	picture = GFX_report_event_IBR_canarias_ship

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3107.a
		ai_chance = { factor = 1 }

		country_event = {
			id = IBR.31071
			hours = 2
		}
	}
}

country_event = { #The Engagement
	id = IBR.31071
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.31071" }
	title = IBR.31071.t
	desc = IBR.31071.d
	picture = GFX_report_event_IBR_ship_guns

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.31071.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #After the Triumph
	id = IBR.3108
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3108" }
	title = IBR.3108.t
	desc = IBR.3108.d
	picture = GFX_report_event_IBR_franco_salazar_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3108.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #After the Loss
	id = IBR.3109
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3109" }
	title = IBR.3109.t
	desc = IBR.3109.d
	picture = GFX_report_event_IBR_franco_salazar_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3109.a
		ai_chance = { factor = 1 }
		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		TNO_worsen_army_professionalism_high = yes
		
		hidden_effect = {
			country_event = {
				id = IBR.3156
				days = 4
			}
		}
	}
}

country_event = { #After the Peace
	id = IBR.3110
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3110" }
	title = IBR.3110.t
	desc = IBR.3110.d
	picture = GFX_report_event_IBR_franco_salazar_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3110.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Quiet Assembly
	id = IBR.3114
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3114" }
	title = IBR.3114.t
	desc = IBR.3114.d
	picture = GFX_report_event_IBR_advisory_council_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3114.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = iberia.1
				days = 12
			}
			country_event = {
				id = iberia.36
				days = 100
			}
		}
	}
}

country_event = { #The Council Convenes
	id = IBR.3115
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3115" }
	title = IBR.3115.t
	desc = IBR.3115.d
	picture = GFX_report_event_IBR_congress_clapping

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3115.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = iberia.1
				days = 12
			}
			country_event = {
				id = iberia.36
				days = 100
			}
		}
	}
}

country_event = { #Emergency Session on Terrorism
	id = IBR.3116
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3116" }
	title = IBR.3116.t
	desc = IBR.3116.d
	picture = GFX_report_event_IBR_franco_speech_council

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3116.a
		ai_chance = { factor = 1 }

		load_focus_tree = {
			tree = IBR_anti_separatista_tree
			keep_completed = yes
		}

		hidden_effect = { country_event = { id = IBR.98 } }
	}
}

country_event = { #An Emergency Session
	id = IBR.3117
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3117" }
	title = IBR.3117.t
	desc = IBR.3117.d
	picture = GFX_report_event_IBR_franco_speech_council

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3117.a
		ai_chance = { factor = 1 }

		load_focus_tree = {
			tree = IBR_anti_separatista_tree
			keep_completed = yes
		}

		hidden_effect = { country_event = { id = IBR.98 }
		}
	}
}

country_event = { #The New Minister of Information
	id = IBR.3118
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3118" }
	title = IBR.3118.t
	desc = IBR.3118.d
	picture = GFX_report_event_IBR_fraga

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3118.a
		ai_chance = { factor = 1 }

		country_event = {
			id = IBR.5520
			days = 3
		}
	}
}

country_event = { #Manuel Fraga's Stand Against Terrorism
	id = IBR.3119
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3119" }
	title = IBR.3119.t
	desc = IBR.3119.d
	picture = GFX_report_event_IBR_fraga

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3119.a
		ai_chance = { factor = 1 }

		country_event = {
			id = IBR.5520
			days = 3
		}
	}
}

country_event = { #Domestic Proposals
	id = IBR.3120
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3120" }
	title = IBR.3120.t
	desc = IBR.3120.d
	picture = GFX_report_event_IBR_fernandez_miranda_and_ullastres

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3120.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
					id = IBR.400
					days = 8
			}
		}
	}
}

country_event = { #Rewriting the Constitution
	id = IBR.3121
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3121" }
	title = IBR.3121.t
	desc = IBR.3121.d
	picture = GFX_report_event_IBR_fernandez_miranda_and_ullastres

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3121.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
					id = IBR.400
					days = 8
			}
		}
	}
}

country_event = { #The New Path Forward
	id = IBR.3122
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3122" }
	title = IBR.3122.t
	desc = IBR.3122.d
	picture = GFX_report_event_IBR_ullastres_calvo

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3122.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Triumph of Progress
	id = IBR.3123
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3123" }
	title = IBR.3123.t
	desc = IBR.3123.d
	picture = GFX_report_event_IBR_ullastres_calvo

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3123.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Driving Forward, Not Changing Course
	id = IBR.3124
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3124" }
	title = IBR.3124.t
	desc = IBR.3124.d
	picture = GFX_report_event_IBR_salazar_writing_desk

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3124.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Wheat, Figs, and Grapes
	id = IBR.3125
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3125" }
	title = IBR.3125.t
	desc = IBR.3125.d
	picture = GFX_report_event_IBR_rural_agriculture

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3125.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Grandes' Grandest Victory
	id = IBR.3126
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3126" }
	title = IBR.3126.t
	desc = IBR.3126.d
	picture = GFX_report_event_IBR_munos_grandes

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3126.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Old Ideas for a New Union
	id = IBR.3127
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3127" }
	title = IBR.3127.t
	desc = IBR.3127.d
	picture = GFX_report_event_IBR_blas_pinar

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3127.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Man with the Full-framed Glasses
	id = IBR.3128
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3128" }
	title = IBR.3128.t
	desc = IBR.3128.d
	picture = GFX_report_event_IBR_caetano

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3128.a
		ai_chance = { factor = 1 }

		if = {
			limit = { has_country_flag = IBR_caetano_path }

			load_focus_tree = {
				tree = IBR_death_of_salazar_caetano
				keep_completed = yes
			}
			clr_country_flag = IBR_caetano_path
		}
		else = {
			country_event = {
				id = IBR.701
				days = 14
			}
		}
	}
}

country_event = { #The New Caudillo Speaks
	id = IBR.3129
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3129" }
	title = IBR.3129.t
	desc = IBR.3129.d
	picture = GFX_report_event_IBR_caetano

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3129.a
		ai_chance = { factor = 1 }

		if = {
			limit = { has_country_flag = IBR_caetano_path }

			load_focus_tree = {
				tree = IBR_death_of_salazar_caetano
				keep_completed = yes
			}
			clr_country_flag = IBR_caetano_path
		}
		else = {
			country_event = {
				id = IBR.700
				days = 14
			}
		}
	}
}

country_event = { #The Announcement
	id = IBR.3130
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3130" }
	title = IBR.3130.t
	desc = IBR.3130.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3130.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Windy Morning in Madrid
	id = IBR.3131
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3131" }
	title = IBR.3131.t
	desc = IBR.3131.d
	picture = GFX_report_event_IBR_cortes_building

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3131.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3135
				days = 15
			}
		}
	}
}

country_event = { #A Permanent Council
	id = IBR.3132
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3132" }
	title = IBR.3132.t
	desc = IBR.3132.d
	picture = GFX_report_event_IBR_congress_clapping

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3132.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Reaction and Reform
	id = IBR.3133
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3133" }
	title = IBR.3133.t
	desc = IBR.3133.d
	picture = GFX_report_event_IBR_torcuato

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3133.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Belem Manifesto
	id = IBR.3134
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3134" }
	title = IBR.3134.t
	desc = IBR.3134.d
	picture = GFX_report_event_IBR_belem_brazil_hotel

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3134.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Cafe talk
	id = IBR.3135
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3135" }
	title = IBR.3135.t
	desc = IBR.3135.d
	picture = GFX_report_event_IBR_madrid

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3135.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Friendly Game
	id = IBR.3136
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3136" }
	title = IBR.3136.t
	desc = IBR.3136.d
	picture = GFX_report_event_IBR_chess

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1964.11.25
	}
	option = { #
		name = IBR.3136.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3137
				days = 116
			}
		}
	}
}

country_event = { #Fool's Mate
	id = IBR.3137
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3137" }
	title = IBR.3137.t
	desc = IBR.3137.d
	picture = GFX_report_event_IBR_chess

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3137.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3138
				days = 407
			}
		}
	}
}

country_event = { #Signs of Improvement
	id = IBR.3138
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3138" }
	title = IBR.3138.t
	desc = IBR.3138.d
	picture = GFX_report_event_IBR_chess

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3138.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3139
				days = 369
			}
		}
	}
}

country_event = { #A Promising Result
	id = IBR.3139
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3139" }
	title = IBR.3139.t
	desc = IBR.3139.d
	picture = GFX_report_event_IBR_chess

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3139.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3140
				days = 366
			}
		}
	}
}

country_event = { #White and Black
	id = IBR.3140
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3140" }
	title = IBR.3140.t
	desc = IBR.3140.d
	picture = GFX_report_event_IBR_chess

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3140.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Nasty Cough
	id = IBR.3141
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3141" }
	title = IBR.3141.t
	desc = IBR.3141.d
	picture = GFX_report_event_IBR_franco_boomer

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1970.10.25
	}
	option = { #
		name = IBR.3141.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Torre de Iberia Begins Construction
	id = IBR.3142
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3142" }
	title = IBR.3142.t
	desc = IBR.3142.d
	picture = GFX_report_event_IBR_madrid_construction_crane

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3142.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3145
				days = 1100
			}
		}
	}
}

country_event = { #Deslocalización
	id = IBR.3143
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3143" }
	title = IBR.3143.t
	desc = IBR.3143.d
	picture = GFX_report_event_IND_factory_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3143.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Finest Car in Porto / Car from the Future
	id = IBR.3144
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3144" }
	title = IBR.3144.t
	desc = IBR.3144.d
	picture = GFX_report_event_IBR_ferrari_dino_260GT

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3144.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Torre de Iberia Finished!
	id = IBR.3145
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3145" }
	title = IBR.3145.t
	desc = IBR.3145.d
	picture = GFX_report_event_IBR_madrid_aerial_view

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3145.a
		ai_chance = { factor = 1 }

		1013 = {
			set_temp_variable = { temp_state_value_addition = 0.011 } #already converted to billion
			econ_state_value_change_addition_specified_state = yes
		}

		add_to_variable = {
			IBRIberiaStability = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
	}
}

####LISBON FLOOD EVENT CHAIN

country_event = { #An Evening in the Mud
	id = IBR.3149
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3149" }
	title = IBR.3149.t
	desc = IBR.3149.d
	picture = GFX_report_event_IBR_lisbon_flood_mother_girl

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1967.11.25
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = { #
		name = IBR.3149.a
		ai_chance = { factor = 1 }

		#Several factories as well as a few levels of infrastructure in Lisbon are badly damaged.
		#GDP drops by 1%. Relief set to 1, censor to 0, support to 6, and loss.jpg to 200.

		112 = {
			damage_building = {
				type = infrastructure
				damage = 0.8
			}
		}

		112 = {
			set_temp_variable = { temp_state_value_addition = -0.043 } #already converted to billion
			econ_state_value_change_addition_specified_state = yes
		}

		set_variable = {
			IBR_lisbonflood_relief = 1
		}
		set_variable = {
			IBR_lisbonflood_censor = 0
		}
		set_variable = {
			IBR_lisbonflood_support = 6
		}
		set_variable = {
			IBR_lisbonflood_loss = 200
		}

		hidden_effect = {
			country_event = {
				id = IBR.3150
				hours = 5
			}
		}
	}
}

country_event = { #Breaking News from Lisbon
	id = IBR.3150
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3150" }
	title = IBR.3150.t
	desc = IBR.3150.d
	picture = GFX_report_event_IBR_lisbon_flood

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Franco's Plan: Respond Immediately
		name = IBR.3150.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		set_temp_variable = { temp_econ_spending_amount = 0.06 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3151
				days = 3
			}
		}
	}
	option = { #Salazar's Plan: Gather Information First
		name = IBR.3150.b
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.02 }
		econ_spend_money_once_effect_raw_money = yes

		hidden_effect = {
			country_event = {
				id = IBR.3151
				days = 3
			}
		}
	}
}

country_event = { #The Volunteers
	id = IBR.3151
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3151" }
	title = IBR.3151.t
	desc = IBR.3151.d
	picture = GFX_report_event_IBR_lisbon_flood_volunteers

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Do Nothing
		name = IBR.3151.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.3152
				days = 2
			}
		}
	}
	option = { #Encourage Volunteers
		name = IBR.3151.b
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.04 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3152
				days = 2
			}
		}
	}
	option = { #Send Army
		name = IBR.3151.c
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.11 }
		econ_spend_money_once_effect_raw_money = yes

		add_equipment_to_stockpile = {
			type = support_equipment
			amount = -100
		}

		add_to_variable = { IBR_lisbonflood_relief = 2 }

		if = {
			limit = {
				check_variable = { IBR_lisbonflood_relief = 4 }
			}

			hidden_effect = {
				country_event = {
					id = IBR.3153
					days = 2
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.3152
					days = 2
				}
			}
		}
	}
}

country_event = { #Mud, Mildew, and Misery
	id = IBR.3152
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3152" }
	title = IBR.3152.t
	desc = IBR.3152.d
	picture = GFX_report_event_IBR_lisbon_flood_bad_conditions

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3152.a
		ai_chance = { factor = 10 }

		add_political_power = -10

		add_to_variable = { IBR_lisbonflood_support = -1 }

		add_to_variable = { IBR_lisbonflood_loss = 100 }

		hidden_effect = {
			country_event = {
				id = IBR.3154
				days = 3
			}
		}
	}
}

country_event = { #The Campus Grounds
	id = IBR.3153
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3153" }
	title = IBR.3153.t
	desc = IBR.3153.d
	picture = GFX_report_event_IBR_lisbon_flood_military

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3153.a
		ai_chance = { factor = 10 }

		add_political_power = 10

		add_to_variable = { IBR_lisbonflood_support = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3154
				days = 3
			}
		}
	}
}

country_event = { #Cantar De Galo
	id = IBR.3154
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3154" }
	title = IBR.3154.t
	desc = IBR.3154.d
	picture = GFX_report_event_IBR_franco_salazar_discussing

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Do nothing
		name = IBR.3154.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.30155
				days = 3
			}
		}
	}
	option = { #Limited censorship
		name = IBR.3154.b
		ai_chance = { factor = 10 }

		add_political_power = -20

		add_to_variable = { IBR_lisbonflood_censor = 1 }
		add_to_variable = { IBR_lisbonflood_support = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.30155
				days = 3
			}
		}
	}
	option = { #Heavy Censorship
		name = IBR.3154.c
		ai_chance = { factor = 10 }

		add_political_power = -40

		add_to_variable = { IBR_lisbonflood_censor = 3 }
		add_to_variable = { IBR_lisbonflood_support = 2 }

		hidden_effect = {
			country_event = {
				id = IBR.30155
				days = 3
			}
		}
	}
}

country_event = { #Lisbon Homelessness Crisis
	id = IBR.30155
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30155" }
	title = IBR.30155.t
	desc = IBR.30155.d
	picture = GFX_report_event_IBR_lisbon_flood_ruins

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Delegate
		name = IBR.30155.a
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_lisbonflood_support = -1 }

		if = {
			limit = {
				OR = {
					check_variable = { IBR_lisbonflood_relief > 4 }
					has_country_flag = IBRFSLPBroken
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.30158
					days = 14
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.30157
					days = 7
				}
			}
		}
	}
	option = { #Extend funding
		name = IBR.30155.b
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.052 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 1 }

		if = {
			limit = {
				OR = {
					check_variable = { IBR_lisbonflood_relief > 4 }
					has_country_flag = IBRFSLPBroken
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.30158
					days = 14
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.30157
					days = 7
				}
			}
		}
	}
	option = { #Subsidize construction
		name = IBR.30155.c
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.193 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 2 }
		add_to_variable = { IBR_lisbonflood_support = 1 }

		if = {
			limit = {
				OR = {
					check_variable = { IBR_lisbonflood_relief > 4 }
					has_country_flag = IBRFSLPBroken
				}
			}

			hidden_effect = {
				country_event = {
					id = IBR.30158
					days = 14
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = IBR.30157
					days = 7
				}
			}
		}
	}
}

country_event = { #FSLP Recruiting in Lisbon!
	id = IBR.30157
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30157" }
	title = IBR.30157.t
	desc = IBR.30157.d
	picture = GFX_report_event_IBR_interview

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Censorship
		name = IBR.30157.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_small_tt

		add_to_variable = { IBR_lisbonflood_censor = 2 }

		hidden_effect = {
			country_event = {
				id = IBR.30158
				days = 7
			}
		}
	}
	option = { #Arrest
		name = IBR.30157.b
		ai_chance = { factor = 10 }

		add_stability = -0.03

		add_to_variable = { IBR_lisbonflood_support = -1 }

		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.30158
				days = 7
			}
		}
	}
	option = { #Oh well
		name = IBR.30157.c
		ai_chance = { factor = 10 }

		add_to_variable = {
			IBR_FSLP_Support = 2
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_mid_tt

		hidden_effect = {
			country_event = {
				id = IBR.30158
				days = 7
			}
		}
	}
}

country_event = { #Stimulus for Lisbon?
	id = IBR.30158
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30158" }
	title = IBR.30158.t
	desc = IBR.30158.d
	picture = GFX_report_event_IBR_lisbon_working_class_neighborhood

	is_triggered_only = yes
	fire_only_once = yes

	option = { #No
		name = IBR.30158.a
		ai_chance = { factor = 10 }

		IBR_lisbon_coverup_check = yes
	}
	option = { #Temp jobs
		name = IBR.30158.b
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.15 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 1 }

		IBR_lisbon_coverup_check = yes
	}
	option = { #Relief
		name = IBR.30158.c
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.15 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 1 }

		IBR_lisbon_coverup_check = yes
	}
	option = { #Both!
		name = IBR.30158.e
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.3 }
		econ_spend_money_once_effect_raw_money = yes

		add_to_variable = { IBR_lisbonflood_relief = 2 }

		IBR_lisbon_coverup_check = yes
	}
}

country_event = { #Disturbing Reports
	id = IBR.30159
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30159" }
	title = IBR.30159.t
	desc = IBR.30159.d
	picture = GFX_report_event_IBR_meeting_table

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.30159.a
		ai_chance = { factor = 10 }

		add_political_power = -75
		add_stability = -0.03

		add_to_variable = {
			IBR_FSLP_Support = 1
		}
		IBR_terror_vunerable_check = yes
		custom_effect_tooltip = IBR_add_fslp_support_small_tt

		add_to_variable = { IBR_lisbonflood_support = -1 }
		add_to_variable = { IBR_lisbonflood_censor = -2 }

		IBR_lisbon_disturbing_reports = yes
	}
}

country_event = { #Under the Arch
	id = IBR.30160
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30160" }
	title = IBR.30160.t
	desc = IBR.30160.d
	picture = GFX_report_event_IBR_lisbon_rua_augusta_arch

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Break up
		name = IBR.30160.a
		ai_chance = { factor = 10 }

		add_political_power = -20

		add_to_variable = { IBR_lisbonflood_support = -1 }

		IBR_lisbon_under_arch = yes
	}
	option = { #Ignore
		name = IBR.30160.b
		ai_chance = { factor = 10 }

		add_to_variable = { IBR_lisbonflood_support = -2 }

		IBR_lisbon_under_arch = yes
	}
	option = { #Accede funding
		name = IBR.30160.c
		ai_chance = { factor = 10 }

		set_temp_variable = { temp_econ_spending_amount = 0.05 }
		econ_spend_money_once_effect_raw_money = yes

		#why would you reward 1 support? id rather have this be neutral SO YOU DONT GET REWARDED!

		IBR_lisbon_under_arch = yes
	}
}

country_event = { #Papai's Boots
	id = IBR.30161
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30161" }
	title = IBR.30161.t
	desc = IBR.30161.d
	picture = GFX_report_event_IBR_marquita_perez_doll

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.30161.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.30164
				days = 7
			}
		}
	}
}

country_event = { #Mother in a Dark Room
	id = IBR.30162
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30162" }
	title = IBR.30162.t
	desc = IBR.30162.d
	picture = GFX_report_event_IBR_mattress_tenement

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.30162.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.30164
				days = 7
			}
		}
	}
}

country_event = { #Six Weeks Ago
	id = IBR.30163
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30163" }
	title = IBR.30163.t
	desc = IBR.30163.d
	picture = GFX_report_event_IBR_wooden_shack

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.30163.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.30164
				days = 7
			}
		}
	}
}

country_event = { #Mouth of the Tagus
	id = IBR.30164
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.30164" }
	title = IBR.30164.t
	desc = IBR.30164.d
	picture = GFX_report_event_IBR_lisbon_port

	is_triggered_only = yes
	fire_only_once = yes
	immediate = {
		IBR_lisbon_loss_calc = yes
		IBR_lisbon_anger_calc = yes
	}
	option = { #
		name = IBR.30164.a
		ai_chance = { factor = 10 }
		#i guess the final effects go here lol
		#double check if theres any mention of FSLP in event loc, cause they can be dismantled

		IBR_lisbon_final_effects = yes

		IBR_terror_vunerable_check = yes

		IBR_lisbon_clearall = yes #THE VERY FINAL EFFECT XDDD
	}
}

######bruh

country_event = { #Yanks in São Tomé
	id = IBR.3155
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3155" }
	title = IBR.3155.t
	desc = IBR.3155.d
	picture = GFX_report_event_USA_saw_helicopter

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3155.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Letter from South Africa
	id = IBR.31550
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.31550" }
	title = IBR.31550.t
	desc = IBR.31550.d
	picture = GFX_report_event_USA_saw_soldier

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.31550.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Going Home
	id = IBR.3156
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3156" }
	title = IBR.3156.t
	desc = IBR.3156.d
	picture = GFX_report_event_IBR_lisbon_port

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3156.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Operazione Tenda
	id = IBR.3157
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3157" }
	title = IBR.3157.t
	desc = IBR.3157.d
	picture = GFX_report_event_ITA_naval_ship

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3157.a
		ai_chance = { factor = 1 }

		ITA = {
			transfer_state = 177
		}

		hidden_effect = {
			every_country = {
				limit = { is_ai = no }
				news_event = {
					id = WORLD.1505
					days = 1
				}
			}
		}
	}
}

country_event = { #Burying the Hatchet
	id = IBR.3158
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3158" }
	title = IBR.3158.t
	desc = IBR.3158.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3158.a
		ai_chance = { factor = 1 }

		if = {
			limit = {
				ITA = { is_ai = yes }
			}
			ITA = {
				country_event = {
					id = IBR.734
					days = 1
				}
			}
		}
	}
}

country_event = { #A Cold Welcome
	id = IBR.3159
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3159" }
	title = IBR.3159.t
	desc = IBR.3159.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3159.a
		ai_chance = { factor = 1 }

		if = {
			limit = {
				ITA = { is_ai = yes }
			}
			ITA = {
				country_event = {
					id = IBR.734
					days = 1
				}
			}
		}
	}
}

country_event = { #A Mission to Rome SCORZA NO
	id = IBR.3160
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3160" }
	title = IBR.3160.t
	desc = IBR.3160.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3160.a
		ai_chance = { factor = 1 }

		if = {
			limit = {
				ITA = { is_ai = yes }
			}
			ITA = {
				country_event = {
					id = IBR.734
					days = 1
				}
			}
		}
	}
}

country_event = { #A Mission to Rome SCORZA YES
	id = IBR.31601
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.31601" }
	title = IBR.31601.t
	desc = IBR.31601.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.31601.a
		ai_chance = { factor = 1 }

		if = {
			limit = {
				ITA = { is_ai = yes }
			}
			ITA = {
				country_event = {
					id = IBR.734
					days = 1
				}
			}
		}
	}
}

country_event = { #A Trip to Anatolia
	id = IBR.3161
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3161" }
	title = IBR.3161.t
	desc = IBR.3161.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3161.a
		ai_chance = { factor = 1 }

		if = {
			limit = {
				TUR = { is_ai = yes }
			}
			TUR = {
				country_event = {
					id = IBR.735
					days = 1
				}
			}
		}
	}
}

country_event = { #German Friends?
	id = IBR.3162
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3162" }
	title = IBR.3162.t
	desc = IBR.3162.d
	picture = GFX_report_event_IBR_big_meeting

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3162.a
		ai_chance = { factor = 1 }

		GER = {
			country_event = {
				id = IBR.722
				days = 1
			}
		}
	}
}

country_event = { #A Matter of Perspective
	id = IBR.3163
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3163" }
	title = IBR.3163.t
	desc = IBR.3163.d
	picture = GFX_report_event_generic_office

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3163.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Tense Meeting
	id = IBR.3164
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3164" }
	title = IBR.3164.t
	desc = IBR.3164.d
	picture = GFX_report_event_IBR_meeting_small

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3164.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3240
				days = 4
			}
		}
	}
}

country_event = { #Extraordinary Military Parade in Lisbon
	id = IBR.3165
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3165" }
	title = IBR.3165.t
	desc = IBR.3165.d
	picture = GFX_report_event_IBR_military_parade_big

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3165.a
		ai_chance = { factor = 1 }

		army_experience = 10
		air_experience = 10
		navy_experience = 10

	}
}

country_event = { #Estado Novo, Velho Caudilho
	id = IBR.3166
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3166" }
	title = IBR.3166.t
	desc = IBR.3166.d
	picture = GFX_report_event_IBR_salazar_writing_desk

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1962.2.12
	}

	option = { #
		name = IBR.3166.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3167
				days = 21
			}
		}
	}
}

country_event = { #The Nights of Malta
	id = IBR.3167
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3167" }
	title = IBR.3167.t
	desc = IBR.3167.d
	picture = GFX_report_event_IBR_franco

	is_triggered_only = yes
	fire_only_once = yes

	immediate = {
		hidden_effect = {
			country_event = {
				id = IBR.3168
				days = 7
			}
		}
	}
	option = { #
		name = IBR.3167.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Mighty Whale
	id = IBR.3168
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3168" }
	title = IBR.3168.t
	desc = IBR.3168.d
	picture = GFX_report_event_IBR_sperm_whale

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3168.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A New Case
	id = IBR.3169
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3169" }
	title = IBR.3169.t
	desc = IBR.3169.d
	picture = GFX_report_event_IBR_spanish_police_car

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3169.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3170
				days = 380
			}
		}
	}
}

country_event = { #Dead End
	id = IBR.3170
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3170" }
	title = IBR.3170.t
	desc = IBR.3170.d
	picture = GFX_report_event_IBR_detective_desk

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3170.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3171
				days = 410
			}
		}
	}
}

country_event = { #Barcelona or Bust
	id = IBR.3171
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3171" }
	title = IBR.3171.t
	desc = IBR.3171.d
	picture = GFX_report_event_IBR_detective_desk

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3171.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3172
				days = 340
			}
		}
	}
}

country_event = { #Broken House
	id = IBR.3172
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3172" }
	title = IBR.3172.t
	desc = IBR.3172.d
	picture = GFX_report_event_IBR_home_office_desk

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3172.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3173
				days = 420
			}
		}
	}
}

country_event = { #The Bottom
	id = IBR.3173
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3173" }
	title = IBR.3173.t
	desc = IBR.3173.d
	picture = GFX_report_event_IBR_burning_letter

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3173.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3174
				days = 480
			}
		}
	}
}

country_event = { #Purifying Flame
	id = IBR.3174
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3174" }
	title = IBR.3174.t
	desc = IBR.3174.d
	picture = GFX_report_event_RUS_burning_village

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3174.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A New Beginning
	id = IBR.3175
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3175" }
	title = IBR.3175.t
	desc = IBR.3175.d
	picture = GFX_report_event_IBR_home_office_desk

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3175.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Closure
	id = IBR.3176
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3176" }
	title = IBR.3176.t
	desc = IBR.3176.d
	picture = GFX_report_event_IBR_madrid_phonebooth

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3176.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #An End After All
	id = IBR.3177
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3177" }
	title = IBR.3177.t
	desc = IBR.3177.d
	picture = GFX_report_event_mexico_bus

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3177.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #There is No Use
	id = IBR.3178
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3178" }
	title = IBR.3178.t
	desc = IBR.3178.d
	picture = GFX_report_event_IBR_madrid_phonebooth_dark

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3178.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #On the Run
	id = IBR.3179
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3179" }
	title = IBR.3179.t
	desc = IBR.3179.d
	picture = GFX_report_event_IBR_oviedo_blackout

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3179.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Rapid-fire
	id = IBR.3180
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3180" }
	title = IBR.3180.t
	desc = IBR.3180.d
	picture = GFX_report_event_IBR_congress_clapping

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3180.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #A Presidential Dictate
	id = IBR.3181
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3181" }
	title = IBR.3181.t
	desc = IBR.3181.d
	picture = GFX_report_event_IBR_mellado

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3181.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3182
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3182" }
	title = IBR.3182.t
	desc = IBR.3182.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3182.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The King of Football
	id = IBR.3183
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3183" }
	title = IBR.3183.t
	desc = IBR.3183.d
	picture = GFX_report_event_IBR_paco_gento

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1971.4.19
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = { #
		name = IBR.3183.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The New Curriculum
	id = IBR.3184
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3184" }
	title = IBR.3184.t
	desc = IBR.3184.d
	picture = GFX_report_event_IBR_iberian_classroom

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1971.8.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		has_country_flag = IBRDemUnion
		NOT = {
			has_country_flag = IBRNationalUnionVictory
		}
	}

	option = { #
		name = IBR.3184.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Standard Keyboard
	id = IBR.3185
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3185" }
	title = IBR.3185.t
	desc = IBR.3185.d
	picture = GFX_report_event_IBR_HCESAR_typewriter

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3185.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Picasso's Return
	id = IBR.3186
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3186" }
	title = IBR.3186.t
	desc = IBR.3186.d
	picture = GFX_report_event_IBR_picasso_old

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1971.7.2
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		has_country_flag = IBRDemUnion
		NOT = {
			has_country_flag = IBRNationalUnionVictory
		}
	}
	option = { #
		name = IBR.3186.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Death of Picasso RETURN VERSION
	id = IBR.3187
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3187" }
	title = IBR.3187.t
	desc = IBR.3187.d
	picture = GFX_report_event_IBR_picasso_old

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1973.4.8
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		has_country_flag = IBRDemUnion
		NOT = {
			has_country_flag = IBRNationalUnionVictory
		}
	}
	option = { #
		name = IBR.3187.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3188
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3188" }
	title = IBR.3188.t
	desc = IBR.3188.d
	picture = GFX_report_event_IBR_picasso_old

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3188.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3189
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3189" }
	title = IBR.3189.t
	desc = IBR.3189.d
	picture = GFX_report_event_IBR_picasso_old

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3189.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Death of Picasso EXILED VERSION
	id = IBR.3190
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3190" }
	title = IBR.3190.t
	desc = IBR.3190.d
	picture = GFX_report_event_IBR_picasso_old

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1973.4.8
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		OR = {
			NOT = {
				has_country_flag = IBRDemUnion
			}
			has_country_flag = IBRNationalUnionVictory
		}
	}
	option = { #
		name = IBR.3190.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Old, the New
	id = IBR.3191
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3191" }
	title = IBR.3191.t
	desc = IBR.3191.d
	picture = GFX_report_event_IBR_porcelain_cup

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3191.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Castañuela 70 DEMOCRACY VERSION
	id = IBR.3192
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3192" }
	title = IBR.3192.t
	desc = IBR.3192.d
	picture = GFX_report_event_IBR_castanuela_70

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1970.6.21
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		has_country_flag = IBRDemUnion
	}
	option = { #
		name = IBR.3192.a
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = IBRSoclib70Victory }
	}
	option = { #
		name = IBR.3192.b
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = IBRMarlib70Victory }
	}
	option = { #
		name = IBR.3192.c
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = IBRSoccon70Victory }
	}
	option = { #
		name = IBR.3192.e
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = IBRNationalUnionVictory }
	}
}

country_event = { #Castañuela 70 NON-DEMOCRACY VERSION
	id = IBR.3193
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3193" }
	title = IBR.3193.t
	desc = IBR.3193.d
	picture = GFX_report_event_IBR_castanuela_70

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1970.6.21
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		NOT = { has_country_flag = IBRDemUnion }
	}
	option = { #
		name = IBR.3193.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #El Noi del Poble-sec
	id = IBR.3194
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3194" }
	title = IBR.3194.t
	desc = IBR.3194.d
	picture = GFX_report_event_IBR_joan_manuel_serrat_mediterraneo

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1971.12.1
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = { #
		name = IBR.3194.a
		ai_chance = { factor = 10 }
		trigger = {
			has_country_flag = IBRDemUnion
			NOT = { has_country_flag = IBRNationalUnionVictory }
		}
	}
	option = { #
		name = IBR.3194.b
		ai_chance = { factor = 10 }
		trigger = {
			has_government = anocracy
		}
	}
	option = { #
		name = IBR.3194.c
		ai_chance = { factor = 10 }
		trigger = {
			has_government = despotism
		}
	}
}

country_event = { #No More Church For Me
	id = IBR.3195
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3195" }
	title = IBR.3195.t
	desc = IBR.3195.d
	picture = GFX_report_event_IBR_catholic_bible

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1972.7.14
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		has_country_flag = IBRDemUnion
	}
	option = { #
		name = IBR.3195.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Un, Dos, Tres
	id = IBR.3196
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3196" }
	title = IBR.3196.t
	desc = IBR.3196.d
	picture = GFX_report_event_IBR_un_dos_tres

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1972.4.24
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = { #
		name = IBR.3196.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #El Sulfato Atómico
	id = IBR.3197
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3197" }
	title = IBR.3197.t
	desc = IBR.3197.d
	picture = GFX_report_event_IBR_sulfato_atomico

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1969.1.27
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3197.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Swedes in Biscay
	id = IBR.3198
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3198" }
	title = IBR.3198.t
	desc = IBR.3198.d
	picture = GFX_report_event_IBR_arritera_beach

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1973.7.19
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3198.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The White Terror
	id = IBR.3199
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3199" }
	title = IBR.3199.t
	desc = IBR.3199.d
	picture = GFX_report_event_IBR_AAS_raid

	is_triggered_only = yes #triggered directly from post barcelona events
	fire_only_once = yes

	option = { #
		name = IBR.3199.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Trouble in Paradise
	id = IBR.3200
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3200" }
	title = IBR.3200.t
	desc = IBR.3200.d
	picture = GFX_report_event_IBR_basque_protestors_beaten

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1970.10.2
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		NOT = { has_country_flag = IBRDemUnion }
	}

	option = { #
		name = IBR.3200.a
		ai_chance = { factor = 1 }

		add_stability = -0.01
		add_political_power = -10
	}
}

country_event = { #The First of May
	id = IBR.3201
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3201" }
	title = IBR.3201.t
	desc = IBR.3201.d
	picture = GFX_report_event_IBR_cnt_barcelona_protest_70s

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1970.5.1
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		OR = {
			has_country_flag = IBRMarlib70Victory
			has_country_flag = IBRSoclib70Victory
			has_country_flag = IBRSoccon70Victory
			has_country_flag = IBRNationalUnionVictory
		}
	}

	option = { #
		name = IBR.3201.a
		ai_chance = { factor = 1 }
		trigger = {
			OR = {
				has_country_flag = IBRMarlib70Victory
				has_country_flag = IBRSoclib70Victory
				has_country_flag = IBRSoccon70Victory
			}
		}
	}
	option = { #
		name = IBR.3201.b
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = IBRNationalUnionVictory }
	}
}

country_event = { #Colorful Cross Promotion
	id = IBR.3202
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3202" }
	title = IBR.3202.t
	desc = IBR.3202.d
	picture = GFX_report_event_generic_televison_announcement

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		#date > 1971.10.25
		date > 1974.3.25
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = { #
		name = IBR.3202.a
		ai_chance = { factor = 1 }
	}
	option = { #
		name = IBR.3202.b
		ai_chance = { factor = 1 }
	}
}

country_event = { #Agustín Muñoz Grandes is Dead!
	id = IBR.3203
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3203" }
	title = IBR.3203.t
	desc = IBR.3203.d
	picture = GFX_report_event_IBR_munos_grandes

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1969.7.12
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3203.a
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = advisory_council }
		retire_character = IBR_Agustin_Munoz_Grandes
		hidden_effect = {
			IBR = {
				remove_ideas_with_trait = security_minister
			}
		}
		add_ideas = IBR_Fernando_Santos_sec
	}
	option = { #
		name = IBR.3203.b
		ai_chance = { factor = 1 }
		trigger = { has_country_flag = legislature_council }
		retire_character = IBR_Agustin_Munoz_Grandes
		hidden_effect = {
			IBR = {
				remove_ideas_with_trait = security_minister
			}
		}
		add_ideas = IBR_Fernando_Santos_sec
	}
}

country_event = { #Hunt for a Francesinha
	id = IBR.3204
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3204" }
	title = IBR.3204.t
	desc = IBR.3204.d
	picture = GFX_report_event_IBR_francesinha_sandwich

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1972.9.4
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3204.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Ghost of the Auxilio Social
	id = IBR.3205
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3205" }
	title = IBR.3205.t
	desc = IBR.3205.d
	picture = GFX_report_event_IBR_propaganda_woman

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1971.2.15
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		has_country_flag = IBRDemUnion
		NOT = {
			has_country_flag = IBRNationalUnionVictory
		}
	}

	option = { #
		name = IBR.3205.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Lost in the Christmas Market
	id = IBR.3206
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3206" }
	title = IBR.3206.t
	desc = IBR.3206.d
	picture = GFX_report_event_IBR_plaza_mayor_christmas_market

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1973.12.21
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3206.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Movies and Morals
	id = IBR.3207
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3207" }
	title = IBR.3207.t
	desc = IBR.3207.d
	picture = GFX_report_event_IBR_vampyros_lesbos

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1971.8.13
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		OR = {
			has_government = despotism
			has_country_flag = IBRAuthDemCongress
		}
	}

	option = { #
		name = IBR.3207.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Under the Mattress
	id = IBR.3208
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3208" }
	title = IBR.3208.t
	desc = IBR.3208.d
	picture = GFX_report_event_IBR_mattress_tenement

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3208.a
		ai_chance = { factor = 1 }

		hidden_effect = {
			country_event = {
				id = IBR.3215
				days = 35
			}
		}

		if = {
			limit = {
				has_country_flag = IBRDemUnion
				NOT = { has_government = anocracy }
			}

			hidden_effect = {
				country_event = {
					id = IBR.3209
					days = 55
				}
			}
		}
	}
}

country_event = { #No Oil for the Tank
	id = IBR.3209
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3209" }
	title = IBR.3209.t
	desc = IBR.3209.d
	picture = GFX_report_event_SAF_saw_tank_destroyed2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3209.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Metalworker's Commute
	id = IBR.3215
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3215" }
	title = IBR.3215.t
	desc = IBR.3215.d
	picture = GFX_report_event_IBR_oil_crisis

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3215.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Match of the Century
	id = IBR.3210
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3210" }
	title = IBR.3210.t
	desc = IBR.3210.d
	picture = GFX_report_event_IBR_franco_camp_nou

	is_triggered_only = no
	fire_only_once = yes
	trigger = {
		tag = IBR
		date > 1970.6.28
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
		OR = {
			has_government = despotism
			has_country_flag = IBRAuthDemCongress
		}
	}
	option = { #
		name = IBR.3210.a
		ai_chance = { factor = 1 }

		random_list = {
			40 = {
				custom_effect_tooltip = IBR_caudillocup_benficawins
				hidden_effect = {
					country_event = {
						id = IBR.3212
						hours = 1
					}
				}
			}
			60 = {
				custom_effect_tooltip = IBR_caudillocup_realmadridwins
				hidden_effect = {
					country_event = {
						id = IBR.3211
						hours = 1
					}
				}
			}
		}
	}
	option = { #
		name = IBR.3210.b
		ai_chance = { factor = 1 }

		random_list = {
			40 = {
				custom_effect_tooltip = IBR_caudillocup_benficawins
				hidden_effect = {
					country_event = {
						id = IBR.3212
						hours = 1
					}
				}
			}
			60 = {
				custom_effect_tooltip = IBR_caudillocup_realmadridwins
				hidden_effect = {
					country_event = {
						id = IBR.3211
						hours = 1
					}
				}
			}
		}
	}
}

country_event = { #Real Madrid wins the Caudillos' Cup for Fifth Consecutive Time!
	id = IBR.3211
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3211" }
	title = IBR.3211.t
	desc = IBR.3211.d
	picture = GFX_report_event_IBR_paco_gento_holds_trophy

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3211.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Portugal's S.L. Benfica Wins Caudillos' Cup!
	id = IBR.3212
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3212" }
	title = IBR.3212.t
	desc = IBR.3212.d
	picture = GFX_report_event_IBR_benfica_wins_caudillocup

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3212.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #French Refugees Pour Across Border
	id = IBR.3213
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3213" }
	title = IBR.3213.t
	desc = IBR.3213.d
	picture = GFX_report_event_IBR_poor_people_in_line

	is_triggered_only = yes #triggered by WORLD EVENT LOL
	fire_only_once = yes

	option = { #salzar plan
		name = IBR.3213.a
		ai_chance = { factor = 1 }

		add_stability = -0.01

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -1
		}

		set_temp_variable = { temp_econ_spending_amount = 0.04 }
		econ_spend_money_once_effect_raw_money = yes

		set_temp_variable = { gdp_growth_temp = 0.4 } #already converted to percent
		econ_gdp_growth_change = yes
	}
	option = { #franco plan
		name = IBR.3213.b
		ai_chance = { factor = 1 }

		add_political_power = 10

		set_temp_variable = { temp_econ_spending_amount = 0.005 }
		econ_spend_money_once_effect_raw_money = yes
	}
}

country_event = { #The Medieval Fortress of Aïn Chaïr
	id = IBR.3214
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3214" }
	title = IBR.3214.t
	desc = IBR.3214.d
	picture = GFX_report_event_IBR_morocco_kasbah

	is_triggered_only = yes #triggered from focus IBR_Tribal_Inventory
	fire_only_once = yes

	option = { #
		name = IBR.3214.a
		ai_chance = { factor = 1 }
	}
}

###event swap here lol

country_event = { #The Tito Bustillo Cave
	id = IBR.3217
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3217" }
	title = IBR.3217.t
	desc = IBR.3217.d
	picture = GFX_report_event_IBR_tito_bustillo_cave_painting

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1968.4.17
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3217.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Mausoleum of Pozo Moro
	id = IBR.3218
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3218" }
	title = IBR.3218.t
	desc = IBR.3218.d
	picture = GFX_report_event_IBR_pozo_moro

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1973.9.12
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3218.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Death of the 'King of Fashion'
	id = IBR.3219
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3219" }
	title = IBR.3219.t
	desc = IBR.3219.d
	picture = GFX_report_event_IBR_balenciaga

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1972.3.23
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3219.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Lisbon Train Station Roof Collapses!
	id = IBR.3220
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3220" }
	title = IBR.3220.t
	desc = IBR.3220.d
	picture = GFX_report_event_IBR_lisbon_roof_collapse

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1963.5.28
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3220.a
		ai_chance = { factor = 1 }

		add_stability = -0.01

		112 = {
			damage_building = {
				type = infrastructure
				damage = 0.1
			}
		}
	}
}

country_event = { #Mi Querida Señorita
	id = IBR.3221
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3221" }
	title = IBR.3221.t
	desc = IBR.3221.d
	picture = GFX_report_event_IBR_mi_querida_senorita

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1972.2.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3221.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Black is Black
	id = IBR.3222
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3222" }
	title = IBR.3222.t
	desc = IBR.3222.d
	picture = GFX_report_event_IBR_black_is_back

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1966.9.20
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3222.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #La Gran Familia
	id = IBR.3223
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3223" }
	title = IBR.3223.t
	desc = IBR.3223.d
	picture = GFX_report_event_IBR_la_gran_familia

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1962.12.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3223.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #La Ciudad No es Para mí
	id = IBR.3224
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3224" }
	title = IBR.3224.t
	desc = IBR.3224.d
	picture = GFX_report_event_IBR_la_ciudad_no_es_para_mi

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1966.3.21
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3224.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #No Desearás al Vecino del Quinto
	id = IBR.3225
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3225" }
	title = IBR.3225.t
	desc = IBR.3225.d
	picture = GFX_report_event_IBR_vecino_del_quinto

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1970.11.6
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3225.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Os Verdes Anos
	id = IBR.3226
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3226" }
	title = IBR.3226.t
	desc = IBR.3226.d
	picture = GFX_report_event_IBR_os_verdes_anos

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1963.12.5
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3226.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Academic Crisis
	id = IBR.3227
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3227" }
	title = IBR.3227.t
	desc = IBR.3227.d
	picture = GFX_report_event_IBR_lisbon_academic_crisis

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1964.5.11
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3227.a
		ai_chance = { factor = 1 }

		add_stability = -0.01

		add_popularity = {
			ideology = despotism
			popularity = -0.01
		}

		hidden_effect = {
			country_event = {
				id = IBR.3228
				days = 6
			}
		}
	}
}

country_event = { #Caetano Resigns in Solidarity with Protestors!
	id = IBR.3228
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3228" }
	title = IBR.3228.t
	desc = IBR.3228.d
	picture = GFX_report_event_IBR_caetano

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3228.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Creation of Modern Guiné
	id = IBR.3229
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3229" }
	title = IBR.3229.t
	desc = IBR.3229.d
	picture = GFX_report_event_IBR_guine_cashew_orchard

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3229.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Bandits of the Sahel
	id = IBR.3230
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3230" }
	title = IBR.3230.t
	desc = IBR.3230.d
	picture = GFX_report_event_IBR_mauritania_truck

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3230.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Orchards of Guiné
	id = IBR.3231
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3231" }
	title = IBR.3231.t
	desc = IBR.3231.d
	picture = GFX_report_event_IBR_guine_cashew_orchard

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1965.11.9
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3231.a
		ai_chance = { factor = 1 }
		TNO_worsen_slavery_policy_effectiveness_low = yes
	}
}

country_event = { #Dunes and Doom
	id = IBR.3232
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3232" }
	title = IBR.3232.t
	desc = IBR.3232.d
	picture = GFX_report_event_generic_sahara_desert_sand_dunes

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3232.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Settler Cavalry
	id = IBR.3233
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3233" }
	title = IBR.3233.t
	desc = IBR.3233.d
	picture = GFX_report_event_ALG_algerian_war_6

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3233.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Death of Franco
	id = IBR.3234
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3234" }
	title = IBR.3234.t
	desc = IBR.3234.d
	picture = GFX_report_event_IBR_franco_dead

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR

		NOT = {
			has_country_leader = {
				character = IBR_Francisco_Franco
				ruling_only = yes
			}
		}
		date > 1974.6.5
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3234.a
		ai_chance = { factor = 1 }
		trigger = { has_government = anocracy }
	}
	option = { #
		name = IBR.3234.b
		ai_chance = { factor = 1 }
		trigger = { has_government = conservatism }
	}
	option = { #
		name = IBR.3234.c
		ai_chance = { factor = 1 }
		trigger = {
			OR = {
				has_government = liberalism
				has_government = liberal_conservatism
			}
		}
	}
}

country_event = { #Freedom in a Pill
	id = IBR.3235
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3235" }
	title = IBR.3235.t
	desc = IBR.3235.d
	picture = GFX_report_event_IBR_birth_control_pill

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1966.6.6
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3235.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Out of Incompetence, Into the Future
	id = IBR.3236
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3236" }
	title = IBR.3236.t
	desc = IBR.3236.d
	picture = GFX_report_event_IBR_ullastres_calvo

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR

		has_country_flag = IBRMarlib70Victory
		date > 1974.6.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
			has_country_flag = IBR_in_crisis
		}
	}

	option = { #
		name = IBR.3236.a
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
	option = { #
		name = IBR.3236.b
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
}

country_event = { #Out of Chaos, Into the Future
	id = IBR.3237
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3237" }
	title = IBR.3237.t
	desc = IBR.3237.d
	picture = GFX_report_event_IBR_fraga

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR

		has_country_flag = IBRSoccon70Victory
		date > 1974.6.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
			has_country_flag = IBR_in_crisis
		}
	}

	option = { #
		name = IBR.3237.a
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
	option = { #
		name = IBR.3237.b
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
}

country_event = { #Out of Dictatorship, Into the Future
	id = IBR.3238
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3238" }
	title = IBR.3238.t
	desc = IBR.3238.d
	picture = GFX_report_event_IBR_torcuato

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR

		has_country_flag = IBRSoclib70Victory
		has_government = liberalism
		date > 1974.6.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
			has_country_flag = IBR_in_crisis
		}
	}

	option = { #
		name = IBR.3238.a
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
	option = { #
		name = IBR.3238.b
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
}

country_event = { #Out of Degeneracy, Into the Future ##natunion, remember only if dem salvation not triggered
	id = IBR.3239
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3239" }
	title = IBR.3239.t
	desc = IBR.3239.d
	picture = GFX_report_event_IBR_valcarcel_sad

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR

		has_country_flag = IBRNationalUnionVictory
		has_government = anocracy
		date > 1974.6.26
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
			has_country_flag = IBR_in_crisis
		}
	}

	option = { #
		name = IBR.3239.a
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
	option = { #
		name = IBR.3239.b
		ai_chance = { factor = 1 }

		custom_effect_tooltip = IBR_iberia_closing_screen_tt

		TNO_Country_Closing_Screen_Show = yes
	}
}

country_event = { #Empty Office
	id = IBR.3240
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3240" }
	title = IBR.3240.t
	desc = IBR.3240.d
	picture = GFX_report_event_generic_office

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3240.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Restricted Diplomacy
	id = IBR.3241
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3241" }
	title = IBR.3241.t
	desc = IBR.3241.d
	picture = GFX_report_event_IBR_inside_congress

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3241.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Clementina's Porch
	id = IBR.3242
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3242" }
	title = IBR.3242.t
	desc = IBR.3242.d
	picture = GFX_report_event_IBR_bishop_of_madrid

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3242.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Franco announces a new holiday
	id = IBR.3243
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3243" }
	title = IBR.3243.t
	desc = IBR.3243.d
	picture = GFX_report_event_IBR_franco_speech

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3243.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Pilar of Femininity
	id = IBR.3244
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3244" }
	title = IBR.3244.t
	desc = IBR.3244.d
	picture = GFX_report_event_IBR_pilar_primo_de_rivera

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1962.11.7
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}


	option = { #
		name = IBR.3244.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Formation of the National Spirit
	id = IBR.3245
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3245" }
	title = IBR.3245.t
	desc = IBR.3245.d
	picture = GFX_report_event_IBR_propaganda_family

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1964.3.20
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3245.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #Tides of Change
	id = IBR.3246
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3246" }
	title = IBR.3246.t
	desc = IBR.3246.d
	picture = GFX_report_event_IBR_arritera_beach

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1967.7.1
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3246.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #The Woman Mayor of Bilbao
	id = IBR.3247
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3247" }
	title = IBR.3247.t
	desc = IBR.3247.d
	picture = GFX_report_event_IBR_pilar_careaga

	is_triggered_only = no
	fire_only_once = yes

	trigger = {
		tag = IBR
		date > 1969.7.15
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}

	option = { #
		name = IBR.3247.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3248
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3248" }
	title = IBR.3248.t
	desc = IBR.3248.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3248.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3249
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3249" }
	title = IBR.3249.t
	desc = IBR.3249.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3249.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3250
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3250" }
	title = IBR.3250.t
	desc = IBR.3250.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3250.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3251
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3251" }
	title = IBR.3251.t
	desc = IBR.3251.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3251.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3252
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3252" }
	title = IBR.3252.t
	desc = IBR.3252.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3252.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3253
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3253" }
	title = IBR.3253.t
	desc = IBR.3253.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3253.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3254
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3254" }
	title = IBR.3254.t
	desc = IBR.3254.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3254.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3255
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3255" }
	title = IBR.3255.t
	desc = IBR.3255.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3255.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3256
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3256" }
	title = IBR.3256.t
	desc = IBR.3256.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3256.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3257
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3257" }
	title = IBR.3257.t
	desc = IBR.3257.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3257.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3258
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3258" }
	title = IBR.3258.t
	desc = IBR.3258.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3258.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3259
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3259" }
	title = IBR.3259.t
	desc = IBR.3259.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3259.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3260
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3260" }
	title = IBR.3260.t
	desc = IBR.3260.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3260.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3261
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3261" }
	title = IBR.3261.t
	desc = IBR.3261.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3261.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3262
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3262" }
	title = IBR.3262.t
	desc = IBR.3262.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3262.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3263
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3263" }
	title = IBR.3263.t
	desc = IBR.3263.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3263.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3264
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3264" }
	title = IBR.3264.t
	desc = IBR.3264.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3264.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3265
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3265" }
	title = IBR.3265.t
	desc = IBR.3265.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3265.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3266
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3266" }
	title = IBR.3266.t
	desc = IBR.3266.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3266.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3267
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3267" }
	title = IBR.3267.t
	desc = IBR.3267.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3267.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3268
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3268" }
	title = IBR.3268.t
	desc = IBR.3268.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3268.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3269
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3269" }
	title = IBR.3269.t
	desc = IBR.3269.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3269.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3270
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3270" }
	title = IBR.3270.t
	desc = IBR.3270.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3270.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3271
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3271" }
	title = IBR.3271.t
	desc = IBR.3271.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3271.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3272
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3272" }
	title = IBR.3272.t
	desc = IBR.3272.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3272.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3273
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3273" }
	title = IBR.3273.t
	desc = IBR.3273.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3273.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3274
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3274" }
	title = IBR.3274.t
	desc = IBR.3274.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3274.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3275
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3275" }
	title = IBR.3275.t
	desc = IBR.3275.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3275.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3276
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3276" }
	title = IBR.3276.t
	desc = IBR.3276.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3276.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3277
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3277" }
	title = IBR.3277.t
	desc = IBR.3277.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3277.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3278
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3278" }
	title = IBR.3278.t
	desc = IBR.3278.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3278.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3279
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3279" }
	title = IBR.3279.t
	desc = IBR.3279.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3279.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3280
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3280" }
	title = IBR.3280.t
	desc = IBR.3280.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3280.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3281
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3281" }
	title = IBR.3281.t
	desc = IBR.3281.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3281.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3282
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3282" }
	title = IBR.3282.t
	desc = IBR.3282.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3282.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3283
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3283" }
	title = IBR.3283.t
	desc = IBR.3283.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3283.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3284
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3284" }
	title = IBR.3284.t
	desc = IBR.3284.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3284.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3285
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3285" }
	title = IBR.3285.t
	desc = IBR.3285.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3285.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3286
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3286" }
	title = IBR.3286.t
	desc = IBR.3286.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3286.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3287
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3287" }
	title = IBR.3287.t
	desc = IBR.3287.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3287.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3288
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3288" }
	title = IBR.3288.t
	desc = IBR.3288.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3288.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3289
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3289" }
	title = IBR.3289.t
	desc = IBR.3289.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3289.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3290
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3290" }
	title = IBR.3290.t
	desc = IBR.3290.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3290.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3291
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3291" }
	title = IBR.3291.t
	desc = IBR.3291.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3291.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3292
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3292" }
	title = IBR.3292.t
	desc = IBR.3292.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3292.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3293
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3293" }
	title = IBR.3293.t
	desc = IBR.3293.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3293.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3294
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3294" }
	title = IBR.3294.t
	desc = IBR.3294.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3294.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3295
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3295" }
	title = IBR.3295.t
	desc = IBR.3295.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3295.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3296
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3296" }
	title = IBR.3296.t
	desc = IBR.3296.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3296.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3297
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3297" }
	title = IBR.3297.t
	desc = IBR.3297.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3297.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3298
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3298" }
	title = IBR.3298.t
	desc = IBR.3298.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3298.a
		ai_chance = { factor = 1 }
	}
}

country_event = { #
	id = IBR.3299
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.3299" }
	title = IBR.3299.t
	desc = IBR.3299.d
	picture = GFX_report_event_IBR_road_work_2

	is_triggered_only = yes
	fire_only_once = yes

	option = { #
		name = IBR.3299.a
		ai_chance = { factor = 1 }
	}
}


############################################################################


###Extra Council Meeting###

country_event = {
	id = IBR.4006
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4006" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4006.t
	desc = IBR.4006.d
	is_triggered_only = yes
	option = {
		name = IBR.4006.a
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.4007
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4007" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4007.t
	desc = IBR.4007.d
	is_triggered_only = yes
	option = {
		name = IBR.4007.a
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.4008
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4008" }
	picture = GFX_report_event_IBR_empty_plate
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4008.t
	desc = IBR.4008.d
	is_triggered_only = yes
	option = {
		name = IBR.4008.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_15
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_10
		}
		IBR_council_clamp = yes

		country_event = {
			id = IBR.4009
			days = 1
		}
	}
	option = {
		name = IBR.4008.b
		ai_chance = { factor = 10 }

		social_funding_maximal_increase_low = yes
		social_funding_minimal_increase_low = yes

		TNO_improve_unemployment_policy_effectiveness_monthly_low = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_16
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_11
		}
		IBR_council_clamp = yes
		IBR_improve_majority_opinion = yes

		country_event = {
			id = IBR.4009
			days = 1
		}
	}
}
country_event = {
	id = IBR.4009
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4009" }
	picture = GFX_report_event_IBR_politicians_discussing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4009.t
	desc = IBR.4009.d
	is_triggered_only = yes
	option = {
		name = IBR.4009.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.4010
			days = 1
		}
	}
}
country_event = {
	id = IBR.4010
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4010" }
	picture = GFX_report_event_IBR_water_tap
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4010.t
	desc = IBR.4010.d
	is_triggered_only = yes
	option = {
		name = IBR.4010.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_17
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -1 }
			custom_effect_tooltip = IBR_influence_tt_10
		}
		IBR_council_clamp = yes

		country_event = {
			id = IBR.4011
			days = 1
		}
	}
	option = {
		name = IBR.4010.b
		ai_chance = { factor = 10 }

		social_funding_maximal_increase_low = yes
		social_funding_minimal_increase_low = yes
		TNO_improve_regulations_policy_effectiveness_med = yes
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_18
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_11
		}
		IBR_council_clamp = yes

		custom_effect_tooltip = improve_poverty_small
		add_to_variable = { poverty_monthly_change = 0.05 }

		IBR_improve_majority_opinion = yes
		IBR_worsen_business_opinion = yes

		country_event = {
			id = IBR.4011
			days = 1
		}
	}
}
country_event = {
	id = IBR.4011
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4011" }
	picture = GFX_report_event_IBR_lisbon_working_class_neighborhood
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4011.t
	desc = IBR.4011.d
	is_triggered_only = yes
	option = {
		name = IBR.4011.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_19
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_10
		}
		IBR_council_clamp = yes
		IBR_add_5_marklib = yes
	}
	option = {
		name = IBR.4011.b
		ai_chance = { factor = 10 }

		TNO_improve_unemployment_policy_effectiveness_monthly_low = yes

		custom_effect_tooltip = improve_poverty_small
		add_to_variable = { poverty_monthly_change = 0.05 }

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_20
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_11
		}
		IBR_council_clamp = yes
		IBR_improve_majority_opinion = yes
		IBR_worsen_business_opinion = yes
		IBR_add_5_soclib = yes

		#custom_effect_tooltip = IBR_government_state_tt
	}
}
country_event = {
	id = IBR.4012
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4012" }
	picture = GFX_report_event_ALG_natives
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4012.t
	desc = IBR.4012.d
	is_triggered_only = yes
	option = {
		name = IBR.4012.a
		ai_chance = { factor = 10 }

		#TNO_improve_minorities_policy_effectiveness_med = yes

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_21
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_11
		}
		IBR_council_clamp = yes
		IBR_improve_native_opinion = yes
		IBR_worsen_settlers_opinion = yes
		IBR_add_3_soclib = yes
		hidden_effect = {
			country_event = {
				id = IBR.4013
				days = 1
			}
		}
	}
	option = {
		name = IBR.4012.b
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_10
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_22
		}
		IBR_council_clamp = yes
		IBR_worsen_native_opinion = yes
		IBR_add_5_soccon = yes
	}
}
country_event = {
	id = IBR.4013
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4013" }
	picture = GFX_report_event_ALG_pied_noirs_militia
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4013.t
	desc = IBR.4013.d
	is_triggered_only = yes
	option = {
		name = IBR.4013.a
		ai_chance = { factor = 10 }
		IBR_worsen_settlers_opinion = yes
		hidden_effect = {
			country_event = {
				id = IBR.4014
				days = 1
			}
		}
	}
}
country_event = {
	id = IBR.4014
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4014" }
	picture = GFX_report_event_IBR_algeria_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4014.t
	desc = IBR.4014.d
	is_triggered_only = yes
	option = {
		name = IBR.4014.a
		ai_chance = { factor = 10 }

		IBR_improve_native_opinion = yes

		hidden_effect = {
			country_event = {
				id = IBR.4015
				days = 5
			}
		}
	}
}
country_event = {
	id = IBR.4015
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4015" }
	picture = GFX_report_event_generic_riots
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4015.t
	desc = IBR.4015.d
	is_triggered_only = yes
	option = {
		name = IBR.4015.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			random_list = {
				70 = {
					country_event = {
						id = IBR.4016
						days = 1
					}
				}
				30 = {
					country_event = {
						id = IBR.4018
						days = 1
					}
				}
			}
		}
	}
}
country_event = {
	id = IBR.4016
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4016" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4016.t
	desc = IBR.4016.d
	is_triggered_only = yes
	option = {
		name = IBR.4016.a
		ai_chance = { factor = 10 }
		IBR_worsen_settlers_opinion = yes
		hidden_effect = {
			country_event = {
				id = IBR.4017
				days = 2
			}
		}
	}
}
country_event = {
	id = IBR.4017
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4017" }
	picture = GFX_report_event_IBR_king_hassan
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4017.t
	desc = IBR.4017.d
	is_triggered_only = yes
	option = {
		name = IBR.4017.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_12
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_23
		}
		IBR_council_clamp = yes

		#TNO_worsen_minorities_policy_effectiveness_low = yes
	}
}
country_event = {
	id = IBR.4018
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4018" }
	picture = GFX_report_event_IBR_basque_protestors_beaten
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4018.t
	desc = IBR.4018.d
	is_triggered_only = yes
	option = {
		name = IBR.4018.a
		ai_chance = { factor = 10 }
		IBR_worsen_native_opinion = yes
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_13
		}
		IBR_council_clamp = yes

		#TNO_improve_minorities_policy_effectiveness_med = yes
	}
}
country_event = {
	id = IBR.4019
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4019" }
	picture = GFX_report_event_IBR_cortes_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4019.t
	desc = IBR.4019.d
	is_triggered_only = yes
	option = {
		name = IBR.4019.a
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.4020
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4020" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4020.t
	desc = IBR.4020.d
	is_triggered_only = yes
	option = {
		name = IBR.4020.a
		ai_chance = { factor = 10 }
		add_political_power = 20
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_24
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 1 }
			custom_effect_tooltip = IBR_influence_tt_14
		}
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.4020.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.4021
				days = 1
			}
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 3 }
			custom_effect_tooltip = IBR_reformist_tt_25
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_15
		}
		IBR_council_clamp = yes
		IBR_add_3_soccon = yes
		IBR_add_3_marklib = yes
		IBR_add_3_soclib = yes
	}
}
country_event = {
	id = IBR.4021
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4021" }
	picture = GFX_report_event_IBR_big_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4021.t
	desc = IBR.4021.d
	is_triggered_only = yes
	option = {
		name = IBR.4021.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.4022
				days = 1
			}
		}
	}
}
country_event = {
	id = IBR.4022
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4022" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4022.t
	desc = IBR.4022.d
	is_triggered_only = yes
	option = {
		name = IBR.4022.a
		ai_chance = { factor = 10 }
		add_political_power = -100
		add_stability = -0.02
	}
	option = {
		name = IBR.4022.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.4023
				days = 1
			}
		}
	}
}
country_event = {
	id = IBR.4023
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4023" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4023.t
	desc = IBR.4023.d
	is_triggered_only = yes
	option = {
		name = IBR.4023.a
		ai_chance = { factor = 10 }
		add_political_power = -125
		add_stability = -0.04
	}
	option = {
		name = IBR.4023.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				country_event = {
					id = IBR.4024
					days = 1
				}
			}
			else_if = {
				limit = {
					has_country_flag = legislature_council
				}
				country_event = {
					id = IBR.4025
					days = 1
				}
			}
		}
	}
}
country_event = {
	id = IBR.4024
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4024" }
	picture = GFX_report_event_IBR_coup_attempt
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4024.t
	desc = IBR.4024.d
	is_triggered_only = yes
	option = {
		name = IBR.4024.a
		ai_chance = { factor = 10 }
		add_political_power = -100
		add_stability = -0.04
		add_popularity = {
			ideology = despotism
			popularity = -0.05
		}
		IBR_sub_10_authdem = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}
country_event = {
	id = IBR.4025
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4025" }
	picture = GFX_report_event_IBR_coup_attempt
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4025.t
	desc = IBR.4025.d
	is_triggered_only = yes
	option = {
		name = IBR.4025.a
		ai_chance = { factor = 10 }
		add_political_power = -150
		add_stability = -0.08
		add_popularity = {
			ideology = despotism
			popularity = -0.07
		}
		IBR_sub_15_authdem = yes
		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}
country_event = {
	id = IBR.4026
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4026" }
	picture = GFX_report_event_IBR_cortes
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4026.t
	desc = IBR.4026.d
	is_triggered_only = yes
	option = {
		name = IBR.4026.a
		ai_chance = { factor = 10 }

		add_political_power = 20
		IBR_improve_burocrats_opinion = yes
	}
	option = {
		name = IBR.4026.b
		ai_chance = { factor = 10 }

		TNO_improve_penal_system_policy_effectiveness_monthly_med = yes

		add_stability = 0.04
		IBR_worsen_burocrats_opinion = yes
	}
}
country_event = {
	id = IBR.4027
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4027" }
	picture = GFX_report_event_IBR_franco_salazar_otp
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4027.t
	desc = IBR.4027.d
	is_triggered_only = yes
	option = {
		name = IBR.4027.a
		ai_chance = { factor = 10 }
		country_event = {
			id = IBR.4028
			days = 1
		}
	}
}
country_event = {
	id = IBR.4028
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4028" }
	picture = GFX_report_event_IBR_military_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4028.t
	desc = IBR.4028.d
	is_triggered_only = yes
	option = {
		name = IBR.4028.a
		ai_chance = { factor = 10 }
		IBR_improve_military_opinion = yes
		country_event = {
			id = IBR.4029
			days = 1
		}
	}
}
country_event = {
	id = IBR.4029
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4029" }
	picture = GFX_report_event_IBR_bishop_of_madrid
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4029.t
	desc = IBR.4029.d
	is_triggered_only = yes
	option = {
		name = IBR.4029.a
		ai_chance = { factor = 10 }
		IBR_worsen_church_opinion = yes
		tno_education_improve = yes
		TNO_worsen_education_policy_effectiveness_low = yes
		TNO_improve_education_policy_effectiveness_monthly_med = yes
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_26
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_16
		}
		IBR_council_clamp = yes
		IBR_add_5_soccon = yes
		IBR_add_3_marklib = yes
		country_event = {
			id = IBR.4030
			days = 1
		}
	}
	option = {
		name = IBR.4029.b
		ai_chance = { factor = 10 }
		IBR_improve_church_opinion = yes
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_27
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -2 }
			custom_effect_tooltip = IBR_influence_tt_17
		}
		IBR_council_clamp = yes
		IBR_sub_5_soccon = yes
		IBR_sub_3_marklib = yes
		country_event = {
			id = IBR.4030
			days = 1
		}
	}
}
country_event = {
	id = IBR.4030
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4030" }
	picture = GFX_report_event_IBR_council
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4030.t
	desc = IBR.4030.d
	is_triggered_only = yes
	option = {
		name = IBR.4030.a
		ai_chance = { factor = 10 }
		add_popularity = {
			ideology = despotism
			popularity = 0.06
		}
		IBR_add_5_authdem = yes
		IBR_sub_5_soccon = yes
		IBR_sub_10_soclib = yes
		add_political_power = -40
		country_event = {
			id = IBR.4031
			days = 1
		}
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -1 }
			custom_effect_tooltip = IBR_reformist_tt_28
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 5 }
			custom_effect_tooltip = IBR_influence_tt_18
		}
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.4030.b
		ai_chance = { factor = 10 }
		add_political_power = 20
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_29
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_19
		}
		IBR_council_clamp = yes

		country_event = {
			id = IBR.4031
			days = 1
		}
	}
}
country_event = {
	id = IBR.4031
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4031" }
	picture = GFX_report_event_IBR_looking_out_window
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4031.t
	desc = IBR.4031.d
	is_triggered_only = yes
	option = {
		name = IBR.4031.a
		ai_chance = { factor = 10 }
		add_popularity = {
			ideology = despotism
			popularity = -0.02
		}
		add_popularity = {
			ideology = fascism
			popularity = -0.02
		}
		add_political_power = -20
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_30
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_20
		}
		IBR_council_clamp = yes
	}
	option = {
		name = IBR.4031.b
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -1 }
			custom_effect_tooltip = IBR_reformist_tt_31
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -1 }
			custom_effect_tooltip = IBR_influence_tt_21
		}
		IBR_council_clamp = yes
	}
}
country_event = {
	id = IBR.4032
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4032" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4032.t
	desc = IBR.4032.d
	is_triggered_only = yes
	option = {
		name = IBR.4032.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			load_focus_tree = {
				tree = IBR_economic_miracle_paths
				keep_completed = yes
			}
			country_event = {
				id = IBR.401
				hours = 24
			}
			set_country_flag = EconomicsLoaded
		}
	}
}
###IDK DUDE



country_event = {
	id = IBR.4059 #event that removes the divorce decision
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4059" }
	picture = GFX_report_event_IBR_road_work_2
	hidden = yes
	is_triggered_only = yes
	fire_only_once = yes
	title = IBR.4059.t
	desc = IBR.4059.d

	option = { #
		name = IBR.4059.a
		ai_chance = { factor = 10 }
		clr_country_flag = IBR_divorce_decision_flag
	}
}

## Algeria
country_event = {
	id = IBR.4101
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4101" }
	picture = GFX_report_event_IBR_algeria_map
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4101.t
	desc = IBR.4101.d
	is_triggered_only = yes
	option = {
		name = IBR.4101.a
		ai_chance = { factor = 10 }
		set_global_flag = algeria_crisis
		load_focus_tree = {
			tree = IBR_Algeria_Conflict
			keep_completed = yes
		}
	}
}

country_event = {
	id = IBR.4102
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4102" }
	picture = GFX_report_event_post_apoc_letter_quill
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4102.t
	desc = IBR.4102.d
	is_triggered_only = yes
	option = {
		name = IBR.4102.a
		ai_chance = { factor = 10 }
	}
}
country_event = {
	id = IBR.4103
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4103" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4103.t
	desc = IBR.4103.d
	is_triggered_only = yes
	option = {
		name = IBR.4103.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.4104
				hours = 8
			}
		}
	}
}

country_event = {
	id = IBR.4104
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4104" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4104.t
	desc = IBR.4104.d
	is_triggered_only = yes
	option = {
		name = IBR.4104.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.4105
				hours = 45
			}
		}
	}
}

country_event = {
	id = IBR.4105
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4105" }
	picture = GFX_report_event_IBR_franco_salazar_discussing
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4105.t
	desc = IBR.4105.d
	is_triggered_only = yes
	option = {
		name = IBR.4105.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			country_event = {
				id = IBR.4106
				hours = 15
			}
		}
	}
}

country_event = {
	id = IBR.4106
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4106" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4106.t
	desc = IBR.4106.d
	is_triggered_only = yes
	option = {
		name = IBR.4106.a
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }

		custom_effect_tooltip = IBR_cauinfo_algeria_tt

		complete_national_focus = IBR_General_Kaulza_Plan

		add_to_variable = { IBR_military_alignment = 5 }
		custom_effect_tooltip = IBR_improve_franco_army_tt
		IBR_check_caudillo_popularity = yes
		set_country_flag = IBR_Algeria_War_Path
	}
	option = {
		name = IBR.4106.b
		ai_chance = { factor = 10 }
		trigger = { is_ai = no }

		custom_effect_tooltip = IBR_cauinfo_algeria_tt

		complete_national_focus = IBR_Ambassador_Moreira_Plan

		add_to_variable = { IBR_business_alignment = -5 }
		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt
		IBR_check_caudillo_popularity = yes
	}
	option = {
		name = IBR.4106.c
		ai_chance = { factor = 10 }
		trigger = { is_ai = yes }

		if = {
			limit = {
				has_game_rule = {
					rule = ALGERIAN_CRISIS
					option = ALGERIAN_CRISIS_PEACE
				}
			}
			complete_national_focus = IBR_Ambassador_Moreira_Plan
		}
		else_if = {
			limit = {
				has_game_rule = {
					rule = ALGERIAN_CRISIS
					option = ALGERIAN_CRISIS_WAR
				}
			}
			complete_national_focus = IBR_General_Kaulza_Plan
			set_country_flag = IBR_Algeria_War_Path
		}
		else_if = { #Franco made war more likely
			limit = {
				IBR = {
					has_country_leader = {
						character = IBR_Francisco_Franco
						ruling_only = yes
					}
				}
			}
			random_list = {
				10 = { complete_national_focus = IBR_Ambassador_Moreira_Plan }
				90 = {
					complete_national_focus = IBR_General_Kaulza_Plan
					set_country_flag = IBR_Algeria_War_Path
				}
			}
		}
		else = {
			random_list = {
				75 = { complete_national_focus = IBR_Ambassador_Moreira_Plan }
				25 = {
					complete_national_focus = IBR_General_Kaulza_Plan
					set_country_flag = IBR_Algeria_War_Path
				}
			}
		}
	}
}

country_event = {
	id = IBR.4107
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4107" }
	picture = GFX_report_event_IBR_jardim_serious
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4107.t
	desc = IBR.4107.d
	is_triggered_only = yes
	option = {
		name = IBR.4107.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		IBR_worsen_settlers_opinion = yes
		IBR_improve_foreign_opinion = yes
		IBR_worsen_burocrats_opinion = yes

	}
}

country_event = {
	id = IBR.4108
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4108" }
	picture = GFX_report_event_IBR_ENI_logo
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4108.t
	desc = IBR.4108.d
	is_triggered_only = yes
	option = {
		name = IBR.4108.a
		ai_chance = { factor = 10 }

		if = {
			limit = { ITA = { has_country_flag = ITA_algeria_blocked_war } }

			hidden_effect = {
				random_list = {
					90 = {
						country_event = {
							id = IBR.4109
							days = 5
						}
					}
					10 = {
						country_event = {
							id = IBR.4110
							days = 5
						}
					}
				}
			}
		}
		else = {
			hidden_effect = {
				random_list = {
					90 = {
						country_event = {
							id = IBR.4110
							days = 5
						}
					}
					10 = {
						country_event = {
							id = IBR.4109
							days = 5
						}
					}
				}
			}
		}
	}
}

country_event = {
	id = IBR.4109
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4109" }
	picture = GFX_report_event_IBR_ENI_logo
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4109.t
	desc = IBR.4109.d
	is_triggered_only = yes
	option = {
		name = IBR.4109.a
		ai_chance = { factor = 10 }

		add_political_power = 50

		add_resource = {
			type = oil
			amount = 15
			state = 459
		}

		IBR_improve_business_opinion = yes
		IBR_improve_settlers_opinion = yes
	}
}

country_event = {
	id = IBR.4110
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4110" }
	picture = GFX_report_event_IBR_ENI_logo
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4110.t
	desc = IBR.4110.d
	is_triggered_only = yes
	option = {
		name = IBR.4110.a
		ai_chance = { factor = 10 }

		add_resource = {
			type = oil
			amount = 5
			state = 459
		}
	}
}

country_event = {
	id = IBR.4111
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4111" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4111.t
	desc = IBR.4111.d
	is_triggered_only = yes
	option = {
		name = IBR.4111.a
		ai_chance = { factor = 10 }
		add_political_power = -10
		add_stability = 0.01
		IBR_worsen_burocrats_opinion = yes
		IBR_check_caudillo_popularity = yes
	}
}

country_event = {#Flavor chain about the student emigrating (Autarky branch of focus tree) - event 1
	id = IBR.4112
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4112" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4112.t
	desc = IBR.4112.d
	is_triggered_only = yes
	option = {
		name = IBR.4112.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.4113
				days = 20
			}
		}
	}
}

country_event = {#Flavor chain about the student emigrating (Autarky branch of focus tree) - event 2
	id = IBR.4113
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4113" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4113.t
	desc = IBR.4113.d
	is_triggered_only = yes
	option = {
		name = IBR.4113.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor chain about the student emigrating (Autarky branch of focus tree) - event 3
	id = IBR.4114
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4114" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4114.t
	desc = IBR.4114.d
	is_triggered_only = yes
	option = {
		name = IBR.4114.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor event (total SENPA control)
	id = IBR.4115
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4115" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4115.t
	desc = IBR.4115.d
	is_triggered_only = yes
	option = {
		name = IBR.4115.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor chain about the wood company (Autarky branch of focus tree) - event 1
	id = IBR.4116
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4116" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4116.t
	desc = IBR.4116.d
	is_triggered_only = yes
	option = {
		name = IBR.4116.a
		ai_chance = { factor = 10 }
		hidden_effect = {
			country_event = {
				id = IBR.4117
				days = 30
			}
		}
	}
}

country_event = {#Flavor chain about the wood company (Autarky branch of focus tree) - event 2
	id = IBR.4117
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4117" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4117.t
	desc = IBR.4117.d
	is_triggered_only = yes
	option = {
		name = IBR.4117.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor event (Federal Consumption Tax)
	id = IBR.4118
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4118" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4118.t
	desc = IBR.4118.d
	is_triggered_only = yes
	option = {
		name = IBR.4118.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor event (Promote Consumption)
	id = IBR.4119
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4119" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4119.t
	desc = IBR.4119.d
	is_triggered_only = yes
	option = {
		name = IBR.4119.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor event (Heavily Reduce Tariffs)
	id = IBR.4120
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4120" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4120.t
	desc = IBR.4120.d
	is_triggered_only = yes
	option = {
		name = IBR.4120.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Flavor event (Iberia is Different)
	id = IBR.4121
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR.4121" }
	picture = GFX_report_event_generic_restaurant
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = IBR.4121.t
	desc = IBR.4121.d
	is_triggered_only = yes
	option = {
		name = IBR.4121.a
		ai_chance = { factor = 10 }
	}
}

################################################################################
country_event = {
	id = caudillo.1 #Test
	immediate = { log = "[GetDateText]: [Root.GetName]: event caudillo.1" }
	picture = GFX_report_event_IBR_franco_salazar_otp
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = caudillo.1.t
	desc = caudillo.1.d
	option = {
		name = caudillo.1.a
		ai_chance = { factor = 10 }
		IBR_check_caudillo_popularity = yes
		set_variable = {
			var = IBR_caudillo_change_var
			value = 1
		}
		set_variable = {
			var = IBR_caudillo_correct_var
			value = 1
		}
		if = {
			limit = { is_ai = yes }

			random_list = {
				25 = { set_country_flag = IBR_Salazar_AI }

				25 = { set_country_flag = IBR_Franco_AI }

				50 = { set_country_flag = IBR_Neutral_AI }
			}
		}
	}
}
country_event = {
	id = caudillo.2 #Test
	immediate = { log = "[GetDateText]: [Root.GetName]: event caudillo.2" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = caudillo.2.t
	desc = caudillo.2.d
	option = {
		name = caudillo.2.a
		ai_chance = { factor = 10 }
		set_variable = { #20 to -20
					IBR_military_alignment = -20
				}
		IBR_check_caudillo_popularity = yes

	}
}

country_event = {
	id = caudillo.3 #AI Test
	immediate = {
		log = "[GetDateText]: [Root.GetName]: event caudillo.3"
		IBR_check_caudillo_popularity = yes
		}
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = caudillo.3.t
	desc = caudillo.3.desc
	option = {
		name = caudillo.3.a
	}
	option = { #Set to Salazar
		name = caudillo.3.b
		clr_country_flag = IBR_Franco_AI
		clr_country_flag = IBR_Neutral_AI
		set_country_flag = IBR_Salazar_AI
	}
	option = { #Set to Neutral
		name = caudillo.3.c
		clr_country_flag = IBR_Salazar_AI
		clr_country_flag = IBR_Franco_AI
		set_country_flag = IBR_Neutral_AI
	}
	option = { #Set to Franco
		name = caudillo.3.d
		clr_country_flag = IBR_Neutral_AI
		clr_country_flag = IBR_Salazar_AI
		set_country_flag = IBR_Franco_AI
	}
}

################################################################################
country_event = {
	id = iberia.1 #Goa situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.1" }
	picture = GFX_report_event_IBR_goa_map
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.1.t
	desc = iberia.1.d
	option = {
		name = iberia.1.a
		ai_chance = {
			factor = 10
		}

		custom_effect_tooltip = IBR_cauinfo_foreignpolicy_tt

		country_event = {
			id = iberia.2
			days = 4
		}
	}
	option = {
		name = iberia.1.b
		ai_chance = {
			factor = 10
		}

		custom_effect_tooltip = IBR_cauinfo_foreignpolicy_tt

		IND = {
			country_event = {
				id = iberia.9
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.2 #Interrogating the governor
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.2" }
	picture = GFX_report_event_IBR_garrison_commander
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.2.t
	desc = iberia.2.d
	option = {
		name = iberia.2.a
		ai_chance = {
			factor = 10
		}
		country_event = {
			id = iberia.3
			days = 4
		}
	}
	option = {
		name = iberia.2.b
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.9
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.3 #Investigating Goa documents
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.3" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.3.t
	desc = iberia.3.d
	option = {
		name = iberia.3.a

		hidden_effect = {
			country_event = {
				id = iberia.4
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.4 #Goa officials bribed by Indian military
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.4" }
	picture = GFX_report_event_IBR_garrison_commander
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.4.t
	desc = iberia.4.d
	option = {
		name = iberia.4.a
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			country_event = {
				id = iberia.6
				days = 4
			}
		}
	}
	option = {
		name = iberia.4.b
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			country_event = {
				id = iberia.5
				days = 4
			}
		}
	}
	option = {
		name = iberia.4.c
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.9
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.5 #Anjediva Trial
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.5" }
	picture = GFX_report_event_IBR_garrison_commander
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.5.t
	desc = iberia.5.d
	option = {
		name = iberia.5.a

		add_political_power = 50
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_37
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_26
		}
		IBR_council_clamp = yes
		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.6 #Goa bribing extends to the government
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.6" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.6.t
	desc = iberia.6.d
	option = {
		name = iberia.6.a

		hidden_effect = {
			country_event = {
				id = iberia.7
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.7 #archive the bribing
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.7" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.7.t
	desc = iberia.7.d
	option = {
		name = iberia.7.a
		hidden_effect = {
			country_event = {
				id = iberia.8
				days = 40
			}
		}
	}
}
country_event = {
	id = iberia.8 #press discovers bribing
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.8" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.8.t
	desc = iberia.8.d
	option = {
		name = iberia.8.a

		add_political_power = -125
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_38
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_27
		}
		IBR_council_clamp = yes
		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 2
		}
		custom_effect_tooltip = IBR_worsen_salazar_bureaucrats_tt

		add_to_variable = {
			var = IBR_burocrat_alignment
			value = 5
		}
		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.9 #Iberia demands compensation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.9" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.9.t
	desc = iberia.9.d
	option = {
		name = iberia.9.a
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.10
				days = 4
			}
		}
	}
	option = {
		name = iberia.9.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
				IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
				IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.19
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.10 #India refuses to pay
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.10" }
	picture = GFX_report_event_IBR_indians_at_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.10.t
	desc = iberia.10.d
	option = {
		name = iberia.10.a
		ai_chance = {
			factor = 10
		}
		add_political_power = -25
		IND = {
			country_event = {
				id = iberia.11
				days = 4
			}
		}
	}
	option = {
		name = iberia.10.b
		ai_chance = {
			factor = 10
		}
		add_political_power = -25
		IND = {
			country_event = {
				id = iberia.12
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.11 #Iberia blackmails us
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.11" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.11.t
	desc = iberia.11.d
	option = {
		name = iberia.11.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		add_political_power = -25
		IBR = {
			country_event = {
				id = iberia.13
				days = 8
			}
		}
	}
	option = {
		name = iberia.11.b
		ai_chance = {
			factor = 10
		}
		add_political_power = -25
		IBR = {
			country_event = {
				id = iberia.14
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.12 #Iberia proposes a symbolic payment
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.12" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.12.t
	desc = iberia.12.d
	option = {
		name = iberia.12.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.17
				days = 14
			}
		}
		IND = {
			country_event = {
				id = iberia.18
				days = 14
			}
		}
	}
	option = {
		name = iberia.12.b
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.14
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.13 #India tricks us
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.13" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.13.t
	desc = iberia.13.d
	option = {
		name = iberia.13.a

		add_political_power = -50

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 2
		}
		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 0.5
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.14 #India still refuses
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.14" }
	picture = GFX_report_event_IBR_indians_at_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.14.t
	desc = iberia.14.d
	option = {
		name = iberia.14.a

		add_political_power = -25

		hidden_effect = {
			random_list = {
				50 = {
					country_event = {
						id = iberia.15
						days = 4
					}
				}
				50 = {
					country_event = {
						id = iberia.16
						days = 7
					}
				}
			}
		}
	}
}
country_event = {
	id = iberia.15 #Another folder in the archives
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.15" }
	picture = GFX_report_event_IBR_filing_cabinet
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.15.t
	desc = iberia.15.d
	option = {
		name = iberia.15.a

		add_political_power = 25
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -1 }
			custom_effect_tooltip = IBR_reformist_tt_39
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_28
		}
		IBR_council_clamp = yes
		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.16 #Press critizes the government
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.16" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.16.t
	desc = iberia.16.d
	option = {
		name = iberia.16.a

		add_political_power = -75

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_40
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_29
		}
		IBR_council_clamp = yes
		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 3
		}
		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}
		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.17 #Goa handover - Iberia
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.17" }
	picture = GFX_report_event_IBR_indian_soldiers_in_formation
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.17.t
	desc = iberia.17.d
	option = {
		name = iberia.17.a

		add_political_power = 50

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt
			if = {
				limit = {
					has_country_flag = legislature_council
				}
				add_to_variable = { IBR_council_reformism = 1 }
				custom_effect_tooltip = IBR_reformist_tt_41
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = 1 }
				custom_effect_tooltip = IBR_influence_tt_30
			}
			IBR_council_clamp = yes
		add_to_variable = {
			var = IBR_foreign_alignment
			value = -2
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.18 #Goa handover - India
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.18" }
	picture = GFX_report_event_IBR_indian_soldiers_in_formation
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.18.t
	desc = iberia.18.d
	option = {
		name = iberia.18.a

		add_political_power = 75

	}
}
country_event = {
	id = iberia.19 #Goa situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.19" }
	picture = GFX_report_event_IBR_indians_at_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.19.t
	desc = iberia.19.d
	option = {
		name = iberia.19.a
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.20
				days = 4
			}
		}
	}
	option = {
		name = iberia.19.b
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.22
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.20 #Iberia refuses to cooperate
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.20" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.20.t
	desc = iberia.20.d
	option = {
		name = iberia.20.a

		add_political_power = -25

		IBR = {
			country_event = {
				id = iberia.21
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.21 #India cuts diplo relations
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.21" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.21.t
	desc = iberia.21.d
	option = {
		name = iberia.21.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_42
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = -5 }
				custom_effect_tooltip = IBR_influence_tt_31
			}
			IBR_council_clamp = yes
		add_political_power = -75

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 2
		}
		custom_effect_tooltip = IBR_worsen_salazar_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 3
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.22 #Negotiations with Iberia
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.22" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.22.t
	desc = iberia.22.d
	option = {
		name = iberia.22.a

		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}

		IBR = {
		country_event = {
			id = iberia.23
			days = 4
			}
		}
	}
	option = {
		name = iberia.22.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 40
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 180
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.30
				days = 4
			}
		}
	}
	option = {
		name = iberia.22.c
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.33
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.23 #Goa situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.23" }
	picture = GFX_report_event_IBR_indians_at_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.23.t
	desc = iberia.23.d
	option = {
		name = iberia.23.a
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.29
				days = 14
			}
		}
		IND = {
			country_event = {
				id = iberia.28
				days = 14
			}
		}
	}
	option = {
		name = iberia.23.b
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.24
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.24 #Iberia wants Portuguese assets transferred
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.24" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.24.t
	desc = iberia.24.d
	option = {
		name = iberia.24.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		add_political_power = -50

		set_temp_variable = { temp_econ_spending_amount = 0.13 }
		econ_spend_money_once_effect_raw_money = yes

		IBR = { set_country_flag = IBR_india_gave_money }

		IBR = {
			country_event = {
				id = iberia.29
				days = 4
			}
		}
		IND = {
			country_event = {
				id = iberia.28
				days = 4
			}
		}
	}
	option = {
		name = iberia.24.b
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.25
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.25 #India refuses to transfer assets
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.25" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.25.t
	desc = iberia.25.d
	option = {
		name = iberia.25.a
		ai_chance = {
			factor = 10
		}
		add_political_power = -25
		IBR = {
			country_event = {
				id = iberia.29
				days = 4
			}
		}
		IND = {
			country_event = {
				id = iberia.28
				days = 4
			}
		}
	}
	option = {
		name = iberia.25.b
		ai_chance = {
			factor = 10
		}
		add_political_power = -25

		IND = {
			country_event = {
				id = iberia.26
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.26 #Iberia ends negotiations
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.26" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.26.t
	desc = iberia.26.d
	option = {
		name = iberia.26.a

		add_political_power = -25
		IBR = {
			country_event = {
				id = iberia.27
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.27 #Press publishes the failed negotiations (negotiation failiure reaches the press)
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.27" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.27.t
	desc = iberia.27.d
	option = {
		name = iberia.27.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_43
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = -3 }
				custom_effect_tooltip = IBR_influence_tt_31
			}
			IBR_council_clamp = yes
		add_political_power = -75

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 3
		}
		custom_effect_tooltip = IBR_worsen_salazar_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 2
		}
		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}
		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.28 #GOA CONFERENCE IND
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.28" }
	picture = GFX_report_event_IBR_indian_soldiers_on_stage
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.28.t
	desc = iberia.28.d
	option = {
		name = iberia.28.a

		add_political_power = 100

		set_temp_variable = { gdp_growth_temp = 0.2 } #already converted to percent
		econ_gdp_growth_change = yes
	}
}
country_event = {
	id = iberia.29 #GOA CONFERENCE IBR
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.29" }
	picture = GFX_report_event_IBR_indian_soldiers_on_stage
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.29.t
	desc = iberia.29.d
	option = {
		name = iberia.29.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 3 }
			custom_effect_tooltip = IBR_reformist_tt_41
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = 3 }
				custom_effect_tooltip = IBR_influence_tt_30
			}
			IBR_council_clamp = yes
		if = {
			limit = { has_country_flag = IBR_india_gave_money }

			add_political_power = 100

			set_temp_variable = { money_reserves_temp = 0.13 }
			econ_money_reserves_change_raw_money = yes

			set_temp_variable = { gdp_growth_temp = 0.3 } #already converted to percent
			econ_gdp_growth_change = yes

			custom_effect_tooltip = IBR_improve_salazar_foreign_tt

			add_to_variable = {
				var = IBR_foreign_alignment
				value = -3
			}

			custom_effect_tooltip = IBR_improve_salazar_businessmen_tt

			add_to_variable = {
				var = IBR_business_alignment
				value = -3
			}
			custom_effect_tooltip = IBR_improve_salazar_majority_tt

			add_to_variable = {
				var = IBR_majority_alignment
				value = -1
			}
			IBR_check_caudillo_popularity = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 1.5
			}
			custom_effect_tooltip = IBR_add_stability_small_tt

		}
		else = {

			add_political_power = 75

			custom_effect_tooltip = IBR_improve_salazar_foreign_tt

			add_to_variable = {
				var = IBR_foreign_alignment
				value = -2
			}

			custom_effect_tooltip = IBR_improve_salazar_businessmen_tt

			add_to_variable = {
				var = IBR_business_alignment
				value = -3
			}
			IBR_check_caudillo_popularity = yes

			set_temp_variable = { gdp_growth_temp = 0.2 } #already converted to percent
			econ_gdp_growth_change = yes

			add_to_variable = {
				var = IBRIberiaStability
				value = 1
			}
			custom_effect_tooltip = IBR_add_stability_small_tt
		}
		clr_country_flag = IBR_india_gave_money

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.30 #Goa situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.30" }
	picture = GFX_report_event_IBR_indians_at_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.30.t
	desc = iberia.30.d
	option = {
		name = iberia.30.a
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.31
				days = 14
			}
		}
		IND = {
			country_event = {
				id = iberia.32
				days = 14
			}
		}
	}
	option = {
		name = iberia.30.b
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.26
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.31 #GOA FORUM IBR
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.31" }
	picture = GFX_report_event_IBR_goa_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.31.t
	desc = iberia.31.d
	option = {
		name = iberia.31.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_41
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 4 }
			custom_effect_tooltip = IBR_influence_tt_30
		}
		IBR_council_clamp = yes
		add_political_power = 100

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -2
		}

		custom_effect_tooltip = IBR_improve_salazar_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = -3
		}

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -1
		}

		IBR_check_caudillo_popularity = yes

		set_temp_variable = { gdp_growth_temp = 0.1 } #already converted to percent
		econ_gdp_growth_change = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 2
		}
		custom_effect_tooltip = IBR_add_stability_big_tt

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.32 #GOA FORUM IND
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.32" }
	picture = GFX_report_event_IBR_goa_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.32.t
	desc = iberia.32.d
	option = {
		name = iberia.32.a

		add_political_power = 125

		set_temp_variable = { gdp_growth_temp = 0.2 } #already converted to percent
		econ_gdp_growth_change = yes
	}
}
country_event = {
	id = iberia.33 #Goa situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.33" }
	picture = GFX_report_event_IBR_indians_at_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.33.t
	desc = iberia.33.d
	option = {
		name = iberia.33.a
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.34
				days = 14
			}
		}
		IND = {
			country_event = {
				id = iberia.35
				days = 14
			}
		}
	}
	option = {
		name = iberia.33.b
		ai_chance = {
			factor = 10
		}
		IND = {
			country_event = {
				id = iberia.26
				days = 4
			}
		}
	}
}
country_event = {
	id = iberia.34 #more retornados
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.34" }
	picture = GFX_report_event_IBR_lisbon_port
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.34.t
	desc = iberia.34.d
	option = {
		name = iberia.34.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 1 }
			custom_effect_tooltip = IBR_reformist_tt_44
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_30
		}
		IBR_council_clamp = yes
		add_political_power = 25

		custom_effect_tooltip = IBR_improve_salazar_settlers_tt

		add_to_variable = {
			var = IBR_settlers_alignment
			value = -2
		}

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -1
		}

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = iberia.36
				days = 13
			}
		}
	}
}
country_event = {
	id = iberia.35 #Goa situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.35" }
	picture = GFX_report_event_IBR_goa_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.35.t
	desc = iberia.35.d
	option = {
		name = iberia.35.a
	}
}

######TIMOR CHAIN##########

country_event = {
	id = iberia.36 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.36" }
	picture = GFX_report_event_IBR_timor_map
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.36.t
	desc = iberia.36.d
	option = {
		name = iberia.36.a

		custom_effect_tooltip = IBR_cauinfo_foreignpolicy_tt

		INS = {
			country_event = {
				id = iberia.37
				days = 5
			}
		}
	}
}
country_event = {
	id = iberia.37 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.37" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.37.t
	desc = iberia.37.d
	option = {
		name = iberia.37.a
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = { id = iberia.38 days = 5 }
		}
	}
	option = {
		name = iberia.37.b
		ai_chance = {
			factor = 10
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = { id = iberia.53 days = 5 }
		}
	}
}
country_event = {
	id = iberia.38 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.38" }
	picture = GFX_report_event_IBR_timor_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.38.t
	desc = iberia.38.d
	option = {
		name = iberia.38.a
		INS = {
			country_event = { id = iberia.39 days = 5 }
		}
	}
}
country_event = {
	id = iberia.39 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.39" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.39.t
	desc = iberia.39.d
	option = {
		name = iberia.39.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
		}
		IBR = {
			country_event = { id = iberia.40 days = 5 }
		}
	}
	option = {
		name = iberia.39.b
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = { id = iberia.49 days = 5 }
		}
	}
	option = {
		name = iberia.39.c
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = { id = iberia.53 days = 5 }
		}
	}
}
country_event = {
	id = iberia.40 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.40" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.40.t
	desc = iberia.40.d
	option = {
		name = iberia.40.a
		ai_chance = {
			factor = 10
		}
		INS = {
			country_event = {
				id = iberia.41
				days = 5
			}
		}
	}
	option = {
		name = iberia.40.b
		ai_chance = {
			factor = 10
		}
		if = {
			limit = { has_country_flag = cau_strong_salazar }

			hidden_effect = {
				country_event = {
					id = iberia.46
					days = 5
				}
			}
		}
		else_if = {
			limit = { has_country_flag = cau_weak_salazar }

			hidden_effect= {
				random_list = {
					25 = {
						IBR = {
							country_event = {
								id = iberia.45
								days = 5
							}
						}
					}
					75 = {
						IBR = {
							country_event = {
								id = iberia.46
								days = 5
							}
						}
					}

				}
			}
		}
		else = {

			hidden_effect = {
				random_list = {
					50 = {
						IBR = {
							country_event = {
								id = iberia.45
								days = 5
							}
						}
					}
					50 = {
						IBR = {
							country_event = {
								id = iberia.46
								days = 5
							}
						}
					}

				}
			}
		}
	}
	option = {
		name = iberia.40.c
		ai_chance = {
			factor = 10
		}
		INS = {
			country_event = {
				id = iberia.47
				days = 5
			}
		}
	}
}
country_event = {
	id = iberia.41 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.41" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.41.t
	desc = iberia.41.d
	option = {
		name = iberia.41.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.42
				days = 20
			}
		}
	}
	option = {
		name = iberia.41.b
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.43
				days = 5
			}
		}
	}
}
country_event = {
	id = iberia.42 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.42" }
	picture = GFX_report_event_IBR_timor_crowd
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.42.t
	desc = iberia.42.d
	option = {
		name = iberia.42.a

		add_political_power = 75
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_45
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_32
		}
		IBR_council_clamp = yes
		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -3
		}

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -0.5
		}

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.3191
				days = 9
			}
		}
	}
}
country_event = {
	id = iberia.43 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.43" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.43.t
	desc = iberia.43.d
	option = {
		name = iberia.43.a
		INS = {
			country_event = {
				id = iberia.44
				days = 5
			}
		}
	}
}
country_event = {
	id = iberia.44 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.44" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.44.t
	desc = iberia.44.d
	option = {
		name = iberia.44.a

		add_political_power = -75
		IBR = {
			country_event = {
				id = iberia.42
				days = 20
			}
		}
	}
}
country_event = {
	id = iberia.45 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.45" }
	picture = GFX_report_event_IBR_salazar_sad_desk
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.45.t
	desc = iberia.45.d
	option = {
		name = iberia.45.a

		add_political_power = -25

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 0.5
		}

		IBR_check_caudillo_popularity = yes

		INS = {
			country_event = {
				id = iberia.41
				days = 5
			}
		}
	}
}
country_event = {
	id = iberia.46 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.46" }
	picture = GFX_report_event_IBR_salazar_speech
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.46.t
	desc = iberia.46.d
	option = {
		name = iberia.46.a

		set_temp_variable = { money_reserves_temp = 0.02 }
		econ_money_reserves_change_raw_money = yes

		INS = {
			country_event = {
				id = iberia.47
				days = 5
			}
		}
	}
}
country_event = {
	id = iberia.47 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.47" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.47.t
	desc = iberia.47.d
	option = {
		name = iberia.47.a

		set_temp_variable = { money_reserves_temp = 0.02 }
		econ_money_reserves_change_raw_money = yes

		IBR = {
			country_event = {
				id = iberia.48
				days = 20
			}
		}
	}
}
country_event = {
	id = iberia.48 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.48" }
	picture = GFX_report_event_IBR_lisbon_port
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.48.t
	desc = iberia.48.d
	option = {
		name = iberia.48.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 2 }
			custom_effect_tooltip = IBR_reformist_tt_46
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_33
		}
		IBR_council_clamp = yes

		add_political_power = 50

		set_temp_variable = { temp_econ_spending_amount = 0.02 }
		econ_spend_money_once_effect_raw_money = yes

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -2
		}

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			country_event = {
				id = IBR.3191
				days = 9
			}
		}
	}
}
country_event = { #Indonesia claims prisoners escaped
	id = iberia.49
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.49" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.49.t
	desc = iberia.49.d
	option = {
		name = iberia.49.a
		IBR = {
			country_event = {
				id = iberia.50
				days = 2
			}
		}
	}
}
country_event = { #Official announcement from the government
	id = iberia.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.50" }
	picture = GFX_report_event_IBR_commuters_madrid_subway
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.50.t
	desc = iberia.50.d
	option = {
		name = iberia.50.a

		add_political_power = -25

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 0.5
		}

		IBR_check_caudillo_popularity = yes

		if = {
			limit = { has_country_flag = cau_strong_salazar }

			hidden_effect = {
				country_event = {
					id = iberia.52
					days = 5
				}
			}
		}
		else_if = {
			limit = { has_country_flag = cau_weak_salazar }

			hidden_effect= {
				random_list = {
					25 = {
						IBR = {
							country_event = {
								id = iberia.51
								days = 5
							}
						}
					}
					75 = {
						IBR = {
							country_event = {
								id = iberia.52
								days = 5
							}
						}
					}
				}
			}
		}
		else = {

			hidden_effect = {
				random_list = {
					50 = {
						IBR = {
							country_event = {
								id = iberia.51
								days = 5
							}
						}
					}
					50 = {
						IBR = {
							country_event = {
								id = iberia.52
								days = 5
							}
						}
					}
				}
			}
		}
	}
}

country_event = { #Protests Against the Government
	id = iberia.51
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.51" }
	picture = GFX_report_event_IBR_portuguese_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.51.t
	desc = iberia.51.d
	option = {
		name = iberia.51.a
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -3 }
			custom_effect_tooltip = IBR_reformist_tt_47
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -3 }
			custom_effect_tooltip = IBR_influence_tt_34
		}
		IBR_council_clamp = yes
		add_political_power = -50

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}

		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt
	}
}
country_event = { #Mass for the dead prisoners
	id = iberia.52
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.52" }
	picture = GFX_report_event_IBR_candle
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.52.t
	desc = iberia.52.d
	option = {
		name = iberia.52.a
		add_political_power = 25
	}
}
country_event = { #Indonesia redirects us to Japan
	id = iberia.53
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.53" }
	picture = GFX_report_event_IBR_timor_building
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.53.t
	desc = iberia.53.d
	option = {
		name = iberia.53.a
		JAP = {
			country_event = {
				id = iberia.54
				days = 5
			}
		}
	}
}
country_event = { #Iberia wants us to release the Timor prisoners
	id = iberia.54 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.54" }
	picture = GFX_report_event_IBR_prison_jail_cell
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.54.t
	desc = iberia.54.d
	option = {
		name = iberia.54.a
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.55
				days = 20
			}
		}
	}
	option = {
		name = iberia.54.b
		ai_chance = {
			factor = 90
		}
		IBR = {
			country_event = {
				id = iberia.56
				days = 5
			}
		}
	}
}
country_event = { #Timor prisoners return home! (REALLY GOOD)
	id = iberia.55
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.55" }
	picture = GFX_report_event_IBR_timor_crowd
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.55.t
	desc = iberia.55.d
	option = {
		name = iberia.55.a

		add_political_power = 100

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -5
		}

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -1
		}

		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt

		hidden_effect = {
			country_event = {
				id = IBR.3191
				days = 9
			}
		}
	}
}
country_event = { #Japan refuses to release the prisoners
	id = iberia.56
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.56" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.56.t
	desc = iberia.56.d
	option = {
		name = iberia.56.a

		add_political_power = -10
		JAP = {
			country_event = {
				id = iberia.57
				days = 5
			}
		}
	}
}
country_event = { #Iberia pressures us to release the prisoners!
	id = iberia.57
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.57" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.57.t
	desc = iberia.57.d
	option = { #Fine...
		name = iberia.57.a
		ai_chance = {
			factor = 20
			modifier = {
				factor = 160
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 900
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.55
				days = 14
			}
		}
	}
	option = { #We said no.
		name = iberia.57.b
		ai_chance = {
			factor = 80
		}
		IBR = {
			country_event = {
				id = iberia.58
				days = 5
			}
		}
	}
}
country_event = { #Japan still refuses
	id = iberia.58
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.58" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.58.t
	desc = iberia.58.d
	option = {
		name = iberia.58.a

		add_political_power = -25

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 1
		}

		IBR_check_caudillo_popularity = yes
		JAP = {
			country_event = {
				id = iberia.59
				days = 5
			}
		}
	}
}
country_event = { #Iberia keeps pressuring
	id = iberia.59
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.59" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.59.t
	desc = iberia.59.d
	option = { #Fine...
		name = iberia.59.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.55
				days = 14
			}
		}
	}
	option = { #What part of no don't you understand?
		name = iberia.59.b
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.60
				days = 5
			}
		}
	}
}
country_event = { #Japan Continues to Refuse
	id = iberia.60
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.60" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.60.t
	desc = iberia.60.d
	option = { #Keep the pressure
		name = iberia.60.a
		ai_chance = {
			factor = 10
		}
		add_political_power = -50

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 1.5
		}

		IBR_check_caudillo_popularity = yes

		JAP = {
			country_event = {
				id = iberia.61
				days = 5
			}
		}
	}
	option = { #Drop the issue
		name = iberia.60.b
		ai_chance = {
			factor = 10
		}
		add_political_power = -50

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 1.5
		}

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.62
					days = 5
				}
			}
		}
	}
}
country_event = { #Iberia pressure auments
	id = iberia.61
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.61" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.61.t
	desc = iberia.61.d
	option = { #Shut up! Take them! Leave us alone!
		name = iberia.61.a
		ai_chance = {
			factor = 30
			modifier = {
				factor = 70
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 900
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		IBR = {
			country_event = {
				id = iberia.55
				days = 20
			}
		}
	}
	option = { #We will let the world know that these prisoners are never getting released.
		name = iberia.61.b
		ai_chance = {
			factor = 70
		}
		IBR = {
			country_event = {
				id = iberia.63
				days = 5
			}
		}
	}
}
country_event = { #March in support of the prisoners
	id = iberia.62
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.62" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.62.t
	desc = iberia.62.d
	option = {
		name = iberia.62.a
		add_political_power = -25
	}
}
country_event = { #Japan Proclaims Prisoners Will Never be Released
	id = iberia.63 #Timor situation
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.63" }
	picture = GFX_report_event_IBR_meeting_table
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.63.t
	desc = iberia.63.d
	option = {
		name = iberia.63.a

		#have this really sour the in game relationship value

		add_political_power = -50

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 4
		}

		hidden_effect = {
			country_event = {
				id = iberia.64
				days = 3
			}
		}
	}
}

country_event = { #BIG PROTEST - Japan says NO LMAO
	id = iberia.64
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.64" }
	picture = GFX_report_event_generic_protest
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.64.t
	desc = iberia.64.d
	option = {
		name = iberia.64.a

		add_political_power = -75

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 2
		}

		IBR_check_caudillo_popularity = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = -2
		}
		custom_effect_tooltip = IBR_sub_stability_big_tt
	}
}

######MACAU#######

country_event = { #Guangdong Arrests Portuguese Governor of Macau
	id = iberia.70
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.70" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.70.t
	desc = iberia.70.d
	option = {
		name = iberia.70.a

		add_political_power = -25

		GNG = {
			country_event = {
				id = iberia.71
				days = 7
			}
		}
	}
}

country_event = { #Iberia Requests the Macau Governor's Release
	id = iberia.71
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.71" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.71.t
	desc = iberia.71.d
	option = {
		name = iberia.71.a


		IBR = {
			country_event = {
				id = iberia.72
				days = 7
			}
		}
	}
}

country_event = { #Guangdong Offers Summit
	id = iberia.72
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.72" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.72.t
	desc = iberia.72.d
	option = {
		name = iberia.72.a

		IBR = {
			country_event = {
				id = iberia.73
				days = 22
			}
		}
	}
}

country_event = { #The Cairo Summit IBR
	id = iberia.73
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.73" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.73.t
	desc = iberia.73.d
	option = {
		name = iberia.73.a

		GNG = {
			country_event = {
				id = iberia.74
				hours = 6
			}
		}
	}
}

country_event = { #The Cairo Summit GNG
	id = iberia.74
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.74" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.74.t
	desc = iberia.74.d
	option = {
		name = iberia.74.a

		IBR = {
			country_event = {
				id = iberia.75
				days = 1
			}
		}
	}
}

country_event = { #Suzuki's Offer
	id = iberia.75
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.75" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.75.t
	desc = iberia.75.d
	option = { #Agree to their offer
		name = iberia.75.a
		ai_chance = { factor = 10 }

		add_political_power = -50

		GNG = {
			country_event = {
				id = iberia.91
				hours = 6
			}
		}
	}
	option = { #We will not give up our technology!
		name = iberia.75.b
		ai_chance = {
			factor = 10
		}
		GNG = {
			country_event = {
				id = iberia.76
				hours = 6
			}
		}
	}
}

country_event = { #Iberia Refuses Our Generous Offer
	id = iberia.76
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.76" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.76.t
	desc = iberia.76.d
	option = {
		name = iberia.76.a

		add_political_power = -10

		IBR = {
			country_event = {
				id = iberia.75
				days = 14
			}
		}
	}
}

country_event = { #Guangdong Seizes Governor's Assets and Family
	id = iberia.77
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.77" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.77.t
	desc = iberia.77.d
	option = { #Agree to the demands
		name = iberia.77.a
		ai_chance = {
			factor = 10
		}
		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 1
		}

		IBR_check_caudillo_popularity = yes

		GNG = {
			country_event = {
				id = iberia.81
				days = 6
			}
		}
	}
	option = { #Try to have Japan pressure Suzuki
		name = iberia.77.b
		ai_chance = {
			factor = 10
		}
		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 1
		}

		IBR_check_caudillo_popularity = yes

		JAP = {
			country_event = {
				id = iberia.78
				days = 7
			}
		}
	}
}

country_event = { #Iberia Appeals to Put Pressure on Suzuki
	id = iberia.78
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.78" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.78.t
	desc = iberia.78.d
	option = { #Have Suzuki end this charade
		name = iberia.78.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		GNG = {
			country_event = {
				id = iberia.86
				days = 3
			}
		}
	}
	option = { #What happens in Guangdong is none of your business
		name = iberia.78.b
		ai_chance = {
			factor = 10
		}
		GNG = {
			country_event = {
				id = iberia.79
				days = 5
			}
		}
	}
}

country_event = { #Iberia Won't Budge
	id = iberia.79
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.79" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.79.t
	desc = iberia.79.d
	option = {
		name = iberia.79.a

		IBR = {
			country_event = {
				id = iberia.80
				days = 6
			}
		}
	}
}

country_event = { #Suzuki Orders Seizure of Iberian Companies in Macau
	id = iberia.80
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.80" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.80.t
	desc = iberia.80.d
	option = { #Agree to the demands
		name = iberia.80.a
		ai_chance = {
			factor = 10
		}
		custom_effect_tooltip = IBR_worsen_salazar_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 3
		}

		IBR_check_caudillo_popularity = yes

		GNG = {
			country_event = {
				id = iberia.81
				days = 6
			}
		}
	}
	option = { #Threaten an embargo on Japan
		name = iberia.80.b
		ai_chance = {
			factor = 10
		}
		custom_effect_tooltip = IBR_worsen_salazar_businessmen_tt

		add_to_variable = {
			var = IBR_business_alignment
			value = 3
		}

		IBR_check_caudillo_popularity = yes

		JAP = {
			country_event = {
				id = iberia.82
				days = 7
			}
		}
	}
}

country_event = { #Iberia Agrees to Demands
	id = iberia.81
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.81" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.81.t
	desc = iberia.81.d
	option = {
		name = iberia.81.a

		IBR = {
			country_event = {
				id = iberia.89
				days = 15
			}
		}
	}
}

country_event = { #Iberia Threatens Embargo
	id = iberia.82
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.82" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.82.t
	desc = iberia.82.d
	option = { #Stop Suzuki, a trade war is not worth it
		name = iberia.82.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		GNG = {
			country_event = {
				id = iberia.86
				days = 4
			}
		}
	}
	option = { #They are clearly bluffing
		name = iberia.82.b
		ai_chance = {
			factor = 10
		}
		IBR = {
			country_event = {
				id = iberia.83
				days = 7
			}
		}
	}
}

country_event = { #Japan Refuses to Stop Suzuki
	id = iberia.83
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.83" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.83.t
	desc = iberia.83.d
	option = {
		name = iberia.83.a

		GNG = {
			country_event = {
				id = iberia.84
				days = 20
			}
		}
	}
}

country_event = { #Iberia Imposes Embargo GNG
	id = iberia.84
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.84" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.84.t
	desc = iberia.84.d
	option = {
		name = iberia.84.a

		JAP = {
			country_event = {
				id = iberia.85
				days = 3
			}
		}
	}
}

country_event = { #Iberia Imposes Embargo JAP
	id = iberia.85
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.85" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.85.t
	desc = iberia.85.d
	option = {
		name = iberia.85.a

		add_political_power = -50

		GNG = {
			country_event = {
				id = iberia.86
				days = 3
			}
		}
	}
}

country_event = { #Japan Overrules Us
	id = iberia.86
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.86" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.86.t
	desc = iberia.86.d
	option = {
		name = iberia.86.a
		ai_chance = {
			factor = 10
			modifier = {
				factor = 20
					IBR = { has_country_flag = cau_weak_salazar }
			}
			modifier = {
				factor = 90
					IBR = { has_country_flag = cau_strong_salazar }
			}
		}
		add_political_power = -25

		IBR = {
			country_event = {
				id = iberia.90
				days = 15
			}
		}
	}
	option = {
		name = iberia.86.b
		ai_chance = {
			factor = 10
		}
		JAP = {
			country_event = {
				id = iberia.87
				days = 4
			}
		}
	}
}

country_event = { #Suzuki Refuses to Comply
	id = iberia.87
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.87" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.87.t
	desc = iberia.87.d
	option = {
		name = iberia.87.a

		add_political_power = -25

		GNG = {
			country_event = {
				id = iberia.88
				days = 4
			}
		}
	}
}

country_event = { #Japan Threatens to Remove Suzuki from his Position
	id = iberia.88
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.88" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.88.t
	desc = iberia.88.d
	option = {
		name = iberia.88.a

		add_political_power = -100

		IBR = {
			country_event = {
				id = iberia.90
				days = 15
			}
		}
	}
}

country_event = { #Guangdong Releases the Prisoners (bad)
	id = iberia.89
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.89" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.89.t
	desc = iberia.89.d
	option = {
		name = iberia.89.a

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 4
		}

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.93
					days = 23
				}
			}
			GNG = {
				country_event = {
					id = iberia.94
					days = 23
				}
			}
			JAP = {
				country_event = {
					id = iberia.95
					days = 23
				}
			}
		}
	}
}

country_event = { #Guangdong Releases the Prisoners (good)
	id = iberia.90
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.90" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.90.t
	desc = iberia.90.d
	option = {
		name = iberia.90.a

		add_political_power = 25

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -1
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.93
					days = 23
				}
			}
			GNG = {
				country_event = {
					id = iberia.94
					days = 23
				}
			}
			JAP = {
				country_event = {
					id = iberia.95
					days = 23
				}
			}
		}
	}
}

country_event = { #Iberia Agrees to the Demands
	id = iberia.91
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.91" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.91.t
	desc = iberia.91.d
	option = {
		name = iberia.91.a

		IBR = {
			country_event = {
				id = iberia.92
				days = 1
			}
		}
	}
}

country_event = { #A Graceful End to the Summit
	id = iberia.92
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.92" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.92.t
	desc = iberia.92.d
	option = {
		name = iberia.92.a

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -4
		}

		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.93
					days = 23
				}
			}
			GNG = {
				country_event = {
					id = iberia.94
					days = 23
				}
			}
			JAP = {
				country_event = {
					id = iberia.95
					days = 23
				}
			}
		}
	}
}

country_event = { #The Macau Handover IBR
	id = iberia.93
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.93" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.93.t
	desc = iberia.93.d
	option = {
		name = iberia.93.a

		add_political_power = 25

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -4
		}

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -1
		}

		IBR_check_caudillo_popularity = yes
	}
}

country_event = { #The Macau Handover GNG
	id = iberia.94
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.94" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.94.t
	desc = iberia.94.d
	option = {
		name = iberia.94.a

		add_political_power = 50

		GNG = {
		add_to_variable = { industrial_expertise_monthly_change = 2 }
		}
		custom_effect_tooltip = improve_industrial_expertise_medium
	}
}

country_event = { #The Macau Handover JAP
	id = iberia.95
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.95" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.95.t
	desc = iberia.95.d
	option = {
		name = iberia.95.a

		add_political_power = 25
	}
}


####South Africa Events####

##Santa Maria Affair##

country_event = { #Captain Galvão Speaks Out Against the Caudillos
	id = iberia.300
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.300" }
	picture = GFX_report_event_IBR_galvao
	is_triggered_only = no
	fire_only_once = yes
	hidden = no
	title = iberia.300.t
	desc = iberia.300.d
	trigger = {
		tag = IBR
		date > 1963.12.2
		NOT = {
			has_country_flag = IBR_dissolving_the_union
			has_country_flag = IBR_Iberian_Wars_have_happened
		}
	}
	option = { #Speak to his commanding officer
		name = iberia.300.a
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.301
					days = 4
				}
			}
		}
	}
	option = { #Ignore it
		name = iberia.300.b
		ai_chance = {
			factor = 10
		}
		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.303
					days = 13
				}
			}
		}
	}
}

country_event = { #Commanding Officer Supports Galvão
	id = iberia.301
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.301" }
	picture = GFX_report_event_IBR_galvao
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.301.t
	desc = iberia.301.d
	option = {
		name = iberia.301.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.302
					days = 5
				}
			}
		}
	}
}

country_event = { #A Navy Purge
	id = iberia.302
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.302" }
	picture = GFX_report_event_ITA_naval_ship
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.302.t
	desc = iberia.302.d
	option = {
		name = iberia.302.a
		ai_chance = { factor = 10 }

			if = {
				limit = {
					has_country_flag = legislature_council
				}
				add_to_variable = { IBR_council_reformism = -2 }
				custom_effect_tooltip = IBR_reformist_tt_34_2
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = -2 }
				custom_effect_tooltip = IBR_influence_tt_23_2
			}
			IBR_council_clamp = yes

		custom_effect_tooltip = IBR_improve_salazar_army_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -2
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.303
					days = 5
				}
			}
		}
	}
}

country_event = { #Santa Maria Hijacked by Pro Democacy Activists
	id = iberia.303
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.303" }
	picture = GFX_report_event_IBR_santa_maria
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.303.t
	desc = iberia.303.d
	option = { #We can do nothing
		name = iberia.303.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.307
					days = 20
				}
			}
		}
	}
	option = { #There are Americans on board, ask the US for help!
		name = iberia.303.b
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 5 }
			custom_effect_tooltip = IBR_reformist_tt_34
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 2 }
			custom_effect_tooltip = IBR_influence_tt_23
		}
		IBR_council_clamp = yes
		USA = {
			country_event = {
				id = iberia.304
				days = 3
			}
		}
	}
}

country_event = { #Americans on Hijacked Iberian Ship
	id = iberia.304
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.304" }
	picture = GFX_report_event_IBR_santa_maria
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.304.t
	desc = iberia.304.d
	option = {
		name = iberia.304.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			USA = {
				country_event = {
					id = iberia.305
					days = 7
				}
			}
			IBR = {
				country_event = {
					id = iberia.306
					days = 7
				}
			}
		}
	}
}

country_event = { #(US PERSPECTIVE - US navy captures the ship and sets hostages free)
	id = iberia.305
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.305" }
	picture = GFX_report_event_IBR_usa_santa_maria
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.305.t
	desc = iberia.305.d
	option = {
		name = iberia.305.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #(IBR PERSPECTIVE - US navy captures the ship and sets hostages free)
	id = iberia.306
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.306" }
	picture = GFX_report_event_IBR_usa_santa_maria
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.306.t
	desc = iberia.306.d
	option = {
		name = iberia.306.a
		ai_chance = { factor = 10 }

		set_country_flag = IBR_US_hostages

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.309
					days = 32
				}
			}
		}
	}
}

country_event = { #Hijackers Broadcast Speech from Cuba
	id = iberia.307
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.307" }
	picture = GFX_report_event_IBR_galvao2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.307.t
	desc = iberia.307.d
	option = {
		name = iberia.307.a
		ai_chance = { factor = 10 }

			if = {
				limit = {
					has_country_flag = legislature_council
				}
				add_to_variable = { IBR_council_reformism = 7 }
				custom_effect_tooltip = IBR_reformist_tt_34_3
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = -4 }
				custom_effect_tooltip = IBR_influence_tt_23_3
			}
			IBR_council_clamp = yes

		add_political_power = -50

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}

		custom_effect_tooltip = IBR_worsen_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = 1
		}

		custom_effect_tooltip = IBR_worsen_salazar_army_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.308
					days = 10
				}
			}
		}
	}
}

country_event = { #Hostages Return from Cuba
	id = iberia.308
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.308" }
	picture = GFX_report_event_IBR_ship_stairs
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.308.t
	desc = iberia.308.d
	option = {
		name = iberia.308.a
		ai_chance = { factor = 10 }


		if = {
			limit = { NOT = { has_global_flag = SAF_WAR_OVER } }

			hidden_effect = {
				IBR = {
					country_event = {
						id = iberia.309
						days = 14
					}
				}
			}
		}
	}
}

##SAF boot events##

country_event = { #Salazar Pushes Involvement in South African War"
	id = iberia.309
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.309" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.309.t
	desc = iberia.309.d
	option = {
		name = iberia.309.a
		ai_chance = { factor = 10 }

		if = {
			limit = { has_country_flag = IBR_US_hostages }

			hidden_effect = {
				country_event = {
					id = iberia.310
					days = 3
				}
			}
		}
		else = {
			hidden_effect = {
				country_event = {
					id = iberia.311
					days = 3
				}
			}
		}
		clr_country_flag = IBR_US_hostages
	}
}

country_event = { #Franco Strongly Agrees to Salazar's' South Africa Proposal
	id = iberia.310
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.310" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.310.t
	desc = iberia.310.d
	option = {
		name = iberia.310.a
		ai_chance = { factor = 10 }

		custom_effect_tooltip = IBR_improve_salazar_army_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -4
		}
		IBR_check_caudillo_popularity = yes

		USA = {
			country_event = {
				id = iberia.312
				days = 4
			}
		}
	}
}

country_event = { #Franco Reluctantly Agrees to Salazar's' South Africa Proposal
	id = iberia.311
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.311" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.311.t
	desc = iberia.311.d
	option = {
		name = iberia.311.a
		ai_chance = { factor = 10 }

		USA = {
			country_event = {
				id = iberia.312
				days = 4
			}
		}
	}
}

country_event = { #Iberia Offers Assistance in South Africa (USA)
	id = iberia.312
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.312" }
	picture = GFX_report_event_IBR_salazar_meeting
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.312.t
	desc = iberia.312.d
	option = {
		name = iberia.312.a
		ai_chance = { factor = 10 }

		IBR = {
			country_event = {
				id = iberia.313
				days = 8
			}
		}
	}
}

country_event = { #US Welcomes our Help in Africa
	id = iberia.313
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.313" }
	picture = GFX_report_event_USA_saw_soldier3
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.313.t
	desc = iberia.313.d
	option = {
		name = iberia.313.a
		ai_chance = { factor = 10 }

		load_focus_tree = {
			tree = IBR_South_Africa
			keep_completed = yes
		}
		complete_national_focus = IBR_Returning_the_favor

		reverse_add_opinion_modifier = {
			target = USA
			modifier = IBR_SAF_support
		}
		reverse_add_opinion_modifier = {
			target = SAF
			modifier = IBR_SAF_support
		}
	}
}

##Post South Africa War Events##

country_event = { #Victory in Africa
	id = iberia.314
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.314" }
	picture = GFX_report_event_USA_saw_soldier4
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.314.t
	desc = iberia.314.d
	option = { #Ask the Americans for the colonies
		name = iberia.314.a
		ai_chance = { factor = 10 }

		add_political_power = 75

		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_35
			}
			if = {
				limit = {
					has_country_flag = advisory_council
				}
				add_to_variable = { IBR_council_influence = 3 }
				custom_effect_tooltip = IBR_influence_tt_24
			}
			IBR_council_clamp = yes

		add_to_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_add_stability_small_tt
		TNO_clear_num_volunteers = yes

		custom_effect_tooltip = IBR_improve_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = -2
		}

		custom_effect_tooltip = IBR_improve_salazar_foreign_tt

		add_to_variable = {
			var = IBR_foreign_alignment
			value = -3
		}

		custom_effect_tooltip = IBR_improve_salazar_army_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = -4
		}
		IBR_check_caudillo_popularity = yes
		USA = {
			country_event = {
				id = iberia.315
				days = 3
			}
		}
	}
	option = { #There is no way that will go well
		name = iberia.314.b
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = 4 }
			custom_effect_tooltip = IBR_reformist_tt_35
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = 3 }
			custom_effect_tooltip = IBR_influence_tt_24
		}
		IBR_council_clamp = yes
		TNO_clear_num_volunteers = yes
		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.317
					days = 14
				}
			}
		}
	}
}

country_event = { #Salazar Wants Colonies Returned
	id = iberia.315
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.315" }
	picture = GFX_report_event_IBR_pink_map
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.315.t
	desc = iberia.315.d
	option = {
		name = iberia.315.a
		ai_chance = { factor = 10 }

		IBR = {
			country_event = {
				id = iberia.316
				days = 6
			}
		}
	}
}

country_event = { #Request for African Colonies Rejected
	id = iberia.316
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.316" }
	picture = GFX_report_event_IBR_pink_map
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.316.t
	desc = iberia.316.d
	option = {
		name = iberia.316.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		custom_effect_tooltip = IBR_worsen_salazar_settlers_tt

		add_to_variable = {
			var = IBR_settlers_alignment
			value = 3
		}
		IBR_check_caudillo_popularity = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.317
					days = 5
				}
			}
		}
	}
}

country_event = { #South Africa Gives Residence to Portuguese
	id = iberia.317
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.317" }
	picture = GFX_report_event_SAF_saw_soldier2
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = iberia.317.t
	desc = iberia.317.d
	option = {
		name = iberia.317.a
		ai_chance = { factor = 10 }

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.318
					days = 330
				}
			}
			SAF = {
				country_event = {
					id = iberia.318
					days = 330
				}
			}
		}
	}
}

country_event = { #A Portuguese Restaurant Chain in South Africa
	id = iberia.318
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.318" }
	picture = GFX_report_event_IBR_cheeky_nandos
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = iberia.318.t
	desc = iberia.318.d
	option = {
		name = iberia.318.a
		ai_chance = { factor = 10 }
	}
}

country_event = { #Total Defeat in South Africa
	id = iberia.319
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.319" }
	picture = GFX_report_event_USA_saw_soldier
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.319.t
	desc = iberia.319.d
	option = {
		name = iberia.319.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				has_country_flag = legislature_council
			}
			add_to_variable = { IBR_council_reformism = -2 }
			custom_effect_tooltip = IBR_reformist_tt_36
		}
		if = {
			limit = {
				has_country_flag = advisory_council
			}
			add_to_variable = { IBR_council_influence = -5 }
			custom_effect_tooltip = IBR_influence_tt_25
		}
		IBR_council_clamp = yes
		add_political_power = -50

		subtract_from_variable = {
			var = IBRIberiaStability
			value = 1
		}
		custom_effect_tooltip = IBR_sub_stability_small_tt

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 2
		}

		custom_effect_tooltip = IBR_worsen_salazar_army_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = 4
		}
		IBR_check_caudillo_popularity = yes
		TNO_clear_num_volunteers = yes
	}
}

country_event = { #something about psyops with cia
	id = iberia.320
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.320" }
	picture = GFX_report_event_USA_cia
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = iberia.320.t
	desc = iberia.320.d
	option = { #For IBR
		name = iberia.320.a
		ai_chance = { factor = 10 }
		trigger = { tag = IBR }

		add_tech_bonus = {
			name = electronics
			bonus = 1
			uses = 1
			category = electronics
		}
	}
	option = { #For USA
		name = iberia.320.b
		ai_chance = { factor = 10 }
		trigger = { tag = USA }
	}
}

country_event = { #something about portuguese medics saving lives
	id = iberia.321
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.321" }
	picture = GFX_report_event_USA_saw_helicopter
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = iberia.321.t
	desc = iberia.321.d
	option = { #For IBR
		name = iberia.321.a
		ai_chance = { factor = 10 }
		trigger = { tag = IBR }

		add_political_power = 50
	}
	option = { #For SAF
		name = iberia.321.b
		ai_chance = { factor = 10 }
		trigger = { tag = SAF }

		add_political_power = 25

		add_manpower = 314
	}
}

country_event = { #Iberia Offers to Lease São Tomé
	id = iberia.322
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.322" }
	picture = GFX_report_event_generic_port
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.322.t
	desc = iberia.322.d
	option = {
		name = iberia.322.a
		ai_chance = { factor = 10 }

		USA = {
			transfer_state = 705
		}

		add_ideas = USA_SAF_sao_tome

		set_temp_variable = { temp_econ_spending_amount = 0.50 }
		econ_spend_money_once_effect_raw_money = yes

		hidden_effect = {
			IBR = {
				country_event = {
					id = IBR.3155
					days = 9
				}
			}
		}
	}
	option = {
		name = iberia.322.b

		trigger = { is_ai = no }
	}
}

country_event = { #Stalemate in South Africa
	id = iberia.323
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.323" }
	picture = GFX_report_event_USA_saw_helicopter2
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.323.t
	desc = iberia.323.d
	option = {
		name = iberia.323.a
		ai_chance = { factor = 10 }

		add_political_power = -25

		custom_effect_tooltip = IBR_worsen_salazar_majority_tt

		add_to_variable = {
			var = IBR_majority_alignment
			value = 1
		}

		custom_effect_tooltip = IBR_worsen_salazar_army_tt

		add_to_variable = {
			var = IBR_military_alignment
			value = 2
		}
		IBR_check_caudillo_popularity = yes
		TNO_clear_num_volunteers = yes
	}
}

country_event = { #Iberia provides maps for war effort
	id = iberia.324
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.324" }
	picture = GFX_report_event_IBR_pink_map
	is_triggered_only = yes
	fire_only_once = yes
	hidden = no
	title = iberia.324.t
	desc = iberia.324.d
	option = {
		name = iberia.324.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		hidden_effect = {
			IBR = {
				country_event = {
					id = iberia.325
					days = 13
				}
			}
			USA = {
				country_event = {
					id = iberia.325
					days = 13
				}
			}
		}
	}
}


country_event = { #US Airforce Bombs Sudwestafrika Arms Factories
	id = iberia.325
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.325" }
	picture = GFX_report_event_generic_bombers
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = iberia.325.t
	desc = iberia.325.d
	trigger = {
		1035 = {
			is_controlled_by = ANG
		}
		ANG = {
			Angola_is_rk = yes
		}
	}
	option = {
		name = iberia.325.a
		ai_chance = { factor = 10 }

		add_political_power = 25
		ANG = {
			random_owned_state = {
				limit = { state = 1035 }
				set_temp_variable = { state_value_multiplier_temp = 0.95 }
				econ_state_value_change_multiply = yes
			}
		}
	}
}

country_event = { #hidden event that gives sao tome back to iberia
	id = iberia.326
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.326" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = yes
	hidden = yes
	title = iberia.326.t
	desc = iberia.326.d
	option = {
		name = iberia.326.a
		ai_chance = { factor = 10 }

		IBR = {
			transfer_state = 705
		}
		USA = { remove_ideas = USA_SAF_sao_tome }
	}
}

#salazar test

country_event = { #SALAZAR TEST
	id = iberia.1000
	immediate = { log = "[GetDateText]: [Root.GetName]: event iberia.1000" }
	picture = GFX_report_event_IBR_dinosaur
	is_triggered_only = yes
	fire_only_once = no
	hidden = no
	title = iberia.1000.t
	desc = iberia.1000.d
	option = {
		name = iberia.1000.a
		ai_chance = { factor = 10 }

		add_political_power = 25

		add_to_variable = {
			var = IBR_native_alignment
			value = -10
		}
		add_to_variable = {
			var = IBR_settlers_alignment
			value = -10
		}
		add_to_variable = {
			var = IBR_majority_alignment
			value = -10
		}

		IBR_check_caudillo_popularity = yes
	}
}


####IBERIAN WARS (OLD)
country_event = {
	id = ibrwar.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.1" }
	title = ibrwar.1.t
	desc = ibrwar.1.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.1.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.2" }
	title = ibrwar.2.t
	desc = ibrwar.2.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.2.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.3" }
	title = ibrwar.3.t
	desc = ibrwar.3.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.3.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.4" }
	title = ibrwar.4.t
	desc = ibrwar.4.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.4.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.5" }
	title = ibrwar.5.t
	desc = ibrwar.5.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.5.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.6" }
	title = ibrwar.6.t
	desc = ibrwar.6.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.6.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.7" }
	title = ibrwar.7.t
	desc = ibrwar.7.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.7.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.8" }
	title = ibrwar.8.t
	desc = ibrwar.8.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.8.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.9" }
	title = ibrwar.9.t
	desc = ibrwar.9.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.9.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.10
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.10" }
	title = ibrwar.10.t
	desc = ibrwar.10.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.10.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.11" }
	title = ibrwar.11.t
	desc = ibrwar.11.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.11.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.12" }
	title = ibrwar.12.t
	desc = ibrwar.12.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.12.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.13" }
	title = ibrwar.13.t
	desc = ibrwar.13.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.13.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.14" }
	title = ibrwar.14.t
	desc = ibrwar.14.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.14.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.15" }
	title = ibrwar.15.t
	desc = ibrwar.15.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.15.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.16" }
	title = ibrwar.16.t
	desc = ibrwar.16.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.16.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.17" }
	title = ibrwar.17.t
	desc = ibrwar.17.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.17.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.18" }
	title = ibrwar.18.t
	desc = ibrwar.18.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.18.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.19" }
	title = ibrwar.19.t
	desc = ibrwar.19.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.19.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.20" }
	title = ibrwar.20.t
	desc = ibrwar.20.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.20.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.21" }
	title = ibrwar.21.t
	desc = ibrwar.21.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.21.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.22" }
	title = ibrwar.22.t
	desc = ibrwar.22.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.22.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.23" }
	title = ibrwar.23.t
	desc = ibrwar.23.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.23.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.24" }
	title = ibrwar.24.t
	desc = ibrwar.24.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.24.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.25" }
	title = ibrwar.25.t
	desc = ibrwar.25.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.25.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.26" }
	title = ibrwar.26.t
	desc = ibrwar.26.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.26.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.27" }
	title = ibrwar.27.t
	desc = ibrwar.27.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.27.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.28" }
	title = ibrwar.28.t
	desc = ibrwar.28.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.28.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.29" }
	title = ibrwar.29.t
	desc = ibrwar.29.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.29.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.30
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.30" }
	title = ibrwar.30.t
	desc = ibrwar.30.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.30.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.31" }
	title = ibrwar.31.t
	desc = ibrwar.31.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.31.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.32" }
	title = ibrwar.32.t
	desc = ibrwar.32.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.32.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.33" }
	title = ibrwar.33.t
	desc = ibrwar.33.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.33.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.34" }
	title = ibrwar.34.t
	desc = ibrwar.34.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.34.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.35" }
	title = ibrwar.35.t
	desc = ibrwar.35.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.35.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.36" }
	title = ibrwar.36.t
	desc = ibrwar.36.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.36.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.37" }
	title = ibrwar.37.t
	desc = ibrwar.37.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.37.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.38" }
	title = ibrwar.38.t
	desc = ibrwar.38.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.38.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.39" }
	title = ibrwar.39.t
	desc = ibrwar.39.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.39.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.40" }
	title = ibrwar.40.t
	desc = ibrwar.40.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.40.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.41" }
	title = ibrwar.41.t
	desc = ibrwar.41.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.41.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.42" }
	title = ibrwar.42.t
	desc = ibrwar.42.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.42.a
		ai_chance = { factor = 10 }
	}
}

####Federales tree events, no clue why the previous events are there but I don't dare delete or reuse them

country_event = {
	id = ibrwar.43
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.43" }
	title = ibrwar.43.t
	desc = ibrwar.43.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.43.a
		ai_chance = { factor = 10 }
		add_political_power = 50
		add_ideas = ibrwar_legitimate_government
	}
}

country_event = {
	id = ibrwar.44
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.44" }
	title = ibrwar.44.t
	desc = ibrwar.44.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.44.a
		ai_chance = { factor = 10 }
		if = {
			limit = {
				1005 = {
					owner = {
						NOT = {
							OR ={
								tag = IBR
								has_war_with = IBR
							}
						}
					}
				}
			}
			1005 = {
				owner = {
					IBR = {
						declare_war_on = {
							target = PREV
							type = annex_everything
						}
					}
				}
			}
		}
		load_oob = Iberian_Wars_IBR_settlers
	}
	option = {
		name = ibrwar.44.b
		ai_chance = { factor = 10 }
		add_manpower = 5000
	}
}

country_event = {
	id = ibrwar.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.45" }
	title = ibrwar.45.t
	desc = ibrwar.45.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.45.a
		ai_chance = { factor = 10 }
	}
}

country_event = {
	id = ibrwar.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.46" }
	title = ibrwar.46.t
	desc = ibrwar.46.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.46.a
		ai_chance = { factor = 10 }
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = -5000
			producer = ITA
		}
		hidden_effect = {
			IBR = {
				country_event = {
					id = ibrwar.47
					days = 1
				}
			}
		}
	}
	option = {
		name = ibrwar.46.b
		ai_chance = { factor = 10 }
		hidden_effect = {
			IBR = {
				country_event = {
					id = ibrwar.48
					days = 1
				}
			}
		}
	}
}

country_event = {
	id = ibrwar.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.47" }
	title = ibrwar.47.t
	desc = ibrwar.47.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.47.a
		ai_chance = { factor = 10 }
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 5000
			producer = ITA
		}
	}
}

country_event = {
	id = ibrwar.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event ibrwar.48" }
	title = ibrwar.48.t
	desc = ibrwar.48.d
	picture = GFX_report_event_lithuania_army

	is_triggered_only = yes

	option = {
		name = ibrwar.48.a
		ai_chance = { factor = 10 }
		add_political_power = -25
	}
}

country_event = {#Barranquilla Concession
	id = IBR_COL.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR_COL.1" }
	title = IBR_COL.1.t
	desc = IBR_COL.1.d
	picture = GFX_report_event_lithuania_army

	hidden = yes
	is_triggered_only = yes

	option = {
		name = IBR_COL.1.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Tercio de Extranjeros
	id = IBR_COL.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR_COL.2" }
	title = IBR_COL.2.t
	desc = IBR_COL.2.d
	picture = GFX_report_event_lithuania_army

	hidden = yes
	is_triggered_only = yes

	option = {
		name = IBR_COL.2.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Dominican Air Bridge
	id = IBR_COL.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR_COL.3" }
	title = IBR_COL.3.t
	desc = IBR_COL.3.d
	picture = GFX_report_event_lithuania_army

	hidden = yes
	is_triggered_only = yes

	option = {
		name = IBR_COL.3.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Legión Dominicana
	id = IBR_COL.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR_COL.4" }
	title = IBR_COL.4.t
	desc = IBR_COL.4.d
	picture = GFX_report_event_lithuania_army

	hidden = yes
	is_triggered_only = yes

	option = {
		name = IBR_COL.4.a
		ai_chance = { factor = 10 }
	}
}

country_event = {#Lozano Unit
	id = IBR_COL.5
	immediate = { log = "[GetDateText]: [Root.GetName]: event IBR_COL.5" }
	title = IBR_COL.5.t
	desc = IBR_COL.5.d
	picture = GFX_report_event_lithuania_army

	hidden = yes
	is_triggered_only = yes

	option = {
		name = IBR_COL.5.a
		ai_chance = { factor = 10 }
	}
}