### Image Locations
defined_text = {
	name = GetFactionStatus_icon

	### Ural Alliance ###
	text = {
		trigger = { has_idea = UA_Member }
		localization_key = "GFX_UA_Member"
	}

	### Afrika Schild ###
	#member
	text = {
		trigger = { has_idea = AS_Member }
		localization_key = "GFX_AS_Member"
	}

	text = {
		trigger = { has_idea = ARC_member }
		localization_key = "GFX_ARC_Member"
	}

	### Pakt ###
	#Master of Europe
	text = {
		trigger = { has_idea = Pakt_Leader }
		localization_key = "GFX_Pakt_Leader"
	}
	#Militärverwaltung
	text = {
		trigger = { has_idea = Pakt_Military_Authority }
		localization_key = "GFX_Pakt_Military_Authority"
	}
	#Protectorate
	text = {
		trigger = { has_idea = Pakt_Protektorat }
		localization_key = "GFX_Pakt_Protektorat"
	}
	#Integrated Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Integrated_Reichskommissariat }
		localization_key = "GFX_Pakt_Integrated_Reichskommissariat"
	}
	#Autonomous Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Autonomous_Reichskommissariat }
		localization_key = "GFX_Pakt_Autonomous_Reichskommissariat"
	}
	#Reichskolonie
	text = {
		trigger = { has_idea = Pakt_Reichskolonie }
		localization_key = "GFX_Pakt_Reichskolonie"
	}
	#Reichsland
	text = {
		trigger = { has_idea = Pakt_Reichsland }
		localization_key = "GFX_Pakt_Reichsland"
	}
	#Puppet State
	text = {
		trigger = { has_idea = Pakt_Marionettenstaat }
		localization_key = "GFX_Pakt_Marionettenstaat"
	}
	#Collaborating Member
	text = {
		trigger = { has_idea = Pakt_Mitstreiter }
		localization_key = "GFX_Pakt_Mitstreiter"
	}
	#Sovereign Member
	text = {
		trigger = { has_idea = Pakt_Bundnispartner }
		localization_key = "GFX_Pakt_Bundnispartner"
	}
	#Ordensstaat
	text = {
		trigger = { has_idea = Pakt_Ordensstaat }
		localization_key = "GFX_Pakt_Ordensstaat"
	}
	#Observer
	text = {
		trigger = { has_idea = Pakt_Observer }
		localization_key = "GFX_Pakt_Observer"
	}

	text = {
		trigger = { has_idea = Anti_Heydrich_Pact }
		localization_key = "GFX_Pakt_Protektorat"
	}

	text = {
		trigger = { has_idea = Anti_Himmler }
		localization_key = "GFX_Pakt_Leader"
	}

	text = {
		trigger = { has_idea = Anti_Heydrich }
		localization_key = "GFX_Pakt_Ordensstaat"
	}

	### Sphere ###
	#Leader
	text = {
		trigger = { has_idea = Sphere_Leader }
		localization_key = "GFX_Sphere_Leader"
	}

	#Core Member - China
	text = {
		trigger = {
			has_idea = Sphere_Core_Member
			original_tag = CHI
		}
		localization_key = "GFX_Sphere_Core_Member_CHI"
	}
	#Core Member - Manchukuo
	text = {
		trigger = {
			has_idea = Sphere_Core_Member
			original_tag = MAN
		}
		localization_key = "GFX_Sphere_Core_Member_MAN"
	}
	#Chinese Warlord
	text = {
		trigger = { has_idea = Sphere_Chinese_Warlord }
		localization_key = "GFX_Sphere_Chinese_Warlord"
	}
	#Corporate Dependency
	text = {
		trigger = { has_idea = Sphere_Corporate_Dependency }
		localization_key = "GFX_Sphere_Corporate_Dependency"
	}
	#Imperial Protectorate
	text = {
		trigger = { has_idea = Sphere_Imp_Protectorate }
		localization_key = "GFX_Sphere_Imp_Protectorate"
	}
	#Fully Dependent
	text = {
		trigger = { has_idea = Sphere_Fully_Dependent }
		localization_key = "GFX_Sphere_Fully_Dependent"
	}
	#Economically Dependent
	text = {
		trigger = { has_idea = Sphere_Economic_Dependent }
		localization_key = "GFX_Sphere_Economic_Dependent"
	}
	#CoEqual Member
	text = {
		trigger = { has_idea = Sphere_Coequal }
		localization_key = "GFX_Sphere_Coequal"
	}
	#Observer
	text = {
		trigger = { has_idea = Sphere_Observer }
		localization_key = "GFX_Sphere_Observer"
	}

	### National Liberation Front ###
	text = {
		trigger = { has_idea = NLF_Leader }
		localization_key = "GFX_National_Liberation_Front_Leader"
	}
	text = {
		trigger = { has_idea = NLF_Member }
		localization_key = "GFX_National_Liberation_Front_Member"
	}

	### OFN ###
	text = {
		trigger = { has_idea = OFN_Leader_of_The_Free_World }
		localization_key = "GFX_OFN_leader_of_the_free_world"
	}
	text = {
		trigger = { has_idea = OFN_Independent_Member }
		localization_key = "GFX_OFN_Leader"
	}
	text = {
		trigger = { has_idea = OFN_Dependent_Member }
		localization_key = "GFX_OFN_dependent_ofn_member"
	}
	text = {
		trigger = { has_idea = OFN_Military_Government }
		localization_key = "GFX_OFN_ofn_military_government"
	}
	text = {
		trigger = { has_idea = OFN_Mandate }
		localization_key = "GFX_OFN_ofn_mandate"
	}
	text = {
		trigger = { has_idea = OFN_Observer }
		localization_key = "GFX_OFN_Observer"
	}
	text = {
		trigger = { has_idea = OFN_Interim_Authority }
		localization_key = "GFX_OFN_Interim_Authority"
	}
	text = {
		trigger = { has_idea = OFN_Suspended_Member }
		localization_key = "GFX_OFN_Suspended_Member"
	}

	### TRIUM ###
	text = {
		trigger = { has_idea = TRI_Founder_IT }
		localization_key = "GFX_TRI_Founder_IT"
	}
	text = {
		trigger = { has_idea = TRI_Founder_IB }
		localization_key = "GFX_TRI_Founder_IB"
	}
	text = {
		trigger = { has_idea = TRI_Founder_TR }
		localization_key = "GFX_TRI_Founder_TR"
	}
	text = {
		trigger = { has_idea = TRI_Member }
		localization_key = "GFX_TRI_Member"
	}
	text = {
		trigger = { has_idea = TRI_Member_Client }
		localization_key = "GFX_TRI_Member_Client"
	}
	text = {
		trigger = { has_idea = TRI_Observer }
		localization_key = "GFX_TRI_Observer"
	}

	### Fascist Italy
	text = {
		trigger = { has_idea = ITA_Mediterranean_Bloc_Leader }
		localization_key = "GFX_Mediterranean_Bloc_Leader"
	}
	text = {
		trigger = { has_idea = ITA_Mediterranean_Bloc_Member }
		localization_key = "GFX_Mediterranean_Bloc_Member"
	}
	text = {
		trigger = { has_idea = ITA_Imperial_Alliance_Leader }
		localization_key = "GFX_Imperial_Alliance_Leader"
	}
	text = {
		trigger = { has_idea = ITA_Imperial_Alliance_Member }
		localization_key = "GFX_Imperial_Alliance_Member"
	}
	text = {
		trigger = { has_idea = ITA_Rome_Pact_Leader }
		localization_key = "GFX_Rome_Pact_Leader"
	}
	text = {
		trigger = { has_idea = ITA_Rome_Pact_Member }
		localization_key = "GFX_Rome_Pact_Member"
	}

	#LEVANTINE UNION
	text = {
		trigger = { has_idea = LEV_UNION_Member }
		localization_key = "GFX_LEV_UNION_Member"
	}
	text = {
		trigger = { has_idea = LEV_UNION_Mandate }
		localization_key = "GFX_LEV_UNION_Mandate"
	}

	#TEMP IME ITW FACTION
	text = {
		trigger = { has_idea = ITW_temp_faction_member }
		localization_key = "GFX_Rome_Pact_Member"
	}

	### United Filipino Front
	text = {
		trigger = { has_idea = UFF_Faction }
		localization_key = "GFX_UFF_Faction"
	}

	### Haitian United Front
	text = {
		trigger = { has_idea = HUF_Faction }
		localization_key = "GFX_HUF_Faction"
	}

	### Hispaniolan Revolutionary Front
	text = {
		trigger = { has_idea = HRF_Faction }
		localization_key = "GFX_HRF_Faction"
	}

	### Central Asia Defence League (Tajikistan + Kyrgyzstan)
	text = {
		trigger = { has_country_flag = CADL_MEMBER }
		localization_key = "GFX_Central_Asia_Defence_League_Member"
	}

	### Central Asian Solidarity Alliance (Turkmenistan + Uzbekistan)
	text = {
		trigger = { has_country_flag = CASA_MEMBER }
		localization_key = "GFX_Central_Asian_Solidarity_Alliance_Member"
	}

	### Orungu Alliance/Central Africa League
	text = {
		trigger = { has_country_flag = CAL_MEMBER }
		localization_key = "GFX_Orungu_Alliance_Member"
	}

	### Revolutionary Iranian Liberation Front
	text = {
		trigger = { has_country_flag = PER_RILF_MEMBER }
		localization_key = "GFX_Revolutionary_Iranian_Liberation_Front_Member"
	}

	### Siberian Mutual Assistance Compact (Zlatoust)
	text = {
		trigger = { has_country_flag = SMAC_MEMBER }
		localization_key = "GFX_Siberian_Mutual_Assistance_Compact_Member"
	}

	### West Africa
	text = {
		trigger = { has_idea = PALF_Faction }
		localization_key = GFX_PALF_Faction
	}
	text = {
		trigger = { has_idea = PALF_Satellite }
		localization_key = GFX_PALF_Satellite
	}
	text = {
		trigger = { has_idea = PALF_Faction_peace }
		localization_key = GFX_PALF_Faction
	}
	text = {
		trigger = { has_idea = PALF_Satellite_peace }
		localization_key = GFX_PALF_Satellite
	}
	text = {
		trigger = { has_idea = WAA_Faction }
		localization_key = GFX_WAA_Faction
	}
	text = {
		trigger = { has_idea = WAA_Protectorate }
		localization_key = GFX_WAA_Protectorate
	}
	text = {
		trigger = { has_idea = WAF_Faction }
		localization_key = GFX_WAF_Faction
	}
	text = {
		trigger = { has_idea = WAF_Supervised }
		localization_key = GFX_WAF_Supervised
	}
	text = {
		trigger = { has_idea = FMA_Faction }
		localization_key = GFX_FMA_Faction
	}
	text = {
		trigger = { has_idea = FMA_Puppet }
		localization_key = GFX_FMA_Puppet
	}
	text = {
		trigger = { has_idea = FRU_Faction }
		localization_key = GFX_FRU_Faction
	}
	text = {
		trigger = { has_idea = FRU_Associated }
		localization_key = GFX_FRU_Associated
	}

	text = {
		trigger = { has_idea = Mano_Member }
		localization_key = GFX_Mano_Member
	}
	#UAR
	text = {
		trigger = { has_idea = UAS_Member }
		localization_key = GFX_UAS_Member
	}

	# Indonesian Civil War
	text = {
		trigger = { has_idea = INS_leader }
		localization_key = GFX_ICW_Central_Government_Leader
	}
	text = {
		trigger = { has_idea = INS_loyalist }
		localization_key = GFX_ICW_Central_Government_Loyalist
	}
	text = {
		trigger = { has_idea = PRIM_leader }
		localization_key = GFX_ICW_PRIM_Leader
	}
	text = {
		trigger = { has_idea = PRIM_loyalist }
		localization_key = GFX_ICW_PRIM_Loyalist
	}
	
	#South Atlantic War
	text = {
		trigger = { 
			has_idea = BRA_Hegemon_of_South_America
			NOT = { country_exists = GUC }
		}
		localization_key = GFX_BRA_hegemon_cayenne
	}
	text = {
		trigger = { has_idea = BRA_Hegemon_of_South_America }
		localization_key = GFX_BRA_hegemon
	}
	text = {
		trigger = { has_idea = ARG_Hegemon_of_South_America }
		localization_key = GFX_ARG_hegemon
	}
	text = {
		trigger = { has_idea = BRA_aligned_state }
		localization_key = GFX_BRA_faction_member
	}
	text = {
		trigger = { has_idea = ARG_aligned_state }
		localization_key = GFX_ARG_faction_member
	}

	#Generic
	text = {
		localization_key = "GFX_generic_faction_small"
	}

}

