﻿
#GREETINGS MY LOVER
GreetingToLover = {
	type = character

	text = {
		trigger = {
			scope:second = {
				object_of_importance_exist_trigger = {
					LOVER = root
				}
			}
		}
		localization_key = greeting_lover_object
	}

	text = {
		localization_key = greeting_lover_fallback
	}
}

#GREETINGS MY LIEGE
GreetingToLiege = {
	type = character
	
	text = {
		trigger = {
			is_child_of = scope:second
		}
		localization_key = greeting_parent_neutral
	}
	
	text = {
		trigger = {
			is_parent_of = scope:second
		}
		localization_key = greeting_child_neutral
	}
	
	text = {
		trigger = {
			is_sibling_of = scope:second
		}
		localization_key = greeting_sibling_neutral
	}
	
	text = {
		trigger = {
			is_spouse_of = scope:second
		}
		localization_key = greeting_spouse_neutral
	}

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value >= 20
			}
		}
		localization_key = greeting_liege_positive
	}

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value <= -40
			}
		}
		localization_key = greeting_liege_negative
	}

	text = {
		trigger = {
			scope:second = { tgp_is_ceremonial_regent_trigger = yes }
		}
		localization_key = greeting_ceremonial_liege_fallback
	}

	text = {
		localization_key = greeting_liege_fallback
	}
}

GreetingToLiegePositive = {
	type = character
	
	text = {
		trigger = {
			is_child_of = scope:second
		}
		localization_key = greeting_parent_liked
	}
	
	text = {
		trigger = {
			is_parent_of = scope:second
		}
		localization_key = greeting_child_liked
	}
	
	text = {
		trigger = {
			is_sibling_of = scope:second
		}
		localization_key = greeting_sibling_liked
	}
	
	text = {
		trigger = {
			is_spouse_of = scope:second
		}
		localization_key = greeting_spouse_liked
	}
	
	text = {
		trigger = {
			scope:second = { tgp_is_ceremonial_regent_trigger = yes }
		}
		localization_key = greeting_ceremonial_regent_liked
	}

	text = {
		localization_key = greeting_liege_liked
	}
}

GreetingToLiegeNegative = {
	type = character

	text = {
		trigger = {
			scope:second = { tgp_is_ceremonial_regent_trigger = yes }
		}
		localization_key = greeting_ceremonial_regent_dislike
	}

	text = {
		localization_key = greeting_liege_dislike
	}
}

GreetingToLiegeNeutral = {
	type = character
	
	text = {
		trigger = {
			is_child_of = scope:second
		}
		localization_key = greeting_parent_neutral
	}
	
	text = {
		trigger = {
			is_parent_of = scope:second
		}
		localization_key = greeting_child_neutral
	}
	
	text = {
		trigger = {
			is_sibling_of = scope:second
		}
		localization_key = greeting_sibling_neutral
	}
	
	text = {
		trigger = {
			is_spouse_of = scope:second
		}
		localization_key = greeting_spouse_neutral
	}
	
	text = {
		trigger = {
			scope:second = { tgp_is_ceremonial_regent_trigger = yes }
		}
		localization_key = greeting_liege_neutral_regent
	}

	text = {
		localization_key = greeting_liege_neutral
	}
}


#GREETINGS MY VASSAL
GreetingToVassal = {
	type = character
	
	text = {
		trigger = {
			is_child_of = scope:second
		}
		localization_key = greeting_parent_neutral
	}
	
	text = {
		trigger = {
			is_parent_of = scope:second
		}
		localization_key = greeting_child_neutral
	}
	
	text = {
		trigger = {
			is_sibling_of = scope:second
		}
		localization_key = greeting_sibling_neutral
	}
	
	text = {
		trigger = {
			is_spouse_of = scope:second
		}
		localization_key = greeting_spouse_neutral
	}

	text = {
		trigger = {
			OR = {
				AND = {
					is_close_or_extended_family_of = scope:second
					opinion = {
						target = scope:second
						value >= 10
					}	
				}
				opinion = {
					target = scope:second
					value >= 30
				}	
			}

		}
		localization_key = greeting_vassal_positive
	}

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value <= -40
			}
		}
		localization_key = greeting_vassal_negative
	}

	text = {
		localization_key = greeting_vassal_fallback
	}
}

