﻿

remove_5_4_personality_traits = {
	if = {
		limit = {
			calc_true_if = {
				amount = 5
				has_trait = temperate
				has_trait = gluttonous
				has_trait = sadistic
				has_trait = brave
				has_trait = calm
				has_trait = chaste
				has_trait = content
				has_trait = diligent
				has_trait = generous
				has_trait = gregarious
				has_trait = honest
				has_trait = humble
				has_trait = just
				has_trait = patient
				has_trait = compassionate
				has_trait = trusting
				has_trait = zealous
				has_trait = stubborn
				has_trait = forgiving
				has_trait = craven
				has_trait = wrathful
				has_trait = lustful
				has_trait = ambitious
				has_trait = lazy
				has_trait = fickle
				has_trait = vengeful
				has_trait = greedy
				has_trait = shy
				has_trait = deceitful
				has_trait = arrogant
				has_trait = arbitrary
				has_trait = impatient
				has_trait = callous
				has_trait = paranoid
				has_trait = cynical
				has_trait = eccentric
			 #	has_trait = authoritative
			 #	has_trait = inquisitive
			 #	has_trait = rude
			}
		}
		random_list = {
			10 = { trigger = { has_trait = temperate } remove_trait = temperate }
			10 = { trigger = { has_trait = gluttonous } remove_trait = gluttonous }
			10 = { trigger = { has_trait = sadistic } remove_trait = sadistic }
			10 = { trigger = { has_trait = brave } remove_trait = brave }
			10 = { trigger = { has_trait = calm } remove_trait = calm }
			10 = { trigger = { has_trait = chaste } remove_trait = chaste }
			10 = { trigger = { has_trait = content } remove_trait = content }
			10 = { trigger = { has_trait = diligent } remove_trait = diligent }
			10 = { trigger = { has_trait = fickle } remove_trait = fickle }
			10 = { trigger = { has_trait = forgiving } remove_trait = forgiving }
			10 = { trigger = { has_trait = generous } remove_trait = generous }
			10 = { trigger = { has_trait = gregarious } remove_trait = gregarious }
			10 = { trigger = { has_trait = honest } remove_trait = honest }
			10 = { trigger = { has_trait = humble } remove_trait = humble }
			10 = { trigger = { has_trait = just } remove_trait = just }
			10 = { trigger = { has_trait = patient } remove_trait = patient }
			10 = { trigger = { has_trait = compassionate } remove_trait = compassionate }
			10 = { trigger = { has_trait = trusting } remove_trait = trusting }
			10 = { trigger = { has_trait = zealous } remove_trait = zealous }
			10 = { trigger = { has_trait = stubborn } remove_trait = stubborn }
			10 = { trigger = { has_trait = vengeful } remove_trait = vengeful }
			10 = { trigger = { has_trait = craven } remove_trait = craven }
			10 = { trigger = { has_trait = wrathful } remove_trait = wrathful }
			10 = { trigger = { has_trait = lustful } remove_trait = lustful }
			10 = { trigger = { has_trait = ambitious } remove_trait = ambitious }
			10 = { trigger = { has_trait = lazy } remove_trait = lazy }
			10 = { trigger = { has_trait = greedy } remove_trait = greedy }
			10 = { trigger = { has_trait = shy } remove_trait = shy }
			10 = { trigger = { has_trait = deceitful } remove_trait = deceitful }
			10 = { trigger = { has_trait = arrogant } remove_trait = arrogant }
			10 = { trigger = { has_trait = arbitrary } remove_trait = arbitrary }
			10 = { trigger = { has_trait = impatient } remove_trait = impatient }
			10 = { trigger = { has_trait = callous } remove_trait = callous }
			10 = { trigger = { has_trait = paranoid } remove_trait = paranoid }
			10 = { trigger = { has_trait = cynical } remove_trait = cynical }
			10 = { trigger = { has_trait = eccentric } remove_trait = eccentric }
		 #	10 = { trigger = { has_trait = authoritative } remove_trait = authoritative }
		 #	10 = { trigger = { has_trait = inquisitive } remove_trait = inquisitive }
		 #	10 = { trigger = { has_trait = rude } remove_trait = rude }
		}
	}
	if = {
		limit = {
			calc_true_if = {
				amount = 4
				has_trait = temperate
				has_trait = gluttonous
				has_trait = sadistic
				has_trait = brave
				has_trait = calm
				has_trait = chaste
				has_trait = content
				has_trait = diligent
				has_trait = generous
				has_trait = gregarious
				has_trait = honest
				has_trait = humble
				has_trait = just
				has_trait = patient
				has_trait = compassionate
				has_trait = trusting
				has_trait = zealous
				has_trait = stubborn
				has_trait = forgiving
				has_trait = craven
				has_trait = wrathful
				has_trait = lustful
				has_trait = ambitious
				has_trait = lazy
				has_trait = fickle
				has_trait = vengeful
				has_trait = greedy
				has_trait = shy
				has_trait = deceitful
				has_trait = arrogant
				has_trait = arbitrary
				has_trait = impatient
				has_trait = callous
				has_trait = paranoid
				has_trait = cynical
				has_trait = eccentric
			 #	has_trait = authoritative
			 #	has_trait = inquisitive
			 #	has_trait = rude
			}
		}
		random_list = {
			10 = { trigger = { has_trait = temperate } remove_trait = temperate }
			10 = { trigger = { has_trait = gluttonous } remove_trait = gluttonous }
			10 = { trigger = { has_trait = sadistic } remove_trait = sadistic }
			10 = { trigger = { has_trait = brave } remove_trait = brave }
			10 = { trigger = { has_trait = calm } remove_trait = calm }
			10 = { trigger = { has_trait = chaste } remove_trait = chaste }
			10 = { trigger = { has_trait = content } remove_trait = content }
			10 = { trigger = { has_trait = diligent } remove_trait = diligent }
			10 = { trigger = { has_trait = fickle } remove_trait = fickle }
			10 = { trigger = { has_trait = forgiving } remove_trait = forgiving }
			10 = { trigger = { has_trait = generous } remove_trait = generous }
			10 = { trigger = { has_trait = gregarious } remove_trait = gregarious }
			10 = { trigger = { has_trait = honest } remove_trait = honest }
			10 = { trigger = { has_trait = humble } remove_trait = humble }
			10 = { trigger = { has_trait = just } remove_trait = just }
			10 = { trigger = { has_trait = patient } remove_trait = patient }
			10 = { trigger = { has_trait = compassionate } remove_trait = compassionate }
			10 = { trigger = { has_trait = trusting } remove_trait = trusting }
			10 = { trigger = { has_trait = zealous } remove_trait = zealous }
			10 = { trigger = { has_trait = stubborn } remove_trait = stubborn }
			10 = { trigger = { has_trait = vengeful } remove_trait = vengeful }
			10 = { trigger = { has_trait = craven } remove_trait = craven }
			10 = { trigger = { has_trait = wrathful } remove_trait = wrathful }
			10 = { trigger = { has_trait = lustful } remove_trait = lustful }
			10 = { trigger = { has_trait = ambitious } remove_trait = ambitious }
			10 = { trigger = { has_trait = lazy } remove_trait = lazy }
			10 = { trigger = { has_trait = greedy } remove_trait = greedy }
			10 = { trigger = { has_trait = shy } remove_trait = shy }
			10 = { trigger = { has_trait = deceitful } remove_trait = deceitful }
			10 = { trigger = { has_trait = arrogant } remove_trait = arrogant }
			10 = { trigger = { has_trait = arbitrary } remove_trait = arbitrary }
			10 = { trigger = { has_trait = impatient } remove_trait = impatient }
			10 = { trigger = { has_trait = callous } remove_trait = callous }
			10 = { trigger = { has_trait = paranoid } remove_trait = paranoid }
			10 = { trigger = { has_trait = cynical } remove_trait = cynical }
			10 = { trigger = { has_trait = eccentric } remove_trait = eccentric }
		 #	10 = { trigger = { has_trait = authoritative } remove_trait = authoritative }
		 #	10 = { trigger = { has_trait = inquisitive } remove_trait = inquisitive }
		 #	10 = { trigger = { has_trait = rude } remove_trait = rude }
		}
	}
}