# Faction or no faction
defined_text = {
	name = GetFactionNoFaction
	text = {
		trigger = { is_in_faction = yes }
		localization_key = "[THIS.GetFactionName]"
	}
	text = {
		localization_key = TNO_sg_faction_no_faction
	}
}


##TOOLTIP
#Tooltip Template
defined_text = {
	name = GetFactionStatus_tooltip
	text = { localization_key = FactionStatus_tooltip }
}

#Name
defined_text = {
	name = GetFactionStatus_name

	text = {
		trigger = { has_idea = UA_Member }
		localization_key = UA_Member
	}

	text = {
		trigger = { has_idea = AS_Member }
		localization_key = AS_Member
	}

	### Pakt ###
	#Master of Europe
	text = {
		trigger = { has_idea = Pakt_Leader }
		localization_key = Pakt_Leader
	}
	#Militärverwaltung
	text = {
		trigger = { has_idea = Pakt_Military_Authority }
		localization_key = Pakt_Military_Authority
	}
	#Protectorate
	text = {
		trigger = { has_idea = Pakt_Protektorat }
		localization_key = Pakt_Protektorat
	}
	#Integrated Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Integrated_Reichskommissariat }
		localization_key = Pakt_Integrated_Reichskommissariat
	}
	#Autonomous Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Autonomous_Reichskommissariat }
		localization_key = Pakt_Autonomous_Reichskommissariat
	}
	#Colony
	text = {
		trigger = { has_idea = Pakt_Reichskolonie }
		localization_key = Pakt_Reichskolonie
	}
	#Reichsland
	text = {
		trigger = { has_idea = Pakt_Reichsland }
		localization_key = Pakt_Reichsland
	}
	#Puppet State
	text = {
		trigger = { has_idea = Pakt_Marionettenstaat }
		localization_key = Pakt_Marionettenstaat
	}
	#Collaborating Member
	text = {
		trigger = { has_idea = Pakt_Mitstreiter }
		localization_key = Pakt_Mitstreiter
	}
	#Sovereign Member
	text = {
		trigger = { has_idea = Pakt_Bundnispartner }
		localization_key = Pakt_Bundnispartner
	}
	#Ordensstaat
	text = {
		trigger = { has_idea = Pakt_Ordensstaat }
		localization_key = Pakt_Ordensstaat
	}
	#Observer
	text = {
		trigger = { has_idea = Pakt_Observer }
		localization_key = Pakt_Observer
	}

	text = {
		trigger = { has_idea = Anti_Heydrich_Pact }
		localization_key = Anti_Heydrich_Pact
	}

	text = {
		trigger = { has_idea = Anti_Himmler }
		localization_key = Anti_Himmler
	}

	text = {
		trigger = { has_idea = Anti_Heydrich }
		localization_key = Anti_Heydrich
	}

	### Sphere ###
	#Leader
	text = {
		trigger = { has_idea = Sphere_Leader }
		localization_key = Sphere_Leader
	}

	#Core Member
	text = {
		trigger = { has_idea = Sphere_Core_Member }
		localization_key = Sphere_Core_Member
	}
	#Chinese Warlord
	text = {
		trigger = { has_idea = Sphere_Chinese_Warlord }
		localization_key = Sphere_Chinese_Warlord
	}
	#Special Economic Zone
	text = {
		trigger = { has_idea = Sphere_Corporate_Dependency }
		localization_key = Sphere_Corporate_Dependency
	}
	#Imperial Protectorate
	text = {
		trigger = { has_idea = Sphere_Imp_Protectorate }
		localization_key = Sphere_Imp_Protectorate
	}
	#Fully Dependent
	text = {
		trigger = { has_idea = Sphere_Fully_Dependent }
		localization_key = Sphere_Fully_Dependent
	}
	#Economically Dependent
	text = {
		trigger = { has_idea = Sphere_Economic_Dependent }
		localization_key = Sphere_Economic_Dependent
	}
	#CoEqual Member
	text = {
		trigger = { has_idea = Sphere_Coequal }
		localization_key = Sphere_Coequal
	}
	#Observer
	text = {
		trigger = { has_idea = Sphere_Observer }
		localization_key = Sphere_Observer
	}

	### NLF ###
	text = {
		trigger = { has_idea = NLF_Leader }
		localization_key = NLF_Leader
	}
	text = {
		trigger = { has_idea = NLF_Member }
		localization_key = NLF_Member
	}

	### OFN ###
	text = {
		trigger = { has_idea = OFN_Leader_of_The_Free_World }
		localization_key = OFN_Leader_of_The_Free_World
	}
	text = {
		trigger = { has_idea = OFN_Independent_Member }
		localization_key = OFN_Independent_Member
	}
	text = {
		trigger = { has_idea = OFN_Dependent_Member }
		localization_key = OFN_Dependent_Member
	}
	text = {
		trigger = { has_idea = OFN_Military_Government }
		localization_key = OFN_Military_Government
	}
	text = {
		trigger = { has_idea = OFN_Mandate }
		localization_key = OFN_Mandate
	}
	text = {
		trigger = { has_idea = OFN_Suspended_Member }
		localization_key = OFN_Suspended_Member
	}
	#Observer
	text = {
		trigger = { has_idea = OFN_Observer }
		localization_key = OFN_Observer
	}
	text = {
		trigger = { has_idea = OFN_Interim_Authority }
		localization_key = OFN_Interim_Authority
	}

	text = {
		trigger = { has_idea = TRI_Founder_IT }
		localization_key = TRI_Founder_IT
	}
	text = {
		trigger = { has_idea = TRI_Founder_IB }
		localization_key = TRI_Founder_IB
	}
	text = {
		trigger = { has_idea = TRI_Founder_TR }
		localization_key = TRI_Founder_TR
	}
	text = {
		trigger = { has_idea = TRI_Member }
		localization_key = TRI_Member
	}
	text = {
		trigger = { has_idea = TRI_Member_Client }
		localization_key = TRI_Member_Client
	}
	text = {
		trigger = { has_idea = TRI_Observer }
		localization_key = TRI_Observer
	}

	### Fascist Italy
	text = {
		trigger = { has_idea = ITA_Mediterranean_Bloc_Leader }
		localization_key = "ITA_Mediterranean_Bloc_Leader"
	}
	text = {
		trigger = { has_idea = ITA_Mediterranean_Bloc_Member }
		localization_key = "ITA_Mediterranean_Bloc_Member"
	}
	text = {
		trigger = { has_idea = ITA_Imperial_Alliance_Leader }
		localization_key = "ITA_Imperial_Alliance_Leader"
	}
	text = {
		trigger = { has_idea = ITA_Imperial_Alliance_Member }
		localization_key = "ITA_Imperial_Alliance_Member"
	}
	text = {
		trigger = { has_idea = ITA_Rome_Pact_Leader }
		localization_key = "ITA_Rome_Pact_Leader"
	}
	text = {
		trigger = { has_idea = ITA_Rome_Pact_Member }
		localization_key = "ITA_Rome_Pact_Member"
	}

	text = {
		trigger = { has_idea = UFF_Faction }
		localization_key = UFF_Faction
	}

	text = {
		trigger = { has_idea = HUF_Faction }
		localization_key = HUF_Faction
	}
	text = {
		trigger = { has_idea = HRF_Faction }
		localization_key = HRF_Faction
	}

	text = {
		trigger = { has_idea = LEV_UNION_Member }
		localization_key = LEV_UNION_Member
	}
	text = {
		trigger = { has_idea = LEV_UNION_Mandate }
		localization_key = LEV_UNION_Mandate
	}

	#TEMP IME ITW FACTION
	text = {
		trigger = { has_idea = ITW_temp_faction_member }
		localization_key = "ITW_temp_faction_member"
	}

	### West Africa
	text = {
		trigger = { has_idea = PALF_Faction }
		localization_key = PALF_Faction
	}
	text = {
		trigger = { has_idea = PALF_Satellite }
		localization_key = PALF_Satellite
	}
	text = {
		trigger = { has_idea = PALF_Faction_peace }
		localization_key = PALF_Faction_peace
	}
	text = {
		trigger = { has_idea = PALF_Satellite_peace }
		localization_key = PALF_Satellite_peace
	}

	text = {
		trigger = { has_idea = WAA_Faction }
		localization_key = WAA_Faction
	}
	text = {
		trigger = { has_idea = WAA_Protectorate }
		localization_key = WAA_Protectorate
	}

	text = {
		trigger = { has_idea = WAF_Faction }
		localization_key = WAF_Faction
	}
	text = {
		trigger = { has_idea = WAF_Supervised }
		localization_key = WAF_Supervised
	}

	text = {
		trigger = { has_idea = FMA_Faction }
		localization_key = FMA_Faction
	}
	text = {
		trigger = { has_idea = FMA_Puppet }
		localization_key = FMA_Puppet
	}

	text = {
		trigger = { has_idea = FRU_Faction }
		localization_key = FRU_Faction
	}
	text = {
		trigger = { has_idea = FRU_Associated }
		localization_key = FRU_Associated
	}

	text = {
		trigger = { has_idea = Mano_Member }
		localization_key = Mano_Member
	}
	#UAR
	text = {
		trigger = { has_idea = UAS_Member }
		localization_key = UAS_Member
	}

	# Indonesian Civil War
	text = {
		trigger = { has_idea = INS_leader }
		localization_key = INS_leader
	}
	text = {
		trigger = { has_idea = INS_loyalist }
		localization_key = INS_loyalist
	}
	text = {
		trigger = { has_idea = PRIM_leader }
		localization_key = PRIM_leader
	}
	text = {
		trigger = { has_idea = PRIM_loyalist }
		localization_key = PRIM_loyalist
	}
	text = {
		trigger = { has_idea = BRA_Hegemon_of_South_America }
		localization_key = BRA_Hegemon_of_South_America
	}
	text = {
		trigger = { has_idea = ARG_Hegemon_of_South_America }
		localization_key = ARG_Hegemon_of_South_America
	}


	### Fallback/generic faction
	text = { localization_key = Generic_Faction }
}

