SPA_reassert_american_dominance = {

    SPR_invitararg = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = ARG
		}
		available = {
			OR = {
				has_opinion = {
					target = ARG
					value > 49
				}
				ARG= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			ARG = {
				country_event = {
					id = lar_spain.2000

				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarbra = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = BRA
		}
		available = {
			OR = {
				has_opinion = {
					target = BRA
					value > 49
				}
				BRA= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}

		}
		cost = 25
		complete_effect = {
			BRA = {
				country_event = {
					id = lar_spain.2000

				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarbol = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = BOL
		}
		available = {
			OR = {
				has_opinion = {
					target = BOL
					value > 49
				}
				BOL= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			BOL = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarpru = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = PRU
		}
		available = {
			OR = {
				has_opinion = {
					target = PRU
					value > 49
				}
				PRU= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			PRU = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarmex = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = MEX
		}
		available = {
			OR = {
				has_opinion = {
					target = MEX
					value > 49
				}
				MEX= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			MEX = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarcol = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = COL
		}
		available = {
			OR = {
				has_opinion = {
					target = COL
					value > 49
				}
				COL= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			COL = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarven = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = VEN
		}
		available = {
			OR = {
				has_opinion = {
					target = VEN
					value > 49
				}
				VEN= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			VEN = {
				country_event = {
					id = lar_spain.2000

				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarchl = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = CHL
		}
		available = {
			OR = {
				has_opinion = {
					target = CHL
					value > 49
				}
				CHL= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			CHL = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitargua = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = GUA
		}
		available = {
			OR = {
				has_opinion = {
					target = GUA
					value > 49
				}
				GUA= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			GUA = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarhon = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = HON
		}
		available = {
			OR = {
				has_opinion = {
					target = HON
					value > 49
				}
				HON= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			HON = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarels = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
		has_completed_focus = SPA_reassert_american_dominancetwo
			original_tag = SPR
		country_exists = ELS
		}
		available = {
			OR = {
				has_opinion = {
					target = ELS
					value > 49
				}
				ELS= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			ELS = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarnic = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = NIC
			}
		available = {
			OR = {
				has_opinion = {
					target = NIC
					value > 49
				}
				NIC= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			NIC = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarcos = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = COS
			}
		available = {
			OR = {
				has_opinion = {
					target = COS
					value > 49
				}
				COS= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			COS = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}
	
    SPR_invitarpan = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = PAN
			}
		available = {
			OR = {
				has_opinion = {
					target = PAN
					value > 49
				}
				PAN= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			PAN = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarpar = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = PAR
			}
		available = {
			OR = {
				has_opinion = {
					target = PAR
					value > 49
				}
				PAR= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			PAR = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarurg = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = URG
			}
		available = {
			OR = {
				has_opinion = {
					target = URG
					value > 49
				}
				URG= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			URG = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}
    SPR_invitarecu = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = ECU
			}
		available = {
			OR = {
				has_opinion = {
					target = ECU
					value > 49
				}
				ECU= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			ECU = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarcub = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = CUB
			}
		available = {
			OR = {
				has_opinion = {
					target = CUB
					value > 49
				}
				CUB= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			CUB = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarhai = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = HAI
			}
		available = {
			OR = {
				has_opinion = {
					target = HAI
					value > 49
				}
				HAI= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			HAI = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitardom = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = DOM
			}
		available = {
			OR = {
				has_opinion = {
					target = DOM
					value > 49
				}
				DOM= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			DOM = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarbah = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = BAH
			}
		available = {
			OR = {
				has_opinion = {
					target = BAH
					value > 49
				}
				BAH= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			BAH = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarpue = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = PUE
			}
		available = {
			OR = {
				has_opinion = {
					target = PUE
					value > 49
				}
				PUE= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			PUE = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitargdl = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = GDL
			}
		available = {
			OR = {
				has_opinion = {
					target = GDL
					value > 49
				}
				GDL= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			GDL = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarbas = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = BAS
			}
		available = {
			OR = {
				has_opinion = {
					target = BAS
					value > 49
				}
				BAS= {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			BAS = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitartri = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = TRI
			}
		available = {
			OR = {
				has_opinion = {
					target = TRI
					value > 49
				}
				TRI = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			TRI = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarjam = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = JAM
			}
		available = {
			OR = {
				has_opinion = {
					target = JAM
					value > 49
				}
				JAM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			JAM = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitargya = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = GYA
			}
		available = {
			OR = {
				has_opinion = {
					target = GYA
					value > 49
				}
				GYA = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			GYA = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarsur = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = SUR
			}
		available = {
			OR = {
				has_opinion = {
					target = SUR
					value > 49
				}
				SUR = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			SUR = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}


    SPR_invitarcrc = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = CRC
			}
		available = {
			OR = {
				has_opinion = {
					target = CRC
					value > 49
				}
				CRC = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			CRC = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarcay = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = CAY
			}
		available = {
			OR = {
				has_opinion = {
					target = CAY
					value > 49
				}
				CAY = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 25
		complete_effect = {
			CAY = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}

    SPR_invitarblz = {
		icon = generic_political_discourse
		fire_only_once = yes
		days_remove = 1
		allowed = {
			original_tag = SPR
		}
		visible = {
			has_completed_focus = SPA_reassert_american_dominancetwo
				original_tag = SPR
			country_exists = BLZ
			}
		available = {
			OR = {
				has_opinion = {
					target = BLZ
					value > 49
				}
				BLZ = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
		}
		cost = 50
		complete_effect = {
			BLZ = {
				country_event = {
					id = lar_spain.2000
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}
}

SPR_establish_spanish_byzantium = {
    SPA_restore_byzantium = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 50

		available = {
			controls_state = 186
			controls_state = 185
			controls_state = 731
			controls_state = 184
			controls_state = 164
			controls_state = 183
			controls_state = 353
			controls_state = 350
			controls_state = 800
			controls_state = 352
			TUR = { all_core_state = { is_controlled_by = SPR } }
		}
		visible = {
			has_completed_focus = SPA_establish_spanish_byzantium
		}


        complete_effect = {
		custom_effect_tooltip = SPA_restore_byzantium_tt
		hidden_effect = {

          BYZ = {

			set_cosmetic_tag = BYZ
            set_state_owner = 186
            set_state_owner = 185
            set_state_owner = 731
			set_state_owner = 184
			set_state_owner = 164
			set_state_owner = 183
			set_state_owner = 353
			set_state_owner = 350
			set_state_owner = 800
			set_state_owner = 352
			set_state_owner = 341
			set_state_owner = 797
			set_state_owner = 347
			set_state_owner = 340
			set_state_owner = 339
			set_state_owner = 342
			set_state_owner = 345
			set_state_owner = 344
			set_state_owner = 799
			set_state_owner = 348
			set_state_owner = 349
			set_state_owner = 354
			set_state_owner = 355
			set_state_owner = 356
			set_state_owner = 798
			set_state_owner = 49
			set_state_owner = 343
			set_state_owner = 346

            set_state_controller = 186
            set_state_controller = 185
            set_state_controller = 731
			set_state_controller = 184
			set_state_controller = 164
			set_state_controller = 183
			set_state_controller = 353
			set_state_controller = 350
			set_state_controller = 800
			set_state_controller = 352
			set_state_controller = 341
			set_state_controller = 797
			set_state_controller = 347
			set_state_controller = 340
			set_state_controller = 339
			set_state_controller = 342
			set_state_controller = 345
			set_state_controller = 344
			set_state_controller = 799
			set_state_controller = 348
			set_state_controller = 349
			set_state_controller = 354
			set_state_controller = 355
			set_state_controller = 356
			set_state_controller = 798
			set_state_controller = 49
			set_state_controller = 343
			set_state_controller = 346			

			add_state_core = 186
			add_state_core = 185
			add_state_core = 731
			add_state_core = 184
			add_state_core = 164
			add_state_core = 183
			add_state_core = 353
			add_state_core = 350
			add_state_core = 800
			add_state_core = 352
			add_state_core = 341
			add_state_core = 797
			add_state_core = 347
			add_state_core = 340
			add_state_core = 339
			add_state_core = 342
			add_state_core = 345
			add_state_core = 344
			add_state_core = 799
			add_state_core = 348
			add_state_core = 349
			add_state_core = 354
			add_state_core = 355
			add_state_core = 356
			add_state_core = 798
			add_state_core = 49
			add_state_core = 343
			add_state_core = 346

			set_capital = {state = 797}
			set_province_name = { id = 9833 name = "Constantinople"}
				add_country_leader_role = {
					character = BYZ_Tom
					country_leader = {
						ideology = despotism
						traits = { the_director }
						expire = "1965.1.1"
					}
					promote_leader = yes 
				}
            } 
          BYZ = {
			set_capital = {state = 797}			
		  }

		}
            SPR = {
                set_autonomy = {
                target = BYZ
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_albania = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			805 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			44 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			934 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_albania_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 805
		set_state_owner = 44
		set_state_owner = 934

		set_state_controller = 805	
		set_state_controller = 44
		set_state_controller = 934

		add_state_core = 805	
		add_state_core = 44
		add_state_core = 934
		}
		}
		}

	}

	SPA_hand_over_bulgaria = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			211 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			801 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			212 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			48 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_bulgaria_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 211
		set_state_owner = 801
		set_state_owner = 212
		set_state_owner = 48

		set_state_controller = 211
		set_state_controller = 801
		set_state_controller = 212
		set_state_controller = 48

		add_state_core = 211	
		add_state_core = 801
		add_state_core = 212
		add_state_core = 48
		}
		}
		}

	}

	SPA_hand_over_crimea = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			137 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_crimea_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 137

		set_state_controller = 137

		add_state_core = 137	
	
		}
		}
		}

	}

	SPA_hand_over_mosul = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			676 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
			BYZ = {
			exists = yes
			}
            has_completed_focus = SPA_establish_spanish_byzantium
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_mosul_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 676

		set_state_controller = 676

		add_state_core = 676
	
		}
		}
		}

	}

	SPA_hand_over_lebanon = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			553 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_lebanon_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 553

		set_state_controller = 553

		add_state_core = 553
	
		}
		}
		}

	}

	SPA_hand_over_jerusalem = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			454 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_jerusalem_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 454

		set_state_controller = 454

		add_state_core = 454
	
		}
		}
		}

	}

	SPA_hand_over_transjordan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			455 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_transjordan_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 455

		set_state_controller = 455

		add_state_core = 455
	
		}
		}
		}

	}

	SPA_hand_over_tunisia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			665 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			458 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_tunisia_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 665
		set_state_owner = 458

		set_state_controller = 665
		set_state_controller = 458

		add_state_core = 665
		add_state_core = 458
	
		}
		}
		}

	}

	SPA_hand_over_libya = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			451 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			663 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			450 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			662 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			449 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			448 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			661 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}

        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_libya_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 451
		set_state_owner = 663
		set_state_owner = 450
		set_state_owner = 662
		set_state_owner = 449
		set_state_owner = 448
		set_state_owner = 661


		set_state_controller = 451
		set_state_controller = 663
		set_state_controller = 450
		set_state_controller = 662
		set_state_controller = 449
		set_state_controller = 448
		set_state_controller = 661


		add_state_core = 451
		add_state_core = 663
		add_state_core = 450
		add_state_core = 662
		add_state_core = 449
		add_state_core = 448
		add_state_core = 661
	
		}
		}
		}

	}

	SPA_hand_over_egypt = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			453 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			446 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			907 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			447 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			452 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			457 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			456 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_egypt_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 453
		set_state_owner = 446
		set_state_owner = 907
		set_state_owner = 447
		set_state_owner = 452
		set_state_owner = 457
		set_state_owner = 456

		set_state_controller = 453
		set_state_controller = 446
		set_state_controller = 907
		set_state_controller = 447
		set_state_controller = 452
		set_state_controller = 457
		set_state_controller = 456

		add_state_core = 453
		add_state_core = 446
		add_state_core = 907
		add_state_core = 447
		add_state_core = 452
		add_state_core = 457
		add_state_core = 456
	
		}
		}
		}

	}

	SPA_hand_over_algeria = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			460 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			459 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_algeria_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 460
		set_state_owner = 459

		set_state_controller = 460
		set_state_controller = 459

		add_state_core = 460
		add_state_core = 459
	
		}
		}
		}

	}

	SPA_hand_over_syria = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			680 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			677 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			554 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_syria_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 680
		set_state_owner = 677
		set_state_owner = 554

		set_state_controller = 680
		set_state_controller = 677
		set_state_controller = 554

		add_state_core = 680
		add_state_core = 677
		add_state_core = 554
	
		}
		}
		}

	}

	SPA_hand_over_romania = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			82 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			81 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			46 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			77 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			971 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			766 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_romania_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 82
		set_state_owner = 81
		set_state_owner = 46
		set_state_owner = 77
		set_state_owner = 971
		set_state_owner = 766

		set_state_controller = 82
		set_state_controller = 81
		set_state_controller = 46
		set_state_controller = 77
		set_state_controller = 971
		set_state_controller = 766

		add_state_core = 82
		add_state_core = 81
		add_state_core = 46
		add_state_core = 77
		add_state_core = 971
		add_state_core = 766
		}
		}
		}

	}

	SPA_hand_over_yugoslavia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			853 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			109 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			45 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			764 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			103 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			104 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			107 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			108 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			804 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			105 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			803 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			802 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			106 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			970 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
			163 = { OR = { is_controlled_by = SPR is_controlled_by = BYZ } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_byzantium
			BYZ = {
			exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_yugoslavia_tt
		hidden_effect = {		
		BYZ = {
		set_state_owner = 853
		set_state_owner = 109
		set_state_owner = 45
		set_state_owner = 764
		set_state_owner = 103
		set_state_owner = 104
		set_state_owner = 107
		set_state_owner = 108
		set_state_owner = 804
		set_state_owner = 105
		set_state_owner = 803
		set_state_owner = 802
		set_state_owner = 106
		set_state_owner = 970
		set_state_owner = 163

		set_state_controller = 853
		set_state_controller = 109
		set_state_controller = 45
		set_state_controller = 764
		set_state_controller = 103
		set_state_controller = 104
		set_state_controller = 107
		set_state_controller = 108
		set_state_controller = 804
		set_state_controller = 105
		set_state_controller = 803
		set_state_controller = 802
		set_state_controller = 106
		set_state_controller = 970
		set_state_controller = 163

		add_state_core = 853
		add_state_core = 109
		add_state_core = 45
		add_state_core = 764
		add_state_core = 103
		add_state_core = 104
		add_state_core = 107
		add_state_core = 108
		add_state_core = 804
		add_state_core = 105
		add_state_core = 803
		add_state_core = 802
		add_state_core = 106
		add_state_core = 970
		add_state_core = 163
		}
		}
		}

	}

}