gpt_assign_random_animal_archetype = {
	# This block assigns animal archetypes based on a combination of traits.
	# Characters must be at least 16 years old and not already have an animal archetype.
	if = {
		limit = {
			gpt_has_animal_archetype = no
			has_3_personality_traits = yes
			age >= 16
		}
		random_list = {
			# Badger: Possessive
			# Traits: Humble, Wrathful, Zealous, Diligent, Stubborn, Impatient, Greedy, Ambitious, Paranoid
			# Excludes: Arrogant, Calm, Generous, Cynical, Lazy, Patient, Lustful, Trusting, Chaste
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_badger }
					AND = {
						ai_energy >= 0
						ai_greed >= 0
						OR = {
							has_trait = wrathful
							has_trait = zealous
							has_trait = diligent
							has_trait = stubborn
							has_trait = impatient
							has_trait = greedy
							has_trait = ambitious
							has_trait = paranoid
						}
						NOR = {
							has_trait = arrogant
							has_trait = calm
							has_trait = generous
							has_trait = cynical
							has_trait = lazy
							has_trait = patient
							has_trait = lustful
							has_trait = trusting
							has_trait = chaste
							has_trait = humble # Removed Humble as it contradicts possessiveness
						}
					}
				}
				modifier = { factor = 4 has_trait = wrathful }
				modifier = { factor = 4 has_trait = zealous }
				modifier = { factor = 4 has_trait = diligent }
				modifier = { factor = 4 has_trait = stubborn }
				modifier = { factor = 4 has_trait = impatient }
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = ambitious }
				modifier = { factor = 4 has_trait = paranoid }
				modifier = { factor = 1.15 is_male = yes }
				modifier = { factor = 0.85 is_female = yes }
				add_trait = gpt_badger
			}

			# Bear: Pragmatic
			# Traits: Content, Brave, Greedy, Stubborn, Patient, Gluttonous, Cynical, Just
			# Excludes: Wrathful, Shy, Physique_bad, Ambitious, Craven, Calm, Generous, Eccentric, Fickle, Forgiving, Gregarious, Impatient, Temperate, Trusting, Zealous
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_bear }
					AND = {
						OR = {
							has_trait = content
							has_trait = brave
							has_trait = greedy
							has_trait = stubborn
							has_trait = patient
							has_trait = gluttonous
							has_trait = cynical
							has_trait = just
						}
						NOR = {
							has_trait = physique_bad
							has_trait = ambitious
							has_trait = craven
							has_trait = calm
							has_trait = generous
							has_trait = eccentric
							has_trait = fickle
							has_trait = forgiving
							has_trait = gregarious
							has_trait = impatient
							has_trait = temperate
							has_trait = trusting
							has_trait = wrathful # Removed Wrathful
							has_trait = shy # Removed Shy
							has_trait = zealous # Added Zealous to NOR
						}
					}
				}
				modifier = { factor = 2 has_trait = content }
				modifier = { factor = 4 has_trait = brave }
				modifier = { factor = 4 has_trait = wrathful } # Keeping wrathful as a possible modifier for flavor, but removed from trigger OR
				modifier = { factor = 2 has_trait = greedy }
				modifier = { factor = 3 has_trait = stubborn }
				modifier = { factor = 3 has_trait = shy } # Keeping shy as a possible modifier for flavor, but removed from trigger OR
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 3 has_trait = gluttonous }
				modifier = { factor = 1.15 is_male = yes }
				modifier = { factor = 0.85 is_female = yes }
				add_trait = gpt_bear
			}

			# Bee: Industrious
			# Traits: Content, Humble, Generous, Diligent, Forgiving, Temperate, Trusting, Gregarious
			# Excludes: Ambitious, Arrogant, Compassionate, Sadistic, Greedy, Deceitful, Cynical, Lazy, Vengeful, Gluttonous, Lustful, Paranoid
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_bee }
					AND = {
						OR = {
							has_trait = content
							has_trait = humble
							has_trait = generous
							has_trait = diligent
							has_trait = forgiving
							has_trait = temperate
							has_trait = trusting
							has_trait = gregarious # Added Gregarious
						}
						NOR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = compassionate # Removed Compassionate
							has_trait = sadistic
							has_trait = greedy
							has_trait = deceitful
							has_trait = cynical
							has_trait = lazy
							has_trait = vengeful
							has_trait = gluttonous
							has_trait = lustful
							has_trait = paranoid
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 4 has_trait = generous }
				modifier = { factor = 4 has_trait = diligent }
				modifier = { factor = 2 has_trait = forgiving }
				modifier = { factor = 4 has_trait = temperate }
				modifier = { factor = 2 has_trait = trusting }
				modifier = { factor = 4 has_trait = gregarious } # Added Gregarious modifier
				add_trait = gpt_bee
			}

			# Blackswan: Envious
			# Traits: Ambitious, Cynical, Eccentric, Shy, Arbitrary, Paranoid, Greedy, Vengeful
			# Excludes: Content, Honest, Zealous, Stubborn, Gregarious, Just, Chaste, Forgiving
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_blackswan }
					AND = {
						OR = {
							has_trait = ambitious
							has_trait = cynical
							has_trait = eccentric
							has_trait = shy
							has_trait = arbitrary
							has_trait = paranoid
							has_trait = greedy # Added Greedy
							has_trait = vengeful # Added Vengeful
						}
						NOR = {
							has_trait = content
							has_trait = honest
							has_trait = zealous
							has_trait = stubborn
							has_trait = gregarious
							has_trait = just
							has_trait = chaste
							has_trait = humble
							has_trait = temperate
							has_trait = forgiving # Added Forgiving to NOR
						}
					}
				}
				modifier = { factor = 4 has_trait = ambitious }
				modifier = { factor = 4 has_trait = cynical }
				modifier = { factor = 4 has_trait = eccentric }
				modifier = { factor = 4 has_trait = shy }
				modifier = { factor = 2 has_trait = arbitrary }
				modifier = { factor = 2 has_trait = paranoid }
				modifier = { factor = 4 has_trait = greedy } # Added Greedy modifier
				modifier = { factor = 4 has_trait = vengeful } # Added Vengeful modifier
				modifier = { factor = 0.85 is_male = yes }
				add_trait = gpt_blackswan
			}

			# Bull: Dependable
			# Traits: Content, Humble, Calm, Diligent, Stubborn, Trusting, Honest, Just, Patient
			# Excludes: Ambitious, Arrogant, Sadistic, Wrathful, Cynical, Zealous, Lazy, Eccentric, Fickle, Vengeful, Gluttonous, Paranoid, Chaste
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_bull }
					AND = {
						OR = {
							has_trait = content
							has_trait = humble
							has_trait = calm
							has_trait = diligent
							has_trait = stubborn
							has_trait = trusting
							has_trait = honest # Added Honest
							has_trait = just # Added Just
							has_trait = patient # Added Patient
						}
						NOR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = sadistic
							has_trait = wrathful
							has_trait = cynical
							has_trait = zealous
							has_trait = lazy
							has_trait = eccentric
							has_trait = fickle
							has_trait = vengeful
							has_trait = gluttonous
							has_trait = paranoid
							has_trait = chaste # Removed Chaste
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 3 has_trait = calm }
				modifier = { factor = 4 has_trait = diligent }
				modifier = { factor = 4 has_trait = stubborn }
				modifier = { factor = 3 has_trait = chaste } # Keeping Chaste as a possible modifier for flavor, but removed from trigger OR
				modifier = { factor = 4 has_trait = trusting }
				add_trait = gpt_bull
			}

			# Butterfly: Enthusiastic
			# Traits: Content, Compassionate, Calm, Generous, Fickle, Forgiving, Trusting, Gregarious, Ambitious (for experiences)
			# Excludes: Craven, Lazy, Brave, Callous, Sadistic, Wrathful, Greedy, Deceitful, Zealous, Diligent, Stubborn, Vengeful, Impatient, Just, Paranoid, Shy, Cynical
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_butterfly }
					AND = {
						OR = {
							has_trait = content
							has_trait = chaste
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = fickle
							has_trait = forgiving
							has_trait = trusting
							has_trait = gregarious # Added Gregarious
							has_trait = ambitious # Added Ambitious for experiences
						}
						NOR = {
							has_trait = craven # Removed Craven
							has_trait = lazy # Removed Lazy
							has_trait = brave # Added Brave to NOR
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = greedy
							has_trait = deceitful
							has_trait = zealous
							has_trait = diligent
							has_trait = stubborn
							has_trait = vengeful
							has_trait = impatient
							has_trait = just
							has_trait = paranoid
							has_trait = shy # Added Shy to NOR
							has_trait = cynical # Added Cynical to NOR
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = craven } # Keeping Craven as a modifier
				modifier = { factor = 4 has_trait = compassionate }
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 4 has_trait = generous }
				modifier = { factor = 3 has_trait = lazy } # Keeping Lazy as a modifier
				modifier = { factor = 3 has_trait = eccentric }
				modifier = { factor = 4 has_trait = fickle }
				modifier = { factor = 4 has_trait = forgiving }
				modifier = { factor = 4 has_trait = trusting }
				add_trait = gpt_butterfly
			}

			# Cat: Elusive
			# Traits: Arrogant, Lazy, Eccentric, Fickle, Shy, Gluttonous, Deceitful, Arbitrary, Cynical, Patient
			# Excludes: Humble, Generous, Honest, Zealous, Diligent, Stubborn, Gregarious, Temperate, Just
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_cat }
					AND = {
						OR = {
							has_trait = lazy
							has_trait = chaste
							has_trait = eccentric
							has_trait = fickle
							has_trait = shy
							has_trait = deceitful
							has_trait = arbitrary
							has_trait = cynical # Added Cynical
						}
						NOR = {
							has_trait = humble
							has_trait = generous
							has_trait = honest
							has_trait = zealous
							has_trait = diligent
							has_trait = stubborn
							has_trait = gregarious
							has_trait = temperate
							has_trait = just
							has_trait = impatient
							has_trait = wrathful
							has_trait = arrogant
						}
					}
				}
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = chaste }
				modifier = { factor = 4 has_trait = lazy }
				modifier = { factor = 4 has_trait = eccentric }
				modifier = { factor = 4 has_trait = fickle }
				modifier = { factor = 4 has_trait = shy }
				modifier = { factor = 4 has_trait = arbitrary }
				modifier = { factor = 4 has_trait = cynical } # Added Cynical modifier
				add_trait = gpt_cat
			}

			# Crocodile: Ruthless
			# Traits: Arrogant, Brave, Callous, Sadistic, Wrathful, Vengeful, Patient, Arbitrary, Ambitious, Diligent
			# Excludes: Lazy, Zealous, Humble, Craven, Compassionate, Calm, Generous, Eccentric, Forgiving, Gregarious, Impatient, Gluttonous, Just, Lustful, Trusting
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_crocodile }
					AND = {
						OR = {
							has_trait = zealous
							has_trait = arrogant
							has_trait = brave
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = vengeful
							has_trait = patient
							has_trait = arbitrary
							has_trait = ambitious # Added Ambitious
							has_trait = diligent # Added Diligent
						}
						NOR = {
							has_trait = lazy # Removed Lazy
							has_trait = humble
							has_trait = craven
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = eccentric
							has_trait = forgiving
							has_trait = gregarious
							has_trait = impatient
							has_trait = gluttonous
							has_trait = just
							has_trait = lustful
							has_trait = trusting
						}
					}
				}
				modifier = { factor = 4 has_trait = arrogant }
				modifier = { factor = 3 has_trait = brave }
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = sadistic }
				modifier = { factor = 4 has_trait = wrathful }
				modifier = { factor = 4 has_trait = vengeful }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = arbitrary }
				add_trait = gpt_crocodile
			}

			# Crow: Keen
			# Traits: Callous, Sadistic, Greedy, Deceitful, Cynical, Fickle, Vengeful, Arbitrary, Paranoid, Ambitious, Patient
			# Excludes: Compassionate, Generous, Honest, Zealous, Stubborn, Forgiving, Just, Trusting
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_crow }
					AND = {
						OR = {
							has_trait = callous
							has_trait = greedy
							has_trait = deceitful
							has_trait = cynical
							has_trait = fickle
							has_trait = vengeful
							has_trait = arbitrary
							has_trait = paranoid
							has_trait = sadistic
							has_trait = patient
						}
						NOR = {
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = zealous
							has_trait = stubborn
							has_trait = forgiving
							has_trait = impatient
							has_trait = just
							has_trait = trusting
							has_trait = brave
							has_trait = diligent
						}
					}
				}
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 2 has_trait = cynical }
				modifier = { factor = 2 has_trait = fickle }
				modifier = { factor = 4 has_trait = vengeful }
				modifier = { factor = 2 has_trait = arbitrary }
				modifier = { factor = 2 has_trait = paranoid }
				modifier = { factor = 4 has_trait = ambitious } # Added Ambitious modifier
				modifier = { factor = 4 has_trait = patient } # Added Patient modifier
				modifier = { factor = 0.7 is_lowborn = no }
				modifier = { factor = 0.7 is_male = yes }
				add_trait = gpt_crow
			}

			# Dog: Playful
			# Traits: Content, Humble, Compassionate, Generous, Honest, Forgiving, Gregarious, Trusting
			# Excludes: Ambitious, Arrogant, Callous, Sadistic, Wrathful, Greedy, Deceitful, Zealous, Vengeful, Shy, Arbitrary, Paranoid
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_dog }
					AND = {
						OR = {
							has_trait = content
							has_trait = humble
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = forgiving
							has_trait = gregarious
							has_trait = trusting
						}
						NOR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = greedy
							has_trait = deceitful
							has_trait = zealous
							has_trait = vengeful
							has_trait = shy
							has_trait = arbitrary
							has_trait = paranoid
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 4 has_trait = compassionate }
				modifier = { factor = 4 has_trait = generous }
				modifier = { factor = 4 has_trait = honest }
				modifier = { factor = 4 has_trait = forgiving }
				modifier = { factor = 4 has_trait = gregarious }
				modifier = { factor = 4 has_trait = trusting }
				add_trait = gpt_dog
			}

			#Dove
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_dove }
					AND = {
						OR = {
							has_trait = content
							has_trait = craven
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = honest
							has_trait = forgiving
							has_trait = trusting
						}
						NOR = {
							has_trait = beauty_bad
							has_trait = cynical
							has_trait = ambitious
							has_trait = brave
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = greedy
							has_trait = deceitful
							has_trait = zealous
							has_trait = vengeful
							has_trait = lustful
							has_trait = paranoid
						}
					}
				}
				modifier = {
					factor = 4
					has_trait = chaste
				}
				modifier = {
					factor = 4
					has_trait = content
				}
				modifier = {
					factor = 4
					has_trait = craven
				}
				modifier = {
					factor = 4
					has_trait = compassionate
				}
				modifier = {
					factor = 4
					has_trait = calm
				}
				modifier = {
					factor = 4
					has_trait = generous
				}
				modifier = {
					factor = 4
					has_trait = honest
				}
				modifier = {
					factor = 4
					has_trait = forgiving
				}
				modifier = {
					factor = 4
					has_trait = trusting
				}
				modifier = {
					factor = 1.15
					is_female = yes
				}
				modifier = {
					factor = 0.85
					is_male = yes
				}
				add_trait = gpt_dove
			}

			# Dragon: Imperious
			# Traits: Ambitious, Diligent, Greedy, Arrogant, Brave, Wrathful, Callous, Sadistic, Zealous, Impatient
			# Excludes: Lowborn, Bad physical/intellect, Content, Humble, Craven, Compassionate, Generous, Cynical, Forgiving, Patient, Lustful, Trusting, Education_learning, Education_diplomacy, Physical Flaws
			1000 = {
				trigger = {
					NOT = { has_character_flag = removed_dragon }
					AND = {
						is_lowborn = no
						OR = { # Need something special for dragons
							has_trait = beauty_good
							has_trait = physique_good
							has_trait = intellect_good
							has_trait = education_martial_4
							has_trait = education_martial_5
							has_trait = conqueror
							has_trait = greatest_of_khans
						}
						OR = {
							has_trait = ambitious
							has_trait = diligent
							has_trait = greedy
						}
						OR = {
							has_trait = arrogant
							has_trait = brave
							has_trait = callous
							has_trait = zealous
							has_trait = impatient
							has_trait = ambitious
							has_trait = diligent
							has_trait = greedy
							has_trait = wrathful
						}
						NOR = {
							# Removed Learning and Diplomacy education traits
							has_trait = physique_bad
							has_trait = beauty_bad
							has_trait = intellect_bad
							has_trait = content
							has_trait = humble
							has_trait = craven
							has_trait = compassionate
							has_trait = generous
							has_trait = cynical
							has_trait = forgiving
							has_trait = patient
							has_trait = trusting
							has_trait = lazy
							has_trait = hunchbacked
							has_trait = dwarf
							has_trait = scaly
							has_trait = clubfooted
							has_trait = lisping
							has_trait = stuttering
							has_trait = giant
							has_trait = inbred
							has_trait = weak
							has_trait = dull
							has_trait = impotent
							has_trait = spindly
							has_trait = wheezing
							has_trait = bleeder
							has_trait = infertile
						}
					}
				}
				modifier = { factor = 40000 OR = { has_trait = conqueror has_trait = greatest_of_khans } }
				modifier = { factor = 40 has_trait = ambitious }
				modifier = { factor = 30 has_trait = diligent }
				modifier = { factor = 30 has_trait = greedy }
				modifier = { factor = 25 OR = { prowess >= 16 martial >= 16 } }
				modifier = { factor = 30 OR = { prowess >= 24 martial >= 24 } }
				modifier = { factor = 40 OR = { prowess >= 32 martial >= 32 } }
				modifier = { factor = 25 has_trait = arrogant }
				modifier = { factor = 25 has_trait = brave }
				modifier = { factor = 4 has_trait = wrathful }
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = sadistic }
				modifier = { factor = 4 has_trait = zealous }
				modifier = { factor = 4 has_trait = impatient }
				add_trait = gpt_dragon
			}

			# Eagle: Fastidious
			# Traits: Ambitious, Arrogant, Brave, Honest, Zealous, Temperate, Just
			# Excludes: Cynical, Lazy, Eccentric, Fickle, Gluttonous, Arbitrary, Shy, Deceitful
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_eagle }
					AND = {
						OR = {
							has_trait = arrogant
							has_trait = greedy
							has_trait = honest
							has_trait = zealous
							has_trait = temperate
							has_trait = just
						}
						NOR = {
							has_trait = cynical # Added Cynical to NOR
							has_trait = lazy # Added Lazy to NOR
							has_trait = eccentric # Added Eccentric to NOR
							has_trait = fickle # Added Fickle to NOR
							has_trait = gluttonous # Added Gluttonous to NOR
							has_trait = arbitrary # Added Arbitrary to NOR
							has_trait = shy # Added Shy to NOR
							has_trait = deceitful # Added Deceitful to NOR
							has_trait = content
							has_trait = humble
						}
					}
				}
				modifier = { factor = 4 has_trait = arrogant }
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = honest }
				modifier = { factor = 4 has_trait = zealous }
				modifier = { factor = 4 has_trait = temperate }
				modifier = { factor = 4 has_trait = just }
				add_trait = gpt_eagle
			}

			# Elephant: Thoughtful
			# Traits: Compassionate, Calm, Generous, Honest, Diligent, Stubborn, Patient, Temperate, Just
			# Excludes: Craven, Callous, Sadistic, Wrathful, Greedy, Deceitful, Lazy, Eccentric, Fickle, Vengeful, Impatient, Gluttonous, Arbitrary, Paranoid
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_elephant }
					AND = {
						OR = {
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = honest
							has_trait = diligent
							has_trait = stubborn
							has_trait = patient
							has_trait = temperate
							has_trait = just
						}
						NOR = {
							has_trait = craven
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = greedy
							has_trait = deceitful
							has_trait = lazy
							has_trait = eccentric
							has_trait = fickle
							has_trait = vengeful
							has_trait = impatient
							has_trait = gluttonous
							has_trait = arbitrary
							has_trait = paranoid # Added Paranoid to NOR
						}
					}
				}
				modifier = { factor = 4 has_trait = compassionate }
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 4 has_trait = generous }
				modifier = { factor = 4 has_trait = honest }
				modifier = { factor = 4 has_trait = diligent }
				modifier = { factor = 4 has_trait = stubborn }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = temperate }
				modifier = { factor = 4 has_trait = just }
				add_trait = gpt_elephant
			}

			# Fox: Wily
			# Traits: Greedy, Deceitful, Cynical, Fickle, Arbitrary, Paranoid
			# Excludes: Generous, Honest, Zealous, Stubborn, Just, Trusting, Wrathful
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_fox }
					AND = {
						OR = {
							has_trait = greedy
							has_trait = deceitful
							has_trait = cynical
							has_trait = fickle
							has_trait = arbitrary
							has_trait = paranoid
						}
						NOR = {
							has_trait = generous
							has_trait = honest
							has_trait = zealous
							has_trait = stubborn
							has_trait = just
							has_trait = trusting
							has_trait = wrathful # Added Wrathful to NOR
						}
					}
				}
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = cynical }
				modifier = { factor = 4 has_trait = fickle }
				modifier = { factor = 4 has_trait = arbitrary }
				modifier = { factor = 4 has_trait = paranoid }
				add_trait = gpt_fox
			}

			# Hog: Boorish
			# Traits: Content, Humble, Honest, Lazy, Gregarious, Gluttonous, Lustful
			# Excludes: Ambitious, Brave, Sadistic, Craven, Zealous, Diligent, Shy, Temperate, Chaste, Patient, Deceitful
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_hog }
					AND = {
						OR = {
							has_trait = beauty_bad
							has_trait = intellect_bad
							has_trait = dull
							has_trait = giant
							has_trait = content
							has_trait = humble
							has_trait = honest
							has_trait = lazy
							has_trait = gregarious
							has_trait = gluttonous
							has_trait = lustful
							has_trait = arbitrary
							has_trait = arrogant
						}
						NOR = {
							has_trait = beauty_good
							has_trait = intellect_good
							has_trait = ambitious
							has_trait = brave
							has_trait = sadistic
							has_trait = craven
							has_trait = zealous
							has_trait = diligent
							has_trait = shy
							has_trait = temperate
							has_trait = chaste
							has_trait = patient
							has_trait = deceitful
							has_trait = education_intrigue_3
							has_trait = education_intrigue_4
							has_trait = education_intrigue_5
							has_trait = education_diplomacy_3
							has_trait = education_diplomacy_4
							has_trait = education_diplomacy_5
							has_trait = education_learning_2
							has_trait = education_learning_3
							has_trait = education_learning_4
							has_trait = education_learning_5
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 4 has_trait = honest }
				modifier = { factor = 4 has_trait = lazy }
				modifier = { factor = 4 has_trait = gregarious }
				modifier = { factor = 4 has_trait = gluttonous }
				modifier = { factor = 4 has_trait = lustful }
				modifier = { factor = 0.7 is_lowborn = no }
				modifier = { factor = 0.7 is_female = yes }
				add_trait = gpt_hog
			}

			# Lamb: Credulous
			# Traits: Content, Humble, Craven, Compassionate, Calm, Generous, Honest, Forgiving, Chaste
			# Excludes: Ambitious, Arrogant, Brave, Callous, Sadistic, Wrathful, Greedy, Deceitful, Zealous, Vengeful, Lustful
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_lamb }
					AND = {
						OR = {
							has_trait = content
							has_trait = humble
							has_trait = craven
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = honest
							has_trait = forgiving
							has_trait = chaste
						}
						NOR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = brave
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = greedy
							has_trait = deceitful
							has_trait = zealous
							has_trait = vengeful
							has_trait = lustful
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 4 has_trait = craven }
				modifier = { factor = 4 has_trait = compassionate }
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 4 has_trait = generous }
				modifier = { factor = 4 has_trait = honest }
				modifier = { factor = 4 has_trait = forgiving }
				modifier = { factor = 4 has_trait = chaste }
				modifier = { factor = 0.85 is_male = yes }
				modifier = { factor = 1.15 is_female = yes }
				add_trait = gpt_lamb
			}

			# Leopard: Methodical
			# Traits: Deceitful, Eccentric, Shy, Temperate, Chaste, Paranoid
			# Excludes: Compassionate, Generous, Honest, Fickle, Stubborn, Forgiving, Gregarious, Gluttonous, Lustful, Trusting
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_leopard }
					AND = {
						OR = {
							has_trait = deceitful
							has_trait = eccentric
							has_trait = shy
							has_trait = temperate
							has_trait = chaste
							has_trait = paranoid
						}
						NOR = {
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = fickle
							has_trait = stubborn
							has_trait = forgiving
							has_trait = gregarious
							has_trait = gluttonous
							has_trait = lustful
							has_trait = trusting
						}
					}
				}
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = eccentric }
				modifier = { factor = 4 has_trait = shy }
				modifier = { factor = 4 has_trait = temperate }
				modifier = { factor = 4 has_trait = chaste }
				modifier = { factor = 4 has_trait = paranoid }
				add_trait = gpt_leopard
			}

			# Lion: Heroic
			# Traits: Ambitious, Arrogant, Brave, Honest, Gregarious, Just, Diligent, Zealous
			# Excludes: Craven, Compassionate, Deceitful, Lazy, Fickle, Shy, Vengeful (removed), Arbitrary, Physical Flaws
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_lion }
					AND = {
						OR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = brave
							has_trait = honest
							has_trait = gregarious
							has_trait = just
							has_trait = diligent # Added Diligent
							has_trait = zealous # Added Zealous
						}
						NOR = {
							has_trait = craven
							has_trait = compassionate
							has_trait = deceitful
							has_trait = lazy
							has_trait = fickle
							has_trait = shy
							has_trait = vengeful # Removed Vengeful
							has_trait = arbitrary
							# Keeping physical flaws in NOR for heroism
							has_trait = physique_bad
							has_trait = beauty_bad
							has_trait = intellect_bad
						}
					}
				}
				modifier = { factor = 4 has_trait = ambitious }
				modifier = { factor = 4 has_trait = arrogant }
				modifier = { factor = 4 has_trait = brave }
				modifier = { factor = 2 has_trait = honest }
				modifier = { factor = 2 has_trait = vengeful } # Keeping Vengeful as a modifier
				modifier = { factor = 2 has_trait = gregarious }
				modifier = { factor = 4 has_trait = just }
				modifier = { factor = 0.85 is_female = yes }
				modifier = { factor = 1.15 is_male = yes }
				add_trait = gpt_lion
			}

			# Owl: Erudite
			# Traits: Callous, Calm, Honest, Cynical, Shy, Patient, Just
			# Excludes: Compassionate, Wrathful, Generous, Deceitful, Zealous, Gregarious, Impatient, Arbitrary, Lustful
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_owl }
					AND = {
						OR = {
							has_trait = callous # Kept, as wisdom can be cold
							has_trait = calm
							has_trait = honest
							has_trait = cynical
							has_trait = shy
							has_trait = patient
							has_trait = just
						}
						NOR = {
							has_trait = compassionate
							has_trait = wrathful
							has_trait = generous
							has_trait = deceitful
							has_trait = zealous
							has_trait = gregarious
							has_trait = impatient
							has_trait = arbitrary
							has_trait = lustful
						}
					}
				}
				modifier = { factor = 2 has_trait = callous }
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 2 has_trait = honest }
				modifier = { factor = 4 has_trait = cynical }
				modifier = { factor = 4 has_trait = shy }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = just }
				add_trait = gpt_owl
			}

			# Peacock: Vain
			# Traits: Arrogant, Deceitful, Zealous, Lazy, Eccentric, Fickle, Gluttonous, Arbitrary, Lustful
			# Excludes: Humble, Craven, Generous, Honest, Cynical, Diligent, Stubborn, Shy, Temperate, Just, Chaste
			50 = {
				trigger = {
					NOT = { has_character_flag = removed_peacock }
					AND = {
						OR = {
							has_trait = arrogant
							has_trait = lazy
							has_trait = eccentric
							has_trait = fickle
							has_trait = gluttonous
							has_trait = gregarious
							has_trait = ambitious
							has_trait = arbitrary
							has_trait = lustful
						}
						NOR = {
							has_trait = humble
							has_trait = content
							has_trait = callous
							has_trait = cynical
							has_trait = diligent
							has_trait = stubborn
							has_trait = patient
							has_trait = shy
							has_trait = temperate
							has_trait = chaste
						}
					}
				}
				modifier = { factor = 8 has_trait = arrogant }
				modifier = { factor = 4 has_trait = gregarious }
				modifier = { factor = 2 has_trait = zealous }
				modifier = { factor = 2 has_trait = lazy }
				modifier = { factor = 4 has_trait = eccentric }
				modifier = { factor = 4 has_trait = fickle }
				modifier = { factor = 4 has_trait = gluttonous }
				modifier = { factor = 4 has_trait = arbitrary }
				modifier = { factor = 4 has_trait = lustful }
				modifier = { factor = 1.3 is_lowborn = no }
				modifier = { factor = 0.7 is_lowborn = yes }
				modifier = { factor = 1.3 is_female = yes }
				add_trait = gpt_peacock
			}

			# Rabbit/Bunny: Prudent
			# Traits: Content, Humble, Craven, Impatient, Lustful
			# Excludes: Ambitious, Arrogant, Brave, Callous, Sadistic, Wrathful, Patient, Just, Chaste
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_bunny }
					AND = {
						OR = {
							has_trait = content
							has_trait = humble
							has_trait = craven
							has_trait = patient
							has_trait = shy
							has_trait = lazy
							has_trait = calm
						}
						NOR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = brave
							has_trait = gregarious
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = trusting
							has_trait = impatient
							has_trait = cynical
							has_trait = deceitful
							has_trait = lustful
						}
					}
				}
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 4 has_trait = craven }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = lazy }
				modifier = { factor = 4 has_trait = shy }
				modifier = { factor = 1.15 is_female = yes }
				modifier = { factor = 0.85 is_male = yes }
				add_trait = gpt_bunny
			}

			# Goat/Ram: Grumbling
			# Traits: Content, Humble, Diligent, Eccentric, Stubborn, Impatient, Gluttonous, Lustful
			# Excludes: Ambitious, Arrogant, Brave, Lazy, Fickle, Patient, Temperate, Chaste
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_goat }
					AND = {
						OR = {
							has_trait = content
							has_trait = humble
							has_trait = diligent
							has_trait = eccentric
							has_trait = stubborn
							has_trait = impatient
							has_trait = gluttonous
							has_trait = lustful
						}
						NOR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = brave
							has_trait = lazy
							has_trait = fickle
							has_trait = patient # Removed Patient
							has_trait = temperate # Removed Temperate
							has_trait = chaste
						}
					}
				}
				modifier = { factor = 4 has_trait = content }
				modifier = { factor = 4 has_trait = humble }
				modifier = { factor = 4 has_trait = diligent }
				modifier = { factor = 2 has_trait = eccentric }
				modifier = { factor = 4 has_trait = stubborn }
				modifier = { factor = 2 has_trait = impatient }
				modifier = { factor = 2 has_trait = gluttonous }
				modifier = { factor = 2 has_trait = lustful }
				modifier = { factor = 0.7 is_lowborn = yes }
				add_trait = gpt_goat
			}

			# Rat: Flatterer
			# Traits: Craven, Sadistic, Greedy, Deceitful, Cynical, Impatient, Gluttonous, Paranoid
			# Excludes: Brave, Compassionate, Generous, Honest, Zealous, Patient, Temperate, Just, Trusting
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_rat }
					AND = {
						OR = {
							has_trait = craven
							has_trait = sadistic
							has_trait = greedy
							has_trait = deceitful
							has_trait = cynical
							has_trait = impatient
							has_trait = gluttonous
							has_trait = paranoid
						}
						NOR = {
							has_trait = brave
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = zealous
							has_trait = patient
							has_trait = temperate
							has_trait = just
							has_trait = trusting
						}
					}
				}
				modifier = { factor = 4 has_trait = craven }
				modifier = { factor = 4 has_trait = sadistic }
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = cynical }
				modifier = { factor = 4 has_trait = impatient }
				modifier = { factor = 4 has_trait = gluttonous }
				modifier = { factor = 4 has_trait = paranoid }
				modifier = { factor = 0.7 is_lowborn = no }
				add_trait = gpt_rat
			}

			# Scorpion: Fearsome
			# Traits: Arrogant, Sadistic, Wrathful, Deceitful, Vengeful, Impatient, Arbitrary, Paranoid
			# Excludes: Compassionate, Calm, Generous, Honest, Forgiving, Gregarious, Patient, Just, Trusting
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_scorpion }
					AND = {
						OR = {
							has_trait = arrogant
							has_trait = sadistic
							has_trait = wrathful
							has_trait = deceitful
							has_trait = vengeful
							has_trait = impatient
							has_trait = arbitrary
							has_trait = paranoid
						}
						NOR = {
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = honest
							has_trait = forgiving
							has_trait = gregarious
							has_trait = patient
							has_trait = just
							has_trait = trusting
						}
					}
				}
				modifier = { factor = 4 has_trait = arrogant }
				modifier = { factor = 4 has_trait = sadistic }
				modifier = { factor = 4 has_trait = wrathful }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = vengeful }
				modifier = { factor = 4 has_trait = impatient }
				modifier = { factor = 4 has_trait = arbitrary }
				modifier = { factor = 4 has_trait = paranoid }
				add_trait = gpt_scorpion
			}

			# Snake: Malicious
			# Traits: Callous, Sadistic, Wrathful, Deceitful, Cynical, Vengeful, Paranoid
			# Excludes: Compassionate, Generous, Honest, Zealous, Forgiving, Just, Trusting
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_snake }
					AND = {
						OR = {
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = deceitful
							has_trait = cynical
							has_trait = vengeful
							has_trait = paranoid
						}
						NOR = {
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = zealous
							has_trait = forgiving
							has_trait = just
							has_trait = trusting
							has_trait = lazy
						}
					}
				}
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = sadistic }
				modifier = { factor = 4 has_trait = wrathful }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = cynical }
				modifier = { factor = 4 has_trait = vengeful }
				modifier = { factor = 4 has_trait = paranoid }
				modifier = { factor = 1.15 is_female = yes }
				modifier = { factor = 0.85 is_male = yes }
				add_trait = gpt_snake
			}

			# Stag: Composed
			# Traits: Zealous, Forgiving, Patient, Temperate, Just
			# Excludes: Craven, Cynical, Vengeful, Impatient, Gluttonous, Arbitrary, Lustful, Chaste
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_stag }
					AND = {
						OR = {
							has_trait = zealous
							has_trait = forgiving
							has_trait = patient
							has_trait = temperate
							has_trait = just
						}
						NOR = {
							has_trait = craven
							has_trait = cynical
							has_trait = vengeful
							has_trait = impatient
							has_trait = gluttonous
							has_trait = arbitrary
							has_trait = lustful
							has_trait = chaste # Removed Chaste
						}
					}
				}
				modifier = { factor = 4 has_trait = zealous }
				modifier = { factor = 4 has_trait = forgiving }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = temperate }
				modifier = { factor = 4 has_trait = just }
				modifier = { factor = 0.7 is_lowborn = yes }
				add_trait = gpt_stag
			}

			# Stallion: Competitive
			# Traits: Ambitious, Arrogant, Generous, Zealous, Stubborn, Gregarious, Impatient, Lustful
			# Excludes: Content, Humble, Craven, Greedy, Deceitful, Cynical, Eccentric, Fickle, Shy, Patient, Chaste
			50 = {
				trigger = {
					NOT = { has_character_flag = removed_stallion }
					AND = {
						OR = {
							has_trait = ambitious
							has_trait = arrogant
							has_trait = generous
							has_trait = zealous
							has_trait = stubborn
							has_trait = gregarious
							has_trait = impatient
							has_trait = lustful
						}
						NOR = {
							has_trait = content
							has_trait = humble
							has_trait = craven
							has_trait = greedy
							has_trait = deceitful
							has_trait = cynical
							has_trait = eccentric
							has_trait = fickle
							has_trait = shy
							has_trait = patient
							has_trait = chaste
						}
					}
				}
				modifier = { factor = 4 has_trait = ambitious }
				modifier = { factor = 3 has_trait = arrogant }
				modifier = { factor = 2 has_trait = generous }
				modifier = { factor = 4 has_trait = zealous }
				modifier = { factor = 4 has_trait = stubborn }
				modifier = { factor = 3 has_trait = gregarious }
				modifier = { factor = 4 has_trait = impatient }
				modifier = { factor = 4 has_trait = lustful }
				modifier = { factor = 0.7 is_female = yes }
				add_trait = gpt_stallion
			}

			# Stork: Nurturing
			# Traits: Compassionate, Calm, Patient, Temperate, Just, Chaste, Trusting
			# Excludes: Callous, Sadistic, Wrathful, Impatient, Gluttonous, Arbitrary, Lustful, Paranoid
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_stork }
					AND = {
						OR = {
							has_trait = compassionate
							has_trait = calm
							has_trait = patient
							has_trait = temperate
							has_trait = just
							has_trait = chaste
							has_trait = trusting
						}
						NOR = {
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = impatient
							has_trait = gluttonous
							has_trait = arbitrary
							has_trait = lustful
							has_trait = paranoid # Added Paranoid to NOR
						}
					}
				}
				modifier = { factor = 4 has_trait = compassionate }
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = temperate }
				modifier = { factor = 2 has_trait = just }
				modifier = { factor = 4 has_trait = chaste }
				modifier = { factor = 2 has_trait = trusting }
				modifier = { factor = 1.15 is_female = yes }
				modifier = { factor = 0.85 is_male = yes }
				add_trait = gpt_stork
			}

			# Swan: Charismatic
			# Traits: Arrogant, Compassionate, Calm, Chaste
			# Excludes: Humble, Callous, Sadistic, Wrathful, Diligent, Lustful, Lazy
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_swan }
					AND = {
						OR = {
							has_trait = arrogant
							has_trait = compassionate
							has_trait = calm
							has_trait = chaste
						}
						NOR = {
							has_trait = humble
							has_trait = callous
							has_trait = sadistic
							has_trait = wrathful
							has_trait = diligent
							has_trait = lustful
							has_trait = lazy # Removed Lazy
						}
					}
				}
				modifier = { factor = 4 has_trait = arrogant }
				modifier = { factor = 4 has_trait = compassionate }
				modifier = { factor = 4 has_trait = calm }
				modifier = { factor = 2 has_trait = lazy } # Kept Lazy as a modifier for flavor
				modifier = { factor = 4 has_trait = chaste }
				modifier = { factor = 1.15 is_female = yes }
				modifier = { factor = 0.85 is_male = yes }
				add_trait = gpt_swan
			}

			# Tiger: Purposeful
			# Traits: Brave, Callous, Wrathful, Deceitful, Fickle, Shy
			# Excludes: Humble, Craven, Compassionate, Calm, Generous, Honest, Lazy, Stubborn, Forgiving, Gregarious, Trusting
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_tiger }
					AND = {
						OR = {
							has_trait = brave
							has_trait = callous
							has_trait = wrathful
							has_trait = deceitful
							has_trait = fickle
							has_trait = shy
						}
						NOR = {
							has_trait = humble
							has_trait = craven
							has_trait = compassionate
							has_trait = calm
							has_trait = generous
							has_trait = honest
							has_trait = lazy
							has_trait = stubborn
							has_trait = forgiving
							has_trait = gregarious
							has_trait = trusting
						}
					}
				}
				modifier = { factor = 4 has_trait = brave }
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = wrathful }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = fickle }
				modifier = { factor = 4 has_trait = shy }
				modifier = { factor = 0.7 is_lowborn = no }
				add_trait = gpt_tiger
			}

			# Vulture: Opportunistic
			# Traits: Callous, Sadistic, Greedy, Deceitful, Cynical, Arbitrary
			# Excludes: Ambitious, Compassionate, Generous, Honest, Zealous, Diligent, Forgiving, Gregarious, Impatient, Just, Trusting
			200 = {
				trigger = {
					NOT = { has_character_flag = removed_vulture }
					AND = {
						OR = {
							has_trait = callous
							has_trait = sadistic
							has_trait = greedy
							has_trait = deceitful
							has_trait = cynical
							has_trait = arbitrary
						}
						NOR = {
							has_trait = ambitious
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = zealous
							has_trait = diligent
							has_trait = forgiving
							has_trait = gregarious
							has_trait = impatient
							has_trait = just
							has_trait = trusting
							has_trait = patient # Removed Patient
						}
					}
				}
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = sadistic }
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = cynical }
				modifier = { factor = 2 has_trait = patient } # Kept Patient as a modifier
				modifier = { factor = 4 has_trait = arbitrary }
				add_trait = gpt_vulture
			}

			# Wolf: Principled
			# Traits: Brave, Diligent, Gregarious, Patient, Trusting
			# Excludes: Craven, Lazy, Forgiving, Shy, Gluttonous, Paranoid, Fickle
			75 = {
				trigger = {
					NOT = { has_character_flag = removed_wolf }
					AND = {
						OR = {
							has_trait = brave
							has_trait = diligent
							has_trait = gregarious
							has_trait = patient
							has_trait = trusting
						}
						NOR = {
							has_trait = craven
							has_trait = lazy
							has_trait = forgiving # Removed Forgiving
							has_trait = shy
							has_trait = gluttonous
							has_trait = paranoid
							has_trait = fickle # Added Fickle to NOR
						}
					}
				}
				modifier = { factor = 4 has_trait = brave }
				modifier = { factor = 4 has_trait = diligent }
				modifier = { factor = 4 has_trait = gregarious }
				modifier = { factor = 4 has_trait = patient }
				modifier = { factor = 4 has_trait = trusting }
				modifier = { factor = 1.15 is_male = yes }
				modifier = { factor = 0.85 is_female = yes }
				add_trait = gpt_wolf
			}

			# Weasel: Audacious
			# Traits: Callous, Greedy, Deceitful, Fickle, Impatient, Paranoid
			# Excludes: Brave, Compassionate, Generous, Honest, Stubborn, Patient, Trusting
			100 = {
				trigger = {
					NOT = { has_character_flag = removed_weasel }
					AND = {
						OR = {
							has_trait = callous
							has_trait = greedy
							has_trait = deceitful
							has_trait = fickle
							has_trait = impatient
							has_trait = paranoid
						}
						NOR = {
							has_trait = brave
							has_trait = compassionate
							has_trait = generous
							has_trait = honest
							has_trait = stubborn
							has_trait = patient
							has_trait = trusting
						}
					}
				}
				modifier = { factor = 4 has_trait = callous }
				modifier = { factor = 4 has_trait = greedy }
				modifier = { factor = 4 has_trait = deceitful }
				modifier = { factor = 4 has_trait = fickle }
				modifier = { factor = 2 has_trait = impatient }
				modifier = { factor = 2 has_trait = paranoid }
				modifier = { factor = 0.85 is_female = yes }
				modifier = { factor = 1.15 is_male = yes }
				add_trait = gpt_weasel
			}
		}
	}
}