GreetingToVassalPositive = {
	type = character
	
	text = {
		trigger = {
			is_child_of = scope:second
		}
		localization_key = greeting_parent_liked
	}
	
	text = {
		trigger = {
			is_parent_of = scope:second
		}
		localization_key = greeting_child_liked
	}
	
	text = {
		trigger = {
			is_sibling_of = scope:second
		}
		localization_key = greeting_sibling_liked
	}
	
	text = {
		trigger = {
			is_spouse_of = scope:second
		}
		localization_key = greeting_spouse_liked
	}

	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
			scope:second = { tgp_is_ceremonial_liege_trigger = no }
		}
		localization_key = greeting_vassal_liked_regent
	}

	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
			scope:second = { tgp_is_ceremonial_liege_trigger = yes }
		}
		localization_key = greeting_vassal_liked_ceremonial_liege
	}

	text = {
		trigger = {
			is_close_or_extended_family_of = scope:second
		}
		localization_key = greeting_vassal_relative_liked
	}

	text = {
		localization_key = greeting_vassal_liked
	}
}

GreetingToVassalNegative = {
	type = character

	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
			scope:second = { tgp_is_ceremonial_liege_trigger = no }
		}
		localization_key = greeting_vassal_dislike_regent
	}

	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
			scope:second = { tgp_is_ceremonial_liege_trigger = yes }
		}
		localization_key = greeting_vassal_dislike_ceremonial_liege
	}

	text = {
		localization_key = greeting_vassal_dislike
	}
}

GreetingToVassalNeutral = {
	type = character
	
	text = {
		trigger = {
			is_child_of = scope:second
		}
		localization_key = greeting_parent_neutral
	}
	
	text = {
		trigger = {
			is_parent_of = scope:second
		}
		localization_key = greeting_child_neutral
	}
	
	text = {
		trigger = {
			is_sibling_of = scope:second
		}
		localization_key = greeting_sibling_neutral
	}
	
	text = {
		trigger = {
			is_spouse_of = scope:second
		}
		localization_key = greeting_spouse_neutral
	}

	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
			scope:second = { tgp_is_ceremonial_liege_trigger = no }
		}
		localization_key = greeting_vassal_neutral_regent
	}

	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
			scope:second = { tgp_is_ceremonial_liege_trigger = yes }
		}
		localization_key = greeting_vassal_neutral_ceremonial_liege
	}

	text = {
		localization_key = greeting_vassal_neutral
	}
}



#GREETINGS MY CLOSE_RELATIVE
GreetingToFamily = {
	type = character

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value >= 40
			}
		}
		localization_key = greeting_family_positive
	}

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value <= -20
			}
		}
		localization_key = greeting_family_negative
	}

	text = {
		localization_key = greeting_family_fallback
	}
}

GreetingToFamilyPositive = {
	type = character

	text = {
		localization_key = greeting_family_liked
	}
}

GreetingToFamilyNegative = {
	type = character

	text = {
		localization_key = greeting_family_fallback
	}
}


#GREETINGS FOREIGN RULER
GreetingToForeignRuler = {
	type = character

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value >= 40
			}
		}
		localization_key = greeting_foreign_ruler_positive
	}

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value <= -20
			}
		}
		localization_key = greeting_foreign_ruler_negative
	}

	text = {
		localization_key = greeting_foreign_ruler
	}
}

GreetingToForeignRulerPositive = {
	type = character
	random_valid = yes

	text = {
		localization_key = greeting_foreign_ruler_positive
	}

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_foreign_ruler_positive_assalam
	}

	text = { # CK2 Monks & Mystics
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_foreign_ruler_positive_gods_blessing
	}

	text = {
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_foreign_ruler_positive_hail
	}


	text = { # CK2 Monks & Mystics — String_Shalom_aleikhem
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_foreign_ruler_positive_shalom
	}

	text = { # CK2 — String_May_Yehovah_guide_you (HighGodName)
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		localization_key = greeting_foreign_ruler_positive_highgod_guide
	}

	text = { # CK2 — String_May_the_Gods_protect_you
		trigger = {
			rite = { rite_has_doctrine = doctrine_polytheist }
			NOT = {
				culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
		localization_key = greeting_foreign_ruler_positive_gods_protect
	}

	text = { # Zoroastrian light-blessing
		trigger = {
			faith = {
				religion_tag = zoroastrianism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_foreign_ruler_positive_zoroastrian_light
	}

	text = { # Dharmic greeting
		trigger = {
			faith = {
				religion_tag = hinduism_religion
			}
		}
		localization_key = greeting_foreign_ruler_positive_dharma
	}

	text = {
		trigger = {
			culture_has_asian_heritage_pillar_trigger = yes
		}
		localization_key = greeting_foreign_ruler_positive_heavens
	}
}

GreetingToForeignRulerNegative = {
	type = character

	text = {
		localization_key = greeting_foreign_ruler_negative
	}
}


#GENERIC GREETING
GreetingToGeneric = {
	type = character

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value >= 40
			}
		}
		localization_key = greeting_generic_positive
	}

	text = {
		trigger = {
			opinion = {
				target = scope:second
				value <= -40
			}
		}
		localization_key = greeting_generic_negative
	}

	text = {
		localization_key = greeting_generic
	}
}