SPA_category_subjects = {

    SPA_restore_athens = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 50
        available = {
            controls_state = 47  # Attica
            controls_state = 182 # Crete
            controls_state = 187 # Aegean Islands
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
        }
        complete_effect = {
			custom_effect_tooltip = SPR_formarathens
			hidden_effect = {
          ATH = {
            set_state_owner = 47
            set_state_owner = 182
            set_state_owner = 187
            set_cosmetic_tag = ATH
			set_state_controller = 47
			set_state_controller = 182
			set_state_controller = 187
			add_state_core = 47
			add_state_core = 182
			add_state_core = 187

			create_country_leader = {
				name = "Commissar Alfonso XIII"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "GFX_ATH_Alfonso_XIII"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }      

            SPR = {
                set_autonomy = {
                target = ATH
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}
        }
        ai_will_do = { factor = 1 }
    }

    SPA_restore_spanish_netherlands = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 50
        available = {
            controls_state = 8
            controls_state = 980
            controls_state = 34
            controls_state = 29
            controls_state = 6
            controls_state = 977
            controls_state = 35
            controls_state = 7
            controls_state = 36
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
        }

        complete_effect = {
			custom_effect_tooltip = SPR_formarnetherlands
			hidden_effect = {
          SNT = {
            set_state_owner = 8
            set_state_owner = 980
            set_state_owner = 34
            set_state_owner = 29
            set_state_owner = 6
            set_state_owner = 977
            set_state_owner = 35
            set_state_owner = 7
            set_state_owner = 36
			set_state_controller = 8
			set_state_controller = 980
			set_state_controller = 34
			set_state_controller = 29
			set_state_controller = 6
			set_state_controller = 977
			set_state_controller = 35
			set_state_controller = 7
			set_state_controller = 36
			add_state_core = 8
			add_state_core = 980
			add_state_core = 34
			add_state_core = 29
			add_state_core = 6
			add_state_core = 977
			add_state_core = 35
			add_state_core = 7
			add_state_core = 36
            set_cosmetic_tag = SNT

			create_country_leader = {
				name = "Commissar Juan de Borbón y Battenberg"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "car_juan.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }

			 SPR = {
                set_autonomy = {
                target = SNT
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}
            }      
        ai_will_do = { factor = 1 }
		}

    SPA_restore_naples = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
            controls_state = 1
            controls_state = 114
            controls_state = 115
            controls_state = 116
            controls_state = 156
            controls_state = 117
            controls_state = 849
			controls_state = 157
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
        }
        complete_effect = {
			custom_effect_tooltip = SPR_formarnaples
			hidden_effect = {
            NAP = {
            set_state_owner = 1
            set_state_owner = 114
            set_state_owner = 115
            set_state_owner = 116
            set_state_owner = 156
            set_state_owner = 117
            set_state_owner = 849
			set_state_owner = 157
			set_state_controller = 1
			set_state_controller = 114
			set_state_controller = 115
			set_state_controller = 116
			set_state_controller = 156
			set_state_controller = 117
			set_state_controller = 849
			set_state_controller = 157
			add_state_core = 157
			add_state_core = 1
			add_state_core = 114
			add_state_core = 115
			add_state_core = 116
			add_state_core = 156
			add_state_core = 117
			add_state_core = 849
            set_cosmetic_tag = NAP

			create_country_leader = {
				name = "Commissar Javier de Borbón-Parma"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "car_jaime.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = NAP
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}
        }
        ai_will_do = { factor = 1 }
    }

}


SPR_category_Viceroyalties = {
	SPR_formar_nueva_espana = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_bringback_viceroyalties
			OR = {
				MEX = { exists = yes }
				NIC = { exists = yes }
				HON = { exists = yes }
				ELS = { exists = yes }
				GUA = { exists = yes }
				COS = { exists = yes }
				CUB = { exists = yes }
				DOM = { exists = yes }
				HAI = { exists = yes }
			}
		}

		available = {
			MEX = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
	
			NIC = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}

			HON = {
			OR = {
			exists = no
			is_in_faction_with = SPR
			is_subject_of = SPR
				}
			}

			ELS = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}

			GUA = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}

			COS = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}

			CUB = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}

			DOM = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			HAI = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = VNS_SPR_tt
			hidden_effect = {
				
				VNS = {
					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Carlos Pío de Habsburgo-Borbón "
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "car_carlos.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_cosmetic_tag = VNS_SPR
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}

					# MEXICO
					every_state = {
						limit = {
							is_core_of = MEX
						}
						add_core_of = VNS
					}

					# GUATEMALA
					every_state = {
						limit = {
							is_core_of = GUA
						}
						add_core_of = VNS
					}

					# BELICE
					every_state = {
						limit = {
							is_core_of = BLZ
						}
						add_core_of = VNS
					}

					# EL SALVADOR
					every_state = {
						limit = {
							is_core_of = ELS
						}
						add_core_of = VNS
					}

					# HONDURAS
					every_state = {
						limit = {
							is_core_of = HON
						}
						add_core_of = VNS
					}

					# NICARAGUA
					every_state = {
						limit = {
							is_core_of = NIC
						}
						add_core_of = VNS
					}

					# COSTA RICA
					every_state = {
						limit = {
							is_core_of = COS
						}
						add_core_of = VNS
					}

					# CUBA
					every_state = {
						limit = {
							is_core_of = CUB
						}
						add_core_of = VNS
					}

					# HAITI
					every_state = {
						limit = {
							is_core_of = HAI
						}
						add_core_of = VNS
					}

					# DOMINICAN REPUBLIC
					every_state = {
						limit = {
							is_core_of = DOM
						}
						add_core_of = VNS
					}

					# JAMAICA
					every_state = {
						limit = {
							is_core_of = JAM
						}
						add_core_of = VNS
					}

					# HAWAII
					every_state = {
						limit = {
							is_core_of = HAW
						}
						add_core_of = VNS
					}

					# PUERTO RICO
					every_state = {
						limit = {
							is_core_of = PUE
						}
						add_core_of = VNS
					}

					# BAHAMAS
					every_state = {
						limit = {
							is_core_of = BAH
						}
						add_core_of = VNS
					}

					# PHILIPPINES
					every_state = {
						limit = {
							is_core_of = PHI
						}
						add_core_of = VNS
					}

					# GUADELOUPE
					every_state = {
						limit = {
							is_core_of = GDL
						}
						add_core_of = VNS
					}
					
					# BRITISH ANTILLES
					every_state = {
						limit = {
							is_core_of = BAS
						}
						add_core_of = VNS
					}

					# BERMUDA
					add_state_core = 696
				
					# ANNEX MEXICO
					annex_country= {
						target = MEX
						transfer_troops = yes
						}

					# ANNEX GUATEMALA
					annex_country= {
						target = GUA
						transfer_troops = yes
						}

					# ANNEX BELICE
					if = {
					limit = {
					BLZ = {
						is_subject_of = SPR
					}
					}

					annex_country= {
						target = BLZ
						transfer_troops = yes
						}
					}

					# ANNEX HONDURAS
					annex_country= {
						target = HON
						transfer_troops = yes
						}

					# ANNEX EL SALVADOR
					annex_country= {
						target = ELS
						transfer_troops = yes
						}
					
					# ANNEX NICARAGUA
					annex_country= {
						target = NIC
						transfer_troops = yes
						}

					# ANNEX COSTA RICA
					annex_country= {
						target = COS
						transfer_troops = yes
						}

					# ANNEX CUBA
					annex_country= {
						target = CUB
						transfer_troops = yes
						}

					# ANNEX HAITI
					annex_country= {
						target = HAI
						transfer_troops = yes
						}

					# ANNEX DOMINICAN REPUBLIC
					annex_country= {
						target = DOM
						transfer_troops = yes
						}

					# ANNEX JAMAICA
					if = {
					limit = {
					JAM = {
						is_subject_of = SPR
					}
					}

					annex_country= {
						target = JAM
						transfer_troops = yes
						}
					}

					# ANNEX BAHAMAS
					if = {
					limit {
					BAH = {
						is_subject_of = SPR
					}
					}
				
					annex_country= {
						target = BAH
						transfer_troops = yes
						}
					}

					# ANNEX PUERTO RICO
					if = {
					limit = {
					PUE = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = PUE
						transfer_troops = yes
						}
					}

					# ANNEX GUADELUPE
					if = {
					limit = {
					GDL = {
						is_subject_of = SPR
					}
					}

					annex_country= {
						target = GDL
						transfer_troops = yes
						}
					}

					# ANNEX BRITISH ANTILLES
					if = {
					limit = {
					BAS = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = BAS
						transfer_troops = yes
						}
					}

				}
           		SPR = {
                	set_autonomy = {
                	target = VNS
                	autonomous_state = autonomy_reichsprotectorate
                	end_wars = no
                	end_civil_wars = no
                	}
           	 	}
			}
		}
	}

	SPR_formar_nueva_granada = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_bringback_viceroyalties
			OR = {
				PAN = { exists = yes }
				COL = { exists = yes }
				VEN = { exists = yes }
				ECU = { exists = yes }
				PRU = { exists = yes }

			}
		}

		available = {
			COL = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			VEN = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			ECU = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			PAN = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			PRU = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SPR_formarnuevagra
			hidden_effect = {
				VNG = {
					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Gonzalo Queipo de Llano y Sierra"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "SPR_Queipo_de_Llano_y_sierra.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_cosmetic_tag = VNG_SPR
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}

					# CORE COLOMBIA
					every_state = {
						limit = {
							is_core_of = COL
						}
						add_core_of = VNG
					}

					# CORE PANAMA & PANAMA CANAL
					every_state = {
						limit = {
							is_core_of = PAN
						}
						add_core_of = VNG
					}

					# CORE VENEZUELA
					every_state = {
						limit = {
							is_core_of = VEN
						}
						add_core_of = VNG
					}

					# CORE ECUADOR
					every_state = {
						limit = {
							is_core_of = ECU
						}
						add_core_of = VNG
					}

					# CORE GUYANA
					every_state = {
						limit = {
							is_core_of = GYA
						}
						add_core_of = VNG
					}

					# CORE PERU
					add_state_core = 491

					# CORE CURAÇAO
					every_state = {
						limit = {
							is_core_of = CRC
						}
						add_core_of = VNG
					}

					# CORE TRINIDAD
					every_state = {
						limit = {
							is_core_of = TRI
						}
						add_core_of = VNG
					}

					# CORE SURINAME
					every_state = {
						limit = {
							is_core_of = SUR
						}
						add_core_of = VNG
					}

					# CORE FRENCH GUIANE
					every_state = {
						limit = {
							is_core_of = CAY
						}
						add_core_of = VNG
					}

					# ANNEX COLOMBIA
					annex_country= {
						target = COL
						transfer_troops = yes
						}

					# ANNEX PANAMA
					annex_country= {
						target = PAN
						transfer_troops = yes
						}

					# ANNEX VENEZUELA
					annex_country= {
						target = VEN
						transfer_troops = yes
						}

					# ANNEX PERUVIAN JUNGLE
					set_state_owner = 491
					set_state_controller = 491

					# ANNEX ECUADOR
					annex_country= {
						target = ECU
						transfer_troops = yes
						}

					# ANNEX GUYANA
					if = {
					limit = {
					GYA = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = GYA
						transfer_troops = yes
						}
					}

					# ANNEX SURINAME
					if = {
					limit = {
					SUR = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = SUR
						transfer_troops = yes
						}
					}

					# ANNEX FRENCH GUIANA
					if = {
					limit = {
					CAY = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = CAY
						transfer_troops = yes
						}
					}

					# ANNEX TRINIDAD AND TOBAGO
					if = {
					limit = {
					TRI = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = TRI
						transfer_troops = yes
						}
					}

					# ANNEX CURASAO
					if = {
					limit = {
					CRC = {
						is_subject_of = SPR
					}
					}
					annex_country= {
						target = CRC
						transfer_troops = yes
						}
					}

				}
          	 	SPR = {
                	set_autonomy = {
                	target = VNG
                	autonomous_state = autonomy_reichsprotectorate
                	end_wars = no
                	end_civil_wars = no
                	}
            	}
			}
		}
	}

	SPR_formar_peru = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_bringback_viceroyalties
			OR = {
				PRU = { exists = yes }
				BRA = { exists = yes }
				BOL = { exists = yes }
				CHL = { exists = yes }

			}
		}

		available = {
			PRU = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			BRA = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			BOL = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			CHL = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SPR_formarperu
			hidden_effect = {
				VPE = {
					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Francisco Franco"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "car_paco.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_cosmetic_tag = VPE_SPR
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}

				# CORE PERU
				add_state_core = 303
				add_state_core = 494
				add_state_core = 492
				add_state_core = 947

				# CORE BOLIVIA
				add_state_core = 487
				add_state_core = 302		

				# CORE CHILE
				add_state_core = 951
				add_state_core = 506
				add_state_core = 279
				add_state_core = 950
				
				# CORE BRASILIAN JUNGLE
				add_state_core = 940

				# ANNEX PERU
				annex_country= {
					target = PRU
					transfer_troops = yes
				}

				# ANNEX BOLIVIA
				annex_country= {
					target = BOL
					transfer_troops = yes
				}

				# ANNEX CHILE
				set_state_controller = 951
				set_state_owner = 951
				set_state_controller = 506
				set_state_owner = 506
				set_state_controller = 279
				set_state_owner = 279
				set_state_controller = 950
				set_state_owner = 950

				# ANNEX BRASILIAN JUNGLE
				set_state_controller = 940
				set_state_owner = 940
				
				}
           		SPR = {
                	set_autonomy = {
                	target = VPE
                	autonomous_state = autonomy_reichsprotectorate
                	end_wars = no
                	end_civil_wars = no
                }
            }
			}
		}
		}

	SPR_formar_plata = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_bringback_viceroyalties
			OR = {
				PAR = { exists = yes }
				URG = { exists = yes }
				ARG = { exists = yes }
				CHL = { exists = yes }

			}
		}

		available = {
			PAR = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			URG = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			ARG = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
			CHL = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SPR_formarplata
			hidden_effect = {
			
			VRP = {
					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Emilio Mola"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "SPR_Emilio_Mola.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_cosmetic_tag = VRP_SPR
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}

				# CORE CHILE
				add_state_core = 952
				add_state_core = 949
				add_state_core = 507
				add_state_core = 948
				add_state_core = 270
				
				# CORE ARGENTINA
				every_state = {
					limit = {
						is_core_of = ARG
					}
					add_core_of = VRP
				}
				add_state_core = 299
				add_state_core = 720

				# CORE PARAGUAY
				every_state = {
					limit = {
						is_core_of = PAR
					}
					add_core_of = VRP
				}

				# CORE URUGUAY
				every_state = {
					limit = {
						is_core_of = URG
					}
					add_core_of = VRP
				}

				# ANNEX CHILE
				annex_country= {
					target = CHL
					transfer_troops = yes
				}

				# ANNEX ARGENTINA
				annex_country= {
					target = ARG
					transfer_troops = yes
				}

				# ANNEX PARAGUAY
				annex_country= {
					target = PAR
					transfer_troops = yes
				}

				# ANNEX URUGUAY
				annex_country= {
					target = URG
					transfer_troops = yes
				}

			}
			SPR = {
                set_autonomy = {
                target = VRP
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
				}
			}
			}


	SPR_formar_brasil = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_bringback_viceroyalties
			OR = {
				BRA = { exists = yes }

			}
		}

		available = {
			BRA = {
				OR = {
				exists = no
				is_in_faction_with = SPR
				is_subject_of = SPR
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SPR_VBR_tt
			hidden_effect = {
				VBR = {

					# CORE BRASIL
					add_state_core = 939
					add_state_core = 961
					add_state_core = 962
					add_state_core = 963
					add_state_core = 964
					add_state_core = 965
					add_state_core = 966
					add_state_core = 967
					add_state_core = 968
					add_state_core = 495
					add_state_core = 499
					add_state_core = 935
					add_state_core = 943
					add_state_core = 505
					add_state_core = 942
					add_state_core = 280
					add_state_core = 496
					add_state_core = 938
					add_state_core = 944
					add_state_core = 936
					add_state_core = 937
					add_state_core = 504
					add_state_core = 969
					add_state_core = 500
					add_state_core = 498
					add_state_core = 502
					add_state_core = 503
					add_state_core = 501
					add_state_core = 941
					add_state_core = 497

					# ANNEX BRASIL
					annex_country= {
						target = BRA
						transfer_troops = yes
					}

					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Juan Yague"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "spr_Juan_yague.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_cosmetic_tag = VBR_SPR
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
				}

           		SPR = {
                	set_autonomy = {
                	target = VBR
                	autonomous_state = autonomy_reichsprotectorate
                	end_wars = no
                	end_civil_wars = no
                }
            }
			}
			}
		}

	SPR_formar_america = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_viceroyalty_new_america
		}

		available = {
			OR = {
			SPR = {
			controls_state = 365
			controls_state = 364
			controls_state = 368
			controls_state = 369
			controls_state = 363
			controls_state = 362
			controls_state = 395
			controls_state = 394
			controls_state = 393
			controls_state = 396
			controls_state = 261
			controls_state = 816
			controls_state = 361
			controls_state = 360
			controls_state = 359
			controls_state = 358
			controls_state = 357
			}

			AND = {
			USA = {
				USA = {
				is_subject_of = SPR
				}
			controls_state = 365
			controls_state = 364
			controls_state = 368
			controls_state = 369
			controls_state = 363
			controls_state = 362
			controls_state = 395
			controls_state = 394
			controls_state = 393
			controls_state = 396
			controls_state = 261
			controls_state = 816
			controls_state = 361
			controls_state = 360
			controls_state = 359
			controls_state = 358
			controls_state = 357
			}
			}

			}
		}

		complete_effect = {
			hidden_effect = {
				VNA = {
					set_cosmetic_tag = VNA
					add_state_core = 365
					add_state_core = 364
					add_state_core = 368
					add_state_core = 369
					add_state_core = 363
					add_state_core = 362
					add_state_core = 395
					add_state_core = 394
					add_state_core = 393
					add_state_core = 396
					add_state_core = 261
					add_state_core = 816
					add_state_core = 361
					add_state_core = 360
					add_state_core = 359
					add_state_core = 358
					add_state_core = 357

					set_state_owner = 365
					set_state_owner = 364
					set_state_owner = 368
					set_state_owner = 369
					set_state_owner = 363
					set_state_owner = 362
					set_state_owner = 395
					set_state_owner = 394
					set_state_owner = 393
					set_state_owner = 396
					set_state_owner = 261
					set_state_owner = 816
					set_state_owner = 361
					set_state_owner = 360
					set_state_owner = 359
					set_state_owner = 358
					set_state_owner = 357

					set_state_controller = 365
					set_state_controller = 364
					set_state_controller = 368
					set_state_controller = 369
					set_state_controller = 363
					set_state_controller = 362
					set_state_controller = 395
					set_state_controller = 394
					set_state_controller = 393
					set_state_controller = 396
					set_state_controller = 261
					set_state_controller = 816
					set_state_controller = 361
					set_state_controller = 360
					set_state_controller = 359
					set_state_controller = 358
					set_state_controller = 357

					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Agustin Muñoz Grandes"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "portrait_spa_augustin_muynoz_grandes.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
				}

           		SPR = {
                	set_autonomy = {
                	target = VNA
                	autonomous_state = autonomy_reichsprotectorate
                	end_wars = no
                	end_civil_wars = no
                }
            }
			}
			}
		}
	SPR_formar_norteamerica = {

		icon = generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SPR
		}

		visible = {
			has_completed_focus = SPA_viceroyalty_northern_america
		}

		available = {
			OR = {
			SPR = {
			controls_state = 470
			controls_state = 473
			controls_state = 860
			controls_state = 866
			controls_state = 739
			controls_state = 467
			controls_state = 863
			controls_state = 465
			controls_state = 466
			controls_state = 867
			controls_state = 682
			controls_state = 865
			controls_state = 472
			controls_state = 464
			controls_state = 683
			controls_state = 862
			controls_state = 861
			controls_state = 468
			controls_state = 469
			controls_state = 276
			controls_state = 471
			controls_state = 740
			controls_state = 864
			controls_state = 463
			controls_state = 331
			controls_state = 332
			controls_state = 730
			}

			AND = {
			CAN = {
				CAN = {
				is_subject_of = SPR
				}
			controls_state = 470
			controls_state = 473
			controls_state = 860
			controls_state = 866
			controls_state = 739
			controls_state = 467
			controls_state = 863
			controls_state = 465
			controls_state = 466
			controls_state = 867
			controls_state = 682
			controls_state = 865
			controls_state = 472
			controls_state = 464
			controls_state = 683
			controls_state = 862
			controls_state = 861
			controls_state = 468
			controls_state = 469
			controls_state = 276
			controls_state = 471
			controls_state = 740
			controls_state = 864
			controls_state = 463
			controls_state = 331
			controls_state = 332
			controls_state = 730
			}
			}

			}
		}

		complete_effect = {
			custom_effect_tooltip = VNC
			hidden_effect = {
				VNC = {
					set_cosmetic_tag = VNC
					add_state_core = 470
					add_state_core = 473
					add_state_core = 860
					add_state_core = 866
					add_state_core = 739
					add_state_core = 467
					add_state_core = 863
					add_state_core = 465
					add_state_core = 466
					add_state_core = 867
					add_state_core = 682
					add_state_core = 865
					add_state_core = 472
					add_state_core = 464
					add_state_core = 683
					add_state_core = 862
					add_state_core = 861
					add_state_core = 468
					add_state_core = 469
					add_state_core = 276
					add_state_core = 471
					add_state_core = 740
					add_state_core = 864
					add_state_core = 463
					add_state_core = 332
					add_state_core = 331
					add_state_core = 730

					set_state_owner = 470
					set_state_owner = 473
					set_state_owner = 860
					set_state_owner = 866
					set_state_owner = 739
					set_state_owner = 467
					set_state_owner = 863
					set_state_owner = 465
					set_state_owner = 466
					set_state_owner = 867
					set_state_owner = 682
					set_state_owner = 865
					set_state_owner = 472
					set_state_owner = 464
					set_state_owner = 683
					set_state_owner = 862
					set_state_owner = 861
					set_state_owner = 468
					set_state_owner = 469
					set_state_owner = 276
					set_state_owner = 471
					set_state_owner = 740
					set_state_owner = 864
					set_state_owner = 463
					set_state_owner = 331
					set_state_owner = 332
					set_state_owner = 730

					set_state_controller = 470
					set_state_controller = 473
					set_state_controller = 860
					set_state_controller = 866
					set_state_controller = 739
					set_state_controller = 467
					set_state_controller = 863
					set_state_controller = 465
					set_state_controller = 466
					set_state_controller = 867
					set_state_controller = 682
					set_state_controller = 865
					set_state_controller = 472
					set_state_controller = 464
					set_state_controller = 683
					set_state_controller = 862
					set_state_controller = 861
					set_state_controller = 468
					set_state_controller = 469
					set_state_controller = 276
					set_state_controller = 471
					set_state_controller = 740
					set_state_controller = 864
					set_state_controller = 463
					set_state_controller = 331
					set_state_controller = 332
					set_state_controller = 730

					add_popularity = {
						ideology = fascism
						popularity = 0.9
					}
					create_country_leader = {
						name = "Commissar Luis Carrero Blanco"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "portrait_spa_luis_carrero_blanco.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
					}
					set_cosmetic_tag = VNC
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
				}

           		SPR = {
                	set_autonomy = {
                	target = VNC
                	autonomous_state = autonomy_reichsprotectorate
                	end_wars = no
                	end_civil_wars = no
                }
            }
			}
			}
		}


}

