#AVIALABLE CUSTOM LOCALISATION KEYS
#When adding new custom loc keys, add them to the appropriate category (or add a new one) and describe them. Name the strings "String_X" where x is its content.
# To not display anything, you can use 'localisation_key = ""'
# Please add one example sentence for each key.

#As this list grow organize with categories.
#Current loc keys in this file:
#GetTributaryOverlord
#GetOldEra
#GetLocalPowerStructure
#GetGovernmentSupporters
#GetNoblesReplacementForOtherGovernments


### Titular for Overlord
#Ex: "On a mission to visit the [Son of Heaven]"
defined_text = {
    name = GetTributaryOverlord

    text = {
        localisation_key = string_son_of_heaven
        trigger = {
			is_emperor_of_china = yes
            is_female = no
        }
    }
    text = {
        localisation_key = string_daughter_of_heaven
        trigger = {
			is_emperor_of_china = yes
            is_female = yes
        }
    }
	text = {
        localisation_key = string_tributary_overlord_title
        trigger = {
			is_emperor_of_china = no
        }
	}
}

#Old Era
#Ex: "A [Medieval] Manuscript"
defined_text = {
    name = GetOldEra

    text = {
        localisation_key = string_song_era
        trigger = {
			capital_scope = {
				superregion = china_superregion
			}
        }
    }
	text = {
        localisation_key = string_goguryeo_era
        trigger = {
			capital_scope = {
				region = korea_region
			}
        }
    }
    text = {
        localisation_key = string_middle_ages
        trigger = {
			capital_scope = {
				continent = europe
			}
        }
    }
	text = {
        localisation_key = string_classical
        trigger = {
			capital_scope = {
				continent = europe
			}
        }
    }
	text = {
        localisation_key = string_pre_islamic
        trigger = {
			capital_scope = {
				religion_group = muslim
			}
        }
	}
	text = {
        localisation_key = string_vedic
        trigger = {
			capital_scope = {
				religion_group = dharmic
			}
        }
	}
	text = {
        localisation_key = string_ancient_era
        trigger = {
				capital_scope = {
					NOT = { continent = europe }
					NOT = { superregion = china_superregion }
					NOT = { region = korea_region }
					NOT = { religion_group = muslim }
					NOT = { religion_group = dharmic }
				}
        }
	}
}

#Low Level Official
#Ex: "A local [Mandarin] immediately reacted to the..."
defined_text = {
    name = GetLowLevelOfficialForCountry

    text = {
        localisation_key = string_mandarin
        trigger = {
			culture_group = east_asian #Chinese
        }
    }
    text = {
        localisation_key = string_zamindar
        trigger = {
			religion_group = muslim
			OR = {
				culture_group = eastern_aryan
				culture_group = hindusthani
				culture_group = western_aryan
				culture_group = dravidian
				culture_group = central_indic
			}
        }
    }
	text = {
        localisation_key = string_bey
        trigger = {
			religion_group = muslim
			NOT = {
				culture_group = eastern_aryan
				culture_group = hindusthani
				culture_group = western_aryan
				culture_group = dravidian
				culture_group = central_indic
			}
        }
	}
	text = {
        localisation_key = string_polygar
        trigger = {
			NOT = { religion_group = muslim }
			culture_group = dravidian
        }
	}
	text = {
        localisation_key = string_thakur
        trigger = {
			NOT = { religion_group = muslim }
			OR = {
				culture_group = eastern_aryan
				culture_group = hindusthani
				culture_group = western_aryan
				culture_group = central_indic
			}
        }
	}
	text = {
		localisation_key = string_zupan
		trigger = {
			culture_group = south_slavic
		}
	}
	text = {
		localisation_key = string_bailif
		trigger = {
			OR = {
				culture_group = british
				culture = anglois
				culture_group = french
				culture_group = germanic
			}
		}
	}
	text = {
		localisation_key = string_ispan
		trigger = {
			culture_group = carpathian
		}
	}
	text = {
        localisation_key = string_official
        trigger = {
			NOT = { religion_group = muslim }
			NOT = {
				culture_group = east_asian
				culture_group = eastern_aryan
				culture_group = hindusthani
				culture_group = western_aryan
				culture_group = dravidian
				culture_group = central_indic
				culture_group = south_slavic
				culture_group = british
				culture = anglois
				culture_group = french
				culture_group = germanic
			}
        }
	}
}

#A local power structure, such as a court or local parliament
#Ex: "The [Court] refused our request to hand over the culprits"
defined_text = {
    name = GetLocalPowerStructure

    text = {
        localisation_key = string_court
		trigger = {
			religion_group = christian
		}
    }
	text = {
        localisation_key = string_junta
		trigger = {
			is_year = 1700
			culture_group = iberian
		}
    }
	text = {
		 localisation_key = string_court
		trigger = {
			NOT = { religion_group = christian }
		}
	}
}

#Supporters of the Ruler, be he a Khan, King or President
#Ex: "The [Royalists] have come to our aid"
defined_text = {
    name = GetGovernmentSupporters

    text = {
        localisation_key = string_royalist
		trigger = {
			government = monarchy
		}
    }
	text = {
        localisation_key = string_khanzada
		trigger = {
			has_reform = steppe_horde
		}
    }
	text = {
        localisation_key = string_royalist
		trigger = {
			government = tribal
		}
    }
	text = {
		 localisation_key = string_republican
		trigger = {
			government = republic
		}
	}
	text = {
		 localisation_key = string_clergy
		trigger = {
			government = theocracy
		}
	}
}


#When you need to refer to a ruling social class but cannot be sure you're dealing with a monarchy.
#Ex: "The [Nobles] are Concerned"
defined_text = {
	name = GetNoblesReplacementForOtherGovernments

	text = {
		localisation_key = string_nobles
		trigger = {
			NOT = { government = republic }
		}
	}
	text = {
		localisation_key = string_influential_families
		trigger = {
			government = republic
		}
	}
}

#When you need to refer to a ruling social class but cannot be sure you're dealing with a monarchy.
#Ex: "The [Nobles] are Concerned"
defined_text = {
	name = GetRoyalOrState

	text = {
		localisation_key = string_royal
		trigger = {
			NOT = { government = republic }
		}
	}
	text = {
		localisation_key = string_state
		trigger = {
			government = republic
		}
	}
}

#When you need to refer a government/state
#In the future incorporate more special things here
#Ex: "The [Crown] of X"
defined_text = {
	name = GetStateForm

	text = {
		localisation_key = string_crown
		trigger = {
			government = monarchy
			NOT = { tag = TUR }
		}
	}
	text = {
		localisation_key = string_sublime_porte
		trigger = {
			government = monarchy
			tag = TUR
		}
	}
	text = {
		localisation_key = string_council
		trigger = {
			government = republic
		}
	}
	text = { #fallback
		localisation_key = string_govtname
		trigger = {
			NOT = {
				government = monarchy
				government = republic
			}
		}
	}
}

#Rich or influential Russian Families
#Ex: "The [Stroganov] Family is offering to fund colonizationin Siberia"
defined_text = {
	name = GetInfluentialRussians

	text = {
		localisation_key = string_stroganov
		trigger = {
			owns = 310
		}
	}
	text = {
		localisation_key = string_khilkov
		trigger = {
			owns = 1945
		}
	}
	text = {
		localisation_key = string_dolgorukov
		trigger = {
			any_owned_province = {
				OR = {
					area = moscow_area
					area = suzdal_area
				}
			}
		}
	}
	text = {
		localisation_key = string_romodanovsky
		trigger = {
			always = yes
		}
	}
	text = {
		localisation_key = string_shuysky
		trigger = {
			always = yes
		}
	}
	text = {
		localisation_key = string_durnovo
		trigger = {
			always = yes
		}
	}
	text = {
		localisation_key = string_romanov
		trigger = {
			NOT = { dynasty = "0000" }
		}
	}
	text = {
		localisation_key = string_golitsyn
		trigger = {
			any_owned_province = {
				OR = {
					region = ruthenia_region
					area = lithuania_area
					area = samogitia_area
				}
			}
		}
	}
	text = {
		localisation_key = string_pahlen
		trigger = {
			any_owned_province = {
				OR = {
					area = livonia_area
					area = hinter_pommern_area
					area = vorpommern_area
				}
			}
		}
	}
	text = {
		localisation_key = string_gantimurov
		trigger = {
			any_owned_province = {
				region = east_siberia_region
				is_state = yes
			}
		}
	}
	text = {
		localisation_key = string_andronikashvili
		trigger = {
			any_owned_province = {
				region = caucasia_region
			}
		}
	}
	text = {
		localisation_key = string_yusupov
		trigger = {
			any_owned_province = {
				area = nogai_area
				is_state = yes
			}
		}
	}
	text = {
		localisation_key = string_sheremetev
		trigger = {
			is_year = 1700
		}
	}
	text = {
		localisation_key = string_shuvalov
		trigger = {
			is_year = 1700
		}
	}
	text = {
		localisation_key = string_demidov
		trigger = {
			is_year = 1700
		}
	}
}

#Gets name of the religious scholars you currently have invited. Uses loc for schools.
#Ex: The Maliki scholars we have invited are making themselves at home. 
defined_text = {
	name = GetReligiousScholars
	random = no
	
	text = {
		localisation_key = ismaili_school
		trigger = {
			has_country_modifier = ismaili_scholar_modifier
		}
	}
	text = {
		localisation_key = zaidi_school
		trigger = {
			has_country_modifier = zaidi_scholar_modifier
		}
	}
	text = {
		localisation_key = jafari_school
		trigger = {
			has_country_modifier = jafari_scholar_modifier
		}
	}
	text = {
		localisation_key = shafii_school
		trigger = {
			has_country_modifier = shafii_scholar_modifier
		}
	}
	text = {
		localisation_key = hanafi_school
		trigger = {
			has_country_modifier = hanafi_scholar_modifier
		}
	}
	text = {
		localisation_key = maliki_school
		trigger = {
			has_country_modifier = maliki_scholar_modifier
		}
	}
	text = {
		localisation_key = hanbali_school
		trigger = {
			has_country_modifier = hanbali_scholar_modifier
		}
	}
}

