po_balkan_princes = {
	category = 6 #Is treaty
	power_projection = hre_dismantled_byz #50 PP decaying 1/year, new for the mod
	power_cost_base = 5.0 #Some number
	prestige_base = 0.3125 #Somehow AE & Prestige base from WS has been doubled. Not sure why. #0.625 #Meant to give 50 prestige for 80 WS cost
	ae_base = 0.1875 #Somehow AE & Prestige base from WS has been doubled. Not sure why. #0.375 #30 AE for 80 WS cost. Should this be in? I think so, yes.
	warscore_cost = { #80 WS cost no matter what
		# Which of the giver's provinces' war score costs are included and by how much. All entries default to 0. Any combination of entries can be used. Try negative values at your own risk.
		all_provinces = 0.0 # All the giver's provinces
		no_provinces = 80.0 # This is just a constant. Equivalent to a single province with with war score cost 1
		owner_keeps = 0.0 # The provinces that are not of any of the types below
		conquered = 0.0 # Provinces that are selected by a Demand Province treaty
		returned_core = 0.0 # Provinces that are selected by a Return Core treaty
		released_nation = 0.0 # Provinces that will become a part of a selected released-to-be nation
		cancelled_subject = 0.0 # This one should not be relevant here since Giver can't be a cancelled subject. Including anyway for completeness
		concede_colonial_region = 0.0 # Ditto
	}
	warscore_cap = -1 # No cap
	requires_demand_independence = yes #Added in case something screws up
	requires_is_allowed = yes #Needs specific CB of cb_byz_dismantle_hre
	is_visible = { #Should not matter, but included in case I wish to change something
		always = yes
	}
	is_allowed = { #See above
		always = yes
	}
	effect = { #Cede Balkans effect
		if = { #Using a static tag in here. Could switch to FROM, but I cannot be bothered.
			limit = {
				balkan_region = { #Balkans
					owned_by = BYZ #Owned by Byz
					any_core_country = { #Any country that has the primary culture of this province and a core on it that is not Byz.
						primary_culture = PREV
						NOT = { tag = BYZ }
					}
				}
			}
			balkan_region = { #You can probably make this more efficient by somehow finding these countries that have cores in the Balkan region and referencing back to them, but I failed to see how I could utilise PREV and the like without creating individual event targets.
				if = { #If owned by Byz...
					limit = {
						owned_by = BYZ
					}
					every_core_country = { #Find every country with a core of said province in the Balkans (With primary culture because otherwise might get iffy)
						limit = {
							primary_culture = PREV
							NOT = { tag = BYZ }
						}
						every_core_province = { #Now take each core province of said nation owned by Byz...
							limit = {
								culture_group = PREV
								owned_by = BYZ
								region = balkan_region #Because otherwise we run into issues.
							}
							cede_province = PREV #And cede it to them.
							set_in_empire = yes #Add to HRE.
						}
					}
				}
			}
		}
	}
	ai_weight = { # Defaults to always evaluate to 0
		export_to_variable = { #Byz SMASH!
			variable_name = ai_value # Mandatory to have entry called "ai_value". Its value at the end of the ai_weight scope is what will be used
			value = 1000
		}
		limit = { # if limit evaluates false, ai_weight will evaluate to 0 regardless
			always = yes
		}
	}
}