SPR_the_inevitable_civil_war = {	

 	SPA_expand_influence_in_the_ceuta_garrison = {

		icon = {
			key = spa_garrison_control_none
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1018 = { check_variable = { var = SPA_garrison_control value = 1 compare = equals } }
			}
		}
		icon = {
			key = spa_garrison_control_weak
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1018 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spa_garrison_control_weak2
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1018 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spa_garrison_control_strong
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1018 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spa_garrison_control_strong2
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1018 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spa_garrison_control_total
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1018 = { check_variable = { var = SPA_garrison_control value = 4 compare = greater_than_or_equals } }
			}
		}
		icon = {
			key = spr_garrison_control_none
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1018 = { check_variable = { var = SPA_garrison_control value = 1 compare = equals } }
			}
		}
		icon = {
			key = spr_garrison_control_weak
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1018 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spr_garrison_control_weak2
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1018 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spr_garrison_control_strong
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1018 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spr_garrison_control_strong2
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1018 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spr_garrison_control_total
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1018 = { check_variable = { var = SPA_garrison_control value = 4 compare = greater_than_or_equals } }
			}
		}

		available = {
			has_full_control_of_state = 1018
			if = {
				limit = {
					has_completed_focus = SPA_a_great_spain
				}
				custom_trigger_tooltip = {
					tooltip = SPA_expand_influence_nationalists_trigger_tt
					1018 = { check_variable = { var = SPA_garrison_control value = 4 compare = less_than } }
				}
			}
			if = {
				limit = {
					has_completed_focus = SPR_the_popular_front
				}
				custom_trigger_tooltip = {
					tooltip = SPR_expand_influence_republicans_trigger_tt
					1018 = { check_variable = { var = SPA_garrison_control value = 2 compare = greater_than_or_equals } }
				}
			}
			NOT = {
				has_country_flag = SPA_already_expanding_influence_flag
			}
		}

		highlight_states = {
 highlight_state_targets = { state = 1018 } 
}

		on_map_mode = map_only

		cost = 1018.SPA_garrison_control_cost?10

		fire_only_once = no

		days_remove = 14

		visible = {
			NOT = { has_global_flag = spanish_civil_war }
			has_country_flag = SPR_spanish_elections_flag
		}

		cancel_if_not_visible = yes

		complete_effect = {
			set_country_flag = SPA_already_expanding_influence_flag
		}

		remove_effect = {
			if = {
				limit = {
					has_completed_focus = SPA_a_great_spain
				}
				1018 = {
					custom_effect_tooltip = SPA_expand_influence_nationalists_tt
					hidden_effect = {
						if = {
							limit = { check_variable = { SPA_garrison_control < 4 } }
							
							add_to_variable = { var = SPA_garrison_control value = 1 }
							SPR = { add_to_variable = { var = spa_civil_war_divisions_counter_var value = 1 } }
							SPR = { subtract_from_variable = { var = spr_civil_war_divisions_counter_var value = 1 } }
						}
					}
					SPA_garrison_control_tooltip = yes
					SPA_garrison_control_cost_calculation = yes
				}
			}
			if = {
				limit = {
					has_completed_focus = SPR_the_popular_front
				}
				1018 = {
					custom_effect_tooltip = SPR_expand_influence_republicans_tt
					hidden_effect = {
						subtract_from_variable = { var = SPA_garrison_control value = 1 }
						SPR = { subtract_from_variable = { var = spa_civil_war_divisions_counter_var value = 1 } }
						SPR = { add_to_variable = { var = spr_civil_war_divisions_counter_var value = 1 } }
					}
					SPA_garrison_control_tooltip = yes
					SPR_garrison_control_cost_calculation = yes
				}
			}
			clr_country_flag = SPA_already_expanding_influence_flag
		}

		ai_will_do = {
			base = 110
			modifier = {
				1018 = { has_state_flag = SPR_recently_expanded_influence_flag }
				factor = 10
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				NOT = { has_completed_focus = SPA_secure_the_northern_garrisons }
				factor = 0
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				1018 = { check_variable = { var = SPA_garrison_control value = 2 compare = greater_than_or_equals } }
				factor = 5
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				1018 = { check_variable = { var = SPA_garrison_control value = 3 compare = greater_than_or_equals } }
				factor = 5
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				is_historical_focus_on = yes
				factor = 10
			}
		}
	}

 	SPA_expand_influence_in_the_melilla_garrison = {

		icon = {
			key = spa_garrison_control_none
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1019 = { check_variable = { var = SPA_garrison_control value = 1 compare = equals } }
			}
		}
		icon = {
			key = spa_garrison_control_weak
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1019 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spa_garrison_control_weak2
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1019 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spa_garrison_control_strong
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1019 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spa_garrison_control_strong2
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1019 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spa_garrison_control_total
			trigger = {
				has_completed_focus = SPA_a_great_spain
				1019 = { check_variable = { var = SPA_garrison_control value = 4 compare = greater_than_or_equals } }
			}
		}
		icon = {
			key = spr_garrison_control_none
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1019 = { check_variable = { var = SPA_garrison_control value = 1 compare = equals } }
			}
		}
		icon = {
			key = spr_garrison_control_weak
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1019 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spr_garrison_control_weak2
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1019 = {
					check_variable = { var = SPA_garrison_control value = 2 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spr_garrison_control_strong
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1019 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					NOT = { has_state_flag = SPA_northern_garrisons_state_flag }
				}
			}
		}
		icon = {
			key = spr_garrison_control_strong2
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1019 = {
					check_variable = { var = SPA_garrison_control value = 3 compare = equals }
					has_state_flag = SPA_northern_garrisons_state_flag
				}
			}
		}
		icon = {
			key = spr_garrison_control_total
			trigger = {
				has_completed_focus = SPR_the_popular_front
				1019 = { check_variable = { var = SPA_garrison_control value = 4 compare = greater_than_or_equals } }
			}
		}

		available = {
			has_full_control_of_state = 1019
			if = {
				limit = {
					has_completed_focus = SPA_a_great_spain
				}
				custom_trigger_tooltip = {
					tooltip = SPA_expand_influence_nationalists_trigger_tt
					1019 = { check_variable = { var = SPA_garrison_control value = 4 compare = less_than } }
				}
			}
			if = {
				limit = {
					has_completed_focus = SPR_the_popular_front
				}
				custom_trigger_tooltip = {
					tooltip = SPR_expand_influence_republicans_trigger_tt
					1019 = { check_variable = { var = SPA_garrison_control value = 2 compare = greater_than_or_equals } }
				}
			}
			NOT = {
				has_country_flag = SPA_already_expanding_influence_flag
			}
		}

		highlight_states = {
 highlight_state_targets = { state = 1019 } 
}

		on_map_mode = map_only

		cost = 1019.SPA_garrison_control_cost?10

		fire_only_once = no

		days_remove = 14

		visible = {
			NOT = { has_global_flag = spanish_civil_war }
			has_country_flag = SPR_spanish_elections_flag
		}

		cancel_if_not_visible = yes

		complete_effect = {
			set_country_flag = SPA_already_expanding_influence_flag
		}

		remove_effect = {
			if = {
				limit = {
					has_completed_focus = SPA_a_great_spain
				}
				1019 = {
					custom_effect_tooltip = SPA_expand_influence_nationalists_tt
					hidden_effect = {
						if = {
							limit = { check_variable = { SPA_garrison_control < 4 } }
							
							add_to_variable = { var = SPA_garrison_control value = 1 }
							SPR = { add_to_variable = { var = spa_civil_war_divisions_counter_var value = 1 } }
							SPR = { subtract_from_variable = { var = spr_civil_war_divisions_counter_var value = 1 } }
						}
					}
					SPA_garrison_control_tooltip = yes
					SPA_garrison_control_cost_calculation = yes
				}
			}
			if = {
				limit = {
					has_completed_focus = SPR_the_popular_front
				}
				1019 = {
					custom_effect_tooltip = SPR_expand_influence_republicans_tt
					hidden_effect = {
						subtract_from_variable = { var = SPA_garrison_control value = 1 }
						SPR = { subtract_from_variable = { var = spa_civil_war_divisions_counter_var value = 1 } }
						SPR = { add_to_variable = { var = spr_civil_war_divisions_counter_var value = 1 } }
					}
					SPA_garrison_control_tooltip = yes
					SPR_garrison_control_cost_calculation = yes
				}
			}
			clr_country_flag = SPA_already_expanding_influence_flag
		}

		ai_will_do = {
			base = 110
			modifier = {
				1019 = { has_state_flag = SPR_recently_expanded_influence_flag }
				factor = 10
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				NOT = { has_completed_focus = SPA_secure_the_northern_garrisons }
				factor = 0
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				1019 = { check_variable = { var = SPA_garrison_control value = 2 compare = greater_than_or_equals } }
				factor = 5
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				1019 = { check_variable = { var = SPA_garrison_control value = 3 compare = greater_than_or_equals } }
				factor = 5
			}
			modifier = {
				has_completed_focus = SPA_a_great_spain
				is_historical_focus_on = yes
				factor = 10
			}
		}
	}

}