#Will produce fancy trade goods for all provinces in the world.
#Ex: "We have procured a large quantity of Egyptian Pearls"
#Keys for:
#Cloth, Silk, Spices, Tropical Wood, Cloth, Gems, Gold, Paper, Glass, Ivory, Chinaware and Incense
defined_text = {
	name = GetFancyTradeGood #province scope
	random = no

	
	#Gems
	text = {
		localisation_key = string_mother_of_pearl
		trigger = { #Province Scope
			trade_goods = gems
			province_id = 400
		}
	}
	text = {
		localisation_key = string_cowries
		trigger = { #Province Scope
			trade_goods = gems
			province_id = 1248
		}
	}
	text = {
		localisation_key = string_sapphires
		trigger = { #Province Scope
			trade_goods = gems
			region = colombia_region
			has_port = no
		}
	}
	text = {
		localisation_key = string_turquoise
		trigger = { #province scope
			trade_goods = gems
			province_id = 2216
		}
	}
	text = {
		localisation_key = string_rubies
		trigger = { #province scope
			trade_goods = gems
			OR = {
				region = indo_china_region
				region = burma_region
				province_id = 451
				province_id = 452
			}
		}
	}
	text = {
		localisation_key = string_jade
		trigger = { #province scope
			trade_goods = gems
			OR = {
				superregion = china_superregion
				region = mongolia_region
			}
		}
	}
	text = {
		localisation_key = string_amber
		trigger = { #province scope
			trade_goods = gems
			OR = {
				continent = europe
				region = west_siberia_region
				region = east_siberia_region
			}
		}
	}
	text = {
		localisation_key = string_pearls
		trigger = { #Province Scope
			trade_goods = gems
			OR = {
				region = arabia_region
				region = australia_region
				region = moluccas_region
				region = malaya_region
				continent = south_america
				continent = oceania
				area = lanka_area
				area = madura_area
			}
		}
	}
	text = {
		localisation_key = string_diamonds
		trigger = {
			trade_goods = gems
			superregion = india_superregion
		}
	}
	
	#Gold
	text = {
		localisation_key = string_imperial_eggs
		trigger = {
			trade_goods = gold
			is_year = 1700
			OR = {
				region = russia_region
				region = ural_region
			}
		}
	}

	#Paper
	text = {
		localisation_key = string_miniatures
		trigger = {
			trade_goods = paper
			OR = {
				superregion = india_superregion
				superregion = persia_superregion
				superregion = near_east_superregion
				religion_group = muslim
			}
		}
	}
	text = {
		localisation_key = string_republics
		trigger = {
			trade_goods = paper
			region = low_countries_region
		}
	}
	text = {
		localisation_key = string_calligraphy
		trigger = {
			trade_goods = paper
			OR = {
				region = korea_region
				region = japan_region
				superregion = china_superregion
				religion_group = eastern
			}
		}
	}
	text = {
		localisation_key = string_book_of_hours
		trigger = {
			trade_goods = paper
			continent = europe
			religion_group = christian
			NOT = { is_year = 1500 }
		}
	}
	
	#Cloth
	text = {
		localisation_key = string_fustians
		trigger = {
			OR = {
				region = egypt_region
				region = arabia_region
			}
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_carpets
		trigger = {
			superregion = persia_superregion
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_draperies
		trigger = {
			continent = europe
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_chintz
		trigger = {
			superregion = india_superregion
			trade_goods = cloth
		}
	}
	
	#Silk
	text = {
		localisation_key = string_taffeta
		trigger = {
			superregion = india_superregion
			trade_goods = silk
		}
	}
	
	#Incense
	text = {
		localisation_key = string_frankincense
		trigger = {
			region = arabia_region
			trade_goods = incense
		}
	}
	
	#Spices
	text = {
		localisation_key = string_cardamom
		trigger = {
			trade_goods = spices
			province_id = 534
		}
	}
	text = {
		localisation_key = string_saffron
		trigger = {
			trade_goods = spices
			superregion = persia_superregion
		}
	}
	text = {
		localisation_key = string_cinnamon
		trigger = {
			trade_goods = spices
			area = lanka_area
		}
	}
	text = {
		localisation_key = string_vanilla
		trigger = {
			trade_goods = spices
			region = central_america_region
		}
	}
	text = {
		localisation_key = string_dates
		trigger = {
			trade_goods = spices
			OR = {
				region = arabia_region
				region = mashriq_region
				continent = africa
			}
		}
	}
	text = {
		localisation_key = string_opium
		trigger = {
			trade_goods = spices
			OR = {
				area = malwa_area
				region = bengal_region
			}
		}
	}
	text = {
		localisation_key = string_long_pepper
		trigger = {
			trade_goods = spices
			superregion = india_superregion
		}
	}
	text = {
		localisation_key = string_nutmeg
		trigger = {
			trade_goods = spices
			area = spice_islands_area
		}
	}
	
	#Fallbacks for Cloth, Silk, Spices, Tropical Wood, Cloth, Gems, Gold, Paper, Glass, Ivory, Chinaware and Incense
	
	text = {
		localisation_key = string_perfume
		trigger = {
			trade_goods = incense
		}
	}
	text = {
		localisation_key = string_pepper
		trigger = {
			trade_goods = spices
		}
	}
	text = {
		localisation_key = string_satin
		trigger = {
			trade_goods = silk
		}
	}
	text = {
		localisation_key = string_embroidery
		trigger = {
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_ivory_figurines
		trigger = {
			trade_goods = ivory
		}
	}
	text = {
		localisation_key = string_lacquerware
		trigger = {
			trade_goods = tropical_wood
		}
	}
	
	text = {
		localisation_key = string_jewellery 
		trigger = { #province scope
			OR = {
				trade_goods = gems
				trade_goods = gold
			}
		}
	}
	text = {
		localisation_key = string_books
		trigger = {
			trade_goods = paper
		}
	}
	text = {
		localisation_key = string_crystal
		trigger = {
			trade_goods = glass
		}
	}
	text = {
		localisation_key = string_ceramics
		trigger = {
			trade_goods = chinaware
		}
	}
}

#Lower case version
#Will produce fancy trade goods for all provinces in the world.
#Ex: "We have procured a large quantity of Egyptian Pearls"
#Keys for:
#Cloth, Silk, Spices, Tropical Wood, Cloth, Gems, Gold, Paper, Glass, Ivory, Chinaware and Incense
defined_text = {
	name = GetFancyTradeGood_LOW #province scope
	random = no

	
	#Gems
	text = {
		localisation_key = string_l_mother_of_pearl
		trigger = { #Province Scope
			trade_goods = gems
			province_id = 400
		}
	}
	text = {
		localisation_key = string_l_cowries
		trigger = { #Province Scope
			trade_goods = gems
			province_id = 1248
		}
	}
	text = {
		localisation_key = string_l_sapphires
		trigger = { #Province Scope
			trade_goods = gems
			region = colombia_region
			has_port = no
		}
	}
	text = {
		localisation_key = string_l_turquoise
		trigger = { #province scope
			trade_goods = gems
			province_id = 2216
		}
	}
	text = {
		localisation_key = string_l_rubies
		trigger = { #province scope
			trade_goods = gems
			OR = {
				region = indo_china_region
				region = burma_region
				province_id = 451
				province_id = 452
			}
		}
	}
	text = {
		localisation_key = string_l_jade
		trigger = { #province scope
			trade_goods = gems
			OR = {
				superregion = china_superregion
				region = mongolia_region
			}
		}
	}
	text = {
		localisation_key = string_l_amber
		trigger = { #province scope
			trade_goods = gems
			OR = {
				continent = europe
				region = west_siberia_region
				region = east_siberia_region
			}
		}
	}
	text = {
		localisation_key = string_l_pearls
		trigger = { #Province Scope
			trade_goods = gems
			OR = {
				region = arabia_region
				region = australia_region
				region = moluccas_region
				region = malaya_region
				continent = south_america
				continent = oceania
				area = lanka_area
				area = madura_area
			}
		}
	}
	text = {
		localisation_key = string_l_diamonds
		trigger = {
			trade_goods = gems
			superregion = india_superregion
		}
	}
	
	#Gold
	text = {
		localisation_key = string_l_imperial_eggs
		trigger = {
			trade_goods = gold
			is_year = 1700
			OR = {
				region = russia_region
				region = ural_region
			}
		}
	}

	#Paper
	text = {
		localisation_key = string_l_miniatures
		trigger = {
			trade_goods = paper
			OR = {
				superregion = india_superregion
				superregion = persia_superregion
				superregion = near_east_superregion
				religion_group = muslim
			}
		}
	}
	text = {
		localisation_key = string_l_republics
		trigger = {
			trade_goods = paper
			region = low_countries_region
		}
	}
	text = {
		localisation_key = string_l_calligraphy
		trigger = {
			trade_goods = paper
			OR = {
				region = korea_region
				region = japan_region
				superregion = china_superregion
				religion_group = eastern
			}
		}
	}
	text = {
		localisation_key = string_l_book_of_hours
		trigger = {
			trade_goods = paper
			continent = europe
			religion_group = christian
			NOT = { is_year = 1500 }
		}
	}
	
	#Cloth
	text = {
		localisation_key = string_l_fustians
		trigger = {
			OR = {
				region = egypt_region
				region = arabia_region
			}
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_l_carpets
		trigger = {
			superregion = persia_superregion
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_l_draperies
		trigger = {
			continent = europe
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_l_chintz
		trigger = {
			superregion = india_superregion
			trade_goods = cloth
		}
	}
	
	#Silk
	text = {
		localisation_key = string_l_taffeta
		trigger = {
			superregion = india_superregion
			trade_goods = silk
		}
	}
	
	#Incense
	text = {
		localisation_key = string_l_frankincense
		trigger = {
			region = arabia_region
			trade_goods = incense
		}
	}
	
	#Spices
	text = {
		localisation_key = string_l_cardamom
		trigger = {
			trade_goods = spices
			province_id = 534
		}
	}
	text = {
		localisation_key = string_l_saffron
		trigger = {
			trade_goods = spices
			superregion = persia_superregion
		}
	}
	text = {
		localisation_key = string_l_cinnamon
		trigger = {
			trade_goods = spices
			area = lanka_area
		}
	}
	text = {
		localisation_key = string_l_vanilla
		trigger = {
			trade_goods = spices
			region = central_america_region
		}
	}
	text = {
		localisation_key = string_l_dates
		trigger = {
			trade_goods = spices
			OR = {
				region = arabia_region
				region = mashriq_region
				continent = africa
			}
		}
	}
	text = {
		localisation_key = string_l_opium
		trigger = {
			trade_goods = spices
			OR = {
				area = malwa_area
				region = bengal_region
			}
		}
	}
	text = {
		localisation_key = string_l_long_pepper
		trigger = {
			trade_goods = spices
			superregion = india_superregion
		}
	}
	text = {
		localisation_key = string_l_nutmeg
		trigger = {
			trade_goods = spices
			area = spice_islands_area
		}
	}
	
	#Fallbacks for Cloth, Silk, Spices, Tropical Wood, Cloth, Gems, Gold, Paper, Glass, Ivory, Chinaware and Incense
	
	text = {
		localisation_key = string_l_perfume
		trigger = {
			trade_goods = incense
		}
	}
	text = {
		localisation_key = string_l_pepper
		trigger = {
			trade_goods = spices
		}
	}
	text = {
		localisation_key = string_l_satin
		trigger = {
			trade_goods = silk
		}
	}
	text = {
		localisation_key = string_l_embroidery
		trigger = {
			trade_goods = cloth
		}
	}
	text = {
		localisation_key = string_l_ivory_figurines
		trigger = {
			trade_goods = ivory
		}
	}
	text = {
		localisation_key = string_l_lacquerware
		trigger = {
			trade_goods = tropical_wood
		}
	}
	
	text = {
		localisation_key = string_l_jewellery 
		trigger = { #province scope
			OR = {
				trade_goods = gems
				trade_goods = gold
			}
		}
	}
	text = {
		localisation_key = string_l_books
		trigger = {
			trade_goods = paper
		}
	}
	text = {
		localisation_key = string_l_crystal
		trigger = {
			trade_goods = glass
		}
	}
	text = {
		localisation_key = string_l_ceramics
		trigger = {
			trade_goods = chinaware
		}
	}
	#These ones are added only for event 736 (which lets a province be picked with a wider range of trade goods). Other events that use this custom loc are not meant to use these.
	text = {
		localisation_key = string_l_slave
		trigger = {
			trade_goods = slaves
		}
	}
	text = {
		localisation_key = string_l_tobacco
		trigger = {
			trade_goods = tobacco
		}
	}
	text = {
		localisation_key = string_l_wine
		trigger = {
			trade_goods = wine
		}
	}
	text = {
		localisation_key = string_l_salt
		trigger = {
			trade_goods = salt
		}
	}
	text = {
		localisation_key = string_l_cotton
		trigger = {
			trade_goods = cotton
		}
	}
	text = {
		localisation_key = string_l_tea
		trigger = {
			trade_goods = tea
		}
	}
	text = {
		localisation_key = string_l_natural_dyes
		trigger = {
			trade_goods = dyes
		}
	}
	text = {
		localisation_key = string_l_cocoa
		trigger = {
			trade_goods = cocoa
		}
	}
	text = {
		localisation_key = string_l_coffee
		trigger = {
			trade_goods = coffee
		}
	}
	text = {
		localisation_key = string_l_sugar
		trigger = {
			trade_goods = sugar
		}
	}
}

#When you need a random exotic good from Siberia.
#Ex: "We have recieved a gift of valuable [gold dust]"
defined_text = {
	name = GetRandom_Siberian_Resource

	text = {
		localisation_key = string_gold_dust
		trigger = {
			any_owned_province = {
				OR = {
					region = east_siberia_region
					region = west_siberia_region
					region = ural_region
				}
			}
		}
	}
	text = {
		localisation_key = string_rare_squirrel_coats
		trigger = {
			any_owned_province = {
				OR = {
					region = east_siberia_region
					region = west_siberia_region
					region = ural_region
				}
			}
		}
	}
	text = {
		localisation_key = string_exquisite_sable_fleeces
		trigger = {
			any_owned_province = {
				OR = {
					region = east_siberia_region
					region = west_siberia_region
					region = ural_region
				}
			}
		}
	}
	text = {
		localisation_key = string_ivory_carvings
		trigger = {
			any_owned_province = {
				OR = {
					region = east_siberia_region
					region = west_siberia_region
					region = ural_region
				}
			}
		}
	}
}

#Definite Article before name? (ie for country names in plural form)
defined_text = {
    name = GetDefiniteArticleBeforePluralCountry
	random = no
	
	text = {
		
        localisation_key = string_definite_article_before_country
        trigger = {
			tag_with_plural_name_trigger = yes
        }
    }
    text = {
        localisation_key = string_empty
        trigger = {
			always = yes
        }
    }
}

#Hiding regency council in titles

defined_text = {
    name = GetRulerOrRegency
	random = no
	
	text = {
        localisation_key = string_ruler_name_really
        trigger = {
			has_regency = no
        }
    }
    text = {
        localisation_key = string_regency_council
        trigger = {
			has_regency = yes
        }
    }
}

#RB Symposium

defined_text = {
    name = OxOrBridgeTitle
	random = no
	
	text = {
    localisation_key = flavor_eng.9880.t1
		trigger = {
			OR = {
				AND = {
					check_variable = {
						which = oxbridge_symposium
						value = 1
					}
					NOT = {
						check_variable = {
							which = oxbridge_symposium
							value = 2
						}
					}
				}
				AND = {
					check_variable = {
						which = oxbridge_symposium
						value = 0
					}
					NOT = {
						check_variable = {
							which = oxbridge_symposium
							value = 1
						}
					}
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.t2
		trigger = {
			check_variable = {
				which = oxbridge_symposium
				value = 2
			}
		}
	}
}

defined_text = {
    name = OxOrBridgeLocation
	random = no
	
	text = {
    localisation_key = flavor_eng.9880.loc0
		trigger = {
			check_variable = {
				which = oxbridge_symposium
				value = 0
			}
			NOT = {
				check_variable = {
					which = oxbridge_symposium
					value = 1
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.loc1
		trigger = {
			check_variable = {
				which = oxbridge_symposium
				value = 1
			}
			NOT = {
				check_variable = {
					which = oxbridge_symposium
					value = 2
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.loc2
		trigger = {
			check_variable = {
				which = oxbridge_symposium
				value = 2
			}
			NOT = {
				check_variable = {
					which = oxbridge_symposium
					value = 3
				}
			}
		}
	}
}

defined_text = {
    name = OxOrBridgeSubject
	random = no
	
	text = {
    localisation_key = flavor_eng.9880.sub1
		trigger = {
			check_variable = {
				which = oxbridge_subject
				value = 1
			}
			NOT = {
				check_variable = {
					which = oxbridge_subject
					value = 2
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.sub2
		trigger = {
			check_variable = {
				which = oxbridge_subject
				value = 2
			}
			NOT = {
				check_variable = {
					which = oxbridge_subject
					value = 3
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.sub3
		trigger = {
			check_variable = {
				which = oxbridge_subject
				value = 3
			}
			NOT = {
				check_variable = {
					which = oxbridge_subject
					value = 4
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.sub4
		trigger = {
			check_variable = {
				which = oxbridge_subject
				value = 4
			}
			NOT = {
				check_variable = {
					which = oxbridge_subject
					value = 5
				}
			}
		}
	}
	text = {
    localisation_key = flavor_eng.9880.sub5
		trigger = {
			check_variable = {
				which = oxbridge_subject
				value = 5
			}
		}
	}
}


#Makes the country name usable (grammatically) in normal text. So examples of what comes out are "France", "the Ottoman Sultanate", "the Ming Empire" and "the Iroquoi Tribe" (I am open to suggestions on the last) rather than "France", "Ottomans", "Ming" and "Iroquoi"
defined_text = {
	name = GetUsableName
	random = no
	
	text = {
		localisation_key = plural_country_name
		trigger = {
			OR = {
				#Chinese
				culture_group = east_asian
				#All the American tribes
				technology_group = north_american
				technology_group = mesoamerican
				technology_group = south_american
				technology_group = andean
				technology_group = high_american
				#Ottomans, Timurids, Mamluks etc
				tag_with_plural_name_trigger = yes
			}
			NOT = { has_country_flag = is_revolutionary_china_flag }
			NOT = { has_country_flag = is_china_flag }
			NOT = { has_country_flag = is_revolutionary_turkey_flag }
			NOT = { has_country_flag = is_turkey_flag }
			NOT = { has_country_flag = is_revolutionary_gurkani_flag }
			NOT = { has_country_flag = is_gurkani_flag }
			NOT = { has_country_flag = is_revolutionary_iran_flag }
			NOT = { has_country_flag = is_iran_flag }
		}
	}
	text = {
		localisation_key = PLC_country_string
		trigger = {
			tag = PLC
		}
	}
	text = {
		localisation_key = already_has_proper_name
		trigger = {
			OR = {
				NOT = {
					OR = {
						tag = PLC
						#Chinese
						culture_group = east_asian
						#All the American tribes
						technology_group = north_american
						technology_group = mesoamerican
						technology_group = south_american
						technology_group = andean
						technology_group = high_american
						#Ottomans, Timurids, Mamluks etc
						tag_with_plural_name_trigger = yes
					}
				}
				has_country_flag = is_revolutionary_china_flag
				has_country_flag = is_china_flag
				has_country_flag = is_revolutionary_turkey_flag
				has_country_flag = is_turkey_flag
				has_country_flag = is_revolutionary_gurkani_flag
				has_country_flag = is_gurkani_flag
				has_country_flag = is_revolutionary_iran_flag
				has_country_flag = is_iran_flag
			}
		}
	}
}

#Makes the country name usable (grammatically) in normal text at the start of the sentence. So examples of what comes out are "France", "The Ottoman Sultanate", "The Ming Empire" and "The Iriquoi Tribe" (I am open to suggestions on the last) rather than "France", "Ottomans", "Ming" and "Iriquoi"
defined_text = {
	name = GetUsableNameCap
	random = no
	
	text = {
		localisation_key = plural_country_name_CAP
		trigger = {
			OR = {
				#Chinese
				culture_group = east_asian
				#All the American tribes
				technology_group = north_american
				technology_group = mesoamerican
				technology_group = south_american
				technology_group = andean
				technology_group = high_american
				#Ottomans, Timurids, Mamluks etc
				tag_with_plural_name_trigger = yes
			}
			NOT = { has_country_flag = is_revolutionary_china_flag }
			NOT = { has_country_flag = is_china_flag }
			NOT = { has_country_flag = is_revolutionary_turkey_flag }
			NOT = { has_country_flag = is_turkey_flag }
			NOT = { has_country_flag = is_revolutionary_gurkani_flag }
			NOT = { has_country_flag = is_gurkani_flag }
			NOT = { has_country_flag = is_revolutionary_iran_flag }
			NOT = { has_country_flag = is_iran_flag }
		}
	}
	text = {
		localisation_key = PLC_country_string_CAP
		trigger = {
			tag = PLC
		}
	}
	text = {
		localisation_key = already_has_proper_name
		trigger = {
			OR = {
				NOT = {
					OR = {
						tag = PLC
						#Chinese
						culture_group = east_asian
						#All the American tribes
						technology_group = north_american
						technology_group = mesoamerican
						technology_group = south_american
						technology_group = andean
						technology_group = high_american
						#Ottomans, Timurids, Mamluks etc
						tag_with_plural_name_trigger = yes
					}
				}
				has_country_flag = is_revolutionary_china_flag
				has_country_flag = is_china_flag
				has_country_flag = is_revolutionary_turkey_flag
				has_country_flag = is_turkey_flag
				has_country_flag = is_revolutionary_gurkani_flag
				has_country_flag = is_gurkani_flag
				has_country_flag = is_revolutionary_iran_flag
				has_country_flag = is_iran_flag
			}
		}
	}
}


#When you need to refer to a ruling social class but cannot be sure you're dealing with a monarchy.
#Ex: "Several [noblemen] / [politicians] / [clergymen]"
defined_text = {
	name = GetNoblemenPoliticians

	text = {
		localisation_key = string_noblemen
		trigger = {
			NOT = { government = republic }
			NOT = { government = theocracy }
			NOT = {
				has_parliament = yes
			}
		}
	}
	text = {
		localisation_key = string_politicians
		trigger = {
			OR = {
				has_parliament = yes
				government = republic
			}
		}
	}
	text = {
		 localisation_key = string_clergymen
		trigger = {
			government = theocracy
			NOT = {
				has_parliament = yes
			}
		}
	}
}

#When you need to refer to a ruling social class but cannot be sure you're dealing with a monarchy.
#Ex: "Several [members of the nobility] / [politicians] / [members of the clergy]"
defined_text = {
	name = GetNobilityPoliticians

	text = {
		localisation_key = string_members_nobility
		trigger = {
			NOT = { government = republic }
			NOT = { government = theocracy }
			NOT = {
				has_parliament = yes
			}
		}
	}
	text = {
		localisation_key = string_politicians
		trigger = {
			OR = {
				has_parliament = yes
				government = republic
			}
		}
	}
	text = {
		 localisation_key = string_clergy_members
		trigger = {
			government = theocracy
			NOT = {
				has_parliament = yes
			}
		}
	}
}


#Because "the Papal Pope" would be a new kind of stupid, also covers regency councils
#Ex: The [English King] / The [Pope] / The [English Regency Council]
defined_text = {
	name = GetRulerAdjAndTitle

	text = {
		localisation_key = string_ruler_adj_and_title
		trigger = {
			NOT = { tag = PAP }
			has_regency = no
		}
	}
	text = {
		localisation_key = string_ruler_title
		trigger = {
			tag = PAP
		}
	}
	text = {
		localisation_key = string_adj_and_regency_council
		trigger = {
			has_regency = yes
		}
	}
}


#Gets ruler title or regency council (not strictly speaking necessary as it will still find "king" even if said king is 1 year old)
#Ex: The [King] / The [Regency Council]
defined_text = {
	name = GetRulerTitleOrRegency

	text = {
		localisation_key = string_ruler_title
		trigger = {
			has_regency = no
		}
	}
	text = {
		localisation_key = string_regency_council_2
		trigger = {
			has_regency = yes
		}
	}
}


#If you want to refer to the ruler by name but are not sure whether there may be a regency
#Ex: [King James] / [the Regency Council]
defined_text = {
	name = GetRulerTitleAndNameOrRegency

	text = {
		localisation_key = string_ruler_title_and_name
		trigger = {
			has_regency = no
		}
	}
	text = {
		localisation_key = string_regency_council_no_cap
		trigger = {
			has_regency = yes
		}
	}
}

#If you want to refer to the ruler by name but are not sure whether there may be a regency
#Ex: [King James] / [The Regency Council]
defined_text = {
	name = GetRulerTitleAndNameOrRegencyCap

	text = {
		localisation_key = string_ruler_title_and_name
		trigger = {
			has_regency = no
		}
	}
	text = {
		localisation_key = string_regency_council
		trigger = {
			has_regency = yes
		}
	}
}



#For Korean DHE event - didn't fancy writing it out 6 times. Basically prints the relevant estate, except that $ESTATE_NOBLES$ etc does not work.
defined_text = {
	name = GetKorDHEEstate1

	text = {
		localisation_key = string_neoconfucians
		trigger = {
			has_country_flag = kor_neoconfucians_strife1
		}
	}
	text = {
		localisation_key = string_yangban_scholars
		trigger = {
			has_country_flag = kor_yangban_scholars_strife1
		}
	}
	text = {
		localisation_key = string_yangban_admins
		trigger = {
			has_country_flag = kor_yangban_admins_strife1
		}
	}
}

#For Korean DHE event - didn't fancy writing it out 6 times. Basically prints the relevant estate, except that $ESTATE_NOBLES$ etc does not work.
defined_text = {
	name = GetKorDHEEstate2

	text = {
		localisation_key = string_neoconfucians
		trigger = {
			has_country_flag = kor_neoconfucians_strife2
		}
	}
	text = {
		localisation_key = string_yangban_scholars
		trigger = {
			has_country_flag = kor_yangban_scholars_strife2
		}
	}
	text = {
		localisation_key = string_yangban_admins
		trigger = {
			has_country_flag = kor_yangban_admins_strife2
		}
	}
}

#For Korean DHE event - prints a reason for the struggle. "the respective factions are accusing each other of high treason, apparently after <insert reason> escalated to the point where royal authority"
defined_text = {
	name = GetKorFactionReason

	text = {
		localisation_key = KOR_faction_reason_1
	}
	text = {
		localisation_key = KOR_faction_reason_2
	}
	text = {
		localisation_key = KOR_faction_reason_3
	}
	text = {
		localisation_key = KOR_faction_reason_4
	}
}


#Used to create a dynamic mission title for emp_sax_spread_wettins_title and emp_hab_spread_dynasties_title
defined_text = {
	name = GetSpreadDynastyOrFallbackMissionTitle

	text = {
		localisation_key = emp_mission_spread_dynasty_title
		trigger = {
			government = monarchy
			has_government_attribute = heir
		}
	}
	text = {
		localisation_key = emp_mission_spread_nodynasty_title
		trigger = {
			OR = {
				NOT = { government = monarchy }
				NOT = { has_government_attribute = heir }
			}
		}
	}
}

#Used to create a dynamic mission title for emp_sax_spread_wettins_title and emp_hab_spread_dynasties_title
defined_text = {
	name = GetSAXSpreadDynastyOrFallbackMissionDesc

	text = {
		localisation_key = emp_sax_mission_spread_dynasty_desc
		trigger = {
			government = monarchy
			has_government_attribute = heir
		}
	}
	text = {
		localisation_key = emp_sax_mission_spread_nodynasty_desc
		trigger = {
			OR = {
				NOT = { government = monarchy }
				NOT = { has_government_attribute = heir }
			}
		}
	}
}

#Used to create a dynamic mission title for emp_hab_power_to_habsburg_title
defined_text = {
	name = GetGloryToDynastyOrFallbackMissionTitle

	text = {
		localisation_key = emp_mission_power_to_dynasty_title
		trigger = {
			government = monarchy
			has_government_attribute = heir
		}
	}
	text = {
		localisation_key = emp_mission_power_to_country_title
		trigger = {
			OR = {
				NOT = { government = monarchy }
				NOT = { has_government_attribute = heir }
			}
		}
	}
}

#Used to create a dynamic mission description emp_hab_spread_dynasties_desc
defined_text = {
	name = GetHABDynastyOrFallbackMissionDesc

	text = {
		localisation_key = emp_hab_spread_dynasties_has_dynasty_desc
		trigger = {
			government = monarchy
			has_government_attribute = heir
		}
	}
	text = {
		localisation_key = emp_hab_spread_dynasties_nodynasty_desc
		trigger = {
			OR = {
				NOT = { government = monarchy }
				NOT = { has_government_attribute = heir }
			}
		}
	}
}

#Used to create a dynamic mission title for emp_mlo_university_rules_title
defined_text = {
	name = GetMLOMissionUniversityRulesTitle

	text = {
		localisation_key = emp_mlo_university_rules_monarchy_title
		trigger = {
			NOT = { government = republic }
		}
	}
	text = {
		localisation_key = emp_mlo_university_rules_democracy_title
		trigger = {
			government = republic
		}
	}
}

#Used to create a dynamic mission desc for emp_mlo_university_rules_title
defined_text = {
	name = GetMLOMissionUniversityRulesDesc

	text = {
		localisation_key = emp_mlo_university_rules_monarchy_desc
		trigger = {
			NOT = { government = republic }
		}
	}
	text = {
		localisation_key = emp_mlo_university_rules_democracy_desc
		trigger = {
			government = republic
		}
	}
}

#Used to create a dynamic mission title for emp_hab_crush_the_revolution
defined_text = {
	name = GetEmbraceOrCrushRevolutionMissionTitle

	text = {
		localisation_key = emp_crush_the_revolution_title
		trigger = {
			NOT = { is_revolutionary_republic_trigger = yes }
		}
	}
	text = {
		localisation_key = emp_embrace_the_revolution_title
		trigger = {
			is_revolutionary_republic_trigger = yes
		}
	}
}

#Used to create a dynamic mission desc for emp_hab_crush_the_revolution
defined_text = {
	name = GetEmbraceOrCrushRevolutionMissionDesc

	text = {
		localisation_key = emp_crush_the_revolution_desc
		trigger = {
			NOT = { is_revolutionary_republic_trigger = yes }
		}
	}
	text = {
		localisation_key = emp_embrace_the_revolution_desc
		trigger = {
			is_revolutionary_republic_trigger = yes
		}
	}
}

#Used to get "Kingdom", "Republic" or "Theocratic State" in a Milanese mission. It is likely to be one of the first two. Can add more if more cases are needed later, or amend the third if someone comes up with better.
defined_text = {
	name = GetTier2GovernmentType

	text = {
		localisation_key = string_republic
		trigger = {
			government = republic
		}
	}
	text = {
		localisation_key = string_kingdom
		trigger = {
			government = monarchy
		}
	}
	text = {
		localisation_key = string_theocratic_state
		trigger = {
			government = theocracy
		}
	}
}

#Used to customise the description for emp_sav_union_with_naples
defined_text = {
	name = GetMissionSavUnionNaples

	text = {
		localisation_key = GetMissionSavUnionNaples_italian
		trigger = {
			culture_group = latin
		}
	}
	text = {
		localisation_key = GetMissionSavUnionNaples_french
		trigger = {
			NOT = { culture_group = latin }
		}
	}
}

#Used to customise the title for emp_sav_powerhouse_of_the_north
defined_text = {
	name = GetSavPowerhouseNorthOrSouthTitle

	text = {
		localisation_key = emp_sav_powerhouse_of_the_north_title2
		trigger = {
			culture_group = latin
		}
	}
	text = {
		localisation_key = emp_sav_powerhouse_of_the_south_title
		trigger = {
			culture_group = french
		}
	}
	text = {
		localisation_key = emp_sav_powerhouse_generic_title
		trigger = {
			capital_scope = {
				NOT = { culture_group = latin }
				NOT = { culture_group = french }
			}
		}
	}
}

#Used to customise the desc for emp_sav_powerhouse_of_the_north
defined_text = {
	name = GetSavPowerhouseNorthOrSouthDesc

	text = {
		localisation_key = emp_sav_powerhouse_of_the_north_desc2
		trigger = {
			culture_group = latin
		}
	}
	text = {
		localisation_key = emp_sav_powerhouse_of_the_south_desc
		trigger = {
			culture_group = french
		}
	}
	text = {
		localisation_key = emp_sav_powerhouse_generic_desc
		trigger = {
			capital_scope = {
				NOT = { culture_group = latin }
				NOT = { culture_group = french }
			}
		}
	}
}

#Used to customise the desc for new_flavour_bur.4's descriptions
defined_text = {
	name = GetBurHREAscensionText

	text = {
		localisation_key = BUR_HRE_positive
		trigger = {
			is_part_of_hre = yes
			emperor = {
				OR = {
					ai_attitude = {
						who = root
						attitude = attitude_friendly
					}
					ai_attitude = {
						who = root
						attitude = attitude_allied
					}
					has_opinion = {
						who = root
						value = 75
					}
				}
			}
		}
	}
	text = {
		localisation_key = BUR_HRE_neutral
		trigger = {
			is_part_of_hre = yes
			emperor = {
				NOT = {
					OR = {
						ai_attitude = {
							who = root
							attitude = attitude_friendly
						}
						ai_attitude = {
							who = root
							attitude = attitude_allied
						}
						has_opinion = {
							who = root
							value = 75
						}
						ai_attitude = {
							who = root
							attitude = attitude_outraged
						}
						ai_attitude = {
							who = root
							attitude = attitude_hostile
						}
						ai_attitude = {
							who = root
							attitude = attitude_rivalry
						}
						ai_attitude = {
							who = root
							attitude = attitude_domineering
						}
						NOT = {
							has_opinion = {
								who = root
								value = -50
							}
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = BUR_HRE_hostile
		trigger = {
			is_part_of_hre = yes
			emperor = {
				OR = {
					ai_attitude = {
						who = root
						attitude = attitude_outraged
					}
					ai_attitude = {
						who = root
						attitude = attitude_hostile
					}
					ai_attitude = {
						who = root
						attitude = attitude_rivalry
					}
					ai_attitude = {
						who = root
						attitude = attitude_domineering
					}
					NOT = {
						has_opinion = {
							who = root
							value = -50
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = BUR_HRE_nostring
		trigger = {
			OR = {
				is_part_of_hre = no
				NOT = {
					any_country = {
						is_emperor = yes
					}
				}
			}
		}
	}
}


###Event Advisors (if you want to use this system, remember to set the flags and remove them once they are no longer needed so the custom locs can be used again for the next event)

#GetName of the correct advisor
defined_text = {
	name = GetEventAdvisorName
	random = no
	
	text = {
		localisation_key = EventAdvisorName.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorName.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorName.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}

#GetTitle of the correct advisor
defined_text = {
	name = GetEventAdvisorTitle
	random = no
	
	text = {
		localisation_key = EventAdvisorTitle.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorTitle.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorTitle.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}

#GetSheHeCap of the correct advisor
defined_text = {
	name = GetEventAdvisorSheHeCap
	random = no
	
	text = {
		localisation_key = EventAdvisorSheHeCap.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorSheHeCap.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorSheHeCap.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}

#GetSheHe of the correct advisor
defined_text = {
	name = GetEventAdvisorSheHe
	random = no
	
	text = {
		localisation_key = EventAdvisorSheHe.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorSheHe.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorSheHe.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}

#GetHerHisCap of the correct advisor
defined_text = {
	name = GetEventAdvisorHerHisCap
	random = no
	
	text = {
		localisation_key = EventAdvisorHerHisCap.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorHerHisCap.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorHerHisCap.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}

#GetHerHis of the correct advisor
defined_text = {
	name = GetEventAdvisorHerHis
	random = no
	
	text = {
		localisation_key = EventAdvisorHerHis.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorHerHis.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorHerHis.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}

#GetHerHim of the correct advisor
defined_text = {
	name = GetEventAdvisorHerHim
	random = no
	
	text = {
		localisation_key = EventAdvisorHerHim.A
		trigger = {
			has_country_flag = advisor_events_adm
		}
	}
	
	text = {
		localisation_key = EventAdvisorHerHim.D
		trigger = {
			has_country_flag = advisor_events_dip
		}
	}
	
	text = {
		localisation_key = EventAdvisorHerHim.M
		trigger = {
			has_country_flag = advisor_events_mil
		}
	}
}



###Estate scripted locs: Get current estate name, or if the country lacks one, use the basic one

defined_text = {
	name = GetNobilityOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_nobles_name
		trigger = {
			has_estate = estate_nobles
		}
	}
	
	text = {
		localisation_key = estate_nobles
		trigger = {
			NOT = { has_estate = estate_nobles }
		}
	}
}

defined_text = {
	name = GetBurghersOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_burghers_name
		trigger = {
			has_estate = estate_burghers
		}
	}
	
	text = {
		localisation_key = estate_burghers
		trigger = {
			NOT = { has_estate = estate_burghers }
		}
	}
}

defined_text = {
	name = GetChurchOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_church_name
		trigger = {
			has_estate = estate_church
		}
	}
	
	text = {
		localisation_key = estate_church
		trigger = {
			NOT = { has_estate = estate_church }
		}
	}
}

defined_text = {
	name = GetTribesOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_nomadic_tribes_name
		trigger = {
			has_estate = estate_nomadic_tribes
		}
	}
	
	text = {
		localisation_key = estate_nomadic_tribes
		trigger = {
			NOT = { has_estate = estate_nomadic_tribes }
		}
	}
}

defined_text = {
	name = GetDhimmiOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_dhimmi_name
		trigger = {
			has_estate = estate_dhimmi
		}
	}
	
	text = {
		localisation_key = estate_dhimmi
		trigger = {
			NOT = { has_estate = estate_dhimmi }
		}
	}
}

defined_text = {
	name = GetCossacksOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_cossacks_name
		trigger = {
			has_estate = estate_cossacks
		}
	}
	
	text = {
		localisation_key = estate_cossacks
		trigger = {
			NOT = { has_estate = estate_cossacks }
		}
	}
}

defined_text = {
	name = GetVaisyasOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_vaisyas_name
		trigger = {
			has_estate = estate_vaisyas
		}
	}
	
	text = {
		localisation_key = estate_vaisyas
		trigger = {
			NOT = { has_estate = estate_vaisyas }
		}
	}
}

defined_text = {
	name = GetBrahminsOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_brahmins_name
		trigger = {
			has_estate = estate_brahmins
		}
	}
	
	text = {
		localisation_key = estate_brahmins
		trigger = {
			NOT = { has_estate = estate_brahmins }
		}
	}
}

defined_text = {
	name = GetJainsOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_jains_name
		trigger = {
			has_estate = estate_jains
		}
	}
	
	text = {
		localisation_key = estate_jains
		trigger = {
			NOT = { has_estate = estate_jains }
		}
	}
}

defined_text = {
	name = GetRajputOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_rajput_name
		trigger = {
			has_estate = estate_rajput
		}
	}
	
	text = {
		localisation_key = estate_rajput
		trigger = {
			NOT = { has_estate = estate_rajput }
		}
	}
}

defined_text = {
	name = GetMarathaOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_maratha_name
		trigger = {
			has_estate = estate_maratha
		}
	}
	
	text = {
		localisation_key = estate_maratha
		trigger = {
			NOT = { has_estate = estate_maratha }
		}
	}
}

defined_text = {
	name = GetJanissariesOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_janissaries_name
		trigger = {
			has_estate = estate_janissaries
		}
	}
	
	text = {
		localisation_key = estate_janissaries
		trigger = {
			NOT = { has_estate = estate_janissaries }
		}
	}
}

defined_text = {
	name = GetEunuchsOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_eunuchs_name
		trigger = {
			has_estate = estate_eunuchs
		}
	}
	
	text = {
		localisation_key = estate_eunuchs
		trigger = {
			NOT = { has_estate = estate_eunuchs }
		}
	}
}

defined_text = {
	name = GetQizilbashOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_qizilbash_name
		trigger = {
			has_estate = estate_qizilbash
		}
	}
	
	text = {
		localisation_key = estate_qizilbash
		trigger = {
			NOT = { has_estate = estate_qizilbash }
		}
	}
}

defined_text = {
	name = GetGhulamsOrFallbackName
	random = no
	
	text = {
		localisation_key = country_estate_ghulams_name
		trigger = {
			has_estate = estate_ghulams
		}
	}
	
	text = {
		localisation_key = estate_ghulams
		trigger = {
			NOT = { has_estate = estate_ghulams }
		}
	}
}

defined_text = {
	name = GetLegitimacyOrMeritocracy
	random = no
	
	text = {
		localisation_key = meritocracy
		trigger = {
			uses_meritocracy = yes
		}
	}
	
	text = {
		localisation_key = legitimacy
		trigger = {
			uses_meritocracy = no
		}
	}
}

#a Trader, an Inquisitor. Just used in one event, always masculine
defined_text = {
	name = GetExileAdvisorAAnTitle
	random = no
	
	text = {
		localisation_key = a_philosopher
		trigger = {
			has_country_flag = court_flavour_philosopher
		}
	}
	text = {
		localisation_key = a_natural_scientist
		trigger = {
			has_country_flag = court_flavour_natural_scientist
		}
	}
	text = {
		localisation_key = an_artist
		trigger = {
			has_country_flag = court_flavour_artist
		}
	}
	text = {
		localisation_key = a_treasurer
		trigger = {
			has_country_flag = court_flavour_treasurer
		}
	}
	text = {
		localisation_key = a_theologian
		trigger = {
			has_country_flag = court_flavour_theologian
		}
	}
	text = {
		localisation_key = a_master_of_mint
		trigger = {
			has_country_flag = court_flavour_master_of_mint
		}
	}
	text = {
		localisation_key = an_inquisitor
		trigger = {
			has_country_flag = court_flavour_inquisitor
		}
	}
	text = {
		localisation_key = a_statesman
		trigger = {
			has_country_flag = court_flavour_statesman
		}
	}
	text = {
		localisation_key = a_naval_reformer
		trigger = {
			has_country_flag = court_flavour_naval_reformer
		}
	}
	text = {
		localisation_key = a_trader
		trigger = {
			has_country_flag = court_flavour_trader
		}
	}
	text = {
		localisation_key = a_spymaster
		trigger = {
			has_country_flag = court_flavour_spymaster
		}
	}
	text = {
		localisation_key = a_diplomat
		trigger = {
			has_country_flag = court_flavour_diplomat
		}
	}
	text = {
		localisation_key = an_army_reformer
		trigger = {
			has_country_flag = court_flavour_army_reformer
		}
	}
	text = {
		localisation_key = an_army_organiser
		trigger = {
			has_country_flag = court_flavour_army_organiser
		}
	}
	text = {
		localisation_key = a_commandant
		trigger = {
			has_country_flag = court_flavour_commandant
		}
	}
	text = {
		localisation_key = a_quartermaster
		trigger = {
			has_country_flag = court_flavour_quartermaster
		}
	}
	text = {
		localisation_key = a_recruitmaster
		trigger = {
			has_country_flag = court_flavour_recruitmaster
		}
	}
	text = {
		localisation_key = a_fortification_expert
		trigger = {
			has_country_flag = court_flavour_fortification_expert
		}
	}
	text = {
		localisation_key = a_grand_captain
		trigger = {
			has_country_flag = court_flavour_grand_captain
		}
	}
	text = {
		localisation_key = a_colonial_governor
		trigger = {
			has_country_flag = court_flavour_colonial_governor
		}
	}
	text = {
		localisation_key = a_navigator
		trigger = {
			has_country_flag = court_flavour_navigator
		}
	}
}


#Prints the province's manufactory (if one is built)
defined_text = {
	name = GetManufactory
	random = no
	text = {
		localisation_key = building_wharf
		trigger = {
			OR = {
				trade_goods = naval_supplies
				trade_goods = fish
				trade_goods = salt
			}
		}
	}
	text = {
		localisation_key = building_weapons
		trigger = {
			OR = {
				trade_goods = copper
				trade_goods = iron
			}
		}
	}
	text = {
		localisation_key = building_textile
		trigger = {
			OR = {
				trade_goods = wool
				trade_goods = cloth
				trade_goods = silk
				trade_goods = dyes
			}
		}
	}
	text = {
		localisation_key = building_plantations
		trigger = {
			OR = {
				trade_goods = coffee
				trade_goods = cotton
				trade_goods = sugar
				trade_goods = tobacco
				trade_goods = tea
				trade_goods = cocoa
			}
		}
	}
	text = {
		localisation_key = building_tradecompany
		trigger = {
			OR = {
				trade_goods = ivory
				trade_goods = slaves
				trade_goods = spices
				trade_goods = fur
				trade_goods = incense
			}
		}
	}
	text = {
		localisation_key = building_farm_estate
		trigger = {
			OR = {
				trade_goods = grain
				trade_goods = livestock
				trade_goods = wine
			}
		}
	}
	text = {
		localisation_key = building_mills
		trigger = {
			OR = {
				trade_goods = paper
				trade_goods = gems
				trade_goods = tropical_wood
				trade_goods = glass
				trade_goods = chinaware
			}
		}
	}
	text = {
		localisation_key = building_furnace
		trigger = {
			trade_goods = coal
		}
	}
}

#Prints the noun associated with the religion e.g. "Catholicism" or "Sunni Islam". Works in country and province scope.
defined_text = {
	name = GetReligionNoun
	random = no
	text = {
		localisation_key = catholicism_string
		trigger = {
			religion = catholic
		}
	}
	text = {
		localisation_key = anglicanism_string
		trigger = {
			religion = anglican
		}
	}
	text = {
		localisation_key = protestantism_string
		trigger = {
			religion = protestant
		}
	}
	text = {
		localisation_key = reformed_christianity_string
		trigger = {
			religion = reformed
		}
	}
	text = {
		localisation_key = orthodox_christianity_string
		trigger = {
			religion = orthodox
		}
	}
	text = {
		localisation_key = coptic_christianity_string
		trigger = {
			religion = coptic
		}
	}
	text = {
		localisation_key = sunni_islam_string
		trigger = {
			religion = sunni
		}
	}
	text = {
		localisation_key = shia_islam_string
		trigger = {
			religion = shiite
		}
	}
	text = {
		localisation_key = ibadism_string
		trigger = {
			religion = ibadi
		}
	}
	text = {
		localisation_key = theravada_buddhism_string
		trigger = {
			religion = buddhism
		}
	}
	text = {
		localisation_key = vajrayana_buddhism_string
		trigger = {
			religion = vajrayana
		}
	}
	text = {
		localisation_key = mahayana_buddhism_string
		trigger = {
			religion = mahayana
		}
	}
	text = {
		localisation_key = confucianism_string
		trigger = {
			religion = confucianism
		}
	}
	text = {
		localisation_key = shintoism_string
		trigger = {
			religion = shinto
		}
	}
	text = {
		localisation_key = hinduism_string
		trigger = {
			religion = hinduism
		}
	}
	text = {
		localisation_key = sikhism_string
		trigger = {
			religion = sikhism
		}
	}
	text = {
		localisation_key = animism_string
		trigger = {
			religion = animism
		}
	}
	text = {
		localisation_key = fetishism_string
		trigger = {
			religion = shamanism
		}
	}
	text = {
		localisation_key = totemism_string
		trigger = {
			religion = totemism
		}
	}
	text = {
		localisation_key = inti_paganism_string
		trigger = {
			religion = inti
		}
	}
	text = {
		localisation_key = nahuatl_paganism_string
		trigger = {
			religion = nahuatl
		}
	}
	text = {
		localisation_key = mayan_paganism_string
		trigger = {
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = norse_paganism_string
		trigger = {
			religion = norse_pagan_reformed
		}
	}
	text = {
		localisation_key = tengrianism_string
		trigger = {
			religion = tengri_pagan_reformed
		}
	}
	text = {
		localisation_key = judaism_string
		trigger = {
			religion = jewish
		}
	}
	text = {
		localisation_key = zoroastrianism_string
		trigger = {
			religion = zoroastrian
		}
	}
}

#Prints the estate related to the event advisor via e.g. [This.GetBurghersName]
defined_text = {
	name = GetEventAdvisorEstate
	random = no
	text = {
		localisation_key = this_brahmins
		trigger = {
			has_country_flag = advisor_events_adm
			has_estate = estate_brahmins
			OR = {
				NOT = { has_estate = estate_church }
				employed_advisor = {
					category = ADM
					religion = hinduism
				}
			}
		}
	}
	text = {
		localisation_key = this_dhimmi
		trigger = {
			has_country_flag = advisor_events_adm
			has_estate = estate_dhimmi
			employed_advisor = {
				category = ADM
				religion = heathen
			}
		}
	}
	text = {
		localisation_key = this_clergy
		trigger = {
			has_country_flag = advisor_events_adm
			has_estate = estate_church
		}
	}
	text = {
		localisation_key = this_vaisyas
		trigger = {
			has_country_flag = advisor_events_dip
			has_estate = estate_vaisyas
		}
	}
	text = {
		localisation_key = this_jains
		trigger = {
			has_country_flag = advisor_events_dip
			has_estate = estate_jains
		}
	}
	text = {
		localisation_key = this_burghers
		trigger = {
			has_country_flag = advisor_events_dip
			has_estate = estate_burghers
		}
	}
	text = {
		localisation_key = this_rajputs
		trigger = {
			has_country_flag = advisor_events_mil
			has_estate = estate_rajput
			OR = {
				NOT = { has_estate = estate_nobles }
				employed_advisor = {
					category = MIL
					religion = hinduism
				}
			}
		}
	}
	text = {
		localisation_key = this_marathas
		trigger = {
			has_country_flag = advisor_events_mil
			has_estate = estate_maratha
			OR = {
				NOT = { has_estate = estate_nobles }
				employed_advisor = {
					category = MIL
					religion = hinduism
				}
			}
		}
	}
	text = {
		localisation_key = this_nobles
		trigger = {
			has_country_flag = advisor_events_mil
			has_estate = estate_nobles
		}
	}
	text = {
		localisation_key = this_nomadic_tribes
		trigger = {
			has_estate = estate_nomadic_tribes
		}
	}
	text = { #is used if none of the above ones are true e.g. if you have no estates
		localisation_key = fallback_string_nobility
		trigger = {
			always = yes
		}
	}
}


#Prints the estate related to the event advisor via e.g. [This.GetBurghersName]
defined_text = {
	name = GetVaishyasOrBurghersName
	random = no
	text = {
		localisation_key = this_vaisyas
		trigger = {
			has_estate = estate_vaisyas
		}
	}
	text = {
		localisation_key = this_burghers
		trigger = {
			has_estate = estate_burghers
		}
	}
}

#Prints the estate related to the event advisor via e.g. [This.GetBurghersName]
defined_text = {
	name = GetMarathasOrRajputsOrNoblesName
	random = no
	text = {
		localisation_key = this_nobles
		trigger = {
			has_estate = estate_nobles
		}
	}
	text = {
		localisation_key = this_rajputs
		trigger = {
			has_estate = estate_rajput
			NOT = { has_estate = estate_nobles }
		}
	}
	text = {
		localisation_key = this_marathas
		trigger = {
			has_estate = estate_maratha
			NOT = { has_estate = estate_nobles }
		}
	}
}

#Prints the parliament name with or without "the" before it, e.g. "they want a seat in Parliament/the National Assembly"
defined_text = {
	name = GetParliamentWithGrammar
	random = no

	text = {
		localisation_key = this_parliament
		trigger = {
			has_parliament = yes
			NOT = {
				OR = {
					tag = AYD
					tag = CND
					tag = DUL
					tag = ERE
					tag = FRA
					tag = GEN
					tag = GRM
					tag = HLR
					tag = KAR
					tag = MEN
					tag = MOS
					tag = NED
					tag = PLC
					tag = POL
					tag = PSK
					tag = RAM
					tag = RUS
					tag = QUE
					tag = SPA
					tag = SRU
					tag = SWI
					tag = TUR
					tag = VEN
					tag = WES
					tag = CRO
					tag = HUN
					culture_group = altaic
					culture_group = germanic
					tag = GER
					tag = SWE
					tag = DAN
					tag = NOR
					tag = ICE
					culture_group = iberian
					culture_group = east_slavic
					culture_group = slavic
					tag = LIT
					tag = BYZ
					tag = ROM
					culture_group = turko_semitic
					culture_group = maghrebi
				}
			}
		}
	}
	text = {
		localisation_key = this_the_parliament
		trigger = {
			has_parliament = yes
			OR = {
				tag = AYD
				tag = CND
				tag = DUL
				tag = ERE
				tag = FRA
				tag = GEN
				tag = GRM
				tag = HLR
				tag = KAR
				tag = MEN
				tag = MOS
				tag = NED
				tag = PLC
				tag = POL
				tag = PSK
				tag = RAM
				tag = RUS
				tag = QUE
				tag = SPA
				tag = SRU
				tag = SWI
				tag = TUR
				tag = VEN
				tag = WES
				tag = CRO
				tag = HUN
				culture_group = altaic
				culture_group = germanic
				tag = GER
				tag = SWE
				tag = DAN
				tag = NOR
				tag = ICE
				culture_group = iberian
				culture_group = east_slavic
				culture_group = slavic
				tag = LIT
				tag = BYZ
				tag = ROM
				culture_group = turko_semitic
				culture_group = maghrebi
			}
		}
	}
	text = {
		localisation_key = obj_parliament
		trigger = {
			has_parliament = no
		}
	}
}

defined_text = {
	name = GetParliamentWithGrammarCap
	random = no

	text = {
		localisation_key = this_parliament
		trigger = {
			NOT = {
				OR = {
					tag = AYD
					tag = CND
					tag = DUL
					tag = ERE
					tag = FRA
					tag = GEN
					tag = GRM
					tag = HLR
					tag = KAR
					tag = MEN
					tag = MOS
					tag = NED
					tag = PLC
					tag = POL
					tag = PSK
					tag = RAM
					tag = RUS
					tag = QUE
					tag = SPA
					tag = SRU
					tag = SWI
					tag = TUR
					tag = VEN
					tag = WES
					tag = CRO
					tag = HUN
					culture_group = altaic
					culture_group = germanic
					tag = GER
					tag = SWE
					tag = DAN
					tag = NOR
					tag = ICE
					culture_group = iberian
					culture_group = east_slavic
					culture_group = slavic
					tag = LIT
					tag = BYZ
					tag = ROM
					culture_group = turko_semitic
					culture_group = maghrebi
				}
			}
		}
	}
	text = {
		localisation_key = this_the_parliament_cap
		trigger = {
			OR = {
				tag = AYD
				tag = CND
				tag = DUL
				tag = ERE
				tag = FRA
				tag = GEN
				tag = GRM
				tag = HLR
				tag = KAR
				tag = MEN
				tag = MOS
				tag = NED
				tag = PLC
				tag = POL
				tag = PSK
				tag = RAM
				tag = RUS
				tag = QUE
				tag = SPA
				tag = SRU
				tag = SWI
				tag = TUR
				tag = VEN
				tag = WES
				tag = CRO
				tag = HUN
				culture_group = altaic
				culture_group = germanic
				tag = GER
				tag = SWE
				tag = DAN
				tag = NOR
				tag = ICE
				culture_group = iberian
				culture_group = east_slavic
				culture_group = slavic
				tag = LIT
				tag = BYZ
				tag = ROM
				culture_group = turko_semitic
				culture_group = maghrebi
			}
		}
	}
	text = {
		localisation_key = obj_parliament
		trigger = {
			has_parliament = no
		}
	}
}

defined_text = {
	name = GetParliamentOrFallbackName
	random = no
	text = {
		localisation_key = this_parliament
		trigger = {
			has_parliament = yes
		}
	}
	text = {
		localisation_key = obj_parliament
		trigger = {
			has_parliament = no
		}
	}
}

defined_text = {
	name = GetParliamentDecisionDescription
	random = no
	text = {
		localisation_key = parliament_decision_description
	}
}

defined_text = {
	name = GetRandom_Sin

	text = {
		localisation_key = sin_sexual_immorality
	}
	text = {
		localisation_key = sin_greedy_landlord
	}
	text = {
		localisation_key = sin_impiety
	}
	text = {
		localisation_key = sin_wroth
	}
	text = {
		localisation_key = sin_adultery
	}
}

### Polynesian Rework
defined_text = {
    name = GetPolynesianSacredArea

    text = {
        localisation_key = string_sacred_area_fijian
        trigger = {
			primary_culture = melanesian
        }
    }
    text = {
        localisation_key = string_sacred_area_hawaiian
        trigger = {
			OR = {
				tag = HAW
				tag = KAA
				tag = MAU
				tag = OAH
				tag = UHW
			}
        }
    }
	text = {
        localisation_key = string_sacred_area_polynesian
        trigger = {
			OR = {
				primary_culture = maori
				primary_culture = polynesian
			}
			NOT = {
				OR = {
					tag = HAW
					tag = KAA
					tag = MAU
					tag = OAH
					tag = UHW
				}
			}
        }
	}
}

defined_text = {
    name = GetPolynesianDance

    text = {
        localisation_key = string_dance_fijian
        trigger = {
			primary_culture = melanesian
        }
    }
    text = {
        localisation_key = string_dance_hawaiian
        trigger = {
			OR = {
				tag = HAW
				tag = KAA
				tag = MAU
				tag = OAH
				tag = UHW
			}
        }
    }
	text = {
        localisation_key = string_dance_maori
        trigger = {
			primary_culture = maori
        }
	}
	text = {
        localisation_key = string_dance_samoan
        trigger = {
			tag = SAM
        }
	}
	text = {
        localisation_key = string_dance_tongan
        trigger = {
			tag = TOG
        }
	}
}

defined_text = {
    name = GetMaliReligionGenorisityMissionText

    text = {
        localisation_key = mal_give_gold_away_desc_muslim
        trigger = {
			religion_group = muslim
        }
    }
    text = {
        localisation_key = mal_give_gold_away_desc_fetishist
        trigger = {
			NOT = { religion_group = muslim }
        }
    }
}

defined_text = {
    name = GetHeirPrimaryCultFeature

    text = {
        localisation_key = empty_text
        trigger = {
            NOT = { has_country_flag = enabled_cult_for_heirs }
        }
    }

    text = {
        localisation_key = primary_cults_for_heirs_tt
        trigger = {
            has_country_flag = enabled_cult_for_heirs
        }
    }
}

defined_text = {
    name = GetMaliRegionalCapital

    text = {
        localisation_key = empty_text
        trigger = {
            NOT = { has_country_flag = mal_visit_foreign_capital }
        }
    }

    text = {
        localisation_key = mal_visiting_foreign_regional_power
        trigger = {
            has_country_flag = mal_visit_foreign_capital
        }
    }
}

defined_text = {
    name = GetMaliPigrimageTour

    text = {
        localisation_key = GREAT_PILGRIMAGE
        trigger = {
            NOT = { has_country_modifier = mal_advisors_journey }
        }
    }

    text = {
        localisation_key = GREAT_TOUR
        trigger = {
            has_country_modifier = mal_advisors_journey
        }
    }
}

defined_text = {
    name = GetSelectableMissionTitle

    text = {
        localisation_key = SELECTABLE_MISSION_TITLE
    }
}

defined_text = {
    name = GetSelectableMissionDescription

    text = {
        localisation_key = SELECTABLE_MISSION_DESCRIPTION
    }
}

defined_text = {
	name = GetLockedMissionTitle
	text = {
		localisation_key = LOCKED_MISSION_TITLE
	}
}

defined_text = {
	name = GetLockedMissionDescription
	text = {
		localisation_key = LOCKED_MISSION_DESCRIPTION
	}
}

defined_text = {
    name = GetNumConvertedProvinces

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_converted_religion
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_CONVERTED_PROVINCES_COUNTER
        trigger = {
            check_variable = {
                which = num_converted_religion
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumForceConvertedCountries

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_forced_conversions
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_FORCE_CONVERTED_COUNTRIES_COUNTER
        trigger = {
            check_variable = {
                which = num_of_forced_conversions
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumReligiousPropagations

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = propogation_counter
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_PROPOGATION_COUNTER
        trigger = {
            check_variable = {
                which = propogation_counter
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumOfJanissaryDecisions

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = tur_num_of_janissary_decisions
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_JANISSARIES_SLAUGHTERED
        trigger = {
            check_variable = {
                which = tur_num_of_janissary_decisions
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumWonBattles

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_won_battles
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_WON_BATTLES
        trigger = {
            check_variable = {
                which = num_won_battles
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumRaids

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_raided_coasts
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_COMMITTED_RAIDS_COUNTER
        trigger = {
            check_variable = {
                which = num_of_raided_coasts
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumDevelopedProvinces

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_times_developed
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_DEVELOPED_PROVINCES_COUNTER
        trigger = {
            check_variable = {
                which = num_of_times_developed
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumAridDevelopedProvinces

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_times_developed_arid
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_ARID_DEVELOPMENT_COUNTER
        trigger = {
            check_variable = {
                which = num_of_times_developed_arid
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumWarsAgainstNonBelievers

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_wars_won_against_non_believers
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_WARS_WON_AGAINST_OTHER_RELIGIONS
        trigger = {
            check_variable = {
                which = num_of_wars_won_against_non_believers
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumWarsAgainstHeretics

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_wars_won_against_heretics
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_WARS_WON_AGAINST_HERETICS
        trigger = {
            check_variable = {
                which = num_of_wars_won_against_heretics
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumCultureConvertedProvinces

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_converted_culture
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_CULTURE_CONVERTED_PROVINCES_COUNTER
        trigger = {
            check_variable = {
                which = num_converted_culture
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumCultureConvertedToOwnCultureProvinces

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_converted_to_own_culture
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_CULTURE_TO_OWN_CULTURE_CONVERTED_PROVINCES_COUNTER
        trigger = {
            check_variable = {
                which = num_converted_to_own_culture
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumForceCultureConvertedCountries

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_forced_culture_conversions
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_FORCE_CULTURE_CONVERTED_COUNTRIES_COUNTER
        trigger = {
            check_variable = {
                which = num_of_forced_culture_conversions
                value = 1
            }
        }
    }
}

defined_text = {
	name = OppositeEmbassyHolderName

	text = {
		localisation_key = persian_embassy_holder_name
		trigger = {
			tag = event_target:kilwan_embassy_holder
		}
	}
	text = {
		localisation_key = kilwan_embassy_holder_name
		trigger = {
			tag = event_target:persian_embassy_holder
		}
	}
}

defined_text = {
	name = OppositeEmbassyHolderAdjective

	text = {
		localisation_key = persian_embassy_holder_adjective
		trigger = {
			tag = event_target:kilwan_embassy_holder
		}
	}
	text = {
		localisation_key = kilwan_embassy_holder_adjective
		trigger = {
			tag = event_target:persian_embassy_holder
		}
	}
}

defined_text = {
	name = OppositeEmbassyHolderReligion

	text = {
		localisation_key = persian_embassy_holder_religion
		trigger = {
			tag = event_target:kilwan_embassy_holder
		}
	}
	text = {
		localisation_key = kilwan_embassy_holder_religion
		trigger = {
			tag = event_target:persian_embassy_holder
		}
	}
}

defined_text = {
	name = GetLegitimacyOrSimilarCurrency

	text = {
		localisation_key = republican_tradition
		trigger = {
			government = republic
		}
	}
	text = {
		localisation_key = devotion
		trigger = {
			uses_devotion = yes
		}
	}
	text = {
		localisation_key = meritocracy
		trigger = {
			uses_meritocracy = yes
		}
	}
	text = {
		localisation_key = horde_unity
		trigger = {
			uses_horde_unity = yes
		}
	}
	text = {
		localisation_key = legitimacy
		#default
	}
}

defined_text = {
	name = SwedenCountWarsWon

	text = {
		localisation_key = swe_won_wars_variable
		trigger = {
			check_variable = {
				which = swe_won_wars_against_christians
				value = 1
			}
		}
	}
	text = {
		localisation_key = conversion_variable_zero
		trigger = {
			NOT = {
				check_variable = {
					which = swe_won_wars_against_christians
					value = 1
				}
			}
		}
	}
}

defined_text = {
	name = EngelbrektEventDescription

	text = {
		localisation_key = flavor_swe.EVTDESC3217
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetVasaDescription

	text = {
		localisation_key = flavor_swe.104.desc.a
		trigger = {
			NOT = { is_year = 1490 }
			NOT = { has_country_flag = dan_had_stockholm_bloodbath }
		}
	}

	text = {
		localisation_key = flavor_swe.104.desc.b
		trigger = {
			is_year = 1490
			NOT = { is_year = 1520 }
			NOT = { has_country_flag = dan_had_stockholm_bloodbath }
		}
	}

	text = {
		localisation_key = flavor_swe.104.desc.c
		trigger = {
			is_year = 1520
			NOT = { has_country_flag = dan_had_stockholm_bloodbath }
		}
	}

	text = {
		localisation_key = flavor_swe.104.desc.d
		trigger = {
			NOT = { is_year = 1490 }
			has_country_flag = dan_had_stockholm_bloodbath
		}
	}

	text = {
		localisation_key = flavor_swe.104.desc.e
		trigger = {
			is_year = 1490
			NOT = { is_year = 1520 }
			has_country_flag = dan_had_stockholm_bloodbath
		}
	}

	text = {
		localisation_key = flavor_swe.104.desc.f
		trigger = {
			is_year = 1520
			has_country_flag = dan_had_stockholm_bloodbath
		}
	}
}

defined_text = {
	name = GetHelpingVasa

	text = {
		localisation_key = swe_Johan_vasa_tt
		trigger = {
			has_country_flag = swe_support_from_Johan_vasa
		}
	}

	text = {
		localisation_key = swe_Erik_vasa_tt
		trigger = {
			has_country_flag = swe_support_from_Erik_vasa
		}
	}

	text = {
		localisation_key = swe_Gustav_vasa_tt
		trigger = {
			has_country_flag = swe_support_from_Gustav_vasa
		}
	}
}

defined_text = {
	name = GetPolandPLC

	text = {
		localisation_key = PLC
		trigger = {
			exists = PLC
		}
	}
	text = {
		localisation_key = POL
		trigger = {
			NOT = { exists = PLC }
		}
	}
}

defined_text = {
	name = GetDanNoblesDemand

	text = {
		localisation_key = PLC
		trigger = {
			exists = PLC
		}
	}
	text = {
		localisation_key = dan_nobles_demand_crownland
		trigger = { has_country_flag = dan_nobles_demand_crownland }
	}
	text = {
		localisation_key = dan_nobles_demand_soldiers
		trigger = { has_country_flag = dan_nobles_demand_soldiers }
	}
	text = {
		localisation_key = dan_nobles_demand_cash
		trigger = { has_country_flag = dan_nobles_demand_cash }
	}
	text = {
		localisation_key = dan_nobles_demand_privileges
		trigger = { has_country_flag = dan_nobles_demand_privileges }
	}
	text = {
		localisation_key = dan_nobles_demand_go_hunting
		trigger = { has_country_flag = dan_nobles_demand_go_hunting }
	}
	text = {
		localisation_key = dan_nobles_demand_peasant_suppression
		trigger = { has_country_flag = dan_nobles_demand_peasant_suppression }
	}
	text = {
		localisation_key = dan_nobles_demand_kill_some_rebels
		trigger = { has_country_flag = dan_nobles_demand_kill_some_rebels }
	}
	text = {
		localisation_key = dan_nobles_demand_forget_corruption
		trigger = { has_country_flag = dan_nobles_demand_forget_corruption }
	}
	text = {
		localisation_key = dan_nobles_demand_administrative_support
		trigger = { has_country_flag = dan_nobles_demand_administrative_support }
	}
	text = {
		localisation_key = dan_nobles_demand_diplomatic_support
		trigger = { has_country_flag = dan_nobles_demand_diplomatic_support }
	}
	text = {
		localisation_key = dan_nobles_demand_military_support
		trigger = { has_country_flag = dan_nobles_demand_military_support }
	}
	text = {
		localisation_key = string_empty
		trigger = {
			NOT = { has_country_flag = dan_nobles_demand_crownland }
			NOT = { has_country_flag = dan_nobles_demand_soldiers }
			NOT = { has_country_flag = dan_nobles_demand_cash }
			NOT = { has_country_flag = dan_nobles_demand_privileges }
			NOT = { has_country_flag = dan_nobles_demand_go_hunting }
			NOT = { has_country_flag = dan_nobles_demand_peasant_suppression }
			NOT = { has_country_flag = dan_nobles_demand_kill_some_rebels }
			NOT = { has_country_flag = dan_nobles_demand_forget_corruption }
			NOT = { has_country_flag = dan_nobles_demand_administrative_support }
			NOT = { has_country_flag = dan_nobles_demand_diplomatic_support }
			NOT = { has_country_flag = dan_nobles_demand_military_support }
		}
	}
}

defined_text = {
    name = GetNumOfSoldIndulgences

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = sold_indulgences
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_SOLD_INDULGENCES
        trigger = {
            check_variable = {
                which = sold_indulgences
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumOfRaidedChurches

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_converted_religion
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_RAIDED_CHURCHES
        trigger = {
            check_variable = {
                which = raided_churches
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetNumOfIssuesPassed

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = issues_passed
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_ISSUES_PASSED_TT
        trigger = {
            check_variable = {
                which = issues_passed
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetLivonianGovernmentEventsFired

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = liv_event_counter
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_LIVONIAN_GOVERNMENT_EVENTS_TT
        trigger = {
            check_variable = {
                which = liv_event_counter
                value = 1
            }
        }
    }
}

defined_text = {
	name = GetFoundRussiaMissionTitle
	text = {
		localisation_key = mos_rus_found_the_russian_tsardom_title_monarchy
		trigger = {
			NOT = { government = republic }
		}
	}
	text = {
		localisation_key = mos_rus_found_the_russian_tsardom_title_republic
		trigger = {
			government = republic
		}
	}
}

defined_text = {
	name = GetFoundRussiaMissionDescription
	text = {
		localisation_key = mos_rus_found_the_russian_tsardom_description_monarchy
		trigger = {
			NOT = { government = republic }
		}
	}
	text = {
		localisation_key = mos_rus_found_the_russian_tsardom_description_republic
		trigger = {
			government = republic
		}
	}
}

defined_text = {
	name = GetEmpressEmperor
	text = {
		localisation_key = EMPRESS
		trigger = {
			is_female = yes
		}
	}
	text = {
		localisation_key = EMPEROR
		trigger = {
			is_female = no
		}
	}
}

defined_text = {
	name = EnableEstateDecisionText
	text = {
		localisation_key = ENABLE_ESTATE_DECISION
	}
}

defined_text = {
	name = DisableEstateDecisionText
	text = {
		localisation_key = DISABLE_ESTATE_DECISION
	}
}

defined_text = {
	name = HasEstateDecisionText
	text = {
		localisation_key = HAS_ESTATE_DECISION
	}
}

defined_text = {
	name = EstateDecisionDescription
	text = {
		localisation_key = ESTATE_ACTION_DESCRIPTION
	}
}

defined_text = {
	name = EstateDecisionSharedCooldownTooltip
	text = {
		localisation_key = ESTATE_ACTION_SHARED_COOLDOWN
	}
}

#Estate focused
defined_text = {
	name = GetBrahminsLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_brahmins
			estate_loyalty = { estate = estate_brahmins loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_brahmins
			NOT = { estate_loyalty = { estate = estate_brahmins loyalty = 60 } }
			estate_loyalty = { estate = estate_brahmins loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_brahmins
			NOT = { estate_loyalty = { estate = estate_brahmins loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetClergyLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_church
			estate_loyalty = { estate = estate_church loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_church
			NOT = { estate_loyalty = { estate = estate_church loyalty = 60 } }
			estate_loyalty = { estate = estate_church loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_church
			NOT = { estate_loyalty = { estate = estate_church loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetMarathaLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_maratha
			estate_loyalty = { estate = estate_maratha loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_maratha
			NOT = { estate_loyalty = { estate = estate_maratha loyalty = 60 } }
			estate_loyalty = { estate = estate_maratha loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_maratha
			NOT = { estate_loyalty = { estate = estate_maratha loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetNobilityLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_nobles
			estate_loyalty = { estate = estate_nobles loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_nobles
			NOT = { estate_loyalty = { estate = estate_nobles loyalty = 60 } }
			estate_loyalty = { estate = estate_nobles loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_nobles
			NOT = { estate_loyalty = { estate = estate_nobles loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetBurghersLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_burghers
			estate_loyalty = { estate = estate_burghers loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_burghers
			NOT = { estate_loyalty = { estate = estate_burghers loyalty = 60 } }
			estate_loyalty = { estate = estate_burghers loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_burghers
			NOT = { estate_loyalty = { estate = estate_burghers loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetVaisyasLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_vaisyas
			estate_loyalty = { estate = estate_vaisyas loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_vaisyas
			NOT = { estate_loyalty = { estate = estate_vaisyas loyalty = 60 } }
			estate_loyalty = { estate = estate_vaisyas loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_vaisyas
			NOT = { estate_loyalty = { estate = estate_vaisyas loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetCossacksLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_cossacks
			estate_loyalty = { estate = estate_cossacks loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_cossacks
			NOT = { estate_loyalty = { estate = estate_cossacks loyalty = 60 } }
			estate_loyalty = { estate = estate_cossacks loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_cossacks
			NOT = { estate_loyalty = { estate = estate_cossacks loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetTribesLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_nomadic_tribes
			estate_loyalty = { estate = estate_nomadic_tribes loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_nomadic_tribes
			NOT = { estate_loyalty = { estate = estate_nomadic_tribes loyalty = 60 } }
			estate_loyalty = { estate = estate_nomadic_tribes loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_nomadic_tribes
			NOT = { estate_loyalty = { estate = estate_nomadic_tribes loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetDhimmiLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_dhimmi
			estate_loyalty = { estate = estate_dhimmi loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_dhimmi
			NOT = { estate_loyalty = { estate = estate_dhimmi loyalty = 60 } }
			estate_loyalty = { estate = estate_dhimmi loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_dhimmi
			NOT = { estate_loyalty = { estate = estate_dhimmi loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetJainsLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_jains
			estate_loyalty = { estate = estate_jains loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_jains
			NOT = { estate_loyalty = { estate = estate_jains loyalty = 60 } }
			estate_loyalty = { estate = estate_jains loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_jains
			NOT = { estate_loyalty = { estate = estate_jains loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetRajputsLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_rajput
			estate_loyalty = { estate = estate_rajput loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_rajput
			NOT = { estate_loyalty = { estate = estate_rajput loyalty = 60 } }
			estate_loyalty = { estate = estate_rajput loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_rajput
			NOT = { estate_loyalty = { estate = estate_rajput loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetJanissariesLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_janissaries
			estate_loyalty = { estate = estate_janissaries loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_janissaries
			NOT = { estate_loyalty = { estate = estate_janissaries loyalty = 60 } }
			estate_loyalty = { estate = estate_janissaries loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_janissaries
			NOT = { estate_loyalty = { estate = estate_janissaries loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetEunuchsLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_eunuchs
			estate_loyalty = { estate = estate_eunuchs loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_eunuchs
			NOT = { estate_loyalty = { estate = estate_eunuchs loyalty = 60 } }
			estate_loyalty = { estate = estate_eunuchs loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_eunuchs
			NOT = { estate_loyalty = { estate = estate_eunuchs loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetQizilbashLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_qizilbash
			estate_loyalty = { estate = estate_qizilbash loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_qizilbash
			NOT = { estate_loyalty = { estate = estate_qizilbash loyalty = 60 } }
			estate_loyalty = { estate = estate_qizilbash loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_qizilbash
			NOT = { estate_loyalty = { estate = estate_qizilbash loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetGhulamsLoyaltyStatus
	random = no
	text = {
		localisation_key = ESTATE_LOYAL
		trigger = {
			has_estate = estate_ghulams
			estate_loyalty = { estate = estate_ghulams loyalty = 60 }
		}
	}
	text = {
		localisation_key = ESTATE_NEUTRAL
		trigger = {
			has_estate = estate_ghulams
			NOT = { estate_loyalty = { estate = estate_ghulams loyalty = 60 } }
			estate_loyalty = { estate = estate_ghulams loyalty = 30 }
		}
	}
	text = {
		localisation_key = ESTATE_DISLOYAL
		trigger = {
			has_estate = estate_ghulams
			NOT = { estate_loyalty = { estate = estate_ghulams loyalty = 30 } }
		}
	}
}
defined_text = {
	name = GetGranadaOrAndalusia
	random = no
	text = {
		localisation_key = ADU
		trigger = {
			exists = ADU
		}
	}
	text = {
		localisation_key = GRA
		trigger = {
			NOT = { exists = ADU }
		}
	}
}

defined_text = {
	name = GetPaxBritannica
	random = no
	text = {
		localisation_key = flavor_gbr.199.t
		trigger = {
			tag = GBR
		}
	}
	text = {
		localisation_key = flavor_gbr.199.t.a
		trigger = {
			NOT = { tag = GBR }
		}
	}
}

#Added in order to save words for localization
defined_text = {
	name = GetActsOfUnionDecisionTitle
	text = {
		localisation_key = acts_of_union_debate_title
		trigger = {
			always = yes
		}
	}
}
defined_text = {
	name = GetActsOfUnionDecisionDesc
	text = {
		localisation_key = acts_of_union_debate_desc
		trigger = {
			always = yes
		}
	}
}
defined_text = {
	name = GetModernizationGain
	text = {
		localisation_key = "5.0"
		trigger = {
			FROM = { tech_difference = 7 }
		}
	}
	text = {
		localisation_key = "4.5"
		trigger = {
			FROM = { tech_difference = 6 }
		}
	}
	text = {
		localisation_key = "4.0"
		trigger = {
			FROM = { tech_difference = 5 }
		}
	}
	text = {
		localisation_key = "3.5"
		trigger = {
			FROM = { tech_difference = 4 }
		}
	}
	text = {
		localisation_key = "3.0"
		trigger = {
			FROM = { tech_difference = 3 }
		}
	}
	text = {
		localisation_key = "2.5"
		trigger = {
			FROM = { tech_difference = 2 }
		}
	}
	text = {
		localisation_key = "2.0"
	}
}
defined_text = {
	name = GetModernizationGiven
	text = {
		localisation_key = "5.0"
		trigger = {
			FROM = { PREV = { tech_difference = 7 } }
		}
	}
	text = {
		localisation_key = "4.5"
		trigger = {
			FROM = { PREV = { tech_difference = 6 } }
		}
	}
	text = {
		localisation_key = "4.0"
		trigger = {
			FROM = { PREV = { tech_difference = 5 } }
		}
	}
	text = {
		localisation_key = "3.5"
		trigger = {
			FROM = { PREV = { tech_difference = 4 } }
		}
	}
	text = {
		localisation_key = "3.0"
		trigger = {
			FROM = { PREV = { tech_difference = 3 } }
		}
	}
	text = {
		localisation_key = "2.5"
		trigger = {
			FROM = { PREV = { tech_difference = 2 } }
		}
	}
	text = {
		localisation_key = "2.0"
	}
}

defined_text = {
	name = GetStabilityOrPrestigeLoss
	random = no
	text = {
		localisation_key = stability
		trigger = {
			has_stab_reduction_from_dip_action_modifier = no
		}
	}
	text = {
		localisation_key = prestige
		trigger = {
			has_stab_reduction_from_dip_action_modifier = yes
		}
	}
}
defined_text = {
	name = GetTradeProtectorateDesc
	text = {
		localisation_key = trade_protectorate_desc
		trigger = {
			always = yes
		}
	}
}
defined_text = {
	name = GetEstateAgendaAutoCompletionFirstString
	text = {
		localisation_key = auto_complete_first_string
		trigger = {
			always = yes
		}
	}
}
defined_text = {
	name = GetEstateAgendaAutoCompletionSecondString
	text = {
		localisation_key = auto_complete_second_string
		trigger = {
			always = yes
		}
	}
}
defined_text = {
	name = TradeGoodsSelectionFirstString
	text = {
		localisation_key = trade_goods_selection_string
		trigger = {
			always = yes
		}
	}
}
defined_text = {
	name = GetCrownPrincePrincess
	text = {
		localisation_key = CROWN_PRINCE
		trigger = {
			has_female_heir = no
		}
	}
	text = {
		localisation_key = CROWN_PRINCEESS
		trigger = {
			has_female_heir = yes
		}
	}
}
defined_text = {
	name = GetPermanentOrEmpty
	text = {
		localisation_key = PERMANENT
		trigger = {
			has_country_modifier = rus_expanded_administrative_offices
		}
	}
	text = {
		localisation_key = empty_text
		trigger = {
			NOT = { has_country_modifier = rus_expanded_administrative_offices }
		}
	}
}
defined_text = {
	name = GetActiveDisaster
	text = { localisation_key = disaster								trigger = { has_any_disaster = no } }
	text = { localisation_key = ambrosian_republic_disaster				trigger = { has_disaster = ambrosian_republic_disaster } }
	text = { localisation_key = bonfire_of_the_vanities_disaster		trigger = { has_disaster = bonfire_of_the_vanities_disaster } }
	text = { localisation_key = castilian_civil_war						trigger = { has_disaster = castilian_civil_war } }
	text = { localisation_key = civil_war								trigger = { has_disaster = civil_war } }
	text = { localisation_key = court_and_country						trigger = { has_disaster = court_and_country } }
	text = { localisation_key = coup_attempt_disaster					trigger = { has_disaster = coup_attempt_disaster } }
	text = { localisation_key = dark_age_of_cambodia					trigger = { has_disaster = dark_age_of_cambodia } }
	text = { localisation_key = decline_of_mali							trigger = { has_disaster = decline_of_mali } }
	text = { localisation_key = dutch_revolt_disaster					trigger = { has_disaster = dutch_revolt_disaster } }
	text = { localisation_key = empire_of_china_in_name					trigger = { has_disaster = empire_of_china_in_name } }
	text = { localisation_key = empire_of_china_nomadic_border			trigger = { has_disaster = empire_of_china_nomadic_border } }
	text = { localisation_key = english_civil_war						trigger = { has_disaster = english_civil_war } }
	text = { localisation_key = estate_brahmins_disaster				trigger = { has_disaster = estate_brahmins_disaster } }
	text = { localisation_key = estate_burghers_disaster				trigger = { has_disaster = estate_burghers_disaster } }
	text = { localisation_key = estate_church_disaster					trigger = { has_disaster = estate_church_disaster } }
	text = { localisation_key = estate_cossacks_disaster				trigger = { has_disaster = estate_cossacks_disaster } }
	text = { localisation_key = estate_dhimmi_disaster					trigger = { has_disaster = estate_dhimmi_disaster } }
	text = { localisation_key = estate_eunuchs_disaster					trigger = { has_disaster = estate_eunuchs_disaster } }
	text = { localisation_key = estate_jains_disaster					trigger = { has_disaster = estate_jains_disaster } }
	text = { localisation_key = estate_janissary_disaster				trigger = { has_disaster = estate_janissary_disaster } }
	text = { localisation_key = estate_maratha_disaster					trigger = { has_disaster = estate_maratha_disaster } }
	text = { localisation_key = estate_nobility_disaster				trigger = { has_disaster = estate_nobility_disaster } }
	text = { localisation_key = estate_nomadic_tribes_disaster			trigger = { has_disaster = estate_nomadic_tribes_disaster } }
	text = { localisation_key = estate_rajput_disaster					trigger = { has_disaster = estate_rajput_disaster } }
	text = { localisation_key = estate_vaisyas_disaster					trigger = { has_disaster = estate_vaisyas_disaster } }
	text = { localisation_key = fall_of_majapahit						trigger = { has_disaster = fall_of_majapahit } }
	text = { localisation_key = french_revolution						trigger = { has_disaster = french_revolution } }
	text = { localisation_key = french_wars_of_religion					trigger = { has_disaster = french_wars_of_religion } }
	text = { localisation_key = granada_succession_war					trigger = { has_disaster = granada_succession_war } }
	text = { localisation_key = infantes_of_aragon						trigger = { has_disaster = infantes_of_aragon } }
	text = { localisation_key = internal_conflicts						trigger = { has_disaster = internal_conflicts } }
	text = { localisation_key = janissary_decadence						trigger = { has_disaster = janissary_decadence } }
	text = { localisation_key = aspiration_for_liberty					trigger = { has_disaster = aspiration_for_liberty } }
	text = { localisation_key = ming_crisis								trigger = { has_disaster = ming_crisis } }
	text = { localisation_key = northern_and_southern_dynasties			trigger = { has_disaster = northern_and_southern_dynasties } }
	text = { localisation_key = tur_disaster_ottoman_power_struggle		trigger = { has_disaster = tur_disaster_ottoman_power_struggle } }
	text = { localisation_key = peasant_war								trigger = { has_disaster = peasant_war } }
	text = { localisation_key = pol_struggle_for_royal_power_disaster	trigger = { has_disaster = pol_struggle_for_royal_power_disaster } }
	text = { localisation_key = prussian_confederation_disaster			trigger = { has_disaster = prussian_confederation_disaster } }
	text = { localisation_key = religious_turmoil						trigger = { has_disaster = religious_turmoil } }
	text = { localisation_key = revolution								trigger = { has_disaster = revolution } }
	text = { localisation_key = siamese_revolution						trigger = { has_disaster = siamese_revolution } }
	text = { localisation_key = the_dacke_feud							trigger = { has_disaster = the_dacke_feud } }
	text = { localisation_key = time_of_troubles						trigger = { has_disaster = time_of_troubles } }
	text = { localisation_key = war_of_the_roses						trigger = { has_disaster = war_of_the_roses } }
}

defined_text = {
	name = GetSpyCostHardCoded
	random = no
	text = {
		localisation_key = "30.00"
		trigger = {
			NOT = { full_idea_group = spy_ideas }
		}
	}
	text = {
		localisation_key = "24.00"
		trigger = {
			full_idea_group = spy_ideas
		}
	}
}

defined_text = {
	name = GetSpyCostHardCodedTributary
	random = no
	text = {
		localisation_key = "100.00"
		trigger = {
			NOT = { full_idea_group = spy_ideas }
		}
	}
	text = {
		localisation_key = "80.00"
		trigger = {
			full_idea_group = spy_ideas
		}
	}
}

defined_text = {
	name = GetJanissaries
	random = no
	text = {
		localisation_key = estate_janissaries
	}
}

defined_text = {
	name = GetEunuchs
	random = no
	text = {
		localisation_key = estate_eunuchs
	}
}

# Ex: "[Burghers] have 80% of influence and less than 30 in loyalty"
defined_text = {
	name = GetEstate80i30l
	random = no
	text = {
		localisation_key = string_church_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_church
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_brahmins_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_brahmins
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_brahmins
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_nobles_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_nobles
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_nobles
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_maratha_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_maratha
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_maratha
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_rajput_estate_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_rajput
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_rajput
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_burghers_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_burghers
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_burghers
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_vaisyas_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_vaisyas
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_vaisyas
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_cossacks_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_cossacks
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_cossacks
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_nomadic_tribes_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_nomadic_tribes
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_nomadic_tribes
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_dhimmi_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_dhimmi
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_dhimmi
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = string_jains_this
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_jains
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_jains
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = estate_eunuchs
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_eunuchs
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_eunuchs
						loyalty = 30
					}
				}
			}
		}
	}
	text = {
		localisation_key = estate_janissaries
		trigger = {
			AND = {
				estate_influence = {
					estate = estate_janissaries
					influence = 80
				}
				NOT = {
					estate_loyalty = {
						estate = estate_janissaries
						loyalty = 30
					}
				}
			}
		}
	}
}

defined_text = {
    name = GetAvailableAppanageAnnexationScore
    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = can_annex_appanages_points
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_AVAILABLE_ANNEXATIONS
        trigger = {
            check_variable = {
                which = can_annex_appanages_points
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetSaleTitleCounter
    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = sale_of_titles_counter
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_SOLD_TITLES
        trigger = {
            check_variable = {
                which = sale_of_titles_counter
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetSummonDietCounter
    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = summon_the_diet_counter
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_DIETS_CALLED
        trigger = {
            check_variable = {
                which = summon_the_diet_counter
                value = 1
            }
        }
    }
}

defined_text = {
    name = GetSeizeLandCounter
    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = seize_land_counter
                    value = 1
                }
            }
        }
    }

    text = {
        localisation_key = NUM_OF_LAND_SEIZED
        trigger = {
            check_variable = {
                which = seize_land_counter
                value = 1
            }
        }
    }
}

defined_text = {
	name = GetManufactoriesRuleBritannia
	text = {
		localisation_key = ONLY_MANUFACTORIES
		trigger = {
			has_dlc = "Rule Britannia"
		}
	}
	text = {
		localisation_key = MANUFACTORIES_AND_INDUSTRIALIZATION
		trigger = {
			NOT = {
				has_dlc = "Rule Britannia"
			}
		}
	}
	text = {
		localisation_key = MANUFACTORIES_AND_INDUSTRIALIZATION
	}
}

defined_text = {
    name = GetByzantineMonumentBuff
	
    text = {
        localisation_key = BYZ_great_project_cost
        trigger = {
			has_dlc = "Leviathan"
        }
    }
    text = {
        localisation_key = BYZ_construction_cost
        trigger = {
			always = yes
        }
    }
}

defined_text = {
	name = GetDynastyOrFallback
	random = no
	text = {
		localisation_key = THIS_GET_DYNASTY_NAME
		trigger = {
			OR = {
				government = monarchy
				government = tribal
			}
			OR = {
				has_regency = no
				AND = {
					has_heir = yes
					has_regency = yes
				}
			}
		}
	}
	text = {
		localisation_key = NO_SPACE
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetTempElevationCostReduction
	text = {
		localisation_key = ZERO
		trigger = {
			NOT = { has_country_flag = persian_influence_setup_flag }
		}
	}
	text = {
		localisation_key = persian_influence_current_reduction_bonus_tt
		trigger = {
			has_country_flag = persian_influence_setup_flag
		}
	}
}

defined_text = {
	name = GetTempElevationCostReductionCap
	text = {
		localisation_key = TWO_HUNDRED
		trigger = {
			NOT = { has_country_flag = improved_elevation_reduction }
		}
	}
	text = {
		localisation_key = FOUR_HUNDRED
		trigger = {
			has_country_flag = improved_elevation_reduction
		}
	}
}

defined_text = {
	name = GetFabricateReligiousConflictCost
	text = { 
		localisation_key = 30_STRING
		trigger = {
			NOT = { full_idea_group = spy_ideas }
			NOT = { has_country_flag = reduced_spread_faith_cb_spy_cost }
		}
	}
	text = { 
		localisation_key = 24_STRING
		trigger = {
			full_idea_group = spy_ideas
			NOT = { has_country_flag = reduced_spread_faith_cb_spy_cost }
		}
	}
	text = { 
		localisation_key = 10_STRING
		trigger = {
			NOT = { full_idea_group = spy_ideas }
			has_country_flag = reduced_spread_faith_cb_spy_cost
		}
	}
	text = { 
		localisation_key = 8_STRING
		trigger = {
			full_idea_group = spy_ideas
			has_country_flag = reduced_spread_faith_cb_spy_cost
		}
	}
}

defined_text = {
	name = GetCurrentPersianInfluenceInteractionCounter
	text = { 
		localisation_key = ZERO
		trigger = {
			NOT = {
				check_variable = {
					which = persian_influence_interaction_counter
					value = 1
				}
			}
		}
	}
	text = { 
		localisation_key = persian_influence_interaction_counter_tt
		trigger = {
			check_variable = {
				which = persian_influence_interaction_counter
				value = 1
			}
		}
	}
}

defined_text = {
	name = GetCurrentPersianInfluenceElevationCounter
	text = { 
		localisation_key = ZERO
		trigger = {
			NOT = {
				check_variable = {
					which = persian_influence_elevation_counter
					value = 1
				}
			}
		}
	}
	text = { 
		localisation_key = persian_influence_elevation_counter_tt
		trigger = {
			check_variable = {
				which = persian_influence_elevation_counter
				value = 1
			}
		}
	}
}

defined_text = {
	name = GetTempleName
	text = {
		localisation_key = building_temple_christian
		trigger = { religion_group = christian }
	}
	text = {
		localisation_key = building_temple_muslim
		trigger = { religion_group = muslim }
	}
	text = {
		localisation_key = building_temple_shinto
		trigger = { religion = shinto }
	}
	text = {
		localisation_key = building_temple_zoroastrian
		trigger = { religion = zoroastrian }
	}
	text = {
		localisation_key = building_temple_jewish
		trigger = { religion = jewish }
	}
	text = {
		localisation_key = building_temple
	}
}

defined_text = {
	name = GetCathedralName
	text = {
		localisation_key = building_cathedral_orthodox
		trigger = { religion = orthodox }
	}
	text = {
		localisation_key = building_cathedral_muslim
		trigger = { religion_group = muslim }
	}
	text = {
		localisation_key = building_cathedral_dharmic
		trigger = { religion_group = dharmic }
	}
	text = {
		localisation_key = building_cathedral_eastern
		trigger = { religion_group = eastern }
	}
	text = {
		localisation_key = building_cathedral_pagan
		trigger = { religion_group = pagan }
	}
	text = {
		localisation_key = building_cathedral_zoroastrian_group
		trigger = { religion = zoroastrian }
	}
	text = {
		localisation_key = building_cathedral_jewish_group
		trigger = { religion_group = jewish_group }
	}
	text = {
		localisation_key = building_cathedral
	}
}

defined_text = {
	name = GetWorkOfArtDescription
	random = no
	text = {
		localisation_key = MAGNIFICENT_BUILDING_STRING
		trigger = {
			check_variable = { which = art_quality value = 4 }
			has_country_modifier = promoting_architecture
		}
	}
	text = {
		localisation_key = MAGNIFICENT_CARPETS_STRING
		trigger = {
			check_variable = { which = art_quality value = 4 }
			has_country_modifier = promoting_textiles
		}
	}
	text = {
		localisation_key = MAGNIFICENT_PAINTING_STRING
		trigger = {
			check_variable = { which = art_quality value = 4 }
			has_country_modifier = promoting_painting
		}
	}
	text = {
		localisation_key = SIGNIFICANT_BUILDING_STRING
		trigger = {
			check_variable = { which = art_quality value = 3 }
			has_country_modifier = promoting_architecture
		}
	}
	text = {
		localisation_key = SIGNIFICANT_CARPETS_STRING
		trigger = {
			check_variable = { which = art_quality value = 3 }
			has_country_modifier = promoting_textiles
		}
	}
	text = {
		localisation_key = SIGNIFICANT_PAINTING_STRING
		trigger = {
			check_variable = { which = art_quality value = 3 }
			has_country_modifier = promoting_painting
		}
	}
	text = {
		localisation_key = NOTEWORTHY_BUILDING_STRING
		trigger = {
			check_variable = { which = art_quality value = 2 }
			has_country_modifier = promoting_architecture
		}
	}
	text = {
		localisation_key = NOTEWORTHY_CARPETS_STRING
		trigger = {
			check_variable = { which = art_quality value = 2 }
			has_country_modifier = promoting_textiles
		}
	}
	text = {
		localisation_key = NOTEWORTHY_PAINTING_STRING
		trigger = {
			check_variable = { which = art_quality value = 2 }
			has_country_modifier = promoting_painting
		}
	}
	text = {
		localisation_key = GREAT_BUILDING_STRING
		trigger = {
			check_variable = { which = art_quality value = 1 }
			has_country_modifier = promoting_architecture
		}
	}
	text = {
		localisation_key = GREAT_CARPETS_STRING
		trigger = {
			check_variable = { which = art_quality value = 1 }
			has_country_modifier = promoting_textiles
		}
	}
	text = {
		localisation_key = GREAT_PAINTING_STRING
		trigger = {
			check_variable = { which = art_quality value = 1 }
			has_country_modifier = promoting_painting
		}
	}
	text = {
		localisation_key = PATHETIC_BUILDING_STRING
		trigger = {
			has_country_modifier = promoting_architecture
		}
	}
	text = {
		localisation_key = PATHETIC_CARPETS_STRING
		trigger = {
			has_country_modifier = promoting_textiles
		}
	}
	text = {
		localisation_key = PATHETIC_PAINTING_STRING
		trigger = {
			has_country_modifier = promoting_painting
		}
	}
	text = {
		localisation_key = FALLBACK_ART_STRING
	}
}

defined_text = {
	name = GetReligiousMainDeityName
	text = {
		localisation_key = THE_LORD_DEITY	#Note: He will be always referred as 'THE LORD'
		trigger = {
			religion_group = christian
		}
	}
	text = {
		localisation_key = ALLAH_DEITY
		trigger = {
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MAHABRAHMA_DEITY	#Note: Buddhism does not belief in any creator deity
		trigger = {
			OR = {
				religion = buddhism
				religion = mahayana
				religion = vajrayana
			}
		}
	}
	text = {
		localisation_key = THE_HEAVEN_DEITY	#Note: Here is the say of 'THE HEAVEN'
		trigger = {
			religion = confucianism
			OR = {
				has_reform = celestial_empire
				is_emperor_of_china = yes
			}
		}
	}
	text = {
		localisation_key = AMATERASU_DEITY
		trigger = {
			religion = shinto
		}
	}
	text = {
		localisation_key = INTI_DEITY
		trigger = {
			religion = inti
		}
	}
	text = {
		localisation_key = OMETECUHTLI_DEITY	#Randomly picked for Nahuatl
		trigger = {
			religion = nahuatl
		}
	}
	text = {
		localisation_key = OMECIHUATL_DEITY		#Randomly picked for Nahuatl
		trigger = {
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HUNAB_KU_DEITY
		trigger = {
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = ODIN_DEITY
		trigger = {
			religion = norse_pagan_reformed
		}
	}
	text = {
		localisation_key = TENGRI_DEITY
		trigger = {
			religion = tengri_pagan_reformed
		}
	}
	text = {
		localisation_key = BRAHMAN_DEITY
		trigger = {
			religion = hinduism
		}
	}
	text = {
		localisation_key = KARTA_PURAKH_DEITY
		trigger = {
			religion = sikhism
		}
	}
	text = {
		localisation_key = GOD_DEITY	#Note: Technically speaking, God for the Jews has a lot of different names. However, using any of the Jewish names can be seen as disrespectful, so I opted with the most generally accepted term
		trigger = {
			religion_group = jewish_group
		}
	}
	text = {
		localisation_key = AHURA_MAZDA_DEITY
		trigger = {
			religion_group = zoroastrian_group
		}
	}
	text = {
		localisation_key = GREAT_SPIRIT_FALLBACK_DEITY
		trigger = {
			NOT = { religion_group = christian }
			NOT = { religion_group = muslim }
			NOT = { religion = buddhism }
			NOT = { religion = mahayana }
			NOT = { religion = vajrayana }
			NOT = { religion = confucianism }
			NOT = { religion = shinto }
			NOT = { religion = inti }
			NOT = { religion = nahuatl }
			NOT = { religion = mesoamerican_religion }
			NOT = { religion = norse_pagan_reformed }
			NOT = { religion = tengri_pagan_reformed }
			NOT = { religion = hinduism }
			NOT = { religion = sikhism }
			NOT = { religion_group = jewish_group }
			NOT = { religion_group = zoroastrian_group }
		}
	}
}

defined_text = {
	name = GetFreeAshaVahistCostTooltip
	random = no
	text = {
		localisation_key = no_asha_vahishta_cost_diplo_action
		trigger = {
			has_government_mechanic = the_three_royal_fires_mechanic
		}
	}
	text = {
		localisation_key = string_empty
		trigger = {
			NOT = { has_government_mechanic = the_three_royal_fires_mechanic }
		}
	}
}

defined_text = {
	name = GetPersianInfluenceOrAshaVahishta
	text = {
		localisation_key = persian_influence
		trigger = {
			has_government_mechanic = persian_influence_mechanic
			NOT = { has_government_mechanic = the_three_royal_fires_mechanic }
		}
	}
	text = {
		localisation_key = asha_vahishta
		trigger = {
			NOT = { has_government_mechanic = persian_influence_mechanic }
			has_government_mechanic = the_three_royal_fires_mechanic
		}
	}
	text = {
		localisation_key = persian_influence_and_asha_vahishta
		trigger = {
			has_government_mechanic = persian_influence_mechanic
			has_government_mechanic = the_three_royal_fires_mechanic
		}
	}
	text = {
		localisation_key = string_empty
		trigger = {
			NOT = { has_government_mechanic = persian_influence_mechanic }
			NOT = { has_government_mechanic = the_three_royal_fires_mechanic }
		}
	}
}

defined_text = {
	name = GetRoyalFiresAbilityCounter
	text = {
		localisation_key = the_three_royal_fires_counter_tt
		trigger = {
			check_variable = {
				which = the_three_royal_fires_counter
				value = 1
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			NOT = {
				check_variable = {
					which = the_three_royal_fires_counter
					value = 1
				}
			}
		}
	}
}

defined_text = {
	name = GetZoroCoRCounter
	text = {
		localisation_key = zoroastrian_reform_center_counter_tt
		trigger = {
			1 = {
				check_variable = {
					which = zoroastrian_reform_center_counter
					value = 1
				}
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			1 = {
				NOT = {
					check_variable = {
						which = zoroastrian_reform_center_counter
						value = 1
					}
				}
			}
		}
	}
}

defined_text = {
	name = GetPronoiaInheritanceLaw
	text = {
		localisation_key = empty_text
		trigger = {
			has_country_flag = BYZ_hereditary_pronoiars
		}
	}
	text = {
		localisation_key = create_pronoia_non_inherently
		trigger = {
			NOT = { has_country_flag = BYZ_hereditary_pronoiars }
		}
	}
}

defined_text = {
	name = GetZoroastrianInvitationValue
	text = {
		localisation_key = ZERO
		trigger = {
			NOT = {
				check_variable = {
					which = zoroastrian_invitation_charges
					value = 1
				}
			}
		}
	}
	text = {
		localisation_key = zoroastrian_invitation_charges_value
		trigger = {
			check_variable = {
				which = zoroastrian_invitation_charges
				value = 1
			}
		}
	}
}

defined_text = {
	name = GetCurrentElevasionCost
	random = no
	text = {
		localisation_key = 0_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 0 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 1 } }
		}
	}
	text = {
		localisation_key = 1_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 1 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 2 } }
		}
	}
	text = {
		localisation_key = 2_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 2 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 3 } }
		}
	}
	text = {
		localisation_key = 3_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 3 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 4 } }
		}
	}
	text = {
		localisation_key = 4_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 4 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 5 } }
		}
	}
	text = {
		localisation_key = 5_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 5 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 6 } }
		}
	}
	text = {
		localisation_key = 6_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 6 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 7 } }
		}
	}
	text = {
		localisation_key = 7_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 7 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 8 } }
		}
	}
	text = {
		localisation_key = 8_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 8 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 9 } }
		}
	}
	text = {
		localisation_key = 9_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 9 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 10 } }
		}
	}
	text = {
		localisation_key = 10_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 10 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 11 } }
		}
	}
	text = {
		localisation_key = 11_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 11 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 12 } }
		}
	}
	text = {
		localisation_key = 12_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 12 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 13 } }
		}
	}
	text = {
		localisation_key = 13_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 13 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 14 } }
		}
	}
	text = {
		localisation_key = 14_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 14 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 15 } }
		}
	}
	text = {
		localisation_key = 15_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 15 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 16 } }
		}
	}
	text = {
		localisation_key = 16_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 16 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 17 } }
		}
	}
	text = {
		localisation_key = 17_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 17 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 18 } }
		}
	}
	text = {
		localisation_key = 18_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 18 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 19 } }
		}
	}
	text = {
		localisation_key = 19_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 19 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 20 } }
		}
	}
	text = {
		localisation_key = 20_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 20 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 21 } }
		}
	}
	text = {
		localisation_key = 21_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 21 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 22 } }
		}
	}
	text = {
		localisation_key = 22_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 22 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 23 } }
		}
	}
	text = {
		localisation_key = 23_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 23 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 24 } }
		}
	}
	text = {
		localisation_key = 24_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 24 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 25 } }
		}
	}
	text = {
		localisation_key = 25_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 25 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 26 } }
		}
	}
	text = {
		localisation_key = 26_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 26 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 27 } }
		}
	}
	text = {
		localisation_key = 27_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 27 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 28 } }
		}
	}
	text = {
		localisation_key = 28_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 28 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 29 } }
		}
	}
	text = {
		localisation_key = 29_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 29 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 30 } }
		}
	}
	text = {
		localisation_key = 30_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 30 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 31 } }
		}
	}
	text = {
		localisation_key = 31_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 31 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 32 } }
		}
	}
	text = {
		localisation_key = 32_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 32 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 33 } }
		}
	}
	text = {
		localisation_key = 33_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 33 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 34 } }
		}
	}
	text = {
		localisation_key = 34_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 34 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 35 } }
		}
	}
	text = {
		localisation_key = 35_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 35 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 36 } }
		}
	}
	text = {
		localisation_key = 36_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 36 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 37 } }
		}
	}
	text = {
		localisation_key = 37_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 37 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 38 } }
		}
	}
	text = {
		localisation_key = 38_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 38 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 39 } }
		}
	}
	text = {
		localisation_key = 39_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 39 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 40 } }
		}
	}
	text = {
		localisation_key = 40_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 40 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 41 } }
		}
	}
	text = {
		localisation_key = 41_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 41 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 42 } }
		}
	}
	text = {
		localisation_key = 42_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 42 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 43 } }
		}
	}
	text = {
		localisation_key = 43_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 43 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 44 } }
		}
	}
	text = {
		localisation_key = 44_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 44 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 45 } }
		}
	}
	text = {
		localisation_key = 45_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 45 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 46 } }
		}
	}
	text = {
		localisation_key = 46_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 46 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 47 } }
		}
	}
	text = {
		localisation_key = 47_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 47 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 48 } }
		}
	}
	text = {
		localisation_key = 48_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 48 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 49 } }
		}
	}
	text = {
		localisation_key = 49_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 49 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 50 } }
		}
	}
	text = {
		localisation_key = 50_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 50 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 51 } }
		}
	}
	text = {
		localisation_key = 51_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 51 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 52 } }
		}
	}
	text = {
		localisation_key = 52_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 52 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 53 } }
		}
	}
	text = {
		localisation_key = 53_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 53 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 54 } }
		}
	}
	text = {
		localisation_key = 54_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 54 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 55 } }
		}
	}
	text = {
		localisation_key = 55_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 55 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 56 } }
		}
	}
	text = {
		localisation_key = 56_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 56 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 57 } }
		}
	}
	text = {
		localisation_key = 57_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 57 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 58 } }
		}
	}
	text = {
		localisation_key = 58_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 58 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 59 } }
		}
	}
	text = {
		localisation_key = 59_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 59 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 60 } }
		}
	}
	text = {
		localisation_key = 60_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 60 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 61 } }
		}
	}
	text = {
		localisation_key = 61_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 61 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 62 } }
		}
	}
	text = {
		localisation_key = 62_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 62 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 63 } }
		}
	}
	text = {
		localisation_key = 63_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 63 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 64 } }
		}
	}
	text = {
		localisation_key = 64_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 64 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 65 } }
		}
	}
	text = {
		localisation_key = 65_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 65 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 66 } }
		}
	}
	text = {
		localisation_key = 66_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 66 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 67 } }
		}
	}
	text = {
		localisation_key = 67_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 67 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 68 } }
		}
	}
	text = {
		localisation_key = 68_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 68 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 69 } }
		}
	}
	text = {
		localisation_key = 69_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 69 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 70 } }
		}
	}
	text = {
		localisation_key = 70_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 70 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 71 } }
		}
	}
	text = {
		localisation_key = 71_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 71 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 72 } }
		}
	}
	text = {
		localisation_key = 72_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 72 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 73 } }
		}
	}
	text = {
		localisation_key = 73_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 73 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 74 } }
		}
	}
	text = {
		localisation_key = 74_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 74 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 75 } }
		}
	}
	text = {
		localisation_key = 75_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 75 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 76 } }
		}
	}
	text = {
		localisation_key = 76_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 76 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 77 } }
		}
	}
	text = {
		localisation_key = 77_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 77 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 78 } }
		}
	}
	text = {
		localisation_key = 78_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 78 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 79 } }
		}
	}
	text = {
		localisation_key = 79_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 79 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 80 } }
		}
	}
	text = {
		localisation_key = 80_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 80 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 81 } }
		}
	}
	text = {
		localisation_key = 81_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 81 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 82 } }
		}
	}
	text = {
		localisation_key = 82_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 82 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 83 } }
		}
	}
	text = {
		localisation_key = 83_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 83 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 84 } }
		}
	}
	text = {
		localisation_key = 84_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 84 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 85 } }
		}
	}
	text = {
		localisation_key = 85_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 85 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 86 } }
		}
	}
	text = {
		localisation_key = 86_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 86 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 87 } }
		}
	}
	text = {
		localisation_key = 87_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 87 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 88 } }
		}
	}
	text = {
		localisation_key = 88_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 88 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 89 } }
		}
	}
	text = {
		localisation_key = 89_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 89 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 90 } }
		}
	}
	text = {
		localisation_key = 90_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 90 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 91 } }
		}
	}
	text = {
		localisation_key = 91_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 91 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 92 } }
		}
	}
	text = {
		localisation_key = 92_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 92 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 93 } }
		}
	}
	text = {
		localisation_key = 93_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 93 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 94 } }
		}
	}
	text = {
		localisation_key = 94_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 94 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 95 } }
		}
	}
	text = {
		localisation_key = 95_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 95 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 96 } }
		}
	}
	text = {
		localisation_key = 96_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 96 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 97 } }
		}
	}
	text = {
		localisation_key = 97_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 97 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 98 } }
		}
	}
	text = {
		localisation_key = 98_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 98 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 99 } }
		}
	}
	text = {
		localisation_key = 99_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 99 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 100 } }
		}
	}
	text = {
		localisation_key = 100_STRING
		trigger = {
			has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 100 }
			NOT = { has_global_modifier_value = { which = influence_to_vassal_elevation_cost value = 101 } }
		}
	}
}