#Name
defined_text = {
	name = GetFactionStatus_effect

	text = {
		trigger = { has_idea = UA_Member }
		localization_key = UA_Member_effect
	}

	text = {
		trigger = { has_idea = AS_Member }
		localization_key = AS_Member_effect
	}

	text = {
		trigger = { has_idea = ARC_Member }
		localization_key = ARC_Member_effect
	}

	### Pakt ###
	#Master of Europe
	text = {
		trigger = { has_idea = Pakt_Leader }
		localization_key = Pakt_Leader_effect
	}
	#Militärverwaltung
	text = {
		trigger = { has_idea = Pakt_Military_Authority }
		localization_key = Pakt_Military_Authority_effect
	}
	#Protectorate
	text = {
		trigger = { has_idea = Pakt_Protektorat }
		localization_key = Pakt_Protektorat_effect
	}
	#Integrated Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Integrated_Reichskommissariat }
		localization_key = Pakt_Integrated_Reichskommissariat_effect
	}
	#Autonomous Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Autonomous_Reichskommissariat }
		localization_key = Pakt_Autonomous_Reichskommissariat_effect
	}
	#Autonomous Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Reichsland }
		localization_key = Pakt_Reichsland_effect
	}
	#Colony
	text = {
		trigger = { has_idea = Pakt_Reichskolonie }
		localization_key = Pakt_Reichskolonie_effect
	}
	#Puppet State
	text = {
		trigger = { has_idea = Pakt_Marionettenstaat }
		localization_key = Pakt_Marionettenstaat_effect
	}
	#Collaborating Member
	text = {
		trigger = { has_idea = Pakt_Mitstreiter }
		localization_key = Pakt_Mitstreiter_effect
	}
	#Sovereign Member
	text = {
		trigger = { has_idea = Pakt_Bundnispartner }
		localization_key = Pakt_Bundnispartner_effect
	}
	#Ordensstaat
	text = {
		trigger = { has_idea = Pakt_Ordensstaat }
		localization_key = Pakt_Ordensstaat_effect
	}
	#Observer
	text = {
		trigger = { has_idea = Pakt_Observer }
		localization_key = Pakt_Observer_effect
	}

	text = {
		trigger = { has_idea = Anti_Heydrich_Pact }
		localization_key = Anti_Heydrich_Pact_effect
	}

	text = {
		trigger = { has_idea = Anti_Himmler }
		localization_key = Anti_Himmler_effect
	}

	text = {
		trigger = { has_idea = Anti_Heydrich }
		localization_key = Anti_Heydrich_effect
	}

	### Sphere ###
	#Leader
	text = {
		trigger = { has_idea = Sphere_Leader }
		localization_key = Sphere_Leader_effect
	}

	#Core Member
	text = {
		trigger = { has_idea = Sphere_Core_Member }
		localization_key = Sphere_Core_Member_effect
	}
	#Chinese Warlord
	text = {
		trigger = { has_idea = Sphere_Chinese_Warlord }
		localization_key = Sphere_Chinese_Warlord_effect
	}
	#Special Economic Zone
	text = {
		trigger = { has_idea = Sphere_Corporate_Dependency }
		localization_key = Sphere_Corporate_Dependency_effect
	}
	#Imperial Protectorate
	text = {
		trigger = { has_idea = Sphere_Imp_Protectorate }
		localization_key = Sphere_Imp_Protectorate_effect
	}
	#Fully Dependent
	text = {
		trigger = { has_idea = Sphere_Fully_Dependent }
		localization_key = Sphere_Fully_Dependent_effect
	}
	#Economically Dependent
	text = {
		trigger = { has_idea = Sphere_Economic_Dependent }
		localization_key = Sphere_Economic_Dependent_effect
	}
	#CoEqual Member
	text = {
		trigger = { has_idea = Sphere_Coequal }
		localization_key = Sphere_Coequal_effect
	}
	#Observer
	text = {
		trigger = { has_idea = Sphere_Observer }
		localization_key = Sphere_Observer_effect
	}

	### OFN ###
	text = {
		trigger = { has_idea = OFN_Leader_of_The_Free_World }
		localization_key = OFN_Leader_of_The_Free_World_effect
	}
	text = {
		trigger = { has_idea = OFN_Independent_Member }
		localization_key = OFN_Independent_Member_effect
	}
	text = {
		trigger = { has_idea = OFN_Dependent_Member }
		localization_key = OFN_Dependent_Member_effect
	}
	text = {
		trigger = { has_idea = OFN_Military_Government }
		localization_key = OFN_Military_Government_effect
	}
	text = {
		trigger = { has_idea = OFN_Mandate }
		localization_key = OFN_Mandate_effect
	}
	#Observer
	text = {
		trigger = { has_idea = OFN_Observer }
		localization_key = OFN_Observer_effect
	}
	text = {
		trigger = { has_idea = OFN_Interim_Authority }
		localization_key = OFN_Interim_Authority_effect
	}
}

