greetings = {

	### HOSTILE GREETINGS
	
	# Hostile Generic 1
	01_HOSTILE_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Generic 2
	02_HOSTILE_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Generic 3
	03_HOSTILE_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Generic Same Species
	04_HOSTILE_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Pacifist
	05_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Pacifist to Militarist
	06_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Militarist
	07_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Militarist to Pacifist
	08_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Spiritualist
	09_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Spiritualist to Materialist
	10_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Materialist
	11_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Materialist to Spiritualist
	12_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Individualist
	13_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Individualist to Collectivist
	14_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Collectivist
	15_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Collectivist to Individualist
	16_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophobe 1
	17_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species_class = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophobe 2
	18_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species_class = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophobe 3
	19_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species_class = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophobe Same Species
	20_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophile 1
	21_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophile 2
	22_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophile 3
	23_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophile Same Species
	24_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophobe - Same Species Class, but not same subspecies
	25_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			is_same_species_class = FROM
			NOT = { is_subspecies = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	# Hostile Xenophobe - Same Subspecies
	26_HOSTILE_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			is_subspecies = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_domineering_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	
	### NEUTRAL GREETINGS
	
	# Neutral Generic 1
	01_NEUTRAL_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Generic 2
	02_NEUTRAL_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Generic 3
	03_NEUTRAL_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Generic Same Species
	04_NEUTRAL_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Pacifist
	05_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Pacifist to Militarist
	06_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Militarist
	07_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Militarist to Pacifist
	08_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Spiritualist
	09_NEUTRAL_GREETING = {
		trigger = {	
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Spiritualist to Materialist
	10_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Materialist
	11_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Materialist to Spiritualist
	12_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Individualist
	13_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Individualist to Collectivist
	14_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Collectivist
	15_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Collectivist to Individualist
	16_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophobe 1
	17_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophobe 2
	18_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophobe 3
	19_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophobe Same Species
	20_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophile 1
	21_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophile 2
	22_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophile 3
	23_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	# Neutral Xenophile Same Species
	24_NEUTRAL_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_wary_to = FROM
				is_threatened_to = FROM
			}
		}
	}
	
	### FRIENDLY GREETINGS
	
	# Friendly Generic 1
	01_FRIENDLY_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Generic 2
	02_FRIENDLY_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Generic 3
	03_FRIENDLY_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Generic Same Species
	04_FRIENDLY_GREETING = {
		trigger = {
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Pacifist
	05_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Pacifist to Militarist
	06_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Militarist
	07_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Militarist to Pacifist
	08_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Spiritualist
	09_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Spiritualist to Materialist
	10_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Materialist
	11_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Materialist to Spiritualist
	12_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Individualist
	13_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Individualist to Collectivist
	14_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Collectivist
	15_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Collectivist to Individualist
	16_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}	
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophobe 1
	17_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophobe 2
	18_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophobe 3
	19_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophobe Same Species
	20_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophile 1
	21_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
				OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophile 2
	22_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophile 3
	23_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	# Friendly Xenophile Same Species
	24_FRIENDLY_GREETING = {
		trigger = {
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			is_same_species = FROM
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	
	### WAR GREETINGS
	
	# War Generic 1
	01_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Generic 2
	02_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Generic 3
	03_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Generic Same Species
	04_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			NOT = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			is_same_species = FROM
			is_at_war_with = FROM
		}
	}
	# War Pacifist
	05_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_pacifist
				has_ethic = ethic_fanatic_pacifist
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Militarist
	06_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_militarist
				has_ethic = ethic_fanatic_militarist
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Spiritualist
	07_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Materialist
	08_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_materialist
				has_ethic = ethic_fanatic_materialist
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Individualist
	09_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_individualist
				has_ethic = ethic_fanatic_individualist
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Collectivist
	10_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_collectivist
				has_ethic = ethic_fanatic_collectivist
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Xenophobe
	11_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Xenophobe Same Species
	12_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			is_same_species = FROM
			is_at_war_with = FROM
		}
	}
	# War Xenophile
	13_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# War Xenophile Same Species
	14_WAR_GREETING = {
		trigger = {
			NOT = { is_country_type = fallen_empire }
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			is_same_species = FROM
			is_at_war_with = FROM
		}
	}
	
	### FALLEN EMPIRE GREETINGS
	
	# Fallen Empire (Dismissive Attitude)
	01_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	02_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	03_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	04_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	05_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	06_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	07_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	08_FALLEN_EMPIRE_DISMISSIVE_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}
	
	# Fallen Empire (Patronizing Attitude)
	01_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	02_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	03_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	04_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	05_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	06_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	07_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	08_FALLEN_EMPIRE_PATRONIZING_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}
	
	# Fallen Empire (Angry Attitude)
	01_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	02_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	03_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	04_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	05_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	06_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	07_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}
	08_FALLEN_EMPIRE_ANGRY_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}

	# Fallen Empire (Dismissive Attitude)
	01_FALLEN_EMPIRE_DISMISSIVE_WAR_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			is_at_war_with = FROM
			is_dismissive_to = FROM
		}
	}
	02_FALLEN_EMPIRE_DISMISSIVE_WAR_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			is_at_war_with = FROM
			is_dismissive_to = FROM
		}
	}

	# Fallen Empire (Patronizing Attitude)
	01_FALLEN_EMPIRE_PATRONIZING_WAR_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			is_at_war_with = FROM
			is_patronizing_to = FROM
		}
	}
	02_FALLEN_EMPIRE_PATRONIZING_WAR_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			is_at_war_with = FROM
			is_patronizing_to = FROM
		}
	}

	# Fallen Empire (Angry Attitude)
	01_FALLEN_EMPIRE_ANGRY_WAR_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			is_at_war_with = FROM
			is_angry_to = FROM
		}
	}
	02_FALLEN_EMPIRE_ANGRY_WAR_GREETING = {
		trigger = {
			is_country_type = fallen_empire
			is_at_war_with = FROM
			is_angry_to = FROM
		}
	}

	### AI Personality Greetings

	# Honorbound Warriors
	HW_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HW_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HW_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HW_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	HW_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HW_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HW_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HW_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HW_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	HW_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HW_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_at_war = no
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HW_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_at_war = yes
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HW_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HW_FRIENDLY_GREETING_05 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HW_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			is_at_war_with = FROM
		}
	}
	HW_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			is_at_war_with = FROM
		}
	}
	HW_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = honorbound_warriors
			is_at_war_with = FROM
		}
	}
	# Ruthless Capitalists
	RC_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	RC_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	RC_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	RC_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	RC_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	RC_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	RC_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			FROM = {
				exists = overlord
				overlord = { is_same_value = ROOT }
			}
			NOT = { is_at_war_with = FROM }
		}
	}
	RC_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	RC_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	RC_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	RC_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	RC_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	RC_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			is_at_war_with = FROM
		}
	}
	RC_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			is_at_war_with = FROM
		}
	}
	RC_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			is_at_war_with = FROM
		}
	}
	RC_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = ruthless_capitalists
			is_at_war_with = FROM
		}
	}
	# Peaceful Traders
	PT_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	PT_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	PT_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			FROM = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	PT_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	PT_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	PT_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	PT_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = peaceful_traders
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	PT_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	PT_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	PT_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = peaceful_traders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	PT_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = peaceful_traders
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	PT_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = peaceful_traders
			is_at_war_with = FROM
		}
	}
	PT_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = peaceful_traders
			is_at_war_with = FROM
		}
	}
	PT_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = peaceful_traders
			is_at_war_with = FROM
		}
	}
	# Hegemonic Imperialists
	HI_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HI_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HI_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	HI_DOMINEERING_GREETING_02 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	HI_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HI_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HI_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	HI_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HI_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HI_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HI_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HI_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	HI_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			is_at_war_with = FROM
		}
	}
	HI_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = hegemonic_imperialists
			is_at_war_with = FROM
		}
	}
	# Federation Builders
	FB_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = federation_builders
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FB_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = federation_builders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FB_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = federation_builders
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FB_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = federation_builders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	FB_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = federation_builders
			has_alliance = no
			has_federation = no
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	FB_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				has_alliance = yes
				has_federation = yes
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	FB_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				has_alliance = yes
				has_federation = yes
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	FB_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = federation_builders
			NOT = { is_in_alliance_with = FROM }
			NOT = { is_in_federation_with = FROM }
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	FB_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = federation_builders
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	FB_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = federation_builders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	FB_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				has_alliance = yes
				has_federation = yes
			}
			NOT = { is_in_alliance_with = FROM }
			NOT = { is_in_federation_with = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	FB_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	FB_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	FB_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = federation_builders
			is_at_war_with = FROM
		}
	}
	FB_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				has_alliance = yes
				has_federation = yes
			}
			is_at_war_with = FROM
		}
	}
	FB_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = federation_builders
			OR = {
				has_alliance = yes
				has_federation = yes
			}
			is_at_war_with = FROM
		}
	}
	# Xenophobic Isolationists
	XI_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	XI_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	XI_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			FROM = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	XI_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	XI_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	XI_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	XI_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			FROM = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	XI_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	XI_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	XI_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	XI_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			FROM = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	XI_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			FROM = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	XI_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	XI_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	XI_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	XI_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = xenophobic_isolationists
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Hive Mind
	HM_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HM_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HM_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = hive_mind
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HM_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = hive_mind
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	HM_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HM_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HM_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = hive_mind
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HM_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = hive_mind
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HM_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	HM_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HM_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = hive_mind
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HM_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = hive_mind
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HM_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = hive_mind
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HM_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = hive_mind
			is_at_war_with = FROM
		}
	}
	HM_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = hive_mind
			is_at_war_with = FROM
		}
	}
	HM_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = hive_mind
			is_at_war_with = FROM
		}
	}
	HM_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = hive_mind
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Migratory Flock
	MF_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	MF_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_at_war_with = FROM }
			NOT = { is_same_species = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	MF_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = migrating_flock
			FROM = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	MF_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	MF_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	MF_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = migrating_flock
			FROM = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	MF_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = migrating_flock
			FROM = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	MF_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	MF_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	MF_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	MF_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = migrating_flock
			FROM = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	MF_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = migrating_flock
			is_at_war_with = FROM
		}
	}
	MF_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = migrating_flock
			is_at_war_with = FROM
		}
	}
	MF_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = migrating_flock
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	MF_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = migrating_flock
			FROM = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
			}
			is_at_war_with = FROM
		}
	}
	# Evangelizing Zealots
	EZ_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EZ_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EZ_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EZ_HOSTILE_GREETING_04 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EZ_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	EZ_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EZ_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EZ_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EZ_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EZ_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	EZ_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EZ_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EZ_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EZ_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EZ_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			is_at_war_with = FROM
		}
	}
	EZ_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			is_at_war_with = FROM
		}
	}
	EZ_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			is_at_war_with = FROM
		}
	}
	EZ_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = evangelising_zealots
			is_at_war_with = FROM
		}
	}
	# Fanatical Purifiers
	FP_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FP_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FP_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FP_HOSTILE_GREETING_04 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			OR = {
				has_ethic = ethic_spiritualist
				has_ethic = ethic_fanatic_spiritualist
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	FP_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	FP_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	FP_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	FP_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	FP_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	FP_WAR_GREETING_05 = {
		trigger = {
			has_ai_personality = fanatic_purifiers
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Democratic Crusaders
	DC_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DC_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DC_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { has_election_type = democratic }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DC_HOSTILE_GREETING_04 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { NOT = { has_election_type = democratic } }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DC_HOSTILE_GREETING_05 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { is_species_class = AVI }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DC_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	DC_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DC_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DC_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { has_election_type = democratic }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DC_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { NOT = { has_election_type = democratic } }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DC_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	DC_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { has_election_type = democratic }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	DC_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { has_election_type = democratic }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	DC_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { NOT = { has_election_type = democratic } }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	DC_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	DC_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	DC_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { has_election_type = democratic }
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	DC_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			FROM = { NOT = { has_election_type = democratic } }
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	DC_WAR_GREETING_05 = {
		trigger = {
			has_ai_personality = democratic_crusaders
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Slaving Despots
	SD_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SD_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SD_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = slaving_despots
			FROM = { has_policy_flag = slavery_not_allowed }
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SD_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	SD_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	SD_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = slaving_despots
			FROM = { NOT = { has_policy_flag = slavery_not_allowed } }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	SD_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = slaving_despots
			FROM = { has_policy_flag = slavery_not_allowed }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	SD_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	SD_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SD_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SD_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = slaving_despots
			FROM = { NOT = { has_policy_flag = slavery_not_allowed } }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SD_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = slaving_despots
			FROM = { exists = heir }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SD_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	SD_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = slaving_despots
			is_at_war_with = FROM
		}
	}
	SD_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = slaving_despots
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Decadant Hierarchy
	DH_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DH_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	DH_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	DH_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DH_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DH_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			OR = {
				has_ethic = ethic_xenophile
				has_ethic = ethic_fanatic_xenophile
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DH_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			FROM = { has_policy_flag = slavery_not_allowed }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	DH_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	DH_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	DH_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	DH_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			FROM = { NOT = { has_policy_flag = slavery_not_allowed } }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	DH_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			is_at_war_with = FROM
		}
	}
	DH_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	DH_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = decadent_hierarchy
			OR = {
				has_ethic = ethic_xenophobe
				has_ethic = ethic_fanatic_xenophobe
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Erudite Explorers
	EE_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EE_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EE_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = erudite_explorers
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EE_HOSTILE_GREETING_04 = {
		trigger = {
			has_ai_personality = erudite_explorers
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	EE_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	EE_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EE_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EE_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = erudite_explorers
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	EE_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	EE_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EE_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EE_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = erudite_explorers
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EE_FRIENDLY_GREETING_04 = {
		trigger = {
			has_ai_personality = erudite_explorers
			OR = {
				is_in_alliance_with = FROM
				is_in_federation_with = FROM
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	EE_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = erudite_explorers
			is_at_war_with = FROM
		}
	}
	EE_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = erudite_explorers
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	EE_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = erudite_explorers
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_same_species = FROM }
			is_at_war_with = FROM
		}
	}
	# Spiritual Seekers
	SS_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SS_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SS_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SS_HOSTILE_GREETING_04 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	SS_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	SS_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	SS_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	SS_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	SS_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	SS_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SS_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SS_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			FROM = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	SS_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			is_at_war_with = FROM
		}
	}
	SS_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			is_at_war_with = FROM
		}
	}
	SS_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			is_at_war_with = FROM
		}
	}
	SS_WAR_GREETING_04 = {
		trigger = {
			has_ai_personality = spiritual_seekers
			FROM = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
			}
			is_at_war_with = FROM
		}
	}
	# Harmonious Collective
		HC_HOSTILE_GREETING_01 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HC_HOSTILE_GREETING_02 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HC_HOSTILE_GREETING_03 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			FROM = { NOT = { has_election_type = democratic } }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HC_HOSTILE_GREETING_04 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			OR = {
				is_hostile_to = FROM
				is_unfriendly_to = FROM
			}
		}
	}
	HC_DOMINEERING_GREETING_01 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_domineering_to = FROM
			}
		}
	}
	HC_NEUTRAL_GREETING_01 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_same_species = FROM }
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HC_NEUTRAL_GREETING_02 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HC_NEUTRAL_GREETING_03 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HC_NEUTRAL_GREETING_04 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			FROM = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
			NOT = { is_at_war_with = FROM }
			is_wary_to = FROM
		}
	}
	HC_THREATENED_GREETING_01 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			is_threatened_to = FROM
		}
	}
	HC_FRIENDLY_GREETING_01 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HC_FRIENDLY_GREETING_02 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HC_FRIENDLY_GREETING_03 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			FROM = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
			}
			NOT = { is_at_war_with = FROM }
			OR = {
				is_friendly_to = FROM
				is_cordial_to = FROM
				is_protective_to = FROM
			}
		}
	}
	HC_WAR_GREETING_01 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			is_at_war_with = FROM
		}
	}
	HC_WAR_GREETING_02 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			is_at_war_with = FROM
		}
	}
	HC_WAR_GREETING_03 = {
		trigger = {
			has_ai_personality = harmonious_hierarchy
			FROM = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
			}
			is_at_war_with = FROM
		}
	}

	### Fallen Empire AI Personality Greetings
	# Holy Guardians
	HG_HOSTILE_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_spiritualist
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}

	HG_NEUTRAL_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_spiritualist
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	HG_NEUTRAL_GREETING_02 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_spiritualist
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	HG_FRIENDLY_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_spiritualist
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}

	HG_WAR_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_spiritualist
			is_at_war_with = FROM
		}
	}
	# Keepers of Knowledge
	KK_HOSTILE_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_materialist
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}

	KK_NEUTRAL_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_materialist
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	KK_NEUTRAL_GREETING_02 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_materialist
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	KK_FRIENDLY_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_materialist
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}

	KK_WAR_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_materialist
			is_at_war_with = FROM
		}
	}
	# Militant Isolationists
	MI_HOSTILE_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophobe
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}

	MI_NEUTRAL_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophobe
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	MI_NEUTRAL_GREETING_02 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophobe
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	MI_FRIENDLY_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophobe
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}

	MI_WAR_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophobe
			is_at_war_with = FROM
		}
	}
	# Enigmatic Observers
	EO_HOSTILE_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophile
			NOT = { is_at_war_with = FROM }
			is_angry_to = FROM
		}
	}

	EO_NEUTRAL_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophile
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	EO_NEUTRAL_GREETING_02 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophile
			NOT = { is_at_war_with = FROM }
			is_dismissive_to = FROM
		}
	}

	EO_FRIENDLY_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophile
			NOT = { is_at_war_with = FROM }
			is_patronizing_to = FROM
		}
	}

	EO_WAR_GREETING_01 = {
		trigger = {
			is_country_type = fallen_empire
			has_ai_personality = fallen_empire_xenophile
			is_at_war_with = FROM
		}
	}
}