defined_text = {
	name = GetProniaAdvancedTooltip
	text = {
		localisation_key = extra_text_hereditary_proniar
		trigger = { not = { has_country_flag = BYZ_hereditary_pronoiars } }
	}
	text = {
		localisation_key = extra_text_proniar
		trigger = { has_country_flag = BYZ_hereditary_pronoiars }
	}
}

defined_text = {
	name = GetLoyaltyHitTooltip
	text = {
		localisation_key = empty_text
		trigger = { not = { liberty_desire = 50 } }
	}
	text = {
		localisation_key = loyalty_opinion_hit
		trigger = { liberty_desire = 50 }
	}
}

defined_text = {
	name = GetTotalNonEstateDisastersCompleted
	text = {
		localisation_key = ZERO
		trigger = {
			not = {
				check_variable = {
					which = total_disasters_completed_counter
					value = 1
				}
			}
		}
	}
	text = {
		localisation_key = get_current_completed_non_estate_disaster_progress_tt
		trigger = {
			check_variable = {
				which = total_disasters_completed_counter
				value = 1
			}
		}
	}
}

defined_text = {
	name = GetQizilbashReference
	text = {
		localisation_key = estate_qizilbash
		trigger = { not = { religion_group = zoroastrian_group } }
	}
	text = {
		localisation_key = estate_aswaran
		trigger = { religion_group = zoroastrian_group }
	}
}
defined_text = {
	name = GetQizilbashEstateDescription
	text = {
		localisation_key = estate_qizilbash_description
		trigger = { not = { religion_group = zoroastrian_group } }
	}
	text = {
		localisation_key = estate_aswaran_description
		trigger = { religion_group = zoroastrian_group }
	}
}
defined_text = {
	name = GetTurkomanOrHorseman
	text = {
		localisation_key = turkoman
		trigger = { not = { religion_group = zoroastrian_group } }
	}
	text = {
		localisation_key = horsemen
		trigger = { religion_group = zoroastrian_group }
	}
}

