GetAppropriateGodname = {
	type = character

	text = {
		trigger = {
			house.last_house_head.faith = {
				OR = {
					OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion }
					religion_tag = islam_religion
					religion_tag = judaism_religion
				}
			}
		}
		localization_key = motto_god
	}

	text = {
		trigger = {
			house.last_house_head.faith = {
				religion_tag = buddhism_religion
			}
		}
		localization_key = motto_the_perfected_ones
	}

	text = {
		trigger = {
			house.last_house_head.faith = {
				OR = {
					religion_tag = dualism_religion
					religion_tag = zoroastrianism_religion
				}
			}
		}
		localization_key = motto_the_divine
	}

	text = {
		trigger = {
			house.last_house_head.faith = {
				NOR = {
					religion_tag = dualism_religion
					religion_tag = zoroastrianism_religion
					religion_tag = buddhism_religion
					OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion }
					religion_tag = islam_religion
					religion_tag = judaism_religion
				}
			}
		}
		localization_key = motto_the_gods
	}

	text = {
		trigger = {
			always = no
		}
		localization_key = motto_custom_loc_god
		fallback = yes
	}
}