SPR_establish_spanish_france = {
    SPA_spanish_france = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		FRA = { all_core_state = { is_controlled_by = SPR } }
        }
        visible = {
            has_completed_focus = SPA_reclaim_spanish_africa
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_france_tt

			hidden_effect = {
            FCF = {
            set_state_owner = 16
            set_state_owner = 31
            set_state_owner = 22
            set_state_owner = 19
            set_state_owner = 26
            set_state_owner = 24
            set_state_owner = 25
			set_state_owner = 23
			set_state_owner = 15
			set_state_owner = 33
			set_state_owner = 30
			set_state_owner = 14
			set_state_owner = 785

			set_state_controller = 16
			set_state_controller = 31
			set_state_controller = 22
			set_state_controller = 19
			set_state_controller = 26
			set_state_controller = 24
			set_state_controller = 25
			set_state_controller = 23
			set_state_controller = 15
			set_state_controller = 33
			set_state_controller = 30
			set_state_controller = 14
			set_state_controller = 785

			add_state_core = 16
			add_state_core = 31
			add_state_core = 22
			add_state_core = 19
			add_state_core = 26
			add_state_core = 24
			add_state_core = 25
			add_state_core = 23
			add_state_core = 15
			add_state_core = 33
			add_state_core = 30
			add_state_core = 14
			add_state_core = 785
            set_cosmetic_tag = FCF

			create_country_leader = {
				name = "Commissar Carlos Asensio Cabanillas"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCF_carlos_asensio_cabanillas.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCF
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

}

SPR_establish_spanish_indonesia = {
    SPA_spanish_indonesia = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		INS = { all_core_state = { is_controlled_by = SPR } }
        }
        visible = {
            has_completed_focus = SPA_recover_the_Benelux
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_indonesia_tt
			hidden_effect = {
				FCI = {
				set_state_owner = 335
				set_state_owner = 738
				set_state_owner = 334
				set_state_owner = 667
				set_state_owner = 673
				set_state_owner = 672
				set_state_owner = 668
				set_state_owner = 669

				set_state_controller = 335
				set_state_controller = 738
				set_state_controller = 334
				set_state_controller = 667
				set_state_controller = 673
				set_state_controller = 672
				set_state_controller = 668
				set_state_controller = 669

				set_cosmetic_tag = FCI
				}
            FCI = {
			every_state = {
				limit = {
					is_core_of = INS
				}
				add_core_of = FCI
				
			}

            

			create_country_leader = {
				name = "Commissar Valentín Galarza Morante"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCI_valentín_galarza_morante.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
			
            SPR = {
                set_autonomy = {
                target = FCI
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
			}
            }
		

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_portuguese_timor = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			721 = { OR = { is_controlled_by = SPR is_controlled_by = FCI } }
        }
        visible = {
            has_completed_focus = SPA_recover_the_Benelux
			FCI = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_portuguese_timor_tt
		hidden_effect = {		
		FCI = {
		set_state_owner = 721

		set_state_controller = 721	

		add_state_core = 721

		}
		}
		}

	}

	SPA_hand_over_malaysia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		MAL = {
		all_core_state = {
		is_controlled_by = SPR
		}
		}
		MAL = {
		all_core_state = {
		is_controlled_by = FCI
		}
		}
		}
        }
        visible = {
            has_completed_focus = SPA_recover_the_Benelux
			FCI = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_malaysia_tt	
		hidden_effect = {
		FCI = {
			every_state = {
				limit = {
					is_core_of = MAL
				}
				add_core_of = FCI
				
			}

		}
		FCI = {
		set_state_owner = 333
		set_state_owner = 336

		set_state_controller = 333
		set_state_controller = 336
		}
		}
		}

	}

	SPA_hand_over_siam = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		SIA = {
		all_core_state = {
		is_controlled_by = SPR
		}
		}
		SIA = {
		all_core_state = {
		is_controlled_by = FCI
		}
		}
		}
        }
        visible = {
            has_completed_focus = SPA_recover_the_Benelux
			FCI = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_siam_tt	
		hidden_effect = {
		FCI = {
			every_state = {
				limit = {
					is_core_of = SIA
				}
				add_core_of = FCI
				
			}

		}
		FCI = {
		set_state_owner = 724
		set_state_owner = 289
		set_state_owner = 868
		set_state_owner = 869

		set_state_controller = 724
		set_state_controller = 289
		set_state_controller = 868
		set_state_controller = 869
		}
		}
		}

	}

	SPA_hand_over_papua_new_guinea = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		PNG = {
		all_core_state = {
		is_controlled_by = SPR
		}
		}
		PNG = {
		all_core_state = {
		is_controlled_by = FCI
		}
		}
		}
        }
        visible = {
            has_completed_focus = SPA_recover_the_Benelux
			FCI = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_papua_new_guinea_tt	
		hidden_effect = {
		FCI = {
			every_state = {
				limit = {
					is_core_of = PNG
				}
				add_core_of = FCI
				
			}

		}
		FCI = {
		set_state_owner = 523
		set_state_owner = 979
		set_state_owner = 737

		set_state_controller = 523
		set_state_controller = 979
		set_state_controller = 737
		}
		}
		}

	}

	SPA_hand_over_solomon_islands = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		SOL = {
		all_core_state = {
		is_controlled_by = SPR
		}
		}
		SOL = {
		all_core_state = {
		is_controlled_by = FCI
		}
		}
		}
        }
        visible = {
            has_completed_focus = SPA_recover_the_Benelux
			FCI = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_solomon_islands_tt
		hidden_effect = {
		FCI = {
			every_state = {
				limit = {
					is_core_of = SOL
				}
				add_core_of = FCI
				
			}

		}
		FCI = {
		set_state_owner = 634

		set_state_controller = 634
		}
		}
		}

	}

}

SPR_establish_spanish_africa = {
    SPA_spanish_africa = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		297 = {
		is_controlled_by = SPR
		}
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_africa_tt
			hidden_effect = {
            FCA = {
            set_state_owner = 297

			set_state_controller = 297

			add_state_core = 297

            set_cosmetic_tag = FCA

			create_country_leader = {
				name = "Commissar Mohamed Meziane"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCA_mohamed.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCA
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_gabon = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		GAB = {
		all_core_state = {
		is_controlled_by = SPR
		}
		}
		GAB = {
		all_core_state = {
		is_controlled_by = FCA
		}
		}
		}
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_gabon_tt	
		hidden_effect = {
		FCA = {
			every_state = {
				limit = {
					is_core_of = GAB
				}
				add_core_of = FCA
				
			}

		}
		FCA = {
		set_state_owner = 539

		set_state_controller = 539
		}
		}
		}

	}

	SPA_hand_over_nigeria = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		558 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		900 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		901 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		902 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_nigeria_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 558
		add_state_core = 900
		add_state_core = 901
		add_state_core = 902

		set_state_owner = 558
		set_state_owner = 900
		set_state_owner = 901
		set_state_owner = 902

		set_state_controller = 558
		set_state_controller = 900
		set_state_controller = 901
		set_state_controller = 902

		}
		}
		}

	}

	SPA_hand_over_mauritania = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		557 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		786 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_mauritania_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 557
		add_state_core = 786

		set_state_owner = 557
		set_state_owner = 786

		set_state_controller = 557
		set_state_controller = 786

		}
		}
		}

	}

	SPA_hand_over_mali = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		782 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		898 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		556 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		899 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_mali_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 782
		add_state_core = 898
		add_state_core = 556
		add_state_core = 899

		set_state_owner = 782
		set_state_owner = 898
		set_state_owner = 556
		set_state_owner = 899

		set_state_controller = 782
		set_state_controller = 898
		set_state_controller = 556
		set_state_controller = 899

		}
		}
		}

	}

	SPA_hand_over_upper_volta = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		778 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_upper_volta_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 778

		set_state_owner = 778

		set_state_controller = 778

		}
		}
		}

	}

	SPA_hand_over_senegal = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		272 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_senegal_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 272

		set_state_owner = 272

		set_state_controller = 272

		}
		}
		}

	}

	SPA_hand_over_gambia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		701 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_gambia_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 701

		set_state_owner = 701

		set_state_controller = 701

		}
		}
		}

	}

	SPA_hand_over_portuguese_guinea = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		296 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_portuguese_guinea_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 296

		set_state_owner = 296

		set_state_controller = 296

		}
		}
		}

	}

	SPA_hand_over_guinea = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		780 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_guinea_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 780

		set_state_owner = 780

		set_state_controller = 780

		}
		}
		}

	}

	SPA_hand_over_sierra_leone = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		700 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_sierra_leone_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 700

		set_state_owner = 700

		set_state_controller = 700

		}
		}
		}

	}

	SPA_hand_over_liberia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		298 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_liberia_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 298

		set_state_owner = 298

		set_state_controller = 298

		}
		}
		}

	}

	SPA_hand_over_ivorycoast = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		779 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_ivorycoast_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 779

		set_state_owner = 779

		set_state_controller = 779

		}
		}
		}

	}

	SPA_hand_over_ghana = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		274 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_ghana_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 274

		set_state_owner = 274

		set_state_controller = 274

		}
		}
		}

	}

	SPA_hand_over_saotome = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		705 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_saotome_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 705
		set_state_owner = 705
		set_state_controller = 705

		}
		}
		}

	}

	SPA_hand_over_togo = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		777 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_togo_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 777
		set_state_owner = 777
		set_state_controller = 777

		}
		}
		}

	}

	SPA_hand_over_algerian_desert = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		513 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		514 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_algerian_desert_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 513
		add_state_core = 514
		set_state_owner = 513
		set_state_owner = 514
		set_state_controller = 513
		set_state_controller = 514

		}
		}
		}

	}

	SPA_hand_over_dahomey = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		776 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_dahomey_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 776
		set_state_owner = 776
		set_state_controller = 776

		}
		}
		}

	}

	SPA_hand_over_libyan_desert = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		273 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_libyan_desert_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 273
		set_state_owner = 273
		set_state_controller = 273

		}
		}
		}

	}

	SPA_hand_over_western_desert = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		552 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_western_desert_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 552
		set_state_owner = 552
		set_state_controller = 552

		}
		}
		}

	}

	SPA_hand_over_chad = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		775 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		774 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_chad_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 775
		add_state_core = 774

		set_state_owner = 775
		set_state_owner = 774

		set_state_controller = 775
		set_state_controller = 774

		}
		}
		}

	}

	SPA_hand_over_sudan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		883 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		551 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		767 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		887 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		549 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		886 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		885 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		884 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_sudan_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 883
		add_state_core = 551
		add_state_core = 767
		add_state_core = 887
		add_state_core = 549
		add_state_core = 886
		add_state_core = 885
		add_state_core = 884

		set_state_owner = 883
		set_state_owner = 551
		set_state_owner = 767
		set_state_owner = 887
		set_state_owner = 549
		set_state_owner = 886
		set_state_owner = 885
		set_state_owner = 884

		set_state_controller = 883
		set_state_controller = 551
		set_state_controller = 767
		set_state_controller = 887
		set_state_controller = 549
		set_state_controller = 886
		set_state_controller = 885
		set_state_controller = 884

		}
		}
		}

	}

	SPA_hand_over_eritrea = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		550 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_eritrea_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 550
		set_state_owner = 550
		set_state_controller = 550

		}
		}
		}

	}

	SPA_hand_over_ethiopia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		842 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		908 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		841 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		843 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		271 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		840 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		839 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		838 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		837 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_ethiopia_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 842
		add_state_core = 908
		add_state_core = 841
		add_state_core = 843
		add_state_core = 271
		add_state_core = 840
		add_state_core = 839
		add_state_core = 838
		add_state_core = 837

		set_state_owner = 842
		set_state_owner = 908
		set_state_owner = 841
		set_state_owner = 843
		set_state_owner = 271
		set_state_owner = 840
		set_state_owner = 839
		set_state_owner = 838
		set_state_owner = 837

		set_state_controller = 842
		set_state_controller = 908
		set_state_controller = 841
		set_state_controller = 843
		set_state_controller = 271
		set_state_controller = 840
		set_state_controller = 839
		set_state_controller = 838
		set_state_controller = 837

		}
		}
		}

	}

	SPA_hand_over_somali_sultanate = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		268 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		269 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		559 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		844 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		903 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		835 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		836 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_somali_sultanate_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 268
		add_state_core = 269
		add_state_core = 559
		add_state_core = 844
		add_state_core = 903
		add_state_core = 835
		add_state_core = 836

		set_state_owner = 268
		set_state_owner = 269
		set_state_owner = 559
		set_state_owner = 844
		set_state_owner = 903
		set_state_owner = 835
		set_state_owner = 836

		set_state_controller = 268
		set_state_controller = 269
		set_state_controller = 559
		set_state_controller = 844
		set_state_controller = 903
		set_state_controller = 835
		set_state_controller = 836

		}
		}
		}

	}

	SPA_hand_over_equatorial_africa = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		660 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_equatorial_africa_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 660
		set_state_owner = 660
		set_state_controller = 660
		}
		}
		}

	}

	SPA_hand_over_belgian_congo = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		295 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		538 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		718 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		890 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		889 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		888 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_belgian_congo_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 295
		add_state_core = 538
		add_state_core = 718
		add_state_core = 890
		add_state_core = 889
		add_state_core = 888

		set_state_owner = 295
		set_state_owner = 538
		set_state_owner = 718
		set_state_owner = 890
		set_state_owner = 889
		set_state_owner = 888

		set_state_controller = 295
		set_state_controller = 538
		set_state_controller = 718
		set_state_controller = 890
		set_state_controller = 889
		set_state_controller = 888

		}
		}
		}

	}

	SPA_hand_over_uganda = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		548 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_uganda_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 548
		set_state_owner = 548
		set_state_controller = 548
		}
		}
		}

	}

	SPA_hand_over_rwanda = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		768 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_rwanda_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 768
		set_state_owner = 768
		set_state_controller = 768
		}
		}
		}

	}

	SPA_hand_over_burundi = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		769 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_burundi_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 769
		set_state_owner = 769
		set_state_controller = 769
		}
		}
		}

	}

	SPA_hand_over_kenya = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		904 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		547 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		905 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_kenya_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 904
		add_state_core = 547
		add_state_core = 905

		set_state_owner = 904
		set_state_owner = 547
		set_state_owner = 905

		set_state_controller = 904
		set_state_controller = 547
		set_state_controller = 905

		}
		}
		}

	}

	SPA_hand_over_tanzania = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		546 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_tanzania_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 546
		set_state_owner = 546
		set_state_controller = 546
		}
		}
		}

	}

	SPA_hand_over_zambia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		981 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		771 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_zambia_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 981
		add_state_core = 771

		set_state_owner = 981
		set_state_owner = 771

		set_state_controller = 981
		set_state_controller = 771

		}
		}
		}

	}

	SPA_hand_over_cape_verde = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		702 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_cape_verde_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 702
		set_state_owner = 702
		set_state_controller = 702
		}
		}
		}

	}

	SPA_hand_over_malawi = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		770 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_malawi_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 770
		set_state_owner = 770
		set_state_controller = 770
		}
		}
		}

	}

	SPA_hand_over_rhodesia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		545 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_rhodesia_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 545
		set_state_owner = 545
		set_state_controller = 545
		}
		}
		}

	}

	SPA_hand_over_botswana = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		542 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_botswana_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 542
		set_state_owner = 542
		set_state_controller = 542
		}
		}
		}

	}

	SPA_hand_over_mozambique = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		897 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		896 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		544 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_mozambique_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 897
		add_state_core = 896
		add_state_core = 544

		set_state_owner = 897
		set_state_owner = 896
		set_state_owner = 544


		set_state_controller = 897
		set_state_controller = 896
		set_state_controller = 544

		}
		}
		}

	}

	SPA_hand_over_angola = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		796 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		540 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		892 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		891 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_cape_verde_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 796
		add_state_core = 540
		add_state_core = 892
		add_state_core = 891

		set_state_owner = 796
		set_state_owner = 540
		set_state_owner = 892
		set_state_owner = 891

		set_state_controller = 796
		set_state_controller = 540
		set_state_controller = 892
		set_state_controller = 891

		}
		}
		}

	}

	SPA_hand_over_southafrica = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		895 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		894 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		541 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		893 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		681 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		275 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		719 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }

        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_southafrica_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 895
		add_state_core = 894
		add_state_core = 541
		add_state_core = 893
		add_state_core = 681
		add_state_core = 275
		add_state_core = 719

		set_state_owner = 895
		set_state_owner = 894
		set_state_owner = 541
		set_state_owner = 893
		set_state_owner = 681
		set_state_owner = 275
		set_state_owner = 719

		set_state_controller = 895
		set_state_controller = 894
		set_state_controller = 541
		set_state_controller = 893
		set_state_controller = 681
		set_state_controller = 275
		set_state_controller = 719

		}
		}
		}

	}

	SPA_hand_over_madagascar = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		543 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		708 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		706 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_madagascar_tt	
		hidden_effect = {
		FCA = {

		add_state_core = 543
		add_state_core = 708
		add_state_core = 706

		set_state_owner = 543
		set_state_owner = 708
		set_state_owner = 706

		set_state_controller = 543
		set_state_controller = 708
		set_state_controller = 706

		}
		}
		}

	}

	SPA_hand_over_saint_helena = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		704 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_saint_helena_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 704
		set_state_owner = 704
		set_state_controller = 704
		}
		}
		}

	}

	SPA_hand_over_ascension = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		703 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_ascension_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 703
		set_state_owner = 703
		set_state_controller = 703
		}
		}
		}

	}

	SPA_hand_over_kerguelen = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		713 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_kerguelen_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 713
		set_state_owner = 713
		set_state_controller = 713
		}
		}
		}

	}

	SPA_hand_over_mauritius = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		707 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_mauritius_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 707
		set_state_owner = 707
		set_state_controller = 707
		}
		}
		}

	}

	SPA_hand_over_the_congo = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		772 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_the_congo_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 772
		set_state_owner = 772
		set_state_controller = 772
		}
		}
		}

	}

	SPA_hand_over_cameroon = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		773 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_cameroon_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 773
		set_state_owner = 773
		set_state_controller = 773
		}
		}
		}

	}

	SPA_hand_over_niger = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		515 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
		781 = { OR = { is_controlled_by = SPR is_controlled_by = FCA } }
        }
        visible = {
            has_completed_focus = SPA_establish_spanish_africa
			FCA = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_niger_tt	
		hidden_effect = {
		FCA = {
		add_state_core = 515
		add_state_core = 781

		set_state_owner = 515
		set_state_owner = 781

		set_state_controller = 515
		set_state_controller = 781

		}
		}
		}
	}
}