action_declare_war = {
	select = {
		# Hostile 1
		01_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM			
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Hostile 2
		02_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM			
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Hostile 3
		03_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM			
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Neutral 1
		04_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM		
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Neutral 2
		05_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM			
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Neutral 3
		06_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM		
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Friendly 1
		07_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM			
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Friendly 2
		08_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM		
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Friendly 3
		09_DOW_SELECT = {
			trigger = {
				NOT = { 
					is_same_species = FROM		
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Hostile Pacifist
		10_DOW_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Neutral Pacifist
		11_DOW_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Friendly Pacifist
		12_DOW_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Fallen Empires
		01_FALLEN_EMPIRE_DISMISSIVE_DOW_SELECT = {
			trigger = {
				is_dismissive_to = FROM
			}
		}
		01_FALLEN_EMPIRE_PATRONIZING_DOW_SELECT = {
			trigger = {
				is_patronizing_to = FROM
			}
		}
		01_FALLEN_EMPIRE_ANGRY_DOW_SELECT = {
			trigger = {
				is_angry_to = FROM
			}
		}
	}
	propose = {
		01_DOW_PROPOSE = {
			trigger = {
				NOT = { is_same_species_class = FROM }
				FROM = {
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		02_DOW_PROPOSE = {
			trigger = {
				is_same_species_class = FROM
			}
		}
		# Xenophobic
		03_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				NOT = { is_same_species_class = FROM }
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
		# Honorbound personality type
		04_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality_type = honorbound
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		# Ideologue personality type
		05_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality_type = ideologue
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		# Hegemon personality type
		06_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality_type = hegemon
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		# Purifier personality type
		07_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality_type = purifier
				}
			}
		}
		# Explorer personality type
		08_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality_type = explorer
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		# Hive Mind personality type
		09_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality = hive_mind
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		# Migrating Flock personality type
		10_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality = migrating_flock
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
		# Capitalist personality type
		11_DOW_PROPOSE = {
			weight = {
				weight = 5
			}
			trigger = {
				FROM = {
					has_ai_personality_type = capitalist
					NOT = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
					}
				}
			}
		}
	}
	
	accept = {
		# Hostile 1
		01_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Hostile 2
		02_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Hostile 3
		03_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Neutral 1
		04_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Neutral 2
		05_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Neutral 3
		06_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Friendly 1
		07_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Friendly 2
		08_DOW_ACCEPT = {
			trigger = {

				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Friendly 3
		09_DOW_ACCEPT = {
			trigger = {
				NOT = { 
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Hostile Pacifist
		10_DOW_ACCEPT = {
			trigger = {
				NOT = { is_same_species = FROM }
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		# Neutral Pacifist
		11_DOW_ACCEPT = {
			trigger = {
				NOT = { is_same_species = FROM }
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		# Friendly Pacifist
		12_DOW_ACCEPT = {
			trigger = {
				NOT = { is_same_species = FROM }
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Pacifist Same Species
		13_DOW_ACCEPT = {
			trigger = {
				is_same_species = FROM
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
		# Fallen Empires
		01_FALLEN_EMPIRE_DISMISSIVE_DOW_ACCEPT = {
			trigger = {
				is_dismissive_to = FROM
			}
		}		
		01_FALLEN_EMPIRE_PATRONIZING_DOW_ACCEPT = {
			trigger = {
				is_patronizing_to = FROM
			}
		}		
		01_FALLEN_EMPIRE_ANGRY_DOW_ACCEPT = {
			trigger = {
				is_angry_to = FROM
			}
		}		
	}
	propose_vote = {
		01_DOW_VOTE_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_offer_peace = {
	consider = {
		01_CONSIDER = {
			trigger = {
				always = yes
			}
		}
	}
	select = {
		# Generic 1
		01_PEACE_SELECT = {
			trigger = {
				NOT = { is_same_species = FROM }
				NOT = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Generic 2
		02_PEACE_SELECT = {
			trigger = {
				NOT = { is_same_species = FROM }
				NOT = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Generic 3
		03_PEACE_SELECT = {
			trigger = {
				NOT = { is_same_species = FROM }
				NOT = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Pacifist
		04_PEACE_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}
	propose = {
		01_PEACE_PROPOSE = {
			trigger = {
				NOT = { is_same_species_class = FROM }
			}
		}
		02_PEACE_PROPOSE = {
			trigger = {
				is_same_species_class = FROM
			}
		}
	}
	accept = {
		# Accepted 1
		01_PEACE_ACCEPT = {
			trigger = {
				NOT = {
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Accepted 2
		02_PEACE_ACCEPT = {
			trigger = {
				NOT = {
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Accepted 3
		03_PEACE_ACCEPT = {
			trigger = {
				NOT = {
					is_same_species = FROM
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Accepted Same Species
		04_PEACE_ACCEPT = {
			trigger = {
				is_same_species = FROM
				NOT = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
		# Accepted Pacifist
		05_PEACE_ACCEPT = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
			}
		}
	}
	refuse = {
		01_PEACE_REFUSE = {
			trigger = {
				NOT = { is_same_species_class = FROM }
			}
		}
		02_PEACE_REFUSE = {
			trigger = {
				is_same_species_class = FROM
			}
		}
	}
}

action_invite_to_alliance = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_ITOA_SELECT = {
			trigger = {
				FROM = {
					has_alliance = yes
				}
			}
		}
		02_ITOA_SELECT = {
			trigger = {
				FROM = {
					has_alliance = no
				}
			}
		}
	}
	propose = {
		01_ITOA_PROPOSE = {
			trigger = {
				NOT = { is_same_species_class = FROM }
			}
		}
		02_ITOA_PROPOSE = {
			trigger = {
				is_same_species_class = FROM
			}
		}
	}
	accept = {
		01_ITOA_ACCEPT = {
			trigger = {
				FROM = {
					has_alliance = yes
				}
			}
		}
		02_ITOA_ACCEPT = {
			trigger = {
				FROM = {
					has_alliance = no
				}
			}
		}
	}
	refuse = {
		01_ITOA_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
	propose_vote = {
		01_ITOA_VOTE_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_ask_to_join_alliance = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_ASK_JOIN_A_SELECT = {
			trigger = {
				NOT = { is_same_species_class = FROM }
			}
		}
		02_ASK_JOIN_A_SELECT = {
			trigger = {
				is_same_species_class = FROM
			}
		}
	}
	propose = {
		01_ASK_JOIN_A_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_ASK_JOIN_A_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_ASK_JOIN_A_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_leave_alliance = {
	select = {
		01_LEAVE_A_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_LEAVE_A_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_LEAVE_A_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
}

action_demand_vassalization = {
	consider = {
		02_CONSIDER = {
			trigger = {	
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		# Vassalization Select
		01_DEMAND_VASS_SELECT = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Vassalization Select (Hostile)
		02_DEMAND_VASS_SELECT = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Vassalization Select Xenophobe
		03_DEMAND_VASS_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Vassalization Select Hostile Xenophobe
		04_DEMAND_VASS_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
	}
	propose = {
		01_DEMAND_VASS_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		# Accept
		01_DEMAND_VASS_ACCEPT = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
		# Accept Xenophobe
		02_DEMAND_VASS_ACCEPT = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	refuse = {
		# Refuse
		01_DEMAND_VASS_REFUSE = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Refuse Hostile
		02_DEMAND_VASS_REFUSE = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Refuse Xenophobe
		03_DEMAND_VASS_REFUSE = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Refuse Xenophobe Hostile
		04_DEMAND_VASS_REFUSE = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
	}
}

action_ask_to_become_vassalized = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_ASK_FOR_VASS_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_ASK_FOR_VASS_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_ASK_FOR_VASS_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_ASK_FOR_VASS_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_demand_protectorate = {
	consider = {
		02_CONSIDER = {
			trigger = {	
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		# Protectoration Select
		01_DEMAND_PROT_SELECT = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Protectoration Select (Hostile)
		02_DEMAND_PROT_SELECT = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Protectoration Select Xenophobe
		03_DEMAND_PROT_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Protectoration Select Hostile Xenophobe
		04_DEMAND_PROT_SELECT = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
	}
	propose = {
		01_DEMAND_PROT_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		# Accept
		01_DEMAND_PROT_ACCEPT = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
		# Accept Xenophobe
		02_DEMAND_PROT_ACCEPT = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
			}
		}
	}
	refuse = {
		# Refuse
		01_DEMAND_PROT_REFUSE = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Refuse Hostile
		02_DEMAND_PROT_REFUSE = {
			trigger = {
				NOT = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Refuse Xenophobe
		03_DEMAND_PROT_REFUSE = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		# Refuse Xenophobe Hostile
		04_DEMAND_PROT_REFUSE = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				NOT = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
	}
}

action_ask_to_become_protectorate = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_ASK_FOR_PROT_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_ASK_FOR_PROT_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_ASK_FOR_PROT_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_ASK_FOR_PROT_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_form_federation = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_FORM_FED_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_FORM_FED_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_FORM_FED_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
}

action_invite_to_federation = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_ITOF_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_ITOF_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_ITOF_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_ITOF_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
	propose_vote = {
		01_ITOF_VOTE_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_ask_to_join_federation = {
	consider = {
		02_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_dictatorship
					has_government = martial_empire
					has_government = divine_mandate
					has_government = transcendent_empire
					has_government = despotic_hegemony
					has_government = ai_overlordship
					has_government = enlightened_monarchy
					has_government = irenic_monarchy
					has_government = despotic_empire
					has_government = star_empire
				}
			}
		}
		03_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_junta
					has_government = ordered_stratocracy
					has_government = theocratic_oligarchy
					has_government = transcendent_oligarchy
					has_government = science_directorate
					has_government = illuminated_technocracy
					has_government = peaceful_bureaucracy
					has_government = irenic_protectorate
					has_government = plutocratic_oligarchy
					has_government = mega_corporation
				}
			}
		}
		04_CONSIDER = {
			trigger = {
				OR = {
					has_government = military_republic
					has_government = martial_demarchy
					has_government = theocratic_republic
					has_government = transcendent_republic
					has_government = direct_democracy
					has_government = subconscious_consensus
					has_government = moral_democracy
					has_government = irenic_democracy
					has_government = indirect_democracy
					has_government = democratic_utopia
				}
			}
		}
	}
	select = {
		01_ASK_JOIN_F_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_ASK_JOIN_F_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_ASK_JOIN_F_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_ASK_JOIN_F_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
}

action_leave_federation = {
	select = {
		01_LEAVE_F_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_LEAVE_F_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_LEAVE_F_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
}

action_release_subject = {
	select = {
		01_RELEASE_SUBJECT_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_RELEASE_SUBJECT_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_RELEASE_SUBJECT_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
}

action_ask_to_be_released_subject = {
	select = {
		01_ASK_TO_BE_RELEASED_SUBJECT_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_ASK_TO_BE_RELEASED_SUBJECT_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_ASK_TO_BE_RELEASED_SUBJECT_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_ASK_TO_BE_RELEASED_SUBJECT_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
	consider = {
		01_CONSIDER = {
			trigger = {
				always = yes
			}
		}
	}		
}

action_request_war = {
	select = {
		01_REQUEST_WAR_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_REQUEST_WAR_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_REQUEST_WAR_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_REQUEST_WAR_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
	consider = {
		04_CONSIDER = {
			trigger = {
				always = yes
			}
		}
	}		
}

action_propose_invite = {
	select = {
		01_PROPOSE_INVITE_SELECT = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_PROPOSE_INVITE_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_PROPOSE_INVITE_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_PROPOSE_INVITE_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
	consider = {
		04_CONSIDER = {
			trigger = {
				always = yes
			}
		}
	}		
}

warning_not_active_in_war = {
	select = {
		01_NOT_ACTIVE_IN_WAR_WARNING = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_NOT_ACTIVE_IN_WAR_WARNING = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_NOT_ACTIVE_IN_WAR_WARNING = {
			trigger = {
				always = yes
			}
		}
	}
}

action_not_active_in_war = {
	select = {
		01_NOT_ACTIVE_IN_WAR = {
			trigger = {
				always = yes
			}
		}
	}
	propose = {
		01_NOT_ACTIVE_IN_WAR = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_NOT_ACTIVE_IN_WAR = {
			trigger = {
				always = yes
			}
		}
	}
}

action_offer_trade_deal = {
	propose = {
		01_OFFER_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
		02_OFFER_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
		03_OFFER_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
		04_OFFER_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		02_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		03_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		04_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		05_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		06_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		07_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		08_OFFER_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}
	refuse = {
		01_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		02_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		03_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		04_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		05_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		06_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		07_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
		08_OFFER_TRADE_DEAL_REFUSE = {
			trigger = {
				always = yes
			}
		}
	}
	consider = {
		01_CONSIDER = {
			trigger = {
				always = yes
			}
		}
	}		
}

action_cancel_trade_deal = {
	propose = {
		01_CANCEL_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
		02_CANCEL_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
		03_CANCEL_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
		04_CANCEL_TRADE_DEAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_CANCEL_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		02_CANCEL_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		03_CANCEL_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
		04_CANCEL_TRADE_DEAL_ACCEPT = {
			trigger = {
				always = yes
			}
		}
	}	
}

action_embassy = {
	select = {
		01_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_EMBASSY_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_EMBASSY_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_EMBASSY_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_EMBASSY_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_EMBASSY_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_EMBASSY_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}		
	}	
	propose = {
		01_EMBASSY_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_EMBASSY_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_EMBASSY_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_EMBASSY_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_EMBASSY_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_EMBASSY_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_EMBASSY_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}			
	}	
}

action_recall_embassy = {
	select = {
		01_RECALL_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_RECALL_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_RECALL_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_RECALL_EMBASSY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_RECALL_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_RECALL_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_RECALL_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_RECALL_EMBASSY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_RECALL_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_RECALL_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_RECALL_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_RECALL_EMBASSY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_RECALL_EMBASSY_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_RECALL_EMBASSY_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_RECALL_EMBASSY_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_RECALL_EMBASSY_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_RECALL_EMBASSY_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_RECALL_EMBASSY_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}			
	}	
	propose = {
		01_RECALL_EMBASSY_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_RECALL_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_RECALL_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_RECALL_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_RECALL_EMBASSY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_RECALL_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_RECALL_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_RECALL_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_RECALL_EMBASSY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_RECALL_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_RECALL_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_RECALL_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_RECALL_EMBASSY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_RECALL_EMBASSY_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_RECALL_EMBASSY_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_RECALL_EMBASSY_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_RECALL_EMBASSY_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_RECALL_EMBASSY_ACCEPT_ANGRY = {
			trigger = {

				is_angry_to = FROM
			}
		}	
		02_RECALL_EMBASSY_ACCEPT_ANGRY = {
			trigger = {

				is_angry_to = FROM
			}
		}	
	}	
}

action_make_rival = {
	select = {
		01_MAKE_RIVAL_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_MAKE_RIVAL_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_MAKE_RIVAL_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_MAKE_RIVAL_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_MAKE_RIVAL_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_MAKE_RIVAL_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_MAKE_RIVAL_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_MAKE_RIVAL_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_MAKE_RIVAL_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_MAKE_RIVAL_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_MAKE_RIVAL_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_MAKE_RIVAL_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_MAKE_RIVAL_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_MAKE_RIVAL_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_MAKE_RIVAL_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_MAKE_RIVAL_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_MAKE_RIVAL_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_MAKE_RIVAL_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}			
	}	
	propose = {
		01_MAKE_RIVAL_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_MAKE_RIVAL_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_MAKE_RIVAL_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_MAKE_RIVAL_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_MAKE_RIVAL_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_MAKE_RIVAL_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_MAKE_RIVAL_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_MAKE_RIVAL_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_MAKE_RIVAL_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_MAKE_RIVAL_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_MAKE_RIVAL_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_MAKE_RIVAL_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_MAKE_RIVAL_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_MAKE_RIVAL_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_MAKE_RIVAL_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_MAKE_RIVAL_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_MAKE_RIVAL_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_MAKE_RIVAL_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_MAKE_RIVAL_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
	}	
}

action_end_rivalry = {
	select = {
		01_END_RIVALRY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_END_RIVALRY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_END_RIVALRY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_END_RIVALRY_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_END_RIVALRY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_END_RIVALRY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_END_RIVALRY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_END_RIVALRY_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_END_RIVALRY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_END_RIVALRY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_END_RIVALRY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_END_RIVALRY_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_END_RIVALRY_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_END_RIVALRY_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_END_RIVALRY_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_END_RIVALRY_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_END_RIVALRY_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_END_RIVALRY_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}		
	}	
	propose = {
		01_END_RIVALRY_PROPOSE = {
			trigger = {
				always = yes
			}
		}
	}
	accept = {
		01_END_RIVALRY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		02_END_RIVALRY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_END_RIVALRY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_END_RIVALRY_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_END_RIVALRY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		02_END_RIVALRY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		03_END_RIVALRY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		04_END_RIVALRY_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_END_RIVALRY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		02_END_RIVALRY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		03_END_RIVALRY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		04_END_RIVALRY_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_END_RIVALRY_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		02_END_RIVALRY_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}	
		01_END_RIVALRY_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		02_END_RIVALRY_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}	
		01_END_RIVALRY_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}	
		02_END_RIVALRY_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}		
	}	
}

action_integrate_subject = {
	select = {
		01_INTEGRATE_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_INTEGRATE_NEUTRAL = {
			trigger = {
				#OR = {
				#	is_wary_to = FROM
				#	is_threatened_to = FROM
				#}
				NOT = { is_friendly_to = FROM }
				NOT = { is_cordial_to = FROM }
				NOT = { is_protective_to = FROM }
				NOT = { is_hostile_to = FROM }
				NOT = { is_domineering_to = FROM }
				NOT = { is_unfriendly_to = FROM }
				NOT = { is_dismissive_to = FROM }
				NOT = { is_patronizing_to = FROM }
				NOT = { is_angry_to = FROM }
			}
		}
		01_INTEGRATE_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_INTEGRATE_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}
		01_INTEGRATE_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}
		01_INTEGRATE_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}
	}

	propose = {
		01_INTEGRATE_PROPOSE = {
			trigger = {}
		}
	}

	accept = {
		01_INTEGRATE_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_INTEGRATE_ACCEPT_NEUTRAL = {
			trigger = {
				#OR = {
				#	is_wary_to = FROM
				#	is_threatened_to = FROM
				#}
				NOT = { is_friendly_to = FROM }
				NOT = { is_cordial_to = FROM }
				NOT = { is_protective_to = FROM }
				NOT = { is_hostile_to = FROM }
				NOT = { is_domineering_to = FROM }
				NOT = { is_unfriendly_to = FROM }
				NOT = { is_dismissive_to = FROM }
				NOT = { is_patronizing_to = FROM }
				NOT = { is_angry_to = FROM }
			}
		}
		01_INTEGRATE_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_INTEGRATE_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}
		01_INTEGRATE_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}
		01_INTEGRATE_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}
	}
}

action_cancel_subject_integration = {
	select = {
		01_CANCEL_INTEGRATE_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_CANCEL_INTEGRATE_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_CANCEL_INTEGRATE_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_CANCEL_INTEGRATE_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}
		01_CANCEL_INTEGRATE_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}
		01_CANCEL_INTEGRATE_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}
	}

	propose = {
		01_CANCEL_INTEGRATE_PROPOSE = {
			trigger = {}
		}
	}

	accept = {
		01_CANCEL_INTEGRATE_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_CANCEL_INTEGRATE_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
				}
			}
		}
		01_CANCEL_INTEGRATE_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
				}
			}
		}
		01_CANCEL_INTEGRATE_ACCEPT_DISMISSIVE = {
			trigger = {
				is_dismissive_to = FROM
			}
		}
		01_CANCEL_INTEGRATE_ACCEPT_PATRONIZING = {
			trigger = {
				is_patronizing_to = FROM
			}
		}
		01_CANCEL_INTEGRATE_ACCEPT_ANGRY = {
			trigger = {
				is_angry_to = FROM
			}
		}
	}
}

action_insult = {
	select = {
		01_INSULT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM
				}
			}
		}
		02_INSULT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM				
				}
			}
		}
		03_INSULT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM					
				}
			}
		}
		04_INSULT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM					
				}
			}
		}
		01_INSULT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM					
				}
			}
		}
		02_INSULT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		03_INSULT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		04_INSULT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
				}
			}
		}
		01_INSULT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
		02_INSULT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
		03_INSULT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
		04_INSULT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
	}
	
	
	propose = {
		01_INSULT_PROPOSE = {
			trigger = {
				NOT = {
					FROM = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
						NOT = { is_same_species = ROOT }
						NOT = { is_subspecies = ROOT }
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE = {
			trigger = {
				NOT = {
					FROM = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
						NOT = { is_same_species = ROOT }
						NOT = { is_subspecies = ROOT }
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE = {
			trigger = {
				NOT = {
					FROM = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
						NOT = { is_same_species = ROOT }
						NOT = { is_subspecies = ROOT }
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE = {
			trigger = {
				NOT = {
					FROM = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
						NOT = { is_same_species = ROOT }
						NOT = { is_subspecies = ROOT }
					}
				}
			}
		}
	}
	propose = {
		05_INSULT_PROPOSE = {
			trigger = {
				NOT = {
					FROM = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
						NOT = { is_same_species = ROOT }
						NOT = { is_subspecies = ROOT }
					}
				}
			}
		}
	}
	propose = {
		06_INSULT_PROPOSE = {
			trigger = {
				NOT = {
					FROM = {
						OR = {
							has_ethic = ethic_xenophobe
							has_ethic = ethic_fanatic_xenophobe
						}
						NOT = { is_same_species = ROOT }
						NOT = { is_subspecies = ROOT }
					}
				}
			}
		}
	}
	
	
	
	propose = {
		01_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species = ROOT }
					NOT = { is_subspecies = ROOT }
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species_class = ROOT }
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species = ROOT }
					NOT = { is_subspecies = ROOT }
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species = ROOT }
					NOT = { is_subspecies = ROOT }
				}
			}
		}
	}
	propose = {
		05_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species_class = ROOT }
				}
			}
		}
	}
	propose = {
		06_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species_class = ROOT }
				}
			}
		}
	}
	propose = {
		07_INSULT_PROPOSE_XENOPHOBE = {
			trigger = {
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
					NOT = { is_same_species = ROOT }
					is_subspecies = ROOT
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_PAC_MIL = {
			trigger = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
				FROM = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_PAC_MIL = {
			trigger = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
				FROM = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_PAC_MIL = {
			trigger = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
				FROM = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_PAC_MIL = {
			trigger = {
				OR = {
					has_ethic = ethic_militarist
					has_ethic = ethic_fanatic_militarist
				}
				FROM = {
					OR = {
						has_ethic = ethic_pacifist
						has_ethic = ethic_fanatic_pacifist
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_MIL_PAC = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				FROM = {
					OR = {
						has_ethic = ethic_militarist
						has_ethic = ethic_fanatic_militarist
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_MIL_PAC = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				FROM = {
					OR = {
						has_ethic = ethic_militarist
						has_ethic = ethic_fanatic_militarist
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_MIL_PAC = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				FROM = {
					OR = {
						has_ethic = ethic_militarist
						has_ethic = ethic_fanatic_militarist
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_MIL_PAC = {
			trigger = {
				OR = {
					has_ethic = ethic_pacifist
					has_ethic = ethic_fanatic_pacifist
				}
				FROM = {
					OR = {
						has_ethic = ethic_militarist
						has_ethic = ethic_fanatic_militarist
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_MAT_SPI = {
			trigger = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_materialist
						has_ethic = ethic_fanatic_materialist
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_MAT_SPI = {
			trigger = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_materialist
						has_ethic = ethic_fanatic_materialist
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_MAT_SPI = {
			trigger = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_materialist
						has_ethic = ethic_fanatic_materialist
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_MAT_SPI = {
			trigger = {
				OR = {
					has_ethic = ethic_spiritualist
					has_ethic = ethic_fanatic_spiritualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_materialist
						has_ethic = ethic_fanatic_materialist
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_SPI_MAT = {
			trigger = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
				FROM = {
					OR = {
						has_ethic = ethic_spiritualist
						has_ethic = ethic_fanatic_spiritualist
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_SPI_MAT = {
			trigger = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
				FROM = {
					OR = {
						has_ethic = ethic_spiritualist
						has_ethic = ethic_fanatic_spiritualist
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_SPI_MAT = {
			trigger = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
				FROM = {
					OR = {
						has_ethic = ethic_spiritualist
						has_ethic = ethic_fanatic_spiritualist
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_SPI_MAT = {
			trigger = {
				OR = {
					has_ethic = ethic_materialist
					has_ethic = ethic_fanatic_materialist
				}
				FROM = {
					OR = {
						has_ethic = ethic_spiritualist
						has_ethic = ethic_fanatic_spiritualist
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_COL_IND = {
			trigger = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_collectivist
						has_ethic = ethic_fanatic_collectivist
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_COL_IND = {
			trigger = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_collectivist
						has_ethic = ethic_fanatic_collectivist
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_COL_IND = {
			trigger = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_collectivist
						has_ethic = ethic_fanatic_collectivist
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_COL_IND = {
			trigger = {
				OR = {
					has_ethic = ethic_individualist
					has_ethic = ethic_fanatic_individualist
				}
				FROM = {
					OR = {
						has_ethic = ethic_collectivist
						has_ethic = ethic_fanatic_collectivist
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_IND_COL = {
			trigger = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
				FROM = {
					OR = {
						has_ethic = ethic_individualist
						has_ethic = ethic_fanatic_individualist
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_IND_COL = {
			trigger = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
				FROM = {
					OR = {
						has_ethic = ethic_individualist
						has_ethic = ethic_fanatic_individualist
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_IND_COL = {
			trigger = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
				FROM = {
					OR = {
						has_ethic = ethic_individualist
						has_ethic = ethic_fanatic_individualist
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_IND_COL = {
			trigger = {
				OR = {
					has_ethic = ethic_collectivist
					has_ethic = ethic_fanatic_collectivist
				}
				FROM = {
					OR = {
						has_ethic = ethic_individualist
						has_ethic = ethic_fanatic_individualist
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_PHO_PHI = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_PHO_PHI = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_PHO_PHI = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_PHO_PHI = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophile
					has_ethic = ethic_fanatic_xenophile
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophobe
						has_ethic = ethic_fanatic_xenophobe
					}
				}
			}
		}
	}
	
	propose = {
		01_INSULT_PROPOSE_PHI_PHO = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophile
						has_ethic = ethic_fanatic_xenophile
					}
				}
			}
		}
	}
	propose = {
		02_INSULT_PROPOSE_PHI_PHO = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophile
						has_ethic = ethic_fanatic_xenophile
					}
				}
			}
		}
	}
	propose = {
		03_INSULT_PROPOSE_PHI_PHO = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophile
						has_ethic = ethic_fanatic_xenophile
					}
				}
			}
		}
	}
	propose = {
		04_INSULT_PROPOSE_PHI_PHO = {
			trigger = {
				OR = {
					has_ethic = ethic_xenophobe
					has_ethic = ethic_fanatic_xenophobe
				}
				FROM = {
					OR = {
						has_ethic = ethic_xenophile
						has_ethic = ethic_fanatic_xenophile
					}
				}
			}
		}
	}
	
	accept = {
		01_INSULT_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM					
				}
			}
		}
		02_INSULT_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM					
				}
			}
		}
		03_INSULT_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM					
				}
			}
		}
		04_INSULT_ACCEPT_NEUTRAL = {
			trigger = {
				OR = {
					is_wary_to = FROM
					is_threatened_to = FROM
					is_dismissive_to = FROM
					is_patronizing_to = FROM
				}
			}
		}
		01_INSULT_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
					is_angry_to = FROM
				}
			}
		}
		02_INSULT_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
					is_angry_to = FROM
				}
			}
		}
		03_INSULT_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
					is_angry_to = FROM
				}
			}
		}
		04_INSULT_ACCEPT_FRIENDLY = {
			trigger = {
				OR = {
					is_friendly_to = FROM
					is_cordial_to = FROM
					is_protective_to = FROM
					is_angry_to = FROM
				}
			}
		}
		01_INSULT_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
		02_INSULT_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
		03_INSULT_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
		04_INSULT_ACCEPT_HOSTILE = {
			trigger = {
				OR = {
					is_hostile_to = FROM
					is_domineering_to = FROM
					is_unfriendly_to = FROM
					is_angry_to = FROM
				}
			}
		}
	}	
}