seek_spain_alliance = {
	enable = {
		NOT = { tag = SPR }
		has_country_flag = seeks_spain_alliance
	}
	
	abort = {
		NOT = { has_country_flag = seeks_spain_alliance }
	}
	
	ai_strategy = {
		type = befriend
		id = "SPR"
		value = 150
	}
	ai_strategy = {
		type = alliance
		id = "SPR"
		value = 150
	}
}

influenced_by_spain = {
	enable = {
		NOT = { tag = SPR }
		has_country_flag = influenced_by_spain
	}
	
	abort = {
		NOT = { has_country_flag = influenced_by_spain }
	}
	
	ai_strategy = {
		type = befriend
		id = "SPR"
		value = 40
	}
	ai_strategy = {
		type = alliance
		id = "SPR"
		value = 40
	}
}
influenced_by_spain2 = {
	enable = {
		NOT = { tag = SPR }
		has_country_flag = influenced_by_spain_2
	}
	
	abort = {
		NOT = { has_country_flag = influenced_by_spain_2 }
	}
	
	ai_strategy = {
		type = befriend
		id = "SPR"
		value = 40
	}
	ai_strategy = {
		type = alliance
		id = "SPR"
		value = 40
	}
}