SPR_establish_spanish_china = {
    SPA_spanish_china = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		SPR = {
			controls_state = 613
			controls_state = 598
			controls_state = 597
			controls_state = 743
			controls_state = 614
			controls_state = 608
			controls_state = 596
			controls_state = 595
			controls_state = 607
			controls_state = 606
			controls_state = 749
			controls_state = 600
			controls_state = 744
			controls_state = 620
			controls_state = 602
			controls_state = 750
			controls_state = 605
			controls_state = 748
			controls_state = 603
			controls_state = 751
			controls_state = 752
			controls_state = 601
		}
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_china_tt
			hidden_effect = {
            FCC = {
            set_state_owner = 613
            set_state_owner = 598
            set_state_owner = 597
            set_state_owner = 743
            set_state_owner = 614
            set_state_owner = 608
            set_state_owner = 596
			set_state_owner = 595
			set_state_owner = 607
			set_state_owner = 606
			set_state_owner = 749
			set_state_owner = 600
			set_state_owner = 744
			set_state_owner = 620
			set_state_owner = 602
			set_state_owner = 750
			set_state_owner = 605
			set_state_owner = 748
			set_state_owner = 603
			set_state_owner = 751
			set_state_owner = 752
			set_state_owner = 601

            set_state_controller = 613
            set_state_controller = 598
            set_state_controller = 597
            set_state_controller = 743
            set_state_controller = 614
            set_state_controller = 608
            set_state_controller = 596
			set_state_controller = 595
			set_state_controller = 607
			set_state_controller = 606
			set_state_controller = 749
			set_state_controller = 600
			set_state_controller = 744
			set_state_controller = 620
			set_state_controller = 602
			set_state_controller = 750
			set_state_controller = 605
			set_state_controller = 748
			set_state_controller = 603
			set_state_controller = 751
			set_state_controller = 752
			set_state_controller = 601

            add_state_core = 613
            add_state_core = 598
            add_state_core = 597
            add_state_core = 743
            add_state_core = 614
            add_state_core = 608
            add_state_core = 596
			add_state_core = 595
			add_state_core = 607
			add_state_core = 606
			add_state_core = 749
			add_state_core = 600
			add_state_core = 744
			add_state_core = 620
			add_state_core = 602
			add_state_core = 750
			add_state_core = 605
			add_state_core = 748
			add_state_core = 603
			add_state_core = 751
			add_state_core = 752
			add_state_core = 601
            set_cosmetic_tag = FCC

			create_country_leader = {
				name = "Commissar Vicente Rojo Lluch"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCC_vicente_rojo_lluch.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCC
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_hong_kong = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		326 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_hong_kong_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 326

		set_state_owner = 326

		set_state_controller = 326

		}
		}
		}

	}

	SPA_hand_over_macau = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		729 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_macau_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 729

		set_state_owner = 729

		set_state_controller = 729

		}
		}
		}

	}

	SPA_hand_over_guangzhouwan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		728 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_guangzhouwan_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 728

		set_state_owner = 728

		set_state_controller = 728

		}
		}
		}

	}

	SPA_hand_over_taiwan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		524 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_taiwan_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 524

		set_state_owner = 524

		set_state_controller = 524

		}
		}
		}

	}

	SPA_hand_over_guangxi_clique = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		593 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		592 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		594 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		599 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		591 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_guangxi_clique_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 593
		add_state_core = 592
		add_state_core = 594
		add_state_core = 599
		add_state_core = 591

		set_state_owner = 593
		set_state_owner = 592
		set_state_owner = 594
		set_state_owner = 599
		set_state_owner = 591

		set_state_controller = 593
		set_state_controller = 592
		set_state_controller = 594
		set_state_controller = 599
		set_state_controller = 591

		}
		}
		}

	}

	SPA_hand_over_indochina = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		671 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		670 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		286 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		741 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia 
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_indochina_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 671
		add_state_core = 670
		add_state_core = 286
		add_state_core = 741

		set_state_owner = 671
		set_state_owner = 670
		set_state_owner = 286
		set_state_owner = 741

		set_state_controller = 671
		set_state_controller = 670
		set_state_controller = 286
		set_state_controller = 741

		}
		}
		}

	}

	SPA_hand_over_yuunan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		325 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		747 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_yuunan_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 325
		add_state_core = 747

		set_state_owner = 325
		set_state_owner = 747

		set_state_controller = 325
		set_state_controller = 747

		}
		}
		}

	}

	SPA_hand_over_xibeisanma = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		753 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		283 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		616 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		756 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		755 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		604 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		754 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_xibeisanma_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 753
		add_state_core = 283
		add_state_core = 616
		add_state_core = 756
		add_state_core = 755
		add_state_core = 604
		add_state_core = 754

		set_state_owner = 753
		set_state_owner = 283
		set_state_owner = 616
		set_state_owner = 756
		set_state_owner = 755
		set_state_owner = 604
		set_state_owner = 754

		set_state_controller = 753
		set_state_controller = 283
		set_state_controller = 616
		set_state_controller = 756
		set_state_controller = 755
		set_state_controller = 604
		set_state_controller = 754

		}
		}
		}

	}

	SPA_hand_over_tibet = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		322 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		757 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		758 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_tibet_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 322
		add_state_core = 757
		add_state_core = 758

		set_state_owner = 322
		set_state_owner = 757
		set_state_owner = 758

		set_state_controller = 322
		set_state_controller = 757
		set_state_controller = 758

		}
		}
		}

	}

	SPA_hand_over_sinkiang = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		618 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		760 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		759 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		617 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		287 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		619 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_sinkiang_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 618
		add_state_core = 760
		add_state_core = 759
		add_state_core = 617
		add_state_core = 287
		add_state_core = 619

		set_state_owner = 618
		set_state_owner = 760
		set_state_owner = 759
		set_state_owner = 617
		set_state_owner = 287
		set_state_owner = 619

		set_state_controller = 618
		set_state_controller = 760
		set_state_controller = 759
		set_state_controller = 617
		set_state_controller = 287
		set_state_controller = 619

		}
		}
		}

	}

	SPA_hand_over_mongolia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		818 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		817 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		820 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		330 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		819 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_mongolia_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 818
		add_state_core = 817
		add_state_core = 820
		add_state_core = 330
		add_state_core = 819

		set_state_owner = 818
		set_state_owner = 817
		set_state_owner = 820
		set_state_owner = 330
		set_state_owner = 819

		set_state_controller = 818
		set_state_controller = 817
		set_state_controller = 820
		set_state_controller = 330
		set_state_controller = 819

		}
		}
		}

	}

	SPA_hand_over_communist_china = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		622 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_communist_china_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 622

		set_state_owner = 622

		set_state_controller = 622

		}
		}
		}

	}

	SPA_hand_over_shanxi = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		622 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		622 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		622 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_shanxi_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 615
		add_state_core = 621
		add_state_core = 746

		set_state_owner = 615
		set_state_owner = 621
		set_state_owner = 746

		set_state_controller = 615
		set_state_controller = 621
		set_state_controller = 746

		}
		}
		}

	}

	SPA_hand_over_mengkukuo = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		612 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		611 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_mengkukuo_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 612
		add_state_core = 611

		set_state_owner = 612
		set_state_owner = 611

		set_state_controller = 612
		set_state_controller = 611

		}
		}
		}

	}

	SPA_hand_over_japanese_china = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		609 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		745 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_japanese_china_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 609
		add_state_core = 745

		set_state_owner = 609
		set_state_owner = 745

		set_state_controller = 609
		set_state_controller = 745

		}
		}
		}

	}

	SPA_hand_over_manchukuo = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		610 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		715 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		714 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		761 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		328 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		717 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
		716 = { OR = { is_controlled_by = SPR is_controlled_by = FCC } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCC = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_manchukuo_tt	
		hidden_effect = {
		FCC = {
		add_state_core = 610
		add_state_core = 715
		add_state_core = 714
		add_state_core = 761
		add_state_core = 328
		add_state_core = 717
		add_state_core = 716

		set_state_owner = 610
		set_state_owner = 715
		set_state_owner = 714
		set_state_owner = 761
		set_state_owner = 328
		set_state_owner = 717
		set_state_owner = 716

		set_state_controller = 610
		set_state_controller = 715
		set_state_controller = 714
		set_state_controller = 761
		set_state_controller = 328
		set_state_controller = 717
		set_state_controller = 716

		}
		}
		}

	}
}

SPR_establish_spanish_escandinavia = {
    SPA_spanish_escandinavia = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		SPR = {
		controls_state = 912
		controls_state = 99
		controls_state = 911
		controls_state = 37
		controls_state = 337
		controls_state = 910
		}
        }
        visible = {
            has_completed_focus = SPA_scandinavia
        }
        complete_effect = {
			custom_effect_tooltip = SPA_spanish_escandinavia_tt
			hidden_effect = {
            FCE = {
            set_state_owner = 912
            set_state_owner = 99
            set_state_owner = 911
            set_state_owner = 37
			set_state_owner = 337
			set_state_owner = 910

			set_state_controller = 912
			set_state_controller = 99
			set_state_controller = 911
			set_state_controller = 37
			set_state_controller = 337
			set_state_controller = 910

			add_state_core = 912
			add_state_core = 99
			add_state_core = 911
			add_state_core = 37
			add_state_core = 337
			add_state_core = 910

            set_cosmetic_tag = FCE

			create_country_leader = {
				name = "Commissar Jaime de Borbón y Battenberg"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCE_jaime_de_borbón_y_battenberg.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCE
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_norway = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			922 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			921 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			920 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			142 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			914 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			110 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			143 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			923 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			144 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			924 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			925 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
        }
        visible = {
            has_completed_focus = SPA_scandinavia
			FCE = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_norway_tt
		hidden_effect = {		
		FCE = {
		set_state_owner = 922
		set_state_owner = 921
		set_state_owner = 920
		set_state_owner = 142
		set_state_owner = 914
		set_state_owner = 110
		set_state_owner = 143
		set_state_owner = 923
		set_state_owner = 144
		set_state_owner = 924
		set_state_owner = 925

		set_state_controller = 922
		set_state_controller = 921
		set_state_controller = 920
		set_state_controller = 142
		set_state_controller = 914
		set_state_controller = 110
		set_state_controller = 143
		set_state_controller = 923
		set_state_controller = 144
		set_state_controller = 924
		set_state_controller = 925

		add_state_core = 922
		add_state_core = 921
		add_state_core = 920
		add_state_core = 142
		add_state_core = 914
		add_state_core = 110
		add_state_core = 143
		add_state_core = 923
		add_state_core = 144
		add_state_core = 924
		add_state_core = 925
		}
		}
		}

	}

	SPA_hand_over_iceland = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			100 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
        }
        visible = {
            has_completed_focus = SPA_scandinavia
			FCE = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_iceland_tt
		hidden_effect = {		
		FCE = {
		set_state_owner = 100

		set_state_controller = 100

		add_state_core = 100
		}
		}
		}

	}

	SPA_hand_over_sweden = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			138 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			139 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			124 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			140 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			915 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			141 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			919 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			916 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			38 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			917 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			918 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			666 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			913 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
        }
        visible = {
            has_completed_focus = SPA_scandinavia
			FCE = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_sweden_tt
		hidden_effect = {		
		FCE = {
		set_state_owner = 138
		set_state_owner = 139
		set_state_owner = 124
		set_state_owner = 140
		set_state_owner = 915
		set_state_owner = 141
		set_state_owner = 919
		set_state_owner = 916
		set_state_owner = 38
		set_state_owner = 917
		set_state_owner = 918
		set_state_owner = 666
		set_state_owner = 913

		set_state_controller = 138
		set_state_controller = 139
		set_state_controller = 124
		set_state_controller = 140
		set_state_controller = 915
		set_state_controller = 141
		set_state_controller = 919
		set_state_controller = 916
		set_state_controller = 38
		set_state_controller = 917
		set_state_controller = 918
		set_state_controller = 666
		set_state_controller = 913

		add_state_core = 138
		add_state_core = 139
		add_state_core = 124
		add_state_core = 140
		add_state_core = 915
		add_state_core = 141
		add_state_core = 919
		add_state_core = 916
		add_state_core = 38
		add_state_core = 917
		add_state_core = 918
		add_state_core = 666
		add_state_core = 913
		}
		}
		}

	}

	SPA_hand_over_finland = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			145 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			926 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			111 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			928 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			146 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			150 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			930 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			927 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			149 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			929 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			148 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			722 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
			147 = { OR = { is_controlled_by = SPR is_controlled_by = FCE } }
        }
        visible = {
            has_completed_focus = SPA_scandinavia
			FCE = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_finland_tt
		hidden_effect = {		
		FCE = {
		set_state_owner = 145
		set_state_owner = 926
		set_state_owner = 111
		set_state_owner = 928
		set_state_owner = 146
		set_state_owner = 150
		set_state_owner = 930
		set_state_owner = 927
		set_state_owner = 149
		set_state_owner = 929
		set_state_owner = 148
		set_state_owner = 722
		set_state_owner = 147

		set_state_controller = 145
		set_state_controller = 926
		set_state_controller = 111
		set_state_controller = 928
		set_state_controller = 146
		set_state_controller = 150
		set_state_controller = 930
		set_state_controller = 927
		set_state_controller = 149
		set_state_controller = 929
		set_state_controller = 148
		set_state_controller = 722
		set_state_controller = 147

		add_state_core = 145
		add_state_core = 926
		add_state_core = 111
		add_state_core = 928
		add_state_core = 146
		add_state_core = 150
		add_state_core = 930
		add_state_core = 927
		add_state_core = 149
		add_state_core = 929
		add_state_core = 148
		add_state_core = 722
		add_state_core = 147
		}
		}
		}

	}
}