#Aswaran Loc
defined_text = {
	name = GetQizilbashSupremacyOverAristoPrivilegeName
	text = {
		localisation_key = estate_qizilbash_supremacy_over_the_aristocracy_qizilbash_name
		trigger = { not = { religion_group = zoroastrian_group } }
	}
	text = {
		localisation_key = estate_qizilbash_supremacy_over_the_aristocracy_aswaran_name
		trigger = { religion_group = zoroastrian_group }
	}
}
defined_text = {
	name = GetQizilbashSupremacyOverAristoPrivilegeDesc
	text = {
		localisation_key = estate_qizilbash_supremacy_over_the_aristocracy_desc_qizilbash
		trigger = { not = { religion_group = zoroastrian_group } }
	}
	text = {
		localisation_key = estate_qizilbash_supremacy_over_the_aristocracy_desc_aswaran
		trigger = { religion_group = zoroastrian_group }
	}
}

defined_text = {
	name = GetTitleForSUN_sunrise
	text = {
		localisation_key = SUN_sunrise_title
	}
}
defined_text = {
	name = GetDescForSUN_sunrise
	text = {
		localisation_key = SUN_sunrise_desc
	}
}
defined_text = {
	name = GetTitleForSUN_japan
	text = {
		localisation_key = SUN_japan_title
	}
}
defined_text = {
	name = GetDescForSUN_japan
	text = {
		localisation_key = SUN_japan_desc
	}
}
defined_text = {
	name = GetTitleForSUN_pacific
	text = {
		localisation_key = SUN_pacific_title
	}
}
defined_text = {
	name = GetDescForSUN_pacific
	text = {
		localisation_key = SUN_pacific_desc
	}
}
defined_text = {
	name = GetTitleForSUN_colonial_system
	text = {
		localisation_key = SUN_colonial_system_title
	}
}
defined_text = {
	name = GetDescForSUN_colonial_system
	text = {
		localisation_key = SUN_colonial_system_desc
	}
}
defined_text = {
	name = GetTitleForSUN_settling_europe
	text = {
		localisation_key = SUN_settling_europe_title
	}
}
defined_text = {
	name = GetDescForSUN_settling_europe
	text = {
		localisation_key = SUN_settling_europe_desc
	}
}
defined_text = {
	name = GetTitleForSUN_china
	text = {
		localisation_key = SUN_china_title
	}
}
defined_text = {
	name = GetDescForSUN_china
	text = {
		localisation_key = SUN_china_desc
	}
}
defined_text = {
	name = GetTitleForSUN_symposium
	text = {
		localisation_key = SUN_symposium_title
	}
}
defined_text = {
	name = GetDescForSUN_symposium
	text = {
		localisation_key = SUN_symposium_desc
	}
}
defined_text = {
	name = GetTitleForSUN_strangers
	text = {
		localisation_key = SUN_strangers_title
	}
}
defined_text = {
	name = GetDescForSUN_strangers
	text = {
		localisation_key = SUN_strangers_desc
	}
}
defined_text = {
	name = GetTitleForSUN_britain
	text = {
		localisation_key = SUN_britain_title
	}
}
defined_text = {
	name = GetDescForSUN_britain
	text = {
		localisation_key = SUN_britain_desc
	}
}
defined_text = {
	name = GetTitleForSUN_technology_adoption
	text = {
		localisation_key = SUN_technology_adoption_title
	}
}
defined_text = {
	name = GetDescForSUN_technology_adoption
	text = {
		localisation_key = SUN_technology_adoption_desc
	}
}
defined_text = {
	name = GetTitleForSUN_sunset_invasion
	text = {
		localisation_key = SUN_sunset_invasion_title
	}
}
defined_text = {
	name = GetDescForSUN_sunset_invasion
	text = {
		localisation_key = SUN_sunset_invasion_desc
	}
}
defined_text = {
	name = GetTitleForSUN_france
	text = {
		localisation_key = SUN_france_title
	}
}
defined_text = {
	name = GetDescForSUN_france
	text = {
		localisation_key = SUN_france_desc
	}
}
defined_text = {
	name = GetTitleForSUN_ships
	text = {
		localisation_key = SUN_ships_title
	}
}
defined_text = {
	name = GetDescForSUN_ships
	text = {
		localisation_key = SUN_ships_desc
	}
}
defined_text = {
	name = GetTitleForSUN_punish_colonialism
	text = {
		localisation_key = SUN_punish_colonialism_title
	}
}
defined_text = {
	name = GetDescForSUN_punish_colonialism
	text = {
		localisation_key = SUN_punish_colonialism_desc
	}
}
defined_text = {
	name = GetTitleForSUN_spain
	text = {
		localisation_key = SUN_spain_title
	}
}
defined_text = {
	name = GetDescForSUN_spain
	text = {
		localisation_key = SUN_spain_desc
	}
}
defined_text = {
	name = GetTitleForSUN_panama_canal
	text = {
		localisation_key = SUN_panama_canal_title
	}
}
defined_text = {
	name = GetDescForSUN_panama_canal
	text = {
		localisation_key = SUN_panama_canal_desc
	}
}
defined_text = {
	name = GetTitleForSUN_disease
	text = {
		localisation_key = SUN_disease_title
	}
}
defined_text = {
	name = GetDescForSUN_disease
	text = {
		localisation_key = SUN_disease_desc
	}
}

