AI = {
	# Danubia + Switzerland
	every_country = {
		limit = {
			NOT = { country_rank = rank_value:great_power }
			any_country = {			
				OR = {
					country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:swiss
				}				
			}
		}
			
		save_scope_as = first_country
		every_country = {
			limit = { 
				NOT = { country_rank = rank_value:great_power }
				OR = {
					country_has_primary_culture = cu:north_german
					country_has_primary_culture = cu:south_german
					country_has_primary_culture = cu:swiss
				}				
			}
			effect_set_limited_non_hostile_mutual_secret_goal = yes
		}
	}	

	# Belgian Confederation
	c:BLC = {
		set_secret_goal = {
			country = c:PLA
			secret_goal = antagonize
		}
        set_secret_goal = {
			country = c:VIN
			secret_goal = antagonize
		}		
	}
    # Plantagenia
	c:PLA = {
		set_secret_goal = {
			country = c:BLC
			secret_goal = antagonize
		}
        set_secret_goal = {
			country = c:VIN
			secret_goal = antagonize
		}		
	}
    # Vinland
	c:VIN = {
		set_secret_goal = {
			country = c:BLC
			secret_goal = antagonize
		}
        set_secret_goal = {
			country = c:PLA
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:SCA
			secret_goal = befriend
		}			
	}

	# Scandinavia
	c:SCA = {
		set_secret_goal = {
			country = c:BRG
			secret_goal = befriend
		}
		set_secret_goal = {
			country = c:TVE
			secret_goal = protect
		}
		set_secret_goal = {
			country = c:VIN
			secret_goal = protect
		}
		save_scope_as = first_country
		c:TVE = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
	}

	# Dual Monarchy
	c:DUA = {
		save_scope_as = first_country
		c:SAV = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		c:GEN = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		set_secret_goal = {
			country = c:SPA
			secret_goal = befriend
		}
	}

	# Burgundy
	c:BRG = {
		set_secret_goal = {
			country = c:SCA
			secret_goal = befriend
		}
	}

	# Pope
	c:PAP = {
		set_secret_goal = {
			country = c:PRO
			secret_goal = antagonize
		}
		#set_secret_goal = {
		#	country = c:FRR
		#	secret_goal = protect
		#}
	}

	# Provence
	c:PRO = {
		set_secret_goal = {
			country = c:PAP
			secret_goal = antagonize
		}
	}

	# Spain
	c:SPA = {
		set_secret_goal = {
			country = c:DUA
			secret_goal = befriend
		}
	}

	# PLC
	c:POL = {
		save_scope_as = first_country
		c:MSO = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		c:HUN = {
			effect_set_non_hostile_mutual_secret_goal = yes
		}
	}

	# Hungary
	c:HUN = {
		save_scope_as = first_country
		c:WAL = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
	}

    # Moscow
    c:MSO = {
        set_secret_goal = {
			country = c:RYA
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:IUS
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:BAK
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:NZH
			secret_goal = protect
		}
	}

	# Yaroslavl
	c:TVE = {
		set_secret_goal = {
			country = c:RYA
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:IUS
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:BAK
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:NZH
			secret_goal = protect
		}
	}

	# Novgorod
	c:NOV = {
		set_secret_goal = {
			country = c:IUS
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:BAK
			secret_goal = antagonize
		}
		set_secret_goal = {
			country = c:SCA
			secret_goal = befriend
		}
	}

	# Japan
    c:JAP = {
		set_secret_goal = {
			country = c:KOR
			secret_goal = conquer
		}
	}

	# Ottomans
	c:TUR = {
		set_secret_goal = {
			country = c:MCD
			secret_goal = conquer
		}
		set_secret_goal = {
			country = c:ALB
			secret_goal = conquer
		}
		set_secret_goal = {
			country = c:EGY
			secret_goal = conquer
		}
		set_secret_goal = {
			country = c:IRQ
			secret_goal = conquer
		}

		save_scope_as = first_country
		c:CRI = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		c:HDJ = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
	}

	# Aragon
	c:ARN = {
		set_secret_goal = {
			country = c:MCD
			secret_goal = protect
		}
		set_secret_goal = {
			country = c:VEN
			secret_goal = befriend
		}		
	}

	# Gran Colombia
	c:GCO = {
		save_scope_as = first_country
		c:QUI = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
	}

	c:SHZ = {
		set_secret_goal = {
			country = c:TEH
			secret_goal = conquer
		}
		set_secret_goal = {
			country = c:TRC
			secret_goal = conquer
		}
	}

	c:TEH = {
		set_secret_goal = {
			country = c:SHZ
			secret_goal = conquer
		}
		set_secret_goal = {
			country = c:TRC
			secret_goal = conquer
		}
	}

	c:TRC = {
		set_secret_goal = {
			country = c:SHZ
			secret_goal = conquer
		}
		set_secret_goal = {
			country = c:TEH
			secret_goal = conquer
		}
	}

	c:JAI = {
		c:BIK = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		c:JOD = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		c:JAS = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
		c:MEW = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
	}

	c:KU1 = {
		c:KU4 = {
			effect_set_non_hostile_mutual_secret_goal_power_difference = yes
		}
	}
}