SPR_establish_spanish_england = {
    SPA_spanish_england = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		SPR = {
            controls_state = 127
            controls_state = 123
            controls_state = 338
            controls_state = 126
            controls_state = 125
            controls_state = 129
            controls_state = 128
			controls_state = 132
			controls_state = 130
			controls_state = 931
			controls_state = 131
			controls_state = 932
		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
        }
        complete_effect = {
			custom_effect_tooltip = SPA_spanish_england_tt
			hidden_effect = {
			set_province_name = { id = 6103 name = "Londrés"}
            FCG = {
            set_state_owner = 127
            set_state_owner = 123
            set_state_owner = 338
            set_state_owner = 126
            set_state_owner = 125
            set_state_owner = 129
            set_state_owner = 128
			set_state_owner = 132
			set_state_owner = 130
			set_state_owner = 931
			set_state_owner = 131
			set_state_owner = 932

            set_state_controller = 127
            set_state_controller = 123
            set_state_controller = 338
            set_state_controller = 126
            set_state_controller = 125
            set_state_controller = 129
            set_state_controller = 128
			set_state_controller = 132
			set_state_controller = 130
			set_state_controller = 931
			set_state_controller = 131
			set_state_controller = 932

            add_state_core = 127
            add_state_core = 123
            add_state_core = 338
            add_state_core = 126
            add_state_core = 125
            add_state_core = 129
            add_state_core = 128
			add_state_core = 132
			add_state_core = 130
			add_state_core = 931
			add_state_core = 131
			add_state_core = 932

            set_cosmetic_tag = FCG

			create_country_leader = {
				name = "Commissar Leopold III"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCG_king_leopold_iii.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCG
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_wales = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			122 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCG = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_wales_tt
		hidden_effect = {		
		FCG = {
		set_state_owner = 122

		set_state_controller = 122

		add_state_core = 122

		}
		}
		}

	}

	SPA_hand_over_scotland = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			121 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
			133 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
			120 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
			136 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
			933 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCG = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_scotland_tt
		hidden_effect = {		
		FCG = {
		set_state_owner = 121
		set_state_owner = 133
		set_state_owner = 120
		set_state_owner = 136
		set_state_owner = 933

		set_state_controller = 121
		set_state_controller = 133
		set_state_controller = 120
		set_state_controller = 136
		set_state_controller = 933

		add_state_core = 121
		add_state_core = 133
		add_state_core = 120
		add_state_core = 136
		add_state_core = 933

		}
		}
		}

	}

	SPA_hand_over_northern_ireland = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			119 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCG = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_northern_ireland_tt
		hidden_effect = {		
		FCG = {
		set_state_owner = 119

		set_state_controller = 119

		add_state_core = 119

		}
		}
		}

	}

	SPA_hand_over_ireland = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			134 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
			113 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
			135 = { OR = { is_controlled_by = SPR is_controlled_by = FCG } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCG = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_ireland_tt
		hidden_effect = {		
		FCG = {
		set_state_owner = 134
		set_state_owner = 113
		set_state_owner = 135

		set_state_controller = 134
		set_state_controller = 113
		set_state_controller = 135

		add_state_core = 134
		add_state_core = 113
		add_state_core = 135

		}
		}
		}

	}

}

SPR_establish_spanish_germany = {
    SPA_spanish_germany = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		PRE = { all_core_state = { is_controlled_by = SPR } }
		SPR = {
		controls_state = 85
		controls_state = 807
		controls_state = 86
		controls_state = 188
		}
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_hre_tt
			hidden_effect = {
            FCH = {
            set_state_owner = 188
            set_state_owner = 763
            set_state_owner = 5
            set_state_owner = 85
            set_state_owner = 807
            set_state_owner = 86
            set_state_owner = 63
			set_state_owner = 68
			set_state_owner = 66
			set_state_owner = 67
			set_state_owner = 62
			set_state_owner = 64
			set_state_owner = 59
			set_state_owner = 58
			set_state_owner = 909
			set_state_owner = 56
			set_state_owner = 57
			set_state_owner = 55
			set_state_owner = 51
			set_state_owner = 42

            set_state_controller = 188
            set_state_controller = 763
            set_state_controller = 5
            set_state_controller = 85
            set_state_controller = 807
            set_state_controller = 86
            set_state_controller = 63
			set_state_controller = 68
			set_state_controller = 66
			set_state_controller = 67
			set_state_controller = 62
			set_state_controller = 64
			set_state_controller = 59
			set_state_controller = 58
			set_state_controller = 909
			set_state_controller = 56
			set_state_controller = 57
			set_state_controller = 55
			set_state_controller = 51
			set_state_controller = 42

            add_state_core = 188
            add_state_core = 763
            add_state_core = 5
            add_state_core = 85
            add_state_core = 807
            add_state_core = 86
            add_state_core = 63
			add_state_core = 68
			add_state_core = 66
			add_state_core = 67
			add_state_core = 62
			add_state_core = 64
			add_state_core = 59
			add_state_core = 58
			add_state_core = 909
			add_state_core = 56
			add_state_core = 57
			add_state_core = 55
			add_state_core = 51
			add_state_core = 42

            set_cosmetic_tag = FCH

			create_country_leader = {
				name = "Commissar Alfredo Kindelán"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCH_alfredo_kindelán.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCH
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_french_lands = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			28 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			18 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			20 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			32 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			21 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			851 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			735 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_french_lands_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 28
		set_state_owner = 18
		set_state_owner = 20
		set_state_owner = 32
		set_state_owner = 21
		set_state_owner = 851
		set_state_owner = 735

		set_state_controller = 28
		set_state_controller = 18
		set_state_controller = 20
		set_state_controller = 32
		set_state_controller = 21
		set_state_controller = 851
		set_state_controller = 735

		add_state_core = 28	
		add_state_core = 18
		add_state_core = 20
		add_state_core = 32
		add_state_core = 21
		add_state_core = 851
		add_state_core = 735
		}
		}
		}

	}

	SPA_hand_over_badenwurttemberg = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			978 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			50 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_badenwurttemberg_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 978
		set_state_owner = 50

		set_state_controller = 978
		set_state_controller = 50

		add_state_core = 978
		add_state_core = 50

		}
		}
		}

	}

	SPA_hand_over_me_th_sa = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			61 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			60 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			65 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_me_th_sa_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 61
		set_state_owner = 60
		set_state_owner = 65

		set_state_controller = 61
		set_state_controller = 60
		set_state_controller = 65

		add_state_core = 61
		add_state_core = 60
		add_state_core = 65

		}
		}
		}

	}

	SPA_hand_over_babaria = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			54 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			52 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			53 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_babaria_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 54
		set_state_owner = 52
		set_state_owner = 53

		set_state_controller = 54
		set_state_controller = 52
		set_state_controller = 53

		add_state_core = 54
		add_state_core = 52
		add_state_core = 53

		}
		}
		}

	}

	SPA_hand_over_switzerland = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			845 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			3 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			847 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			846 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			151 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_switzerland_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 845
		set_state_owner = 3
		set_state_owner = 847
		set_state_owner = 846
		set_state_owner = 151

		set_state_controller = 845
		set_state_controller = 3
		set_state_controller = 847
		set_state_controller = 846
		set_state_controller = 151

		add_state_core = 845
		add_state_core = 3
		add_state_core = 847
		add_state_core = 846
		add_state_core = 151

		}
		}
		}

	}

	SPA_hand_over_northern_italy = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			158 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			161 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			160 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			850 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			39 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			736 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			852 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			162 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			2 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_northern_italy_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 158
		set_state_owner = 161
		set_state_owner = 160
		set_state_owner = 850
		set_state_owner = 39
		set_state_owner = 736
		set_state_owner = 852
		set_state_owner = 162
		set_state_owner = 2

		set_state_controller = 158
		set_state_controller = 161
		set_state_controller = 160
		set_state_controller = 850
		set_state_controller = 39
		set_state_controller = 736
		set_state_controller = 852
		set_state_controller = 162
		set_state_controller = 2

		add_state_core = 158
		add_state_core = 161
		add_state_core = 160
		add_state_core = 850
		add_state_core = 39
		add_state_core = 736
		add_state_core = 852
		add_state_core = 162
		add_state_core = 2

		}
		}
		}

	}

	SPA_hand_over_austrohungarian_lands = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			custom_trigger_tooltip = {
			tooltip = SPA_hand_over_austrohungarian_lands_tt
			848 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			153 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			152 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			976 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			102 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			4 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			975 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			972 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			9 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			69 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			74 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			75 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			70 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			72 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			762 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			71 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			88 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			73 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			155 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			664 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			974 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			973 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			43 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			154 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			76 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			84 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
			83 = { OR = { is_controlled_by = SPR is_controlled_by = FCH } }
        }
		}
        visible = {
            has_completed_focus = SPA_Spanish_subjects
			FCH = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_austria_hungary_tt
		hidden_effect = {		
		FCH = {
		set_state_owner = 848
		set_state_owner = 153
		set_state_owner = 152
		set_state_owner = 976
		set_state_owner = 102
		set_state_owner = 4
		set_state_owner = 975
		set_state_owner = 972
		set_state_owner = 9
		set_state_owner = 69
		set_state_owner = 74
		set_state_owner = 75
		set_state_owner = 70
		set_state_owner = 72
		set_state_owner = 762
		set_state_owner = 71
		set_state_owner = 88
		set_state_owner = 73
		set_state_owner = 155
		set_state_owner = 664
		set_state_owner = 974
		set_state_owner = 973
		set_state_owner = 43
		set_state_owner = 154
		set_state_owner = 76
		set_state_owner = 84
		set_state_owner = 83

		set_state_controller = 848
		set_state_controller = 153
		set_state_controller = 152
		set_state_controller = 976
		set_state_controller = 102
		set_state_controller = 4
		set_state_controller = 975
		set_state_controller = 972
		set_state_controller = 9
		set_state_controller = 69
		set_state_controller = 74
		set_state_controller = 75
		set_state_controller = 70
		set_state_controller = 72
		set_state_controller = 762
		set_state_controller = 71
		set_state_controller = 88
		set_state_controller = 73
		set_state_controller = 155
		set_state_controller = 664
		set_state_controller = 974
		set_state_controller = 973
		set_state_controller = 43
		set_state_controller = 154
		set_state_controller = 76
		set_state_controller = 84
		set_state_controller = 83

		add_state_core = 848
		add_state_core = 153
		add_state_core = 152
		add_state_core = 976
		add_state_core = 102
		add_state_core = 4
		add_state_core = 975
		add_state_core = 972
		add_state_core = 9
		add_state_core = 69
		add_state_core = 74
		add_state_core = 75
		add_state_core = 70
		add_state_core = 72
		add_state_core = 762
		add_state_core = 71
		add_state_core = 88
		add_state_core = 73
		add_state_core = 155
		add_state_core = 664
		add_state_core = 974
		add_state_core = 973
		add_state_core = 43
		add_state_core = 154
		add_state_core = 76
		add_state_core = 84
		add_state_core = 83

		}
		}
		}

	}
}

SPR_establish_spanish_japan = {
    SPA_spanish_japan = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		JAP = { all_core_state = { is_controlled_by = SPR } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_japankorea_tt
			hidden_effect = {
            FCJ = {
			set_state_owner = 529
			set_state_owner = 536
			set_state_owner = 534
			set_state_owner = 645
			set_state_owner = 531
			set_state_owner = 282
			set_state_owner = 535
			set_state_owner = 555
			set_state_owner = 528
			set_state_owner = 526
			set_state_owner = 646
			set_state_owner = 530
			set_state_owner = 537
			set_state_owner = 533
			set_state_owner = 532

			set_state_controller = 529
			set_state_controller = 536
			set_state_controller = 534
			set_state_controller = 645
			set_state_controller = 531
			set_state_controller = 282
			set_state_controller = 535
			set_state_controller = 555
			set_state_controller = 528
			set_state_controller = 526
			set_state_controller = 646
			set_state_controller = 530
			set_state_controller = 537
			set_state_controller = 533
			set_state_controller = 532

			add_state_core = 529
			add_state_core = 536
			add_state_core = 534
			add_state_core = 645
			add_state_core = 531
			add_state_core = 282
			add_state_core = 535
			add_state_core = 555
			add_state_core = 528
			add_state_core = 526
			add_state_core = 646
			add_state_core = 530
			add_state_core = 537
			add_state_core = 533
			add_state_core = 532

            set_cosmetic_tag = FCJ

			create_country_leader = {
				name = "Commissar Valentín Gonzalez"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCJ_valentin_gonzalez.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCJ
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_korea = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		KOR = { all_core_state = { is_controlled_by = SPR } }
		
		KOR = { all_core_state = { is_controlled_by = FCJ } }
		}
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCJ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_korea_tt
		hidden_effect = {		
		FCJ = {
		set_state_owner = 527
		set_state_owner = 525

		set_state_controller = 527
		set_state_controller = 525

		add_state_core = 527
		add_state_core = 525

		}
		}
		}

	}

	SPA_hand_over_mariana = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		648 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
		632 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCJ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_mariana_tt
		hidden_effect = {		
		FCJ = {
		set_state_owner = 648
		set_state_owner = 632

		set_state_controller = 648
		set_state_controller = 632

		add_state_core = 648
		add_state_core = 632

		}
		}
		}

	}

	SPA_hand_over_micronesia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		647 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
		684 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
		633 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCJ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_micronesia_tt
		hidden_effect = {		
		FCJ = {
		set_state_owner = 647
		set_state_owner = 684
		set_state_owner = 633

		set_state_controller = 647
		set_state_controller = 684
		set_state_controller = 633

		add_state_core = 647
		add_state_core = 684
		add_state_core = 633

		}
		}
		}

	}

	SPA_hand_over_melanesia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		725 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
		639 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
		643 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
		636 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCJ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_micronesia_tt
		hidden_effect = {		
		FCJ = {
		set_state_owner = 725
		set_state_owner = 639
		set_state_owner = 643
		set_state_owner = 636

		set_state_controller = 725
		set_state_controller = 639
		set_state_controller = 643
		set_state_controller = 636

		add_state_core = 725
		add_state_core = 639
		add_state_core = 643
		add_state_core = 636

		}
		}
		}

	}

	SPA_hand_over_attu = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		650 = { OR = { is_controlled_by = SPR is_controlled_by = FCJ } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCJ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_micronesia_tt
		hidden_effect = {		
		FCJ = {
		set_state_owner = 650

		set_state_controller = 650

		add_state_core = 650

		}
		}
		}

	}
}

SPR_establish_spanish_australia = {
    SPA_spanish_australia = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		AST = { all_core_state = { is_controlled_by = SPR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_australia_tt
			hidden_effect = {
            FCZ = {
            set_state_owner = 520
            set_state_owner = 674
            set_state_owner = 872
            set_state_owner = 521
            set_state_owner = 873
            set_state_owner = 285
            set_state_owner = 517
			set_state_owner = 518
			set_state_owner = 519
			set_state_owner = 871
			set_state_owner = 522
			set_state_owner = 870

            set_state_controller = 520
            set_state_controller = 674
            set_state_controller = 872
            set_state_controller = 521
            set_state_controller = 873
            set_state_controller = 285
            set_state_controller = 517
			set_state_controller = 518
			set_state_controller = 519
			set_state_controller = 871
			set_state_controller = 522
			set_state_controller = 870

            add_state_core = 520
            add_state_core = 674
            add_state_core = 872
            add_state_core = 521
            add_state_core = 873
            add_state_core = 285
            add_state_core = 517
			add_state_core = 518
			add_state_core = 519
			add_state_core = 871
			add_state_core = 522
			add_state_core = 870

            set_cosmetic_tag = FCZ

			create_country_leader = {
				name = "Commissar José Vicente de Freitas"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCZ_jose_vicente_de_freitas.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCZ
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_new_zealand = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			723 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
			284 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCZ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_new_zealand_tt
		hidden_effect = {		
		FCZ = {
		set_state_owner = 723
		set_state_owner = 284

		set_state_controller = 723	
		set_state_controller = 284

		add_state_core = 723
		add_state_core = 284

		}
		}
		}

	}

	SPA_hand_over_tahiti = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			635 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
			734 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
			641 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCZ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_tahiti_tt
		hidden_effect = {		
		FCZ = {
		set_state_owner = 635
		set_state_owner = 734
		set_state_owner = 641

		set_state_controller = 635
		set_state_controller = 734
		set_state_controller = 641

		add_state_core = 635
		add_state_core = 734
		add_state_core = 641

		}
		}
		}

	}

	SPA_hand_over_samoa = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			726 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCZ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_tahiti_tt
		hidden_effect = {		
		FCZ = {
		set_state_owner = 726

		set_state_controller = 726

		add_state_core = 726

		}
		}
		}

	}

	SPA_hand_over_christmas_island = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			711 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCZ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_christmas_island_tt
		hidden_effect = {		
		FCZ = {
		set_state_owner = 711

		set_state_controller = 711

		add_state_core = 711

		}
		}
		}

	}

	SPA_hand_over_cocos_island = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			712 = { OR = { is_controlled_by = SPR is_controlled_by = FCZ } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCZ = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_cocos_island_tt
		hidden_effect = {		
		FCZ = {
		set_state_owner = 712

		set_state_controller = 712

		add_state_core = 712

		}
		}
		}

	}

}