defined_text = {
	name = GetAmountofMummifiedRulers
	text = {
		localisation_key = "[Root.inca_amount_of_mummies.GetValue]"
		trigger = {
			check_variable = {
				which = inca_amount_of_mummies
				value = 1
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			NOT = {
				check_variable = {
					which = inca_amount_of_mummies
					value = 1
				}
			}
		}
	}
}

defined_text = {
	name = GetAmountofMayanCasualties
	text = {
		localisation_key = "[Root.land_units_killed_since_last_reform.GetValue]"
		trigger = {
			check_variable = {
				which = land_units_killed_since_last_reform
				value = 1
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetAmountofKills
	text = {
		localisation_key = "[Root.AZTDeathCounter.GetValue]"
		trigger = {
			check_variable = {
				which = AZTDeathCounter
				value = 1
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetAmountofBattles
	text = {
		localisation_key = "[Root.num_of_battles_won_var.GetValue]"
		trigger = {
			check_variable = {
				which = num_of_battles_won_var
				value = 1
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetMayaVenusTitle
	text = {
		localisation_key = "MAY_venus_title"
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetMayaVenusDesc
	text = {
		localisation_key = "MAY_venus_desc"
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetMayaRealmSizeTitle
	text = {
		localisation_key = "MAY_realm_size_title"
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetMayaRealmSizeDesc
	text = {
		localisation_key = "MAY_realm_size_desc"
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetMayaPassReformTitle
	text = {
		localisation_key = "MAY_pass_reform_title"
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetMayaPassReformDesc
	text = {
		localisation_key = "MAY_pass_reform_desc"
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetAztecPatronDeityName
	text = {
		localisation_key = azt_tezcatlipoca
		trigger = {
			has_country_flag = azt_tezcatlipoca_deity
		}
	}
	text = {
		localisation_key = azt_tlaloc
		trigger = {
			has_country_flag = azt_tlaloc_deity
		}
	}
	text = {
		localisation_key = azt_quetzacoatl
		trigger = {
			has_country_flag = azt_quetzacoatl_deity
		}
	}
	text = {
		localisation_key = azt_huitzilopochtli
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetPrivilegeForRecoveryModifiers
	text = {
		localisation_key = SUN_MoH_recovery_effects
		trigger = {
			has_dlc = "Mandate of Heaven"
		}
	}
	text = {
		localisation_key = SUN_non_MoH_recovery_effects
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetBreakTheHabsburgsTitle
	random = no
	
	text = {
		localisation_key = GER_break_the_habsburgs_HAB_title
		trigger = {
			OR = {
				was_tag = HAB
				dynasty = "Habsburg"
			}
		}
	}
	text = {
		localisation_key = GER_break_the_habsburgs_generic_title
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetBreakTheHabsburgsDesc
	random = no
	
	text = {
		localisation_key = GER_break_the_habsburgs_HAB_desc
		trigger = {
			OR = {
				was_tag = HAB
				dynasty = "0000000000"
				tag = HLR
			}
		}
	}
	text = {
		localisation_key = GER_break_the_habsburgs_generic_desc
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = per_qizilbash_loyalty_desc
	text = { localisation_key = per_qizilbash_loyalty_desc_qizilbash trigger = { not = { religion_group = zoroastrian_group } } }
	text = { localisation_key = per_qizilbash_loyalty_desc_aswaran trigger = { religion_group = zoroastrian_group } }
}

defined_text = {
	name = GetVeniceUpgradeTooltip
	text = {
		localisation_key = ITA_venice_upgrade_dharma
		trigger = {
			has_dlc = "Dharma"
		}
	}
	text = {
		localisation_key = ITA_venice_upgrade_no_dharma
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetTIMAppeaseTheElitesModifier
	text = {
		localisation_key = TIM_cradle_of_civ_mod 
		trigger = {
			has_dlc = "Cradle of Civilization"
		}
	}
	text = {
		localisation_key = TIM_non_cradle_of_civ_mod 
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = GetTIMPatronageOfArtsUpgrade
	text = {
		localisation_key = TIM_prosperity 
		trigger = {
			has_dlc = "Mandate of Heaven"
		}
	}
	text = {
		localisation_key = TIM_stab_cost 
		trigger = {
			always = yes
		}
	}
}

defined_text = {
	name = FourClassPrivilege
	text = {
		localisation_key = FourClassPrivilegeEoC
		trigger = {
			is_emperor_of_china = yes
		}
	}
	text = {
		localisation_key = FourClassPrivilegeNoEoC
		trigger = {
			is_emperor_of_china = no
		}
	}
}

defined_text = {
	name = NumOfRulerBattlesWon
	text = {
		localisation_key = "[Root.num_of_battles_won_ruler.GetValue]"
		trigger = {
			check_variable = {
				which = num_of_battles_won_ruler
				value = 1
			}
		}
	}
	text = {
		localisation_key = ZERO
		trigger = {
			always = yes
		}
	}
}

defined_text = {
    name = GetNumFestivals
	
	text = {
        localisation_key = "[Root.AztFestivalsHeldVar.GetValue]"
        trigger = {
            check_variable = {
                which = AztFestivalsHeldVar
                value = 1
            }
        }
    }

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = AztFestivalsHeldVar
                    value = 1
                }
            }
        }
    }
}

defined_text = {
    name = GetNumWars
	
	text = {
        localisation_key = "[Root.num_of_wars_won_var.GetValue]"
        trigger = {
            check_variable = {
                which = num_of_wars_won_var
                value = 1
            }
        }
    }

    text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = num_of_wars_won_var
                    value = 1
                }
            }
        }
    }
}

defined_text = {
	name = GetNumAssimilatedCultureGroups
	text = {
        localisation_key = "[Root.cultures_assimilated.GetValue]"
        trigger = {
            check_variable = {
                which = cultures_assimilated
                value = 1
            }
        }
	}
	text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = cultures_assimilated
                    value = 1
                }
            }
        }
	}
}

defined_text = {
	name = GetBlackArmyBattleVictories
	text = {
        localisation_key = "[Root.black_army_glorious_victories.GetValue]"
        trigger = {
            check_variable = {
                which = black_army_glorious_victories
                value = 1
            }
        }
	}
	text = {
        localisation_key = ZERO
        trigger = {
            NOT = {
                check_variable = {
                    which = black_army_glorious_victories
                    value = 1
                }
            }
        }
	}
}

defined_text = {
	name = HungarianRevolutionEnd
	text = {
		localisation_key = HungarianRevolutionCompromise
		trigger = {
			has_country_flag = hab_chose_compromise
		}
	}
	text = {
		localisation_key = HungarianRevolutionVictory
		trigger = {
			NOT = {
				exists = HUN
				has_country_flag = hab_chose_compromise
			}
		}
	}
	text = {
		localisation_key = HungarianRevolutionDefeat
		trigger = {
			exists = HUN
		}
	}
}

defined_text = {
	name = AustrianRevolutionEnd
	text = {
		localisation_key = AustrianRevolutionCompromise
		trigger = {
			has_country_flag = hun_chose_compromise
		}
	}
	text = {
		localisation_key = AustrianRevolutionVictory
		trigger = {
			NOT = {
				exists = HAB
				has_country_flag = hun_chose_compromise
			}
		}
	}
	text = {
		localisation_key = AustrianRevolutionDefeat
		trigger = {
			exists = HAB
		}
	}
}

defined_text = {
	name = GetMaxBloodBattles
	text = {
		localisation_key = GetMaxBloodBattles40
		trigger = {
			has_country_flag = azt_blood_cap_flag
		}
	}
	text = {
		localisation_key = GetMaxBloodBattles20
		trigger = {
			NOT = { has_country_flag = azt_blood_cap_flag }
		}
	}
}

defined_text = {
	name = GetArabicTradeDescMOH
	text = {
		localisation_key = arabic_trade_influence_power_desc_MOH
		trigger = {
			has_dlc = "Mandate of Heaven"
		}
	}
	text = {
		localisation_key = empty_text
		trigger = {
			NOT = { has_dlc = "Mandate of Heaven" }
		}
	}
}
defined_text = {
	name = GetArabicTradeDescWONDHA
	text = {
		localisation_key = arabic_trade_influence_power_desc_WON_DHA
		trigger = {
			OR = {
				has_dlc = "Wealth of Nations"
				has_dlc = "Dharma"
			}
		}
	}
	text = {
		localisation_key = empty_text
		trigger = {
			NOT = { has_dlc = "Wealth of Nations" }
			NOT = { has_dlc = "Dharma" }
		}
	}
}

defined_text = {
    name = GetMacehualtinMissionName
    text = {
        localisation_key = AZTMacehualtinMissionName
        trigger = {
            tag = AZT
        }
    }
    text = {
        localisation_key = MacehualtinMissionName
        trigger = {
            NOT = { tag = AZT }
        }
    }
} 

defined_text = {
    name = GetUnifyMissionName
    text = {
        localisation_key = AZTNonTheocracyName
        trigger = {
            NOT = { government = theocracy }
        }
    }
    text = {
        localisation_key = AZTTheocracyName
        trigger = {
            government = theocracy
        }
    }
} 