defined_text = {
	name = GetSocietyCurrency #use [Root.Society.GetCurrency] or [From.Society.GetCurrency] to refere to any society currency in your localization

	text = {
		localisation_key = viking_society_currency #the currency name seen in the society and localization file
		trigger = { society_member_of = viking_society }
	}
}

defined_text = {
	name = GetVikingRankUpTooltip #if you change the rank up requirement, these are the tooltips you need to change, this is the "common" part

	text = {
		trigger = {  society_rank == 1 }
		localisation_key = GetVikingRankUpTooltip_Standard_Rank1 #these are the individual requirements
	}
	text = {
		trigger = { society_rank == 2 }
		localisation_key = GetVikingRankUpTooltip_Standard_Rank2
	}
	text = {
		trigger = { society_rank == 3 }
		localisation_key = GetVikingRankUpTooltip_Standard_Rank3
	}
}

defined_text = { #the various ranks names, use [From.GetSocietyRank] or [Root.GetSocietyRank]
	name = GetSocietyRank

	text = {
		localisation_key = viking_society_rank_1_female #all of these need to be the sames as the code rank names in localization
		trigger = { is_female = yes society_rank = { society = viking_society rank == 1 } }
	}
	text = {
		localisation_key = viking_society_rank_1_male
		trigger = { is_female = no society_rank = { society = viking_society rank == 1 } }
	}
	text = {
		localisation_key = viking_society_rank_2_female
		trigger = { is_female = yes society_rank = { society = viking_society rank == 2 } }
	}
	text = {
		localisation_key = viking_society_rank_2_male
		trigger = { is_female = no society_rank = { society = viking_society rank == 2 } }
	}
	text = {
		localisation_key = viking_society_rank_3_female
		trigger = { is_female = yes society_rank = { society = viking_society rank == 3 } }
	}
	text = {
		localisation_key = viking_society_rank_3_male
		trigger = { is_female = no society_rank = { society = viking_society rank == 3 } }
	}
	text = {
		localisation_key = viking_society_rank_4_female
		trigger = { is_female = yes society_rank = { society = viking_society rank == 4 } }
	}
	text = {
		localisation_key = viking_society_rank_4_male
		trigger = { is_female = no society_rank = { society = viking_society rank == 4 } }
	}
}

defined_text = {
	name = GetSocietyName # Returns the name of target's society, with [From.GetSocietyName] for example
	
	text = {
		localisation_key = string_viking_society #the word to localize
		trigger = { society_member_of = viking_society }
	}
}

defined_text = {
	name = GetSocietyNameCap # Returns the name of target's society with inital Capital letter, use [From.GetSocietyNameCap]

	text = {
		localisation_key = viking_society #should be the society name
		trigger = { society_member_of = viking_society }
	}
}