SPR_establish_spanish_india = {
    SPA_spanish_india = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		SPR = {
			controls_state = 982
			controls_state = 423
			controls_state = 425
			controls_state = 424
			controls_state = 983
			controls_state = 321
			controls_state = 320
			controls_state = 429
			controls_state = 427
			controls_state = 426
			controls_state = 984
			controls_state = 436
			controls_state = 437
			controls_state = 428
			controls_state = 433
			controls_state = 989
			controls_state = 986
			controls_state = 441
			controls_state = 438
			controls_state = 435
			controls_state = 431
			controls_state = 985
			controls_state = 432
			controls_state = 434
			controls_state = 990
			controls_state = 439
			controls_state = 991
		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_india_tt
			hidden_effect = {
            FCL = {
            set_state_owner = 982
            set_state_owner = 423
            set_state_owner = 425
            set_state_owner = 424
            set_state_owner = 983
            set_state_owner = 321
            set_state_owner = 320
			set_state_owner = 429
			set_state_owner = 427
			set_state_owner = 426
			set_state_owner = 984
			set_state_owner = 436
			set_state_owner = 437
			set_state_owner = 428
			set_state_owner = 433
			set_state_owner = 989
			set_state_owner = 986
			set_state_owner = 441
			set_state_owner = 438
			set_state_owner = 435
			set_state_owner = 431
			set_state_owner = 985
			set_state_owner = 432
			set_state_owner = 434
			set_state_owner = 990
			set_state_owner = 439
			set_state_owner = 991

			set_state_controller = 982
			set_state_controller = 423
			set_state_controller = 425
			set_state_controller = 424
			set_state_controller = 983
			set_state_controller = 321
			set_state_controller = 320
			set_state_controller = 429
			set_state_controller = 427
			set_state_controller = 426
			set_state_controller = 984
			set_state_controller = 436
			set_state_controller = 437
			set_state_controller = 428
			set_state_controller = 433
			set_state_controller = 989
			set_state_controller = 986
			set_state_controller = 441
			set_state_controller = 438
			set_state_controller = 435
			set_state_controller = 431
			set_state_controller = 985
			set_state_controller = 432
			set_state_controller = 434
			set_state_controller = 990
			set_state_controller = 439
			set_state_controller = 991

			add_state_core = 982
			add_state_core = 423
			add_state_core = 425
			add_state_core = 424
			add_state_core = 983
			add_state_core = 321
			add_state_core = 320
			add_state_core = 429
			add_state_core = 427
			add_state_core = 426
			add_state_core = 984
			add_state_core = 436
			add_state_core = 437
			add_state_core = 428
			add_state_core = 433
			add_state_core = 989
			add_state_core = 986
			add_state_core = 441
			add_state_core = 438
			add_state_core = 435
			add_state_core = 431
			add_state_core = 985
			add_state_core = 432
			add_state_core = 434
			add_state_core = 990
			add_state_core = 439
			add_state_core = 991
			
            set_cosmetic_tag = FCL

			create_country_leader = {
				name = "Commissar Izaak Reijnders"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCL_izaak_reijnders.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCL
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_bangladesh = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			430 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_bangladesh_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 430

		set_state_controller = 430

		add_state_core = 430

		}
		}
		}

	}

	SPA_hand_over_pakistan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		430 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		1012 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		441 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		988 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		787 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		442 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		445 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		444 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		443 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		987 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
		440 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_pakistan_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 430
		set_state_owner = 1012
		set_state_owner = 441
		set_state_owner = 988
		set_state_owner = 787
		set_state_owner = 442
		set_state_owner = 445
		set_state_owner = 444
		set_state_owner = 443
		set_state_owner = 987
		set_state_owner = 440

		set_state_controller = 430
		set_state_controller = 1012
		set_state_controller = 441
		set_state_controller = 988
		set_state_controller = 787
		set_state_controller = 442
		set_state_controller = 445
		set_state_controller = 444
		set_state_controller = 443
		set_state_controller = 987
		set_state_controller = 440

		every_state = {
			limit = {
				is_core_of = PAK
			}
			add_core_of = FCL
		}

		}
		}
		}

	}

	SPA_hand_over_nepal = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			323 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_nepal_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 323

		set_state_controller = 323

		add_state_core = 323

		}
		}
		}

	}

	SPA_hand_over_bhutan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			324 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_bhutan_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 324

		set_state_controller = 324

		add_state_core = 324

		}
		}
		}

	}

	SPA_hand_over_srilanka = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			422 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_srilanka_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 422

		set_state_controller = 422

		add_state_core = 422

		}
		}
		}

	}

	SPA_hand_over_maldives = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			281 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_maldives_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 281

		set_state_controller = 281

		add_state_core = 281

		}
		}
		}

	}

	SPA_hand_over_seychelles = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			709 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_seychelles_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 709

		set_state_controller = 709

		add_state_core = 709

		}
		}
		}

	}

	SPA_hand_over_diego = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			710 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_diego_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 710

		set_state_controller = 710

		add_state_core = 710

		}
		}
		}

	}

	SPA_hand_over_andaman = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			733 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_andaman_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 733

		set_state_controller = 733

		add_state_core = 733

		}
		}
		}

	}


	SPA_hand_over_burma = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			998 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			288 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			640 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			999 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			993 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			997 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			995 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			996 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
			994 = { OR = { is_controlled_by = SPR is_controlled_by = FCL } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCL = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_burma_tt
		hidden_effect = {		
		FCL = {
		set_state_owner = 998
		set_state_owner = 288
		set_state_owner = 640
		set_state_owner = 999
		set_state_owner = 993
		set_state_owner = 997
		set_state_owner = 995
		set_state_owner = 996
		set_state_owner = 994

		set_state_controller = 998
		set_state_controller = 288
		set_state_controller = 640
		set_state_controller = 999
		set_state_controller = 993
		set_state_controller = 997
		set_state_controller = 995
		set_state_controller = 996
		set_state_controller = 994

		add_state_core = 998
		add_state_core = 288
		add_state_core = 640
		add_state_core = 999
		add_state_core = 993
		add_state_core = 997
		add_state_core = 995
		add_state_core = 996
		add_state_core = 994

		}
		}
		}

	}
}

SPR_establish_spanish_cristiania = {
    SPA_spanish_cristiania = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		SAU = { all_core_state = { is_controlled_by = SPR } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_cristiania_tt
			hidden_effect = {
            FCR = {
            set_state_owner = 854
            set_state_owner = 855
            set_state_owner = 857
            set_state_owner = 859
            set_state_owner = 292
            set_state_owner = 678
            set_state_owner = 858
			set_state_owner = 856
			set_state_owner = 679

            set_state_controller = 854
            set_state_controller = 855
            set_state_controller = 857
            set_state_controller = 859
            set_state_controller = 292
            set_state_controller = 678
            set_state_controller = 858
			set_state_controller = 856
			set_state_controller = 679

            add_state_core = 854
            add_state_core = 855
            add_state_core = 857
            add_state_core = 859
            add_state_core = 292
            add_state_core = 678
            add_state_core = 858
			add_state_core = 856
			add_state_core = 679

            set_cosmetic_tag = FCR

			create_country_leader = {
				name = "Commissar Antonio Cordón García"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCR_antonio_cordon_garcia.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCR
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_iraq = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			1010 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			291 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			1011 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			675 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_iraq_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 1010
		set_state_owner = 291
		set_state_owner = 1011
		set_state_owner = 675

		set_state_controller = 1010
		set_state_controller = 291
		set_state_controller = 1011
		set_state_controller = 675

		add_state_core = 1010
		add_state_core = 291
		add_state_core = 1011
		add_state_core = 675

		}
		}
		}

	}

	SPA_hand_over_kuwait = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			656 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_kuwait_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 656

		set_state_controller = 656

		add_state_core = 656

		}
		}
		}

	}

	SPA_hand_over_qatar = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			765 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_qatar_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 765

		set_state_controller = 765

		add_state_core = 765

		}
		}
		}

	}

	SPA_hand_over_bahrain = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			1014 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_bahrain_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 1014

		set_state_controller = 1014

		add_state_core = 1014

		}
		}
		}

	}

	SPA_hand_over_muscat_oman = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			1016 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			294 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			1015 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			1013 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_muscat_oman_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 1016
		set_state_owner = 294
		set_state_owner = 1015
		set_state_owner = 1013

		set_state_controller = 1016
		set_state_controller = 294
		set_state_controller = 1015
		set_state_controller = 1013

		add_state_core = 1016
		add_state_core = 294
		add_state_core = 1015
		add_state_core = 1013

		}
		}
		}

	}

	SPA_hand_over_yemen = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			293 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			992 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			659 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
			906 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_yemen_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 293
		set_state_owner = 992
		set_state_owner = 659
		set_state_owner = 906

		set_state_controller = 293
		set_state_controller = 992
		set_state_controller = 659
		set_state_controller = 906

		add_state_core = 293
		add_state_core = 992
		add_state_core = 659
		add_state_core = 906

		}
		}
		}

	}

	SPA_hand_over_abu_dhabi = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			658 = { OR = { is_controlled_by = SPR is_controlled_by = FCR } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCR = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_abu_dhabi_tt
		hidden_effect = {		
		FCR = {
		set_state_owner = 658

		set_state_controller = 658

		add_state_core = 658

		}
		}
		}

	}
}