defined_text = {
	name = GetFactionStatus_desc

	text = {
		trigger = { has_idea = UA_Member }
		localization_key = UA_Member_desc
	}

	text = {
		trigger = { has_idea = AS_Member }
		localization_key = AS_Member_desc
	}

	### Pakt ###
	#Master of Europe
	text = {
		trigger = { has_idea = Pakt_Leader }
		localization_key = Pakt_Leader_desc
	}
	#Militärverwaltung
	text = {
		trigger = { has_idea = Pakt_Military_Authority }
		localization_key = Pakt_Military_Authority_desc
	}
	#Protectorate
	text = {
		trigger = { has_idea = Pakt_Protektorat }
		localization_key = Pakt_Protektorat_desc
	}
	#Integrated Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Integrated_Reichskommissariat }
		localization_key = Pakt_Integrated_Reichskommissariat_desc
	}
	#Autonomous Reichskommissariat
	text = {
		trigger = { has_idea = Pakt_Autonomous_Reichskommissariat }
		localization_key = Pakt_Autonomous_Reichskommissariat_desc
	}
	#Reichsland
	text = {
		trigger = { has_idea = Pakt_Reichsland }
		localization_key = Pakt_Reichsland_desc
	}
	#Colony
	text = {
		trigger = { has_idea = Pakt_Reichskolonie }
		localization_key = Pakt_Reichskolonie_desc
	}
	#Puppet State
	text = {
		trigger = { has_idea = Pakt_Marionettenstaat }
		localization_key = Pakt_Marionettenstaat_desc
	}
	#Collaborating Member
	text = {
		trigger = { has_idea = Pakt_Mitstreiter }
		localization_key = Pakt_Mitstreiter_desc
	}
	#Sovereign Member
	text = {
		trigger = { has_idea = Pakt_Bundnispartner }
		localization_key = Pakt_Bundnispartner_desc
	}
	#Ordensstaat
	text = {
		trigger = { has_idea = Pakt_Ordensstaat }
		localization_key = Pakt_Ordensstaat_desc
	}
	#Observer
	text = {
		trigger = { has_idea = Pakt_Observer }
		localization_key = Pakt_Observer_desc
	}

	text = {
		trigger = { has_idea = Anti_Heydrich_Pact }
		localization_key = Anti_Heydrich_Pact_desc
	}

	text = {
		trigger = { has_idea = Anti_Himmler }
		localization_key = Anti_Himmler_desc
	}

	text = {
		trigger = { has_idea = Anti_Heydrich }
		localization_key = Anti_Heydrich_desc
	}

	### Sphere ###
	#Leader
	text = {
		trigger = { has_idea = Sphere_Leader }
		localization_key = Sphere_Leader_desc
	}

	#Core Member
	text = {
		trigger = { has_idea = Sphere_Core_Member }
		localization_key = Sphere_Core_Member_desc
	}
	#Chinese Warlord
	text = {
		trigger = { has_idea = Sphere_Chinese_Warlord }
		localization_key = Sphere_Chinese_Warlord_desc
	}
	#Special Economic Zone
	text = {
		trigger = { has_idea = Sphere_Corporate_Dependency }
		localization_key = Sphere_Corporate_Dependency_desc
	}
	#Imperial Protectorate
	text = {
		trigger = { has_idea = Sphere_Imp_Protectorate }
		localization_key = Sphere_Imp_Protectorate_desc
	}
	#Fully Dependent
	text = {
		trigger = { has_idea = Sphere_Fully_Dependent }
		localization_key = Sphere_Fully_Dependent_desc
	}
	#Economically Dependent
	text = {
		trigger = { has_idea = Sphere_Economic_Dependent }
		localization_key = Sphere_Economic_Dependent_desc
	}
	#CoEqual Member
	text = {
		trigger = { has_idea = Sphere_Coequal }
		localization_key = Sphere_Coequal_desc
	}
	#Observer
	text = {
		trigger = { has_idea = Sphere_Observer }
		localization_key = Sphere_Observer_desc
	}
	### NLF ###
	text = {
		trigger = { has_idea = NLF_Leader }
		localization_key = NLF_Leader_desc
	}
	text = {
		trigger = { has_idea = NLF_Member }
		localization_key = NLF_Member_desc
	}

	### OFN ###
	text = {
		trigger = { has_idea = OFN_Leader_of_The_Free_World }
		localization_key = OFN_Leader_of_The_Free_World_desc
	}
	text = {
		trigger = { has_idea = OFN_Independent_Member }
		localization_key = OFN_Independent_Member_desc
	}
	text = {
		trigger = { has_idea = OFN_Dependent_Member }
		localization_key = OFN_Dependent_Member_desc
	}
	text = {
		trigger = { has_idea = OFN_Military_Government }
		localization_key = OFN_Military_Government_desc
	}
	text = {
		trigger = { has_idea = OFN_Mandate }
		localization_key = OFN_Mandate_desc
	}
	text = {
		trigger = { has_idea = OFN_Suspended_Member }
		localization_key = OFN_Suspended_Member_desc
	}
	#Observer
	text = {
		trigger = { has_idea = OFN_Observer }
		localization_key = OFN_Observer_desc
	}
	text = {
		trigger = { has_idea = OFN_Interim_Authority }
		localization_key = OFN_Interim_Authority_desc
	}


	###Triumvirate
	text = {
		trigger = { has_idea = TRI_Founder_IT }
		localization_key = TRI_Founder_IT_desc
	}
	text = {
		trigger = { has_idea = TRI_Founder_IB }
		localization_key = TRI_Founder_IB_desc
	}
	text = {
		trigger = { has_idea = TRI_Founder_TR }
		localization_key = TRI_Founder_TR_desc
	}
	text = {
		trigger = { has_idea = TRI_Member }
		localization_key = TRI_Member_desc
	}
	text = {
		trigger = { has_idea = TRI_Member_Client }
		localization_key = TRI_Member_Client_desc
	}
	text = {
		trigger = { has_idea = TRI_Observer }
		localization_key = TRI_Observer_desc
	}

	### Fascist Italy - Commented out unless they get actual faction descs
	#text = {
	#	trigger = { has_idea = ITA_Mediterranean_Bloc_Leader }
	#	localization_key = "ITA_Mediterranean_Bloc_Leader_desc"
	#}
	#text = {
	#	trigger = { has_idea = ITA_Mediterranean_Bloc_Member }
	#	localization_key = "ITA_Mediterranean_Bloc_Member_desc"
	#}
	#text = {
	#	trigger = { has_idea = ITA_Imperial_Alliance_Leader }
	#	localization_key = "ITA_Imperial_Alliance_Leader_desc"
	#}
	#text = {
	#	trigger = { has_idea = ITA_Imperial_Alliance_Member }
	#	localization_key = "ITA_Imperial_Alliance_Member_desc"
	#}
	#text = {
	#	trigger = { has_idea = ITA_Rome_Pact_Leader }
	#	localization_key = "ITA_Rome_Pact_Leader_desc"
	#}
	#text = {
	#	trigger = { has_idea = ITA_Rome_Pact_Member }
	#	localization_key = "ITA_Rome_Pact_Member_desc"
	#}

	text = {
		trigger = { has_idea = LEV_UNION_Member }
		localization_key = LEV_UNION_Member_desc
	}
	text = {
		trigger = { has_idea = LEV_UNION_Mandate }
		localization_key = LEV_UNION_Mandate_desc
	}
	
	#TEMP IME ITW FACTION
	text = {
		trigger = { has_idea = ITW_temp_faction_member }
		localization_key = "ITW_temp_faction_member_desc"
	}

	###Philippines
	text = {
		trigger = { has_idea = UFF_Faction }
		localization_key = UFF_Faction_desc
	}

	###Hispaniola
	text = {
		trigger = { has_idea = HUF_Faction }
		localization_key = HUF_Faction_desc
	}
	text = {
		trigger = { has_idea = HRF_Faction }
		localization_key = HRF_Faction_desc
	}

	### West Africa
	text = {
		trigger = { has_idea = PALF_Faction }
		localization_key = PALF_Faction_desc
	}
	text = {
		trigger = { has_idea = PALF_Satellite }
		localization_key = PALF_Satellite_desc
	}
	text = {
		trigger = { has_idea = PALF_Faction_peace }
		localization_key = PALF_Faction_peace_desc
	}
	text = {
		trigger = { has_idea = PALF_Satellite_peace }
		localization_key = PALF_Satellite_peace_desc
	}

	text = {
		trigger = { has_idea = WAA_Faction }
		localization_key = WAA_Faction_desc
	}
	text = {
		trigger = { has_idea = WAA_Protectorate }
		localization_key = WAA_Protectorate_desc
	}

	text = {
		trigger = { has_idea = WAF_Faction }
		localization_key = WAF_Faction_desc
	}
	text = {
		trigger = { has_idea = WAF_Supervised }
		localization_key = WAF_Supervised_desc
	}

	text = {
		trigger = { has_idea = FMA_Faction }
		localization_key = FMA_Faction_desc
	}
	text = {
		trigger = { has_idea = FMA_Puppet }
		localization_key = FMA_Puppet_desc
	}

	text = {
		trigger = { has_idea = FRU_Faction }
		localization_key = FRU_Faction_desc
	}
	text = {
		trigger = { has_idea = FRU_Associated }
		localization_key = FRU_Associated_desc
	}

	text = {
		trigger = { has_idea = Mano_Member }
		localization_key = Mano_Member_desc
	}

	text = {
		trigger = { has_idea = UAS_Member }
		localization_key = UAS_Member_desc
	}

	# Indonesian Civil War
	text = {
		trigger = { has_idea = INS_leader }
		localization_key = INS_leader_desc
	}
	text = {
		trigger = { has_idea = INS_loyalist }
		localization_key = INS_loyalist_desc
	}
	text = {
		trigger = { has_idea = PRIM_leader }
		localization_key = PRIM_leader_desc
	}
	text = {
		trigger = { has_idea = PRIM_loyalist }
		localization_key = PRIM_loyalist_desc
	}
	
	#South Atlantic War
	text = {
		trigger = { has_idea = BRA_Hegemon_of_South_America }
		localization_key = BRA_Hegemon_of_South_America_desc
	}
	text = {
		trigger = { has_idea = ARG_Hegemon_of_South_America }
		localization_key = ARG_Hegemon_of_South_America_desc
	}

	###Fallback/generic
	text = {
		localization_key = Generic_Faction_desc
	}
}

defined_text = {
	name = GetSphereTotalGDP
	text = { #dumb workaround
		localization_key = "[?This.total_econ_sphere_GDP]"
	}
}
defined_text = {
	name = GetSphereGrossTrade
	text = { #dumb workaround
		localization_key = "[?This.total_trade_gross_value]"
	}
}
defined_text = {
	name = GetSphereGlobalGDP
	text = { #dumb workaround
		localization_key = "[?This.econ_sphere_world_percent]"
	}
}