GreetingToGenericPositive = {
	type = character
	random_valid = yes

	text = {
		localization_key = greeting_generic_positive
	}

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_generic_positive_assalam
	}

	text = { # CK2 Monks & Mystics — String_Gods_blessing_upon_thee
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_generic_positive_gods_blessing
	}

	text = {
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_generic_positive_hail
	}


	text = { # CK2 Monks & Mystics — String_Shalom_aleikhem
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_generic_positive_shalom
	}

	text = { # CK2 — String_May_Yehovah_guide_you (HighGodName)
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		localization_key = greeting_generic_positive_highgod_guide
	}

	text = { # CK2 — String_May_the_Gods_protect_you
		trigger = {
			rite = { rite_has_doctrine = doctrine_polytheist }
			NOT = {
				culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
		localization_key = greeting_generic_positive_gods_protect
	}

	text = { # Zoroastrian light-blessing
		trigger = {
			faith = {
				religion_tag = zoroastrianism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_generic_positive_zoroastrian_light
	}

	text = { # Dharmic greeting
		trigger = {
			faith = {
				religion_tag = hinduism_religion
			}
		}
		localization_key = greeting_generic_positive_dharma
	}

	text = {
		trigger = {
			culture_has_asian_heritage_pillar_trigger = yes
		}
		localization_key = greeting_generic_positive_heavens
	}
}

GreetingToGenericNegative = {
	type = character
	
	text = {
		localization_key = greeting_generic_negative
	}
}


#APPROPRIATE GREETING
# ROOT is the character doing the greeting, scope:second is the character being greeted.
AppropriateGreeting = {
	type = character

	text = {
		trigger = { has_relation_lover = scope:second }
		localization_key = greeting_appropriate_lover
	}

	text = {
		trigger = { is_vassal_of = scope:second }
		localization_key = greeting_appropriate_liege
	}

	text = {
		trigger = {
			scope:second = { is_vassal_of = root }
		}
		localization_key = greeting_appropriate_vassal
	}

	text = {
		trigger = {
			OR = {
				is_close_or_extended_family_of = scope:second
				has_relation_friend = scope:second
			}
		}
		localization_key = greeting_appropriate_family
	}

	text = {
		trigger = {
			scope:second = { top_liege = this }
			top_liege != scope:second.top_liege
		}
		localization_key = greeting_appropriate_foreign_ruler
	}

	text = {
		localization_key = greeting_appropriate_fallback
	}
}

AppropriateGreetingPositive = {
	type = character

	text = {
		trigger = { has_relation_lover = scope:second }
		localization_key = greeting_appropriate_lover
	}

	text = {
		trigger = { is_vassal_of = scope:second }
		localization_key = greeting_appropriate_positive_liege
	}

	text = {
		trigger = {
			scope:second = { is_vassal_of = root }
		}
		localization_key = greeting_appropriate_positive_vassal
	}

	text = {
		trigger = {
			is_close_or_extended_family_of = scope:second
		}
		localization_key = greeting_appropriate_positive_family
	}

	text = {
		trigger = {
			scope:second = { top_liege = this }
			top_liege != scope:second.top_liege
		}
		localization_key = greeting_appropriate_positive_foreign_ruler
	}

	text = {
		localization_key = greeting_appropriate_positive_fallback
	}
}

AppropriateGreetingNegative = {
	type = character


	text = {
		trigger = { is_vassal_of = scope:second }
		localization_key = greeting_appropriate_negative_liege
	}

	text = {
		trigger = {
			scope:second = { is_vassal_of = root }
		}
		localization_key = greeting_appropriate_negative_vassal
	}

	text = {
		trigger = {
			is_close_or_extended_family_of = scope:second
		}
		localization_key = greeting_appropriate_negative_family
	}

	text = {
		trigger = {
			scope:second = { top_liege = this }
			top_liege != scope:second.top_liege
		}
		localization_key = greeting_appropriate_negative_foreign_ruler
	}

	text = {
		localization_key = greeting_appropriate_negative_fallback
	}
}


# Can be called after an appropriate greeting to add character and flavor to the address.
AppropriateSupplimentaryGreeting = {
	type = character

	text = {
		trigger = {
			NOT = {
				target_is_liege_or_above = scope:second
			}
			opinion = {
				target = scope:second
				value <= -10
			}
		}
		localization_key = greeting_supplimentary.negative
	}

	text = {
		trigger = {
			OR = {
				target_is_liege_or_above = scope:second
				opinion = {
					target = scope:second
					value > -10
				}
			}
		}
		localization_key = greeting_supplimentary.positive
	}
}

NegativeSupplimentaryGreeting = {
	type = character
	random_valid = yes

	
	text = { # Your misdeeds are told from Ireland to Cathay
		trigger = {
			# Must be in Western or Northern Europe
			location = {
				OR = {
					geographical_region = world_europe_west
					geographical_region = world_europe_north
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key =  greeting_supplimentary.negative.tales
	}

	text = { # Your low character is the subject of Greek plays.
		trigger = {
			# Must be in Western or Northern Europe
			location = {
				OR = {
					geographical_region = world_europe_east
					geographical_region = world_europe_south
					geographical_region = world_asia_minor
					geographical_region = world_middle_east_jerusalem
					geographical_region = world_africa_north
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key =  greeting_supplimentary.negative.greek
	}	

	text = { # May your humors rot in your living body.
		weight_multiplier = { base = 1.5 }
		localization_key =  greeting_supplimentary.negative.insult.1
	}	

	text = { # May your years be short and miserable.
		localization_key =  greeting_supplimentary.negative.insult.2
	}	

	text = { # May wisdom ever elude you.
		trigger = {
			scope:second = {
				learning < high_skill_rating
			}
		}
		localization_key = greeting_supplimentary.negative.insult.3
	}	

	text = { # Damn your seventh grandfather.
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key =  greeting_supplimentary.negative.insult_muslim.1
	}	

	text = { # May you be sewn up alive in the belly of a dead camel.
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 4 }
		localization_key =  greeting_supplimentary.negative.insult_muslim.2
	}	

	text = { # May Allah destroy your house.
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key =  greeting_supplimentary.negative.insult_muslim.3
	}	

	text = { # You child of a mangy dog.
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key =  greeting_supplimentary.negative.insult_muslim.4
	}

	text = { # May the saints forsake your cause.
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
			rite = {
				OR = {
					rite_has_tenet = tenet_dulia
					rite_has_tenet = tenet_hyperdulia
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.negative.insult_christian.1
	}

	text = { # Your name shall be struck from every prayer.
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_supplimentary.negative.insult_christian.2
	}

	text = { # May your ancestors spit upon your shade.
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_supplimentary.negative.insult_norse.1
	}

	text = { # Your courage is thinner than winter ice.
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_supplimentary.negative.insult_norse.2
	}

	text = { # Even the rats of Constantinople flee your stench.
		trigger = {
			culture = { has_cultural_pillar = heritage_byzantine }
			location = {
				OR = {
					geographical_region = world_europe_south_east
					geographical_region = world_asia_minor
				}
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.negative.insult_byzantine.1
	}

	text = { # May your fields lie fallow and your wells run dry. Curses the addressee's land, not the writer's.
		trigger = {
			scope:second = {
				NOR = {
					government_has_flag = government_is_nomadic
					government_has_flag = government_is_herder
				}
			}
		}
		localization_key = greeting_supplimentary.negative.insult.4
	}

	text = { # CK2 crusade letter — "unreliable swine" (accuse the addressee)
		trigger = {
			scope:second = {
				OR = {
					has_trait = deceitful
					ai_honor <= medium_negative_ai_value
					has_trait = craven
				}
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.negative.insult.unreliable_swine
	}

	text = { # Only accuse the addressee once a bond sworn to the writer is actually broken
		trigger = {
			scope:second = {
				OR = {
					AND = {
						is_vassal_of = root
						OR = {
							has_trait = disloyal
							is_at_war_with = root
							is_at_war_with_liege = yes
						}
					}
					AND = {
						is_consort_of = root
						OR = {
							has_trait = adulterer
							has_trait = fornicator
						}
					}
				}
			}
		}
		localization_key = greeting_supplimentary.negative.insult.oathbreaker
	}

	text = { # Desert-curse cousin of the camel line
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.negative.insult_muslim.5
	}

	text = { # Desert-curse cousin of the camel line
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.negative.insult_muslim.6
	}


	text = { # Jewish — Law and shame
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.negative.insult_jewish.1
	}

	text = { # Zoroastrian — Ahriman's shadow without naming obscure demons if possible; use darkness
		trigger = {
			faith = {
				religion_tag = zoroastrianism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.negative.insult_zoroastrian.1
	}

	text = { # Hindu — dharma broken
		trigger = {
			faith = {
				religion_tag = hinduism_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.negative.insult_hindu.1
	}

	text = { # CK2-flavored Christian hellfire
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
			OR = {
				has_trait = zealous
				ai_zeal >= medium_positive_zeal
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.negative.insult_christian.3
	}

	text = { # CK2 Norse invasion echo
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.negative.insult_norse.3
	}
}

PositiveSupplimentaryGreeting = {
	type = character

	random_valid = yes

	text = { # Blessings upon you and your House.
		localization_key =  greeting_supplimentary.positive.flattery.1
	}	

	text = { # Your wisdom and mercy are legendary.
		trigger = {
			scope:second = {
				NOR = {
					has_trait = sadistic
					has_trait = callous
				}
			}
		}
		localization_key =  greeting_supplimentary.positive.flattery.2
	}	

	text = { # Peace be with you.
		trigger = {
			scope:second = {
				NOR = {
					has_trait = vengeful
					has_trait = wrathful
					rite = {
						rite_has_tenet = tenet_warmonger
						rite_has_tenet = tenet_human_sacrifice
					}
				}
			}
		}
		localization_key =  greeting_supplimentary.positive.flattery.3
	}	

	text = { # May you live in harmony and contentment.
		trigger = {
			scope:second = {
				NOR = {
					has_trait = ambitious
					has_trait = arrogant
					has_trait = sadistic
				}
			}
		}
		localization_key =  greeting_supplimentary.positive.flattery.4
	}

	text = { # Your ruthlessness is enviable.
		trigger = {
			scope:second = {
				OR = {
					has_trait = sadistic
					has_trait = callous
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key =  greeting_supplimentary.positive.flattery.5
	}

	text = { # Your great appetites are renowned throughout the world.
		trigger = {
			scope:second = {
				OR = {
					has_trait = gluttonous
					has_trait = comfort_eater
					has_trait = greedy
					has_trait = avaricious
					has_trait = ambitious
					has_trait = lifestyle_reveler
					has_trait = drunkard
				}
			}
		}
		localization_key =  greeting_supplimentary.positive.flattery.6
	}

	text = { # Your renown precedes you across every border.
		trigger = {
			scope:second = {
				prestige_level >= 2
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery.7
	}

	text = { # May your line endure a thousand years.
		trigger = {
			scope:second = {
				exists = dynasty
				is_lowborn = no
				NOR = {
					has_trait = bastard
					has_trait = legitimized_bastard
					has_trait = wild_oat
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery.8
	}

	text = { # God keep your sword arm strong. — Christian speaker voice
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
			scope:second = {
				OR = {
					martial >= medium_skill_rating
					prowess >= medium_skill_rating
				}
				NOR = {
					has_trait = maimed
					has_trait = one_legged
					has_trait = disfigured
				}
			}
		}
		localization_key = greeting_supplimentary.positive.flattery.9
	}

	text = { # Peace and plenty upon your house. — Muslim speaker voice
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.positive.flattery.10
	}

	text = { # May fortune smile upon your banners.
		weight_multiplier = { base = 1.5 }
		localization_key = greeting_supplimentary.positive.flattery.11
	}

	text = { # CK2 Chinese letter blessing
		trigger = {
			scope:second = {
				culture_has_asian_heritage_pillar_trigger = yes
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.positive.flattery_chinese.1
	}

	text = { # CK2 Chinese letter blessing
		trigger = {
			scope:second = {
				culture_has_asian_heritage_pillar_trigger = yes
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery_chinese.2
	}

	text = { # CK2 Chinese letter blessing
		trigger = {
			scope:second = {
				culture_has_asian_heritage_pillar_trigger = yes
				OR = {
					martial >= medium_skill_rating
					prowess >= medium_skill_rating
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery_chinese.3
	}
	text = { # Norse blessing — speaker voice (gods)
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.positive.flattery_norse.1
	}

	text = { # Byzantine prosperity. "The City" is an insider word, so the writer must be Byzantine too.
		trigger = {
			culture = { has_cultural_pillar = heritage_byzantine }
			scope:second = {
				culture = { has_cultural_pillar = heritage_byzantine }
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery_byzantine.1
	}

	text = { # Jewish blessing — speaker voice
		trigger = {
			faith = { religion_tag = judaism_religion }
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_supplimentary.positive.flattery_jewish.1
	}

	text = { # Learning / counsel flattery
		trigger = {
			scope:second = {
				OR = {
					learning >= high_skill_rating
					has_trait = intellect_good
					has_trait = lifestyle_scholar
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery.12
	}

	text = { # Christian Heaven blessing — speaker voice
		trigger = {
			faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion } }
			scope:second = {
				OR = {
					has_trait = zealous
					piety_level >= 3
				}
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_supplimentary.positive.flattery.13
	}

}

FormOfAddressForLiege = {
	type = character
	random_valid = yes
	text = {
		trigger = {
			OR = {
				highest_held_title_tier <= tier_duchy
				AND = {
					highest_held_title_tier = tier_kingdom
					prestige_level < high_prestige_level
				}
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
			NOR = {
				is_clergy = yes
				government_has_flag = government_is_theocracy
				is_theocratic_lessee = yes
			}
		}
		localization_key = form_of_address_my_ladylord
	}
	text = {
		trigger = {
			OR = {
				exists = clerical_elector_title
				highest_held_title_tier = tier_kingdom
			}
			OR = {
				government_has_flag = government_is_theocracy
				has_government = ecclesiastical_government
			}
		}
		localization_key = form_of_address_your_eminence
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			OR = {
				government_has_flag = government_is_theocracy
				has_government = ecclesiastical_government
			}		
		}
		localization_key = form_of_address_blessed_mother_father
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			OR = {
				government_has_flag = government_is_theocracy
				has_government = ecclesiastical_government
			}
		}
		localization_key = form_of_address_holy_mother_father
	}
	text = {
		trigger = {
			any_held_title = {
				has_clerical_region = yes
			}
			NOT = { exists = clerical_elector_title }

			OR = {
				government_has_flag = government_is_theocracy
				has_government = ecclesiastical_government
			}
		}
		localization_key = form_of_address_your_excellency
	}
	text = {
		trigger = {
			is_governor = yes
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_your_excellency
	}
	text = {
		trigger = {
			is_governor = yes
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_excellency
	}
	text = {
		trigger = {
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_landless_adventurer
			}
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_liege_title
	}
	text = {
		trigger = {
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			highest_held_title_tier >= tier_empire
			prestige_level >= high_prestige_level
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_great_liege_title
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_kingdom
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_my_liege_title
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_kingdom
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			prestige_level >= high_prestige_level
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_your_highness
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_kingdom
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_highness
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			is_independent_ruler = yes
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_your_majesty
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_hegemony
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			is_independent_ruler = yes
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_my_sovereign_ladylord
	}
	text = {
		trigger = {
			any_held_title = {
				is_head_of_faith = yes
			}
			OR = { faith.religion = religion:protestant_religion faith.religion = religion:catholic_religion faith.religion = religion:eastern_orthodox_religion faith.religion = religion:oriental_orthodox_religion }
		}
		localization_key = form_of_address_your_holiness
	}
	text = {
		trigger = {
			tgp_is_ceremonial_regent_trigger = yes
		}
		localization_key = form_of_address_liege_title
	}
	text = {
		trigger = {
			top_participant_group:dynastic_cycle ?= {
				participant_group_type = hegemon_ruler
			}
		}
		localization_key = form_of_address_son_of_heaven
	}
	text = {
		trigger = {
			government_has_flag = government_is_mandala
		}
		localization_key = form_of_address_your_radiance
	}
	text = {
		trigger = {
			OR = {
				is_clergy = yes
				government_has_flag = government_is_theocracy
				is_theocratic_lessee = yes
			}
			is_female = yes
		}
		localization_key = pam_my_liege_reverend_mother
	}
	text = {
		trigger = {
			OR = {
				is_clergy = yes
				government_has_flag = government_is_theocracy
				is_theocratic_lessee = yes
			}
		}
		localization_key = pam_my_liege_reverend_father
	}
	text = {
		trigger = { government_has_flag = government_is_landless_adventurer }
		localization_key = pam_my_liege_captain
	}
	text = {
		trigger = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_herder
			}
			is_female = yes
		}
		localization_key = pam_my_liege_khatun
	}
	text = {
		trigger = {
			OR = {
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_herder
			}
		}
		localization_key = pam_my_liege_khan
	}
	text = {
		trigger = { government_has_flag = government_is_tribal }
		localization_key = pam_my_liege_chieftain
	}
	text = {
		trigger = {
			government_has_flag = government_is_republic
			is_female = yes
		}
		localization_key = pam_my_liege_serene_lady
	}
	text = {
		trigger = { government_has_flag = government_is_republic }
		localization_key = pam_my_liege_serene_lord
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_duchy
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_theocracy
				government_has_flag = government_is_republic
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
			culture = {
				OR = {
					has_cultural_pillar = heritage_west_germanic
					has_cultural_pillar = heritage_central_germanic
					has_cultural_pillar = heritage_frankish
					has_cultural_pillar = heritage_brythonic
					has_cultural_pillar = heritage_goidelic
				}
			}
		}
		localization_key = form_of_address_your_grace
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_duchy
			is_male = yes
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
				government_has_flag = government_is_theocracy
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
			culture = {
				OR = {
					has_cultural_pillar = heritage_west_germanic
					has_cultural_pillar = heritage_central_germanic
					has_cultural_pillar = heritage_frankish
					has_cultural_pillar = heritage_latin
					has_cultural_pillar = heritage_iberian
				}
			}
		}
		localization_key = form_of_address_sire
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			is_independent_ruler = yes
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
			is_female = no
			culture = { has_cultural_pillar = heritage_byzantine }
		}
		localization_key = form_of_address_your_basileus
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_empire
			is_independent_ruler = yes
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
			is_female = yes
			culture = { has_cultural_pillar = heritage_byzantine }
		}
		localization_key = form_of_address_your_basilissa
	}
	text = {
		trigger = {
			highest_held_title_tier >= tier_kingdom
			is_independent_ruler = yes
			is_male = yes
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			tgp_is_ceremonial_regent_trigger = no
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
			culture = { has_cultural_pillar = heritage_frankish }
		}
		localization_key = form_of_address_most_christian
	}
	text = {
		trigger = {
			highest_held_title_tier = tier_kingdom
			is_independent_ruler = yes
			NOR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			is_governor = no
			tgp_is_ceremonial_regent_trigger = no
		}
		localization_key = form_of_address_my_sovereign
	}
}

# Faith-flavored letter openings (ROOT = writer).
GreetingGenericNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_generic_assalam
	}

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		localization_key = greeting_generic_peace_be
	}

	text = { # CK2 Monks & Mystics — String_Gods_blessing_upon_thee
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_generic_gods_blessing
	}

	text = {
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_generic_god_keep
	}

	text = {
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_generic_hail
	}


	text = { # CK2 Monks & Mystics — String_Shalom_aleikhem
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_generic_shalom
	}

	text = { # CK2 — String_May_Yehovah_guide_you (HighGodName)
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		localization_key = greeting_generic_highgod_guide
	}

	text = { # CK2 — String_May_the_Gods_protect_you
		trigger = {
			rite = { rite_has_doctrine = doctrine_polytheist }
			NOT = {
				culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
		localization_key = greeting_generic_gods_protect
	}

	text = { # Zoroastrian light-blessing
		trigger = {
			faith = {
				religion_tag = zoroastrianism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_generic_zoroastrian_light
	}

	text = { # Dharmic greeting
		trigger = {
			faith = {
				religion_tag = hinduism_religion
			}
		}
		localization_key = greeting_generic_dharma
	}

	text = {
		trigger = {
			culture_has_asian_heritage_pillar_trigger = yes
		}
		localization_key = greeting_generic_heavens
	}

	text = {
		fallback = yes
		localization_key = greeting_generic_plain
	}
}

GreetingForeignNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_foreign_assalam
	}

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		localization_key = greeting_foreign_peace_be
	}

	text = {
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_foreign_gods_blessing
	}

	text = {
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_foreign_god_keep
	}

	text = {
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_foreign_hail
	}


	text = { # CK2 Monks & Mystics — String_Shalom_aleikhem
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_foreign_shalom
	}

	text = { # CK2 — String_May_Yehovah_guide_you (HighGodName)
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		localization_key = greeting_foreign_highgod_guide
	}

	text = { # CK2 — String_May_the_Gods_protect_you
		trigger = {
			rite = { rite_has_doctrine = doctrine_polytheist }
			NOT = {
				culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
		localization_key = greeting_foreign_gods_protect
	}

	text = { # Zoroastrian light-blessing
		trigger = {
			faith = {
				religion_tag = zoroastrianism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_foreign_zoroastrian_light
	}

	text = { # Dharmic greeting
		trigger = {
			faith = {
				religion_tag = hinduism_religion
			}
		}
		localization_key = greeting_foreign_dharma
	}

	text = {
		trigger = {
			culture_has_asian_heritage_pillar_trigger = yes
		}
		localization_key = greeting_foreign_heavens
	}

	text = {
		fallback = yes
		localization_key = greeting_foreign_plain
	}
}

GreetingLiegeNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_liege_neutral_assalam
	}

	text = {
		trigger = {
			faith = {
				OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion religion_tag = oriental_orthodox_religion }
			}
		}
		localization_key = greeting_liege_neutral_god_keep
	}

	text = {
		trigger = {
			culture = { has_cultural_pillar = heritage_north_germanic }
			rite = { rite_has_doctrine = doctrine_polytheist }
		}
		localization_key = greeting_liege_neutral_hail
	}


	text = { # CK2 — String_Shalom_aleikhem
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_liege_neutral_shalom
	}

	text = { # CK2 — HighGod guide
		trigger = {
			faith = {
				religion_tag = judaism_religion
			}
		}
		localization_key = greeting_liege_neutral_highgod_guide
	}

	text = { # CK2 — String_May_the_Gods_protect_you
		trigger = {
			rite = { rite_has_doctrine = doctrine_polytheist }
			NOT = {
				culture = { has_cultural_pillar = heritage_north_germanic }
			}
		}
		localization_key = greeting_liege_neutral_gods_protect
	}

	text = { # Zoroastrian light-blessing
		trigger = {
			faith = {
				religion_tag = zoroastrianism_religion
			}
		}
		weight_multiplier = { base = 2.5 }
		localization_key = greeting_liege_neutral_zoroastrian_light
	}

	text = { # Dharmic greeting
		trigger = {
			faith = {
				religion_tag = hinduism_religion
			}
		}
		localization_key = greeting_liege_neutral_dharma
	}

	text = {
		trigger = {
			culture_has_asian_heritage_pillar_trigger = yes
		}
		localization_key = greeting_liege_neutral_heavens
	}

	text = {
		fallback = yes
		localization_key = greeting_liege_neutral_plain
	}
}

# As-salaam alaykum variants for remaining greeting terminals (islam writers).
GreetingLoverFallbackFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_lover_fallback_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_lover_fallback_plain
	}
}

GreetingLiegeLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_liege_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_liege_liked_plain
	}
}

GreetingLiegeLikedRegentFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_liege_liked_regent_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_liege_liked_regent_plain
	}
}

GreetingLiegeNeutralRegentFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_liege_neutral_regent_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_liege_neutral_regent_plain
	}
}

GreetingParentLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_parent_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_parent_liked_plain
	}
}

GreetingParentNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_parent_neutral_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_parent_neutral_plain
	}
}

GreetingChildLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_child_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_child_liked_plain
	}
}

GreetingChildNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_child_neutral_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_child_neutral_plain
	}
}

GreetingSiblingLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_sibling_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_sibling_liked_plain
	}
}

GreetingSiblingNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_sibling_neutral_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_sibling_neutral_plain
	}
}

GreetingSpouseLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_spouse_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_spouse_liked_plain
	}
}

GreetingSpouseNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_spouse_neutral_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_spouse_neutral_plain
	}
}

GreetingCeremonialRegentLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_ceremonial_regent_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_ceremonial_regent_liked_plain
	}
}

GreetingCeremonialLiegeFallbackFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_ceremonial_liege_fallback_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_ceremonial_liege_fallback_plain
	}
}

GreetingVassalLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_vassal_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_vassal_liked_plain
	}
}

GreetingVassalLikedRegentFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_vassal_liked_regent_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_vassal_liked_regent_plain
	}
}

GreetingVassalLikedCeremonialLiegeFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_vassal_liked_ceremonial_liege_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_vassal_liked_ceremonial_liege_plain
	}
}

GreetingVassalNeutralFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_vassal_neutral_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_vassal_neutral_plain
	}
}

GreetingVassalNeutralRegentFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_vassal_neutral_regent_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_vassal_neutral_regent_plain
	}
}

GreetingVassalNeutralCeremonialLiegeFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_vassal_neutral_ceremonial_liege_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_vassal_neutral_ceremonial_liege_plain
	}
}

GreetingFamilyLikedFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_family_liked_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_family_liked_plain
	}
}

GreetingFamilyFallbackFlavor = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			faith = {
				religion_tag = islam_religion
			}
		}
		weight_multiplier = { base = 2 }
		localization_key = greeting_family_fallback_assalam
	}

	text = {
		fallback = yes
		localization_key = greeting_family_fallback_plain
	}
}