SPR_establish_spanish_persia = {
    SPA_spanish_persia = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {
		PER = { all_core_state = { is_controlled_by = SPR } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_persia_tt
			hidden_effect = {
            FCP = {
            set_state_owner = 1000
            set_state_owner = 412
            set_state_owner = 420
            set_state_owner = 417
            set_state_owner = 421
            set_state_owner = 411
            set_state_owner = 414
			set_state_owner = 416
			set_state_owner = 413
			set_state_owner = 1001
			set_state_owner = 1004
			set_state_owner = 418
			set_state_owner = 410
			set_state_owner = 1003
			set_state_owner = 266
			set_state_owner = 419
			set_state_owner = 1002

			set_state_controller = 1000
			set_state_controller = 412
			set_state_controller = 420
			set_state_controller = 417
			set_state_controller = 421
			set_state_controller = 411
			set_state_controller = 414
			set_state_controller = 416
			set_state_controller = 413
			set_state_controller = 1001
			set_state_controller = 1004
			set_state_controller = 418
			set_state_controller = 410
			set_state_controller = 1003
			set_state_controller = 266
			set_state_controller = 419
			set_state_controller = 1002

			add_state_core = 1000
			add_state_core = 412
			add_state_core = 420
			add_state_core = 417
			add_state_core = 421
			add_state_core = 411
			add_state_core = 414
			add_state_core = 416
			add_state_core = 413
			add_state_core = 1001
			add_state_core = 1004
			add_state_core = 418
			add_state_core = 410
			add_state_core = 1003
			add_state_core = 266
			add_state_core = 419
			add_state_core = 1002

            set_cosmetic_tag = FCP

			create_country_leader = {
				name = "Commissar Enrique Lister"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCP_enrique_lister.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCP
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_afganistan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			1009 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
			415 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
			267 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
			1006 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
			1007 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
			1008 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
			1005 = { OR = { is_controlled_by = SPR is_controlled_by = FCP } }
        }
        visible = {
            has_completed_focus = SPA_look_towards_asia
			FCP = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip = SPA_hand_over_afganistan_tt
		hidden_effect = {		
		FCP = {
		set_state_owner = 1009
		set_state_owner = 415
		set_state_owner = 267
		set_state_owner = 1006
		set_state_owner = 1007
		set_state_owner = 1008
		set_state_owner = 1005

		set_state_controller = 1009
		set_state_controller = 415
		set_state_controller = 267
		set_state_controller = 1006
		set_state_controller = 1007
		set_state_controller = 1008
		set_state_controller = 1005

		add_state_core = 1009
		add_state_core = 415
		add_state_core = 267
		add_state_core = 1006
		add_state_core = 1007
		add_state_core = 1008
		add_state_core = 1005

		}
		}
		}

	}
}

SPR_establish_spanish_rusia = {
    SPA_spanish_rusia = {
        icon = generic_political_reform
        cost = 50
		fire_only_once = yes
        available = {

		custom_trigger_tooltip = {
		tooltip = SPA_control_eastern_europe_tt
		# Central Poland
		10 = { is_controlled_by = SPR }
		98 = { is_controlled_by = SPR }
		87 = { is_controlled_by = SPR }
		90 = { is_controlled_by = SPR }
		92 = { is_controlled_by = SPR }

		# Estonia
		813 = { is_controlled_by = SPR }
		812 = { is_controlled_by = SPR }
		191 = { is_controlled_by = SPR }
		13 = { is_controlled_by = SPR }
		811 = { is_controlled_by = SPR }

		# Latvia
		810 = { is_controlled_by = SPR }
		809 = { is_controlled_by = SPR }
		12 = { is_controlled_by = SPR }
		808 = { is_controlled_by = SPR }
		190 = { is_controlled_by = SPR }

		# Lithuania
		784 = { is_controlled_by = SPR }
		814 = { is_controlled_by = SPR }
		11 = { is_controlled_by = SPR }
		815 = { is_controlled_by = SPR }
		189 = { is_controlled_by = SPR }

		# Belarus
		206 = { is_controlled_by = SPR }
		207 = { is_controlled_by = SPR }
		241 = { is_controlled_by = SPR }
		204 = { is_controlled_by = SPR }
		194 = { is_controlled_by = SPR }
		94 = { is_controlled_by = SPR }
		97 = { is_controlled_by = SPR }
		95 = { is_controlled_by = SPR }
		96 = { is_controlled_by = SPR }

		# Ukraine
		80 = { is_controlled_by = SPR }
		89 = { is_controlled_by = SPR }
		91 = { is_controlled_by = SPR }
		93 = { is_controlled_by = SPR }
		199 = { is_controlled_by = SPR }
		201 = { is_controlled_by = SPR }
		198 = { is_controlled_by = SPR }
		202 = { is_controlled_by = SPR }
		203 = { is_controlled_by = SPR }
		834 = { is_controlled_by = SPR }
		192 = { is_controlled_by = SPR }
		197 = { is_controlled_by = SPR }
		196 = { is_controlled_by = SPR }
		200 = { is_controlled_by = SPR }
		227 = { is_controlled_by = SPR }
		228 = { is_controlled_by = SPR }
		221 = { is_controlled_by = SPR }
		259 = { is_controlled_by = SPR }
		225 = { is_controlled_by = SPR }
		193 = { is_controlled_by = SPR }
		226 = { is_controlled_by = SPR }

		# Romania
		78 = { is_controlled_by = SPR }
		79 = { is_controlled_by = SPR }

		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
        }
        complete_effect = {
			custom_effect_tooltip = SPA_restore_rusia_tt
			hidden_effect = {
            FCU = {

			# Central Poland
            set_state_owner = 10
            set_state_owner = 98
            set_state_owner = 87
			set_state_owner = 90
			set_state_owner = 92

            set_state_controller = 10
            set_state_controller = 98
            set_state_controller = 87
			set_state_controller = 90
			set_state_controller = 92

            add_state_core = 10
            add_state_core = 98
            add_state_core = 87
			add_state_core = 90
			add_state_core = 92

			# Estonia
			set_state_owner = 813
			set_state_owner = 812
			set_state_owner = 191
			set_state_owner = 13
			set_state_owner = 811

			set_state_controller = 813
			set_state_controller = 812
			set_state_controller = 191
			set_state_controller = 13
			set_state_controller = 811

			add_state_core = 813
			add_state_core = 812
			add_state_core = 191
			add_state_core = 13
			add_state_core = 811

			# Latvia
			set_state_owner = 810
			set_state_owner = 809
			set_state_owner = 12
			set_state_owner = 808
			set_state_owner = 190

			set_state_controller = 810
			set_state_controller = 809
			set_state_controller = 12
			set_state_controller = 808
			set_state_controller = 190

			add_state_core = 810
			add_state_core = 809
			add_state_core = 12
			add_state_core = 808
			add_state_core = 190

			# Lithuania
			set_state_owner = 784
			set_state_owner = 814
			set_state_owner = 11
			set_state_owner = 815
			set_state_owner = 189

			set_state_controller = 784
			set_state_controller = 814
			set_state_controller = 11
			set_state_controller = 815
			set_state_controller = 189

			add_state_core = 784
			add_state_core = 814
			add_state_core = 11
			add_state_core = 815
			add_state_core = 189

			# Belarus
			set_state_owner = 206
			set_state_owner = 207
			set_state_owner = 241
			set_state_owner = 204
			set_state_owner = 194
			set_state_owner = 94
			set_state_owner = 97
			set_state_owner = 95
			set_state_owner = 96

			set_state_controller = 206
			set_state_controller = 207
			set_state_controller = 241
			set_state_controller = 204
			set_state_controller = 194
			set_state_controller = 94
			set_state_controller = 97
			set_state_controller = 95
			set_state_controller = 96

			add_state_core = 206
			add_state_core = 207
			add_state_core = 241
			add_state_core = 204
			add_state_core = 194
			add_state_core = 94
			add_state_core = 97
			add_state_core = 95
			add_state_core = 96

			# Ukraine
			set_state_owner = 80
			set_state_owner = 89
			set_state_owner = 91
			set_state_owner = 93
			set_state_owner = 199
			set_state_owner = 201
			set_state_owner = 198
			set_state_owner = 202
			set_state_owner = 203
			set_state_owner = 834
			set_state_owner = 192
			set_state_owner = 197
			set_state_owner = 196
			set_state_owner = 200
			set_state_owner = 227
			set_state_owner = 228
			set_state_owner = 221
			set_state_owner = 259
			set_state_owner = 225
			set_state_owner = 193
			set_state_owner = 226

			set_state_controller = 80
			set_state_controller = 89
			set_state_controller = 91
			set_state_controller = 93
			set_state_controller = 199
			set_state_controller = 201
			set_state_controller = 198
			set_state_controller = 202
			set_state_controller = 203
			set_state_controller = 834
			set_state_controller = 192
			set_state_controller = 197
			set_state_controller = 196
			set_state_controller = 200
			set_state_controller = 227
			set_state_controller = 228
			set_state_controller = 221
			set_state_controller = 259
			set_state_controller = 225
			set_state_controller = 193
			set_state_controller = 226

			add_state_core = 80
			add_state_core = 89
			add_state_core = 91
			add_state_core = 93
			add_state_core = 199
			add_state_core = 201
			add_state_core = 198
			add_state_core = 202
			add_state_core = 203
			add_state_core = 834
			add_state_core = 192
			add_state_core = 197
			add_state_core = 196
			add_state_core = 200
			add_state_core = 227
			add_state_core = 228
			add_state_core = 221
			add_state_core = 259
			add_state_core = 225
			add_state_core = 193
			add_state_core = 226

			# Romania
			set_state_owner = 78
			set_state_owner = 79

			set_state_controller = 78
			set_state_controller = 79

			add_state_core = 78
			add_state_core = 79

            set_cosmetic_tag = FCU

			set_capital = {state = 10}
			create_country_leader = {
				name = "Commissar Radolfo Graziani"
				desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
				picture = "FCU_radolfo_graziani.dds"
				expire = "1965.1.1"
				ideology = fascism_ideology
				}
            }
            SPR = {
                set_autonomy = {
                target = FCU
                autonomous_state = autonomy_reichsprotectorate
                end_wars = no
                end_civil_wars = no
                }
            }
		}

        }
        ai_will_do = { factor = 1 }
    }

	SPA_hand_over_caucasus = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		custom_trigger_tooltip = {
		tooltip = SPA_hand_over_the_caucasus_tt
			245 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			217 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			218 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			238 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			237 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			236 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			234 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			235 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			232 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			233 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			826 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			828 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			821 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			231 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			229 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			230 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			827 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_caucasus_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 245
		set_state_owner = 217
		set_state_owner = 218
		set_state_owner = 238
		set_state_owner = 237
		set_state_owner = 236
		set_state_owner = 234
		set_state_owner = 235
		set_state_owner = 232
		set_state_owner = 233
		set_state_owner = 826
		set_state_owner = 828
		set_state_owner = 821
		set_state_owner = 231
		set_state_owner = 229
		set_state_owner = 230
		set_state_owner = 827

		set_state_controller = 245
		set_state_controller = 217
		set_state_controller = 218
		set_state_controller = 238
		set_state_controller = 237
		set_state_controller = 236
		set_state_controller = 234
		set_state_controller = 235
		set_state_controller = 232
		set_state_controller = 233
		set_state_controller = 826
		set_state_controller = 828
		set_state_controller = 821
		set_state_controller = 231
		set_state_controller = 229
		set_state_controller = 230
		set_state_controller = 827

		add_state_core = 245
		add_state_core = 217
		add_state_core = 218
		add_state_core = 238
		add_state_core = 237
		add_state_core = 236
		add_state_core = 234
		add_state_core = 235
		add_state_core = 232
		add_state_core = 233
		add_state_core = 826
		add_state_core = 828
		add_state_core = 821
		add_state_core = 231
		add_state_core = 229
		add_state_core = 230
		add_state_core = 827
		}
		}
		}

	}

	SPA_hand_over_central_russia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		custom_trigger_tooltip = {
		tooltip = SPA_hand_over_central_russia_tt
			195 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			208 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			209 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			210 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			242 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			243 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			224 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			220 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			240 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			260 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			265 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			829 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			401 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			251 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			652 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			582 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			651 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			573 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			398 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			581 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			825 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			214 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			879 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			351 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			264 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			244 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			216 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			215 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			213 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }

			263 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			246 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			247 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			219 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			205 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			222 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			258 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			223 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			248 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			253 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			254 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			257 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			252 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			255 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			239 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			250 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			256 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			833 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			249 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			399 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			400 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			397 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			880 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			262 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }


		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_russia_central_tt
		hidden_effect = {	
		set_province_name = { id = 6380 name = "Moscú"}
		FCU = {
		set_state_owner = 195
		set_state_owner = 208
		set_state_owner = 209
		set_state_owner = 210
		set_state_owner = 242
		set_state_owner = 243
		set_state_owner = 224
		set_state_owner = 220
		set_state_owner = 240
		set_state_owner = 260
		set_state_owner = 265
		set_state_owner = 829
		set_state_owner = 401
		set_state_owner = 251
		set_state_owner = 652
		set_state_owner = 582
		set_state_owner = 651
		set_state_owner = 573
		set_state_owner = 398
		set_state_owner = 581
		set_state_owner = 825
		set_state_owner = 214
		set_state_owner = 879
		set_state_owner = 351
		set_state_owner = 264
		set_state_owner = 244
		set_state_owner = 216
		set_state_owner = 215
		set_state_owner = 213
		set_state_owner = 263
		set_state_owner = 246
		set_state_owner = 247
		set_state_owner = 219
		set_state_owner = 205
		set_state_owner = 222
		set_state_owner = 258
		set_state_owner = 223
		set_state_owner = 248
		set_state_owner = 253
		set_state_owner = 254
		set_state_owner = 257
		set_state_owner = 252
		set_state_owner = 255
		set_state_owner = 239
		set_state_owner = 250
		set_state_owner = 256
		set_state_owner = 833
		set_state_owner = 249
		set_state_owner = 399
		set_state_owner = 400
		set_state_owner = 397
		set_state_owner = 880
		set_state_owner = 262

		set_state_controller = 195
		set_state_controller = 208
		set_state_controller = 209
		set_state_controller = 210
		set_state_controller = 242
		set_state_controller = 243
		set_state_controller = 224
		set_state_controller = 220
		set_state_controller = 240
		set_state_controller = 260
		set_state_controller = 265
		set_state_controller = 829
		set_state_controller = 401
		set_state_controller = 251
		set_state_controller = 652
		set_state_controller = 582
		set_state_controller = 651
		set_state_controller = 573
		set_state_controller = 398
		set_state_controller = 581
		set_state_controller = 825
		set_state_controller = 214
		set_state_controller = 879
		set_state_controller = 351
		set_state_controller = 264
		set_state_controller = 244
		set_state_controller = 216
		set_state_controller = 215
		set_state_controller = 213
		set_state_controller = 263
		set_state_controller = 246
		set_state_controller = 247
		set_state_controller = 219
		set_state_controller = 205
		set_state_controller = 222
		set_state_controller = 258
		set_state_controller = 223
		set_state_controller = 248
		set_state_controller = 253
		set_state_controller = 254
		set_state_controller = 257
		set_state_controller = 252
		set_state_controller = 255
		set_state_controller = 239
		set_state_controller = 250
		set_state_controller = 256
		set_state_controller = 833
		set_state_controller = 249
		set_state_controller = 399
		set_state_controller = 400
		set_state_controller = 397
		set_state_controller = 880
		set_state_controller = 262

		add_state_core = 195
		add_state_core = 208
		add_state_core = 209
		add_state_core = 210
		add_state_core = 242
		add_state_core = 243
		add_state_core = 224
		add_state_core = 220
		add_state_core = 240
		add_state_core = 260
		add_state_core = 265
		add_state_core = 829
		add_state_core = 401
		add_state_core = 251
		add_state_core = 652
		add_state_core = 582
		add_state_core = 651
		add_state_core = 573
		add_state_core = 398
		add_state_core = 581
		add_state_core = 825
		add_state_core = 214
		add_state_core = 879
		add_state_core = 351
		add_state_core = 264
		add_state_core = 244
		add_state_core = 216
		add_state_core = 215
		add_state_core = 213
		add_state_core = 263
		add_state_core = 246
		add_state_core = 247
		add_state_core = 219
		add_state_core = 205
		add_state_core = 222
		add_state_core = 258
		add_state_core = 223
		add_state_core = 248
		add_state_core = 253
		add_state_core = 254
		add_state_core = 257
		add_state_core = 252
		add_state_core = 255
		add_state_core = 239
		add_state_core = 250
		add_state_core = 256
		add_state_core = 833
		add_state_core = 249
		add_state_core = 399
		add_state_core = 400
		add_state_core = 397
		add_state_core = 880
		add_state_core = 262

		set_capital = {state = 219}
		}
		}

		}

	}

	SPA_hand_over_kazakhstan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		KAZ = { all_core_state = { is_controlled_by = SPR } }
		
		KAZ = { all_core_state = { is_controlled_by = FCU } }
		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_kazakhstan_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 407
		set_state_owner = 406
		set_state_owner = 587
		set_state_owner = 238
		set_state_owner = 237
		set_state_owner = 402
		set_state_owner = 583
		set_state_owner = 590
		set_state_owner = 882
		set_state_owner = 588
		set_state_owner = 589
		set_state_owner = 586
		set_state_owner = 404
		set_state_owner = 881

		set_state_controller = 407
		set_state_controller = 406
		set_state_controller = 587
		set_state_controller = 238
		set_state_controller = 237
		set_state_controller = 402
		set_state_controller = 583
		set_state_controller = 590
		set_state_controller = 882
		set_state_controller = 588
		set_state_controller = 589
		set_state_controller = 586
		set_state_controller = 404
		set_state_controller = 881

		add_state_core = 407
		add_state_core = 406
		add_state_core = 587
		add_state_core = 238
		add_state_core = 237
		add_state_core = 402
		add_state_core = 583
		add_state_core = 590
		add_state_core = 882
		add_state_core = 588
		add_state_core = 589
		add_state_core = 586
		add_state_core = 404
		add_state_core = 881
		}
		}
		}

	}

	SPA_hand_over_uzbekistan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		OR = {
		UZB = { all_core_state = { is_controlled_by = SPR } }
		
		UZB = { all_core_state = { is_controlled_by = FCU } }
		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_uzbekistan_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 830
		set_state_owner = 405
		set_state_owner = 585
		set_state_owner = 823
		set_state_owner = 831

		set_state_controller = 830
		set_state_controller = 405
		set_state_controller = 585
		set_state_controller = 823
		set_state_controller = 831

		add_state_core = 830
		add_state_core = 405
		add_state_core = 585
		add_state_core = 823
		add_state_core = 831
		}
		}
		}

	}

	SPA_hand_over_turkmenistan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			584 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
			832 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_turkmenistan_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 584
		set_state_owner = 832

		set_state_controller = 584
		set_state_controller = 832

		add_state_core = 584
		add_state_core = 832

		}
		}
		}

	}

	SPA_hand_over_kyrgyzstan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			732 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_kyrgyzstan_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 732

		set_state_controller = 732

		add_state_core = 732

		}
		}
		}

	}

	SPA_hand_over_tajikistan = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			742 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_tajikistan_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 742

		set_state_controller = 742

		add_state_core = 742

		}
		}
		}

	}

	SPA_hand_over_tannu_tuva = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
			329 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_tannu_tuva_tt
		hidden_effect = {		
		FCU = {
		set_state_owner = 329

		set_state_controller = 329

		add_state_core = 329

		}
		}
		}

	}

	SPA_hand_over_siberia = {
        icon = generic_political_reform
        fire_only_once = yes
        cost = 5
        available = {
		custom_trigger_tooltip = {
		tooltip = SPA_annex_siberia_tt
		572 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		653 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		580 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		579 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		577 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		403 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		571 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		578 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		570 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		40 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		654 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		569 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		576 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		824 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		516 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		567 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		568 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		564 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		566 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		878 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		575 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		563 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		876 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		574 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		561 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		657 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		408 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		409 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		655 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		560 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		562 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		877 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		644 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		874 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
	    822 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		637 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		875 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }
		565 = { OR = { is_controlled_by = SPR is_controlled_by = FCU } }

		}
        }
        visible = {
            has_completed_focus = SPA_horadelavenganza
			FCU = {
				exists = yes
			}
        }
        complete_effect = {
		custom_effect_tooltip =  SPA_hand_over_siberia_tt
		hidden_effect = {		
		FCU = {

		set_state_owner = 572
		set_state_owner = 653
		set_state_owner = 580
		set_state_owner = 579
		set_state_owner = 577
		set_state_owner = 403
		set_state_owner = 571
		set_state_owner = 578
		set_state_owner = 570
		set_state_owner = 40
		set_state_owner = 654
		set_state_owner = 569
		set_state_owner = 576
		set_state_owner = 824
		set_state_owner = 516
		set_state_owner = 567
		set_state_owner = 568
		set_state_owner = 564
		set_state_owner = 566
		set_state_owner = 878
		set_state_owner = 575
		set_state_owner = 563
		set_state_owner = 876
		set_state_owner = 574
		set_state_owner = 561
		set_state_owner = 657
		set_state_owner = 408
		set_state_owner = 409
		set_state_owner = 655
		set_state_owner = 560
		set_state_owner = 562
		set_state_owner = 877
		set_state_owner = 644
		set_state_owner = 874
		set_state_owner = 822
		set_state_owner = 637
		set_state_owner = 875
		set_state_owner = 565

		set_state_controller = 572
		set_state_controller = 653
		set_state_controller = 580
		set_state_controller = 579
		set_state_controller = 577
		set_state_controller = 403
		set_state_controller = 571
		set_state_controller = 578
		set_state_controller = 570
		set_state_controller = 40
		set_state_controller = 654
		set_state_controller = 569
		set_state_controller = 576
		set_state_controller = 824
		set_state_controller = 516
		set_state_controller = 567
		set_state_controller = 568
		set_state_controller = 564
		set_state_controller = 566
		set_state_controller = 878
		set_state_controller = 575
		set_state_controller = 563
		set_state_controller = 876
		set_state_controller = 574
		set_state_controller = 561
		set_state_controller = 657
		set_state_controller = 408
		set_state_controller = 409
		set_state_controller = 655
		set_state_controller = 560
		set_state_controller = 562
		set_state_controller = 877
		set_state_controller = 644
		set_state_controller = 874
		set_state_controller = 822
		set_state_controller = 637
		set_state_controller = 875
		set_state_controller = 565

		add_state_core = 572
		add_state_core = 653
		add_state_core = 580
		add_state_core = 579
		add_state_core = 577
		add_state_core = 403
		add_state_core = 571
		add_state_core = 578
		add_state_core = 570
		add_state_core = 40
		add_state_core = 654
		add_state_core = 569
		add_state_core = 576
		add_state_core = 824
		add_state_core = 516
		add_state_core = 567
		add_state_core = 568
		add_state_core = 564
		add_state_core = 566
		add_state_core = 878
		add_state_core = 575
		add_state_core = 563
		add_state_core = 876
		add_state_core = 574
		add_state_core = 561
		add_state_core = 657
		add_state_core = 408
		add_state_core = 409
		add_state_core = 655
		add_state_core = 560
		add_state_core = 562
		add_state_core = 877
		add_state_core = 644
		add_state_core = 874
		add_state_core = 822
		add_state_core = 637
		add_state_core = 875
		add_state_core = 565

		}
		}
		}

	}
}
