﻿
on_birthday = {
	on_actions = {
		mbti_on_action
		mbti_origin_lowborn_male
		mbti_origin_lowborn_female
		mbti_origin_lowborn_child
		mbti_dreadful_traits
		mbti_virtuous_traits
		mbti_highborn_nomads
		mbti_highborn_tribal
		mbti_tribal_lowborn_male
		mbti_tribal_lowborn_female
	}
	on_actions = {
		delay = { days = 1 }
		mbti_on_action_2
		mbti_on_action_factsup
		mbti_faction_low_member_trib
		mbti_faction_high_member_trib
	}
	on_actions = {
		delay = { days = 2 }
		mbti_on_action_5
		mbti_on_action_factopo
	}
	on_actions = {
		delay = { days = 3 }
		mbti_on_action_3
		mbti_on_action_war
	}
}

on_guest_arrived_from_pool = {
	on_actions = {
		mbti_on_action
		mbti_origin_lowborn_male
		mbti_origin_lowborn_female
		mbti_origin_lowborn_child
		mbti_highborn_nomads
		mbti_highborn_tribal
		mbti_tribal_lowborn_male
		mbti_tribal_lowborn_female
	}
	on_actions = {
		delay = { days = 1 }
		mbti_on_action_2
		mbti_on_action_factsup
		mbti_faction_low_member_trib
		mbti_faction_high_member_trib
	}
	on_actions = {
		delay = { days = 2 }
		mbti_on_action_5
		mbti_on_action_factopo
	}
	on_actions = {
		delay = { days = 3 }
		mbti_on_action_3
		mbti_on_action_war
	}
}

on_join_court = {
	on_actions = {
		mbti_on_action
		mbti_origin_lowborn_male
		mbti_origin_lowborn_female
		mbti_origin_lowborn_child
		mbti_highborn_nomads
		mbti_highborn_tribal
		mbti_tribal_lowborn_male
		mbti_tribal_lowborn_female
	}
	on_actions = {
		delay = { days = 1 }
		mbti_on_action_2
		mbti_on_action_factsup
		mbti_faction_low_member_trib
		mbti_faction_high_member_trib
	}
	on_actions = {
		delay = { days = 2 }
		mbti_on_action_5
		mbti_on_action_factopo
	}
	on_actions = {
		delay = { days = 3 }
		mbti_on_action_3
		mbti_on_action_war
	}
}


#civilized

mbti_origin_lowborn_male = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		is_landless_adventurer = no
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
			has_game_rule = GPT_few_traits
		}
		is_adult = yes
		is_lowborn = yes
		is_male = yes
		NOT = { has_character_flag = mbti_origin_lowborn_flag }
	}
	effect = {
		add_character_flag = {
			flag = mbti_origin_lowborn_flag
		}
		add_character_flag = {
			flag = mbti_1
		}
		add_character_flag = {
			flag = mbti_2
		}
		add_character_flag = {
			flag = mbti_3
		}
		add_character_flag = {
			flag = mbti_5
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_origin_lowborn_title
			desc = mbti_origin_lowborn_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {

			## AI Personality Based

			0 = {
				modifier = {
					add = 50000
					ai_rationality >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_genius
			}
			0 = {
				modifier = {
					add = 50000
					ai_boldness >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
						has_trait = compassionate
						has_trait = forgiving
					}
					OR = {
						has_trait = sadistic
						has_trait = wrathful
						has_trait = arbitrary					
					}
				}
				add_trait = origin_dreadful
			}
			0 = {
				modifier = {
					add = 50000
					ai_zeal >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_chaplain
			}
			0 = {
				modifier = {
					add = 50000
					ai_sociability >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_courtfriend
			}
			0 = {
				modifier = {
					add = 30000
					OR = {
						ai_greed >= 100
						has_trait = ambitious
					}
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_ambitious
			}
			0 = {
				modifier = {
					add = 50000
					ai_compassion >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_wise
			}
			0 = {
				modifier = {
					add = 50000
					ai_honor >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_court_servant
			}

			## LOW SKILL 1/2 Education

			0 = {
				modifier = {add = 20000 has_trait = education_diplomacy_1 }
				modifier = {add = 20000 has_trait = education_intrigue_1 }
				modifier = {add = 20000 has_trait = education_stewardship_1 }
				modifier = {add = 20000 has_trait = education_learning_1 }
				modifier = {add = 20000 has_trait = education_martial_1 }
				add_trait = origin_farmer
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				add_trait = origin_servant
			}
			0 = {
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_intrigue_2 }
				add_trait = origin_streeturchin
			}
			0 = {
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_armyfollower
			}
			0 = {
				modifier = {add = 25000 has_trait = education_learning_1 }
				modifier = {add = 25000 has_trait = education_learning_2 }
				add_trait = origin_clergyservant
			}
			0 = {
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_craftsman
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				add_trait = origin_city_serviceprovider
			}
			0 = {
				modifier = {add = 25000 has_trait = education_martial_1 }
				modifier = {add = 25000 has_trait = education_martial_2 }
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_explorer
			}
			0 = {
			 	modifier = {add = 15000 has_trait = education_martial_1 }
			 	modifier = {add = 15000 has_trait = education_martial_2 }
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				add_trait = origin_outdoorsman
			}

			## LOW SKILL (mostly man)

			0 = {
				modifier = {add = 25000 has_trait = education_martial_1 }
				modifier = {add = 25000 has_trait = education_martial_2 }
				add_trait = origin_formersoldier
			}
			0 = {
				modifier = {add = 25000 has_trait = education_martial_1 }
				modifier = {add = 25000 has_trait = education_martial_2 }
				add_trait = origin_guard
			}
			0 = {
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_intrigue_2 }
				add_trait = origin_outlaw
			}
			0 = {
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_formerpoacher
			}
			0 = {
				modifier = {add = 25000 has_trait = education_learning_1 }
				modifier = {add = 25000 has_trait = education_learning_2 }
				add_trait = origin_wanderer
			}
			0 = {
			 	modifier = {add = 25000 has_trait = education_martial_1 }
			 	modifier = {add = 25000 has_trait = education_martial_2 }
				add_trait = origin_knight_squire
			}

			## HIGH SKILL 3/4 Education

			0 = {
				modifier = {add = 20000 has_trait = education_diplomacy_3 }
				modifier = {add = 10000 has_trait = education_diplomacy_4 }
				modifier = {add = 20000 has_trait = education_intrigue_3 }
				modifier = {add = 10000 has_trait = education_intrigue_4 }
				modifier = {add = 20000 has_trait = education_stewardship_3 }
				modifier = {add = 10000 has_trait = education_stewardship_4 }
				modifier = {add = 20000 has_trait = education_learning_3 }
				modifier = {add = 10000 has_trait = education_learning_4 }
				modifier = {add = 20000 has_trait = education_martial_3 }
				modifier = {add = 10000 has_trait = education_martial_4 }
				add_trait = origin_disinherited
			}
			0 = {
				modifier = {add = 5000 has_trait = education_diplomacy_3 }
				modifier = {add = 5000 has_trait = education_intrigue_3 }
				modifier = {add = 5000 has_trait = education_stewardship_3 }
				modifier = {add = 5000 has_trait = education_learning_3 }
				modifier = {add = 5000 has_trait = education_martial_3 }
				add_trait = origin_skilled_slave
			}
			0 = {
				modifier = {add = 20000 has_trait = education_diplomacy_3 }
				modifier = {add = 30000 has_trait = education_diplomacy_4 }
				add_trait = origin_herald
			}
			0 = {
				modifier = {add = 20000 has_trait = education_diplomacy_3 }
				modifier = {add = 30000 has_trait = education_diplomacy_4 }
				add_trait = origin_entertainer
			}
			0 = {
				modifier = {add = 20000 has_trait = education_stewardship_3 }
				modifier = {add = 30000 has_trait = education_stewardship_4 }
				add_trait = origin_merchant
			}
			0 = {
				modifier = {add = 20000 has_trait = education_stewardship_3 }
				modifier = {add = 30000 has_trait = education_stewardship_4 }
				add_trait = origin_steward
			}
			0 = {
				modifier = {add = 20000 has_trait = education_martial_3 }
				modifier = {add = 30000 has_trait = education_martial_4 }
				add_trait = origin_commanderassistant
			}
			0 = {
				modifier = {add = 20000 has_trait = education_martial_3 }
				modifier = {add = 30000 has_trait = education_martial_4 }
				add_trait = origin_mercenary
			}
			0 = {
				modifier = {add = 20000 has_trait = education_intrigue_3 }
				modifier = {add = 30000 has_trait = education_intrigue_4 }
				modifier = {add = -10000 age <= 21 }
				add_trait = origin_skilled_middleman
			}
			0 = {
				modifier = {add = 20000 has_trait = education_intrigue_3 }
				modifier = {add = 30000 has_trait = education_intrigue_4 }
				modifier = {add = -10000 age <= 21 }
				add_trait = origin_information_broker
			}
			0 = {
				modifier = {add = 20000 has_trait = education_learning_3 }
				modifier = {add = 30000 has_trait = education_learning_4 }
				add_trait = origin_scholar
			}
			0 = {
				modifier = {add = 20000 has_trait = education_learning_3 }
				modifier = {add = 30000 has_trait = education_learning_4 }
				add_trait = origin_scribe
			}
		}
	}	
}

mbti_origin_lowborn_female = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		is_landless_adventurer = no
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
			has_game_rule = GPT_few_traits
		}
		is_adult = yes
		is_female = yes
		is_lowborn = yes
		NOT = { has_character_flag = mbti_origin_lowborn_flag }
	}
	effect = {
		add_character_flag = {
			flag = mbti_origin_lowborn_flag
		}
		add_character_flag = {
			flag = mbti_1
		}
		add_character_flag = {
			flag = mbti_2
		}
		add_character_flag = {
			flag = mbti_3
		}
		add_character_flag = {
			flag = mbti_5
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_origin_lowborn_title
			desc = mbti_origin_lowborn_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {

			## AI Personality Based

			0 = {
				modifier = {
					add = 50000
					ai_rationality >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_genius
			}
			0 = {
				modifier = {
					add = 50000
					ai_boldness >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
						has_trait = compassionate
						has_trait = forgiving
					}
					OR = {
						has_trait = sadistic
						has_trait = wrathful
						has_trait = arbitrary					
					}
					OR = {
						has_trait = education_martial_3
						has_trait = education_martial_4
					}
				}
				add_trait = origin_dreadful
			}
			0 = {
				modifier = {
					add = 50000
					ai_zeal >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_chaplain
			}
			0 = {
				modifier = {
					add = 50000
					ai_sociability >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_courtfriend
			}
			0 = {
				modifier = {
					add = 30000
					OR = {
						ai_greed >= 100
						has_trait = ambitious
					}
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_ambitious
			}
			0 = {
				modifier = {
					add = 50000
					ai_compassion >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_wise
			}
			0 = {
				modifier = {
					add = 50000
					ai_honor >= 100
					NOR = {
						has_trait = education_diplomacy_3
						has_trait = education_diplomacy_4
						has_trait = education_martial_3
						has_trait = education_martial_4
						has_trait = education_stewardship_3
						has_trait = education_stewardship_4
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = education_intrigue_3
						has_trait = education_intrigue_4
					}
				}
				add_trait = origin_court_servant
			}

			## LOW SKILL 1/2 Education

			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_learning_1 }
				modifier = {add = 25000 has_trait = education_martial_1 }
				add_trait = origin_farmer
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				add_trait = origin_servant
			}
			0 = {
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_intrigue_2 }
				add_trait = origin_streeturchin
			}
			0 = {
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_armyfollower
			}
			0 = {
				modifier = {add = 25000 has_trait = education_learning_1 }
				modifier = {add = 25000 has_trait = education_learning_2 }
				add_trait = origin_clergyservant
			}
			0 = {
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_craftsman
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				add_trait = origin_city_serviceprovider
			}
			0 = {
				modifier = {add = 25000 has_trait = education_martial_1 }
				modifier = {add = 25000 has_trait = education_martial_2 }
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_explorer
			}
			0 = {
			 	modifier = {add = 15000 has_trait = education_martial_1 }
			 	modifier = {add = 15000 has_trait = education_martial_2 }
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				add_trait = origin_outdoorsman
			}

			## HIGH SKILL 3/4 Education

			0 = {
				modifier = {add = 20000 has_trait = education_diplomacy_3 }
				modifier = {add = 10000 has_trait = education_diplomacy_4 }
				modifier = {add = 20000 has_trait = education_intrigue_3 }
				modifier = {add = 10000 has_trait = education_intrigue_4 }
				modifier = {add = 20000 has_trait = education_stewardship_3 }
				modifier = {add = 10000 has_trait = education_stewardship_4 }
				modifier = {add = 20000 has_trait = education_learning_3 }
				modifier = {add = 10000 has_trait = education_learning_4 }
				modifier = {add = 20000 has_trait = education_martial_3 }
				modifier = {add = 10000 has_trait = education_martial_4 }
				add_trait = origin_disinherited
			}
			0 = {
				modifier = {add = 5000 has_trait = education_diplomacy_3 }
				modifier = {add = 5000 has_trait = education_intrigue_3 }
				modifier = {add = 5000 has_trait = education_stewardship_3 }
				modifier = {add = 5000 has_trait = education_learning_3 }
				modifier = {add = 5000 has_trait = education_martial_3 }
				add_trait = origin_skilled_slave
			}
			0 = {
				modifier = {add = 10000 has_trait = education_diplomacy_3 }
				modifier = {add = 20000 has_trait = education_diplomacy_4 }
				add_trait = origin_herald
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_3 }
				modifier = {add = 50000 has_trait = education_diplomacy_4 }
				add_trait = origin_entertainer
			}
			0 = {
				modifier = {add = 20000 has_trait = education_learning_3 }
				modifier = {add = 30000 has_trait = education_learning_4 }
				add_trait = origin_scribe
			}

			## Low Skill Woman

			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_intrigue_2 }
				modifier = {add = 25000 has_trait = education_learning_1 }
				modifier = {add = 25000 has_trait = education_learning_2 }
				add_trait = origin_chaperone
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_learning_1 }
				modifier = {add = 25000 has_trait = education_martial_1 }
				modifier = {add = -25000 age <= 20 }
				add_trait = origin_wetnurse
			}
			0 = {
				modifier = {add = 10000 has_trait = education_diplomacy_1 }
				modifier = {add = 10000 has_trait = education_intrigue_1 }
				modifier = {add = 10000 has_trait = education_stewardship_1 }
				modifier = {add = 10000 has_trait = education_learning_1 }
				modifier = {add = 10000 has_trait = education_martial_1 }
				add_trait = origin_slave_companion
			}
			0 = {
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				modifier = {add = 25000 has_trait = education_martial_1 }
				modifier = {add = 25000 has_trait = education_martial_2 }
				modifier = {add = -25000 age <= 18 }
				add_trait = origin_courtprostitute
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				modifier = {add = 25000 has_trait = education_intrigue_1 }
				modifier = {add = 25000 has_trait = education_intrigue_2 }
				add_trait = origin_lover
			}
			0 = {
				modifier = {add = 25000 has_trait = education_diplomacy_1 }
				modifier = {add = 25000 has_trait = education_diplomacy_2 }
				modifier = {add = 25000 has_trait = education_stewardship_1 }
				modifier = {add = 25000 has_trait = education_stewardship_2 }
				add_trait = origin_courtmaid
			}
			0 = {
			 	modifier = {add = 10000 has_trait = education_martial_1 }
			 	modifier = {add = 25000 has_trait = education_martial_2 }
				add_trait = origin_femalesquire
			}

			## High Skill Woman
			
			0 = {
				modifier = {add = 30000 has_trait = education_diplomacy_3 }
				modifier = {add = 30000 has_trait = education_diplomacy_4 }
				modifier = {add = 30000 has_trait = education_learning_3 }
				modifier = {add = 30000 has_trait = education_learning_4 }
				add_trait = origin_independent_woman
			}
			0 = {
				modifier = {add = 30000 has_trait = education_intrigue_3 }
				modifier = {add = 30000 has_trait = education_intrigue_4 }
				modifier = {add = 30000 has_trait = education_stewardship_3 }
				modifier = {add = 30000 has_trait = education_stewardship_4 }
				add_trait = origin_ambitious_woman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_martial_3 }
				modifier = {add = 50000 has_trait = education_martial_4 }
				add_trait = origin_skilled_fighter
			}
			0 = {
				modifier = {add = 30000 has_trait = education_diplomacy_3 }
				modifier = {add = 30000 has_trait = education_diplomacy_4 }
				modifier = {add = 30000 has_trait = education_intrigue_3 }
				modifier = {add = 30000 has_trait = education_intrigue_4 }
				add_trait = origin_mysterious_seductress
			}
		}
	}	
}

mbti_origin_lowborn_child = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		is_landless_adventurer = no
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
			has_game_rule = GPT_few_traits
		}
		is_adult = no
		is_lowborn = yes
		NOT = { has_character_flag = mbti_origin_lowborn_flag }
	}
	effect = {
		add_character_flag = {
			flag = mbti_origin_lowborn_flag
		}
		add_character_flag = {
			flag = mbti_1
		}
		add_character_flag = {
			flag = mbti_2
		}
		add_character_flag = {
			flag = mbti_3
		}
		add_character_flag = {
			flag = mbti_5
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_origin_lowborn_title
			desc = mbti_origin_lowborn_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
			## Children
			0 = {
				modifier = {
					add = 100000
					OR = {
						has_father = yes
						has_mother = yes
					}
				}
				add_trait = origin_courtborn
			}
			100 = {
				add_trait = origin_court_servant_child
			}
			100 = {
				add_trait = origin_adopted_orphan
			}
			100 = {
				add_trait = origin_bastard_courtier
			}
			100 = {
				add_trait = origin_servant_raised_by_courtier
			}
		}
	}	
}


mbti_dreadful_traits = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		is_landless_adventurer = no
		OR = {
			has_game_rule = GPT_all_traits
		}
		is_adult = yes
		is_ruler = yes
	 #	highest_held_title_tier >= 2
		OR = {
			AND = {
				age >= 45
				days_as_ruler >= 1800
			}
			AND = {
				age < 45
				days_as_ruler >= 3500
			}
		}
		NOT = { has_character_flag = mbti_dreadful_flag }
		NOR = {
			has_trait = compassionate
			has_trait = forgiving
			has_trait = humble
			has_trait = content
			has_trait = just
			has_trait = craven
			has_trait = temperate
			has_trait = chaste
			has_trait = honest
			has_trait = zealous
			has_trait = mbti_infj
			has_trait = mbti_infp
			has_trait = mbti_isfj
			has_trait = mbti_esfj
			has_trait = mbti_isfp
			has_trait = mbti_infj_3
			has_trait = mbti_extra_5
			num_virtuous_traits >= 2
			has_trait = dull
		}
		OR = {
			tyranny >= 40
			dread >= 100
			num_sinful_traits >= 2
			AND = {
				dread >= 75
				OR = {
				 #	has_trait = ambitious
				 #	has_trait = greedy
				 #	has_trait = brave
				 #	has_trait = impatient
				 #	has_trait = stubborn
				 #	has_trait = wrathful
				 #	has_trait = lustful
				 #	has_trait = vengeful
				 	has_trait = callous
				 	has_trait = arbitrary
					has_trait = murderer
					has_trait = excommunicated
					has_trait = kinslayer
					has_trait = deviant
					has_trait = kinslayer_1
					has_trait = kinslayer_2
					has_trait = kinslayer_3
					has_trait = cannibal
					has_trait = witch
					has_trait = torturer
					has_trait = schemer
					has_trait = seducer
					has_trait = avaricious
					has_trait = lunatic
					has_trait = lunatic_1
					has_trait = lunatic_genetic
					has_trait = possessed
					has_trait = possessed_1
					has_trait = possessed_genetic
					has_trait = beauty_bad_2
					has_trait = beauty_bad_3
					has_trait = greatest_of_khans
					has_trait = berserker
					has_trait = disloyal
					piety_level < 0
					prestige_level < 0
				 	stress_level >= 2
					OR = {
						government_has_flag = government_is_tribal
						government_has_flag = government_is_nomadic
					}
				}
			}
		}
	}
	effect = {
		add_character_flag = {
			flag = mbti_dreadful_flag
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_dreadful_traits_title
			desc = mbti_dreadful_traits_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
			0 = {
				modifier = {
					add = 1500
					OR = {
						has_trait = lustful
						has_trait = seducer
						has_trait = incestuous
						has_trait = adulterer
						has_trait = fornicator
						has_trait = rakish
					}
					NOR = {
						has_trait = shy
						has_trait = reclusive
						has_trait = dull
					}
				}
				add_trait = dread_buff_lustful_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = ambitious
						has_trait = calm
						has_trait = patient
						has_trait = greedy
						has_trait = avaricious
						has_trait = architect
						has_trait = administrator
						has_trait = sadistic
						has_trait = callous
						has_trait = arbitrary
						has_trait = diligent
						has_trait = intellect_good_2
						has_trait = intellect_good_3
						stewardship >= 24
					}
					NOR = {
						has_trait = generous
						has_trait = trusting
					}
				}
				add_trait = dread_buff_ambitious_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = lazy
						has_trait = patient
						has_trait = intellect_bad_1
						has_trait = intellect_bad_2
						has_trait = intellect_bad_3
						has_trait = hashishiyah
						has_trait = reclusive
						has_trait = drunkard
						has_trait = depressed
						has_trait = depressed_1
						has_trait = depressed_genetic
						learning >= 24
					}
					NOR = {
						has_trait = ambitious
						has_trait = greedy
						has_trait = diligent
						has_trait = brave
						has_trait = paranoid
					}
				}
				add_trait = dread_buff_lazy_trait
			}
			0 = {
				modifier = {
					add = 500
					NOR = {
						has_trait = lazy
						has_trait = patient
						has_trait = intellect_bad_1
						has_trait = intellect_bad_2
						has_trait = intellect_bad_3
						has_trait = reclusive
						has_trait = depressed
						has_trait = depressed_1
						has_trait = depressed_genetic
						learning >= 24
					}
					NOR = {
						has_trait = generous
						has_trait = trusting
					}
				}
				add_trait = dread_buff_vengeful_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = ambitious
						has_trait = calm
						has_trait = patient
						has_trait = greedy
						has_trait = avaricious
						has_trait = architect
						has_trait = administrator
						has_trait = sadistic
						has_trait = callous
						has_trait = arbitrary
						has_trait = diligent
						has_trait = intellect_good_2
						has_trait = intellect_good_3
						stewardship >= 24
					}
					NOR = {
						has_trait = generous
						has_trait = trusting
					}
				}
				add_trait = dread_buff_greedy_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = seducer
						has_trait = torturer
						has_trait = schemer
						has_trait = deceitful
						has_trait = vengeful
						has_trait = sadistic
						has_trait = paranoid
						has_trait = eunuch
						has_trait = intellect_good_2
						has_trait = intellect_good_3
						has_trait = murderer
						has_trait = deviant
						has_trait = witch
						has_trait = lifestyle_herbalist
						intrigue >= 24
					}
					NOR = {
						has_trait = generous
						has_trait = trusting
					}
				}
				add_trait = dread_buff_deceitful_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = schemer
						has_trait = deceitful
						has_trait = arrogant
						has_trait = brave
						has_trait = gallant
						has_trait = lifestyle_blademaster
						has_trait = lifestyle_hunter
						intrigue >= 24
						prowess >= 28
					}
				}
				add_trait = dread_buff_arrogant_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = reaver
						has_trait = adventurer
						has_trait = berserker
						has_trait = wrathful
						has_trait = brave
						has_trait = arrogant
						has_trait = gallant
						has_trait = lifestyle_blademaster
						martial >= 24
						prowess >= 28
					}
					NOR = {
						has_trait = shy
						has_trait = reclusive
					}
				}
				add_trait = dread_buff_arbitrary_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = wrathful
						has_trait = ambitious
						has_trait = gluttonous
						has_trait = lustful
						has_trait = arrogant
						has_trait = generous
						has_trait = gregarious
						has_trait = impatient
						has_trait = trusting
						has_trait = profligate
						has_trait = august
						has_trait = family_first
						has_trait = diplomat
						diplomacy >= 24
					}
					NOR = {
						has_trait = greedy
						has_trait = diligent
					}
				}
				add_trait = dread_buff_gluttonous_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = cynical
						has_trait = heresiarch
						has_trait = devoted
						has_trait = pilgrim
						has_trait = lifestyle_reveler
						has_trait = theologian
						has_trait = scholar
						has_trait = witch
						has_trait = excommunicated
						has_trait = sodomite
						has_trait = reincarnation
						has_trait = pure_blooded
						learning >= 24
					}
					NOR = {
						has_trait = shy
						has_trait = reclusive
					}
				}
				add_trait = dread_buff_cynical_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = ambitious
						has_trait = calm
						has_trait = patient
						has_trait = greedy
						has_trait = avaricious
						has_trait = architect
						has_trait = administrator
						has_trait = sadistic
						has_trait = callous
						has_trait = arbitrary
						has_trait = diligent
						has_trait = intellect_good_2
						has_trait = intellect_good_3
						stewardship >= 24
					}
					NOR = {
						has_trait = generous
						has_trait = trusting
					}
				}
				add_trait = dread_buff_callous_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = cynical
						has_trait = heresiarch
						has_trait = devoted
						has_trait = pilgrim
						has_trait = sadistic
						has_trait = theologian
						has_trait = scholar
						has_trait = witch
						has_trait = excommunicated
						has_trait = sodomite
						has_trait = reincarnation
						has_trait = pure_blooded
						has_trait = family_first
						learning >= 24
					}
				}
				add_trait = dread_buff_sadistic_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = cynical
						has_trait = heresiarch
						has_trait = theologian
						has_trait = scholar
						has_trait = deceitful
						has_trait = paranoid
						has_trait = ambitious
						has_trait = paranoid
						has_trait = diligent
						has_trait = patient
						has_trait = callous
						learning >= 24
					}
				}
				add_trait = dread_buff_educate_trait
			}
			0 = {
				modifier = {
					add = 500
					NOR = {
						has_trait = lazy
						has_trait = patient
						has_trait = intellect_bad_1
						has_trait = intellect_bad_2
						has_trait = intellect_bad_3
						has_trait = reclusive
						has_trait = depressed
						has_trait = depressed_1
						has_trait = depressed_genetic
						learning >= 24
					}
				}
				add_trait = dread_buff_intimidate_trait
			}
			0 = {
				modifier = {
					add = 500
					NOR = {
						has_trait = lazy
						has_trait = patient
						has_trait = intellect_bad_1
						has_trait = intellect_bad_2
						has_trait = intellect_bad_3
						has_trait = reclusive
						has_trait = depressed
						has_trait = depressed_1
						has_trait = depressed_genetic
						learning >= 24
					}
					NOR = {
						has_trait = generous
						has_trait = trusting
					}
				}
				add_trait = dread_buff_centralize_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = wrathful
						has_trait = ambitious
						has_trait = gluttonous
						has_trait = lustful
						has_trait = arrogant
						has_trait = generous
						has_trait = gregarious
						has_trait = impatient
						has_trait = trusting
						has_trait = profligate
						has_trait = august
						has_trait = family_first
						has_trait = diplomat
						diplomacy >= 24
					}
				}
				add_trait = dread_buff_absurd_trait
			}
			0 = {
				modifier = {
					add = 500
					NOR = {
						has_trait = lazy
						has_trait = patient
						has_trait = intellect_bad_1
						has_trait = intellect_bad_2
						has_trait = intellect_bad_3
						has_trait = reclusive
						has_trait = depressed
						has_trait = depressed_1
						has_trait = depressed_genetic
						learning >= 24
					}
				}
				add_trait = dread_buff_madness_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = seducer
						has_trait = torturer
						has_trait = schemer
						has_trait = deceitful
						has_trait = vengeful
						has_trait = sadistic
						has_trait = paranoid
						has_trait = eunuch
						has_trait = intellect_good_2
						has_trait = intellect_good_3
						has_trait = murderer
						has_trait = deviant
						has_trait = witch
						has_trait = lifestyle_herbalist
						intrigue >= 24
					}
				}
				add_trait = dread_buff_steal_trait
			}
			0 = {
				modifier = {
					add = 1000
					OR = {
						has_trait = wrathful
						has_trait = ambitious
						has_trait = gluttonous
						has_trait = lustful
						has_trait = arrogant
						has_trait = generous
						has_trait = gregarious
						has_trait = impatient
						has_trait = trusting
						has_trait = profligate
						has_trait = august
						has_trait = family_first
						has_trait = diplomat
						diplomacy >= 24
					}
				}
				add_trait = dread_buff_artisans_trait
			}
			0 = {
				modifier = {
					add = 500
					NOR = {
						has_trait = lazy
						has_trait = patient
						has_trait = intellect_bad_1
						has_trait = intellect_bad_2
						has_trait = intellect_bad_3
						has_trait = reclusive
						has_trait = depressed
						has_trait = depressed_1
						has_trait = depressed_genetic
						learning >= 24
					}
					NOR = {
						has_trait = trusting
					}
				}
				add_trait = dread_buff_murder_trait
			}
		}
	}	
}

mbti_virtuous_traits = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		is_landless_adventurer = no
		OR = {
			has_game_rule = GPT_all_traits
		}
		is_adult = yes
		is_ruler = yes
	 #	highest_held_title_tier >= 2
		OR = {
			AND = {
				age >= 45
				days_as_ruler >= 1800
			}
			AND = {
				age < 45
				days_as_ruler >= 3500
			}
		}
		NOT = { has_character_flag = mbti_dreadful_flag }
		NOR = {
			has_trait = lustful
			has_trait = sadistic
			has_trait = arbitrary
			has_trait = craven
			has_trait = callous
			has_trait = paranoid
			has_trait = deceitful
			has_trait = greedy
			has_trait = vengeful
			has_trait = cynical
			has_trait = wrathful
			has_trait = lazy
			has_trait = mbti_intj_4
			has_trait = mbti_entj_3
			has_trait = mbti_enfp_3
			has_trait = mbti_isfp_4
			has_trait = mbti_estp_4
			has_trait = mbti_esfp_3
			has_trait = mbti_esfp_4
			has_trait = murderer
			has_trait = excommunicated
			has_trait = kinslayer
			has_trait = deviant
			has_trait = kinslayer_1
			has_trait = kinslayer_2
			has_trait = kinslayer_3
			has_trait = cannibal
			has_trait = witch
			has_trait = seducer
			has_trait = torturer
			has_trait = schemer
			has_trait = avaricious
			has_trait = lunatic
			has_trait = lunatic_1
			has_trait = lunatic_genetic
			has_trait = possessed
			has_trait = possessed_1
			has_trait = possessed_genetic
			has_trait = beauty_bad_2
			has_trait = beauty_bad_3
			has_trait = greatest_of_khans
			has_trait = berserker
			has_trait = disloyal
			num_sinful_traits >= 1
		}
		OR = {
			AND = {
				dread <= 0
				tyranny <= 0
				stress_level <= 1
				piety_level > 3
				prestige_level > 1
				num_virtuous_traits >= 1		
			}
			AND = {
				dread <= 10
				tyranny <= 0
				stress_level <= 1
				piety_level > 0
				prestige_level > 0
				num_virtuous_traits >= 2	
			}
			num_virtuous_traits >= 3
		}
	}
	effect = {
		add_character_flag = {
			flag = mbti_dreadful_flag
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_virtuous_traits_title
			desc = mbti_virtuous_traits_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
			0 = {
				modifier = {add = 1000 has_trait = chaste }
				add_trait = dread_buff_chaste_trait
			}
			0 = {
				modifier = {add = 1000 diplomacy >= 24 }
				modifier = {add = 1000 has_trait = generous }
				add_trait = dread_buff_generous_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = content }
				add_trait = dread_buff_content_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = temperate }
				add_trait = dread_buff_temperate_trait
			}
			100 = {
				modifier = {add = 1000 has_trait = just }
				add_trait = dread_buff_just_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = zealous }
				add_trait = dread_buff_zealous_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = honest }
				add_trait = dread_buff_honest_trait
			}
			0 = {
				modifier = {add = 1000 diplomacy >= 24 }
				modifier = {add = 1000 has_trait = compassionate }
				add_trait = dread_buff_compassionate_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = humble }
				add_trait = dread_buff_humble_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = forgiving }
				add_trait = dread_buff_forgiving_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = diligent }
				add_trait = dread_buff_diligent_trait
			}
			0 = {
				modifier = {add = 1000 learning >= 24 }
				modifier = {add = 1000 has_trait = trusting }
				add_trait = virtuous_buff_educate_trait
			}
			0 = {
				modifier = {add = 1000 has_trait = gregarious }
				add_trait = virtuous_buff_intimidate_trait
			}
			0 = {
				modifier = {add = 1000 martial >= 24 }
				modifier = {add = 1000 has_trait = fickle }
				add_trait = virtuous_buff_centralize_trait
			}
			0 = {
				modifier = {add = 1000 stewardship >= 24 }
				modifier = {add = 1000 has_trait = calm }
				add_trait = virtuous_buff_absurd_trait
			}
			0 = {
				modifier = {add = 1000 learning >= 24 }
				modifier = {add = 1000 has_trait = patient }
				add_trait = virtuous_buff_steal_trait
			}
			0 = {
				modifier = {add = 1000 intrigue >= 24 }
				modifier = {add = 1000 has_trait = shy }
				add_trait = virtuous_buff_artisans_trait
			}
			0 = {
				modifier = {add = 1000 prowess >= 32 }
				modifier = {add = 1000 has_trait = brave }
				add_trait = virtuous_buff_murder_trait
			}
		}
	}	
}


mbti_on_action = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed }
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
		 #	has_game_rule = GPT_few_traits
		}
		is_lowborn = no
		NOT = { has_character_flag = mbti_1 }
		age >= 8
		}
		effect = {
		add_character_flag = {
			flag = mbti_1
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_title
			desc = mbti_on_action_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp
			}
		}
	}
}

mbti_on_action_2 = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed }
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
		}
	 	is_lowborn = no
		NOT = { has_character_flag = mbti_2 }
		age >= 16
		}
		effect = {
			add_character_flag = {
				flag = mbti_2
			}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_2_title
			desc = mbti_on_action_2_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_2
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_2
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_2
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_2
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_2
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_2
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_2
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_2
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_2
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_2
			}
		}
	}
}

mbti_on_action_3 = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed }
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
		}
		is_lowborn = no
		NOT = { has_character_flag = mbti_3 }
		age >= 24
		}
		effect = {
		add_character_flag = {
			flag = mbti_3
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_3_title
			desc = mbti_on_action_3_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1500 = {
					add_trait = mbti_extra_6_3
				}
				1500 = {
					add_trait = mbti_extra_1_3
				}
				5000 = {
					add_trait = mbti_extra_2_3
				}
				3000 = {
					add_trait = mbti_extra_3_3
				}
				7500 = {
					add_trait = mbti_extra_4_3
				}
				3000 = {
					add_trait = mbti_extra_5_3
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_3
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_4
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_3
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_4
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_3
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_4
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_3
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_4
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_3
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_4
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_3
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_4
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {add = -100000 is_female = yes}
				add_trait = mbti_istp_3
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_4
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2.5 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_3
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2.5 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_4
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_3
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_4
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_3
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_4
			}
		}
	}
}

mbti_on_action_5 = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
	 	NOR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed }
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
		}
		is_lowborn = no
		NOT = { has_character_flag = mbti_5 }
		age >= 21
		}
		effect = {
		add_character_flag = {
			flag = mbti_5
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_5_title
			desc = mbti_on_action_5_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				20000 = {
					add_trait = mbti_extra_1
				}
				2500 = {
					add_trait = mbti_extra_2
				}
				2500 = {
					add_trait = mbti_extra_3
				}
				2500 = {
					add_trait = mbti_extra_4
				}
				2500 = {
					add_trait = mbti_extra_5
				}
				2500 = {
					add_trait = mbti_extra_6
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_5
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_5
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_5
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_5
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_5
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_5
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_5
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_5
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_5
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_5
			}
		}
	}
}


#tribal/nomads

mbti_highborn_nomads = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_1 }
		OR = {
			AND = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				OR = {
					culture = { has_cultural_tradition = tradition_horse_lords }
					culture = { has_cultural_tradition = tradition_devoted_horsemanship }
				}
			}
			AND = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				culture = { has_cultural_tradition = tradition_saharan_nomads }
			}
			AND = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				culture = { has_cultural_tradition = tradition_desert_nomads }
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
					culture = { has_cultural_tradition = tradition_horse_lords }
					culture = { has_cultural_tradition = tradition_devoted_horsemanship }
				}
				}
			}
		}
		OR = {
			has_game_rule = GPT_all_traits
		 #	has_game_rule = GPT_few_traits
		}
		is_lowborn = no
		age >= 8
		}
		effect = {
		add_character_flag = {
			flag = mbti_1
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_highborn_nomads_title
			desc = mbti_highborn_nomads_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_6
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_6
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_6
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_6
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_6
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_6
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_6
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_6
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_6
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_6
			}
		}
	}
}

mbti_highborn_tribal = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_1 }
		NOR = {
			OR = {
					culture = { has_cultural_tradition = tradition_horse_lords }
					culture = { has_cultural_tradition = tradition_devoted_horsemanship }
				}
			culture = { has_cultural_tradition = tradition_saharan_nomads }
			culture = { has_cultural_tradition = tradition_desert_nomads }
		}
	 	OR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed } 
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
		 #	has_game_rule = GPT_few_traits
		}
		is_lowborn = no
		age >= 8
		}
		effect = {
		add_character_flag = {
			flag = mbti_1
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_highborn_tribal_title
			desc = mbti_highborn_tribal_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_7
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_7
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_7
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_7
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_7
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_7
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_7
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_7
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_7
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_7
			}
		}
	}
}


mbti_on_action_factsup = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_2 }
		OR = {
		 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed } 
			}
		}
		OR = {
			has_game_rule = GPT_all_traits
		}
	 	is_lowborn = no
		age >= 16
		}
		effect = {
			add_character_flag = {
				flag = mbti_2
			}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_factsup_title
			desc = mbti_on_action_factsup_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_8
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_8
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_8
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_8
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_8
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_8
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_8_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_8
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_8
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_8
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_8_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_8
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_8
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_8
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_8
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_8
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_8
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_8
			}
		}
	}
}

mbti_on_action_factopo = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_3 }
		OR = {
		 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed } 
			}
		}
		OR = {
			has_game_rule = GPT_all_traits
		}
	 	is_lowborn = no
		age >= 18
		}
		effect = {
			add_character_flag = {
				flag = mbti_3
			}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_factopo_title
			desc = mbti_on_action_factopo_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					modifier = {factor = -10 has_trait = mbti_esfp_8}
					add_trait = mbti_intj_9
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = eccentric}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
					modifier = {factor = -10 has_trait = mbti_esfj_8}
				add_trait = mbti_intp_9
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_isfp_8}
				add_trait = mbti_entj_9
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = -10 has_trait = mbti_isfj_8}
				add_trait = mbti_entp_9
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_estp_8}
				add_trait = mbti_infj_9
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = eccentric}
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = -10 has_trait = mbti_estj_8}
				add_trait = mbti_infp_9
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
					modifier = {factor = -10 has_trait = mbti_istp_8}
				add_trait = mbti_enfj_9
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
					modifier = {factor = -10 has_trait = mbti_istj_8}
				add_trait = mbti_enfp_9
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
					modifier = {factor = -10 has_trait = mbti_istj_8_extra}
				add_trait = mbti_enfp_9_extra
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_enfp_8}
				add_trait = mbti_istj_9
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_entp_8}
				add_trait = mbti_isfj_9
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_infp_8}
				add_trait = mbti_estj_9
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_infp_8_extra}
				add_trait = mbti_estj_9_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_intp_8}
				add_trait = mbti_esfj_9
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = -10 has_trait = mbti_enfj_8}
				add_trait = mbti_istp_9
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_entj_8}
				add_trait = mbti_isfp_9
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
					modifier = {factor = -10 has_trait = mbti_infj_8}
				add_trait = mbti_estp_9
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
					modifier = {factor = -10 has_trait = mbti_intj_8}
				add_trait = mbti_esfp_9
			}
		}
	}
}

mbti_on_action_war = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_5 }
		OR = {
		 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
			AND = {
				is_landless_adventurer = yes
				OR = {
					culture = { has_cultural_tradition = tradition_desert_nomads }
					culture = { has_cultural_tradition = tradition_saharan_nomads }
					OR = {
						culture = { has_cultural_tradition = tradition_horse_lords }
						culture = { has_cultural_tradition = tradition_devoted_horsemanship }
					}
				}
			}
			AND = {
				is_landless_adventurer = yes
				faith = { has_doctrine_parameter = unreformed } 
			}
		}
		OR = {
			has_game_rule = GPT_all_traits
		}
	 	is_lowborn = no
		age >= 20
		}
		effect = {
			add_character_flag = {
				flag = mbti_5
			}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_war_title
			desc = mbti_on_action_war_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_10
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_10
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_10
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_10
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_10
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_10
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_10
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_10
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_10
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_10
			}
		}
	}
}


mbti_tribal_lowborn_male = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_origin_lowborn_flag }
		is_male = yes
		is_adult = yes
		is_lowborn = yes
	 	OR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			AND = {
				any_liege_or_above = { is_landless_adventurer = yes }
				faith = { has_doctrine_parameter = unreformed }
			}
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
			has_game_rule = GPT_few_traits
		}
	}
	effect = {
		add_character_flag = {
			flag = mbti_origin_lowborn_flag
		}
		add_character_flag = {
			flag = mbti_1
		}
		add_character_flag = {
			flag = mbti_3
		}
		add_character_flag = {
			flag = mbti_5
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_origin_lowborn_title
			desc = mbti_origin_lowborn_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {

			## LOW SKILL

			100 = {
				add_trait = ordinary_tribesman
			}

			## HIGH SKILL

			0 = {
				modifier = {add = 50000 has_trait = education_diplomacy_3 }
				modifier = {add = 50000 has_trait = education_diplomacy_4 }
				add_trait = charismatic_tribesman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_stewardship_3 }
				modifier = {add = 50000 has_trait = education_stewardship_4 }
				add_trait = resourceful_tribesman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_martial_3 }
				modifier = {add = 50000 has_trait = education_martial_4 }
				add_trait = renowned_tribesman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_intrigue_3 }
				modifier = {add = 50000 has_trait = education_intrigue_4 }
				add_trait = cunning_tribesman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_learning_3 }
				modifier = {add = 50000 has_trait = education_learning_4 }
				add_trait = wise_tribesman
			}
		}
	}	
}

mbti_tribal_lowborn_female = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_origin_lowborn_flag }
		is_female = yes
		is_adult = yes
		is_lowborn = yes
	 	OR = {
	 	 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			AND = {
				any_liege_or_above = { is_landless_adventurer = yes }
				faith = { has_doctrine_parameter = unreformed }
			}
			OR = {
				OR = {
					government_has_flag = government_is_tribal
					government_has_flag = government_is_nomadic
				}
				government_has_flag = government_is_nomadic
			}
	 	}
		OR = {
			has_game_rule = GPT_all_traits
			has_game_rule = GPT_few_traits
		}
	}
	effect = {
		add_character_flag = {
			flag = mbti_origin_lowborn_flag
		}
		add_character_flag = {
			flag = mbti_1
		}
		add_character_flag = {
			flag = mbti_3
		}
		add_character_flag = {
			flag = mbti_5
		}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_origin_lowborn_title
			desc = mbti_origin_lowborn_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {

			## LOW SKILL

			100 = {
				add_trait = ordinary_tribeswoman
			}

			## HIGH SKILL

			0 = {
				modifier = {add = 50000 has_trait = education_diplomacy_3 }
				modifier = {add = 50000 has_trait = education_diplomacy_4 }
				add_trait = charismatic_tribeswoman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_stewardship_3 }
				modifier = {add = 50000 has_trait = education_stewardship_4 }
				add_trait = resourceful_tribeswoman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_martial_3 }
				modifier = {add = 50000 has_trait = education_martial_4 }
				add_trait = renowned_tribeswoman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_intrigue_3 }
				modifier = {add = 50000 has_trait = education_intrigue_4 }
				add_trait = cunning_tribeswoman
			}
			0 = {
				modifier = {add = 50000 has_trait = education_learning_3 }
				modifier = {add = 50000 has_trait = education_learning_4 }
				add_trait = wise_tribeswoman
			}
		}
	}	
}

mbti_faction_low_member_trib = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_2 }
		is_lowborn = yes
		OR = {
		 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			AND = {
				any_liege_or_above = { is_landless_adventurer = yes }
				faith = { has_doctrine_parameter = unreformed }
			}
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
		}
		NOR = {
			has_trait = education_diplomacy_3
			has_trait = education_diplomacy_4
			has_trait = education_stewardship_3
			has_trait = education_stewardship_4
			has_trait = education_martial_3
			has_trait = education_martial_4
			has_trait = education_intrigue_3
			has_trait = education_intrigue_4
			has_trait = education_learning_3
			has_trait = education_learning_4
		}
		OR = {
			has_game_rule = GPT_all_traits
		}
		age >= 16
		}
		effect = {
			add_character_flag = {
				flag = mbti_2
			}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_2_title
			desc = mbti_on_action_2_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_11
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_11
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_11
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_11
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_infj_11
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_11
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_11_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_11
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_11
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_11
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_11_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_11
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_11
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_11
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_11
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_11
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_11
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_11
			}
		}
	}
}

mbti_faction_high_member_trib = {
	trigger = {
		OR = {
			is_ai = no
			is_independent_ruler = yes
			any_liege_or_above = { is_ai = no }
			any_liege_or_above = { is_ai = yes any_liege_or_above = { is_ai = no } }
			any_vassal_or_below = { is_ai = no }
			any_close_or_extended_family_member = { is_ai = no }
			is_tributary = yes
			AND = { is_independent_ruler = no any_liege_or_above = { any_vassal = { is_ai = no } } }
		}
		NOT = { has_character_flag = mbti_2 }
		is_lowborn = yes
		OR = {
		 	AND = { is_ruler = no faith = { has_doctrine_parameter = unreformed } OR = { any_liege_or_above = { OR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic } } is_foreign_court_or_pool_guest = yes } }
			AND = {
				any_liege_or_above = { is_landless_adventurer = yes }
				faith = { has_doctrine_parameter = unreformed }
			}
			OR = {
				government_has_flag = government_is_tribal
				government_has_flag = government_is_nomadic
			}
		}
		OR = {
			has_trait = education_diplomacy_3
			has_trait = education_diplomacy_4
			has_trait = education_stewardship_3
			has_trait = education_stewardship_4
			has_trait = education_martial_3
			has_trait = education_martial_4
			has_trait = education_intrigue_3
			has_trait = education_intrigue_4
			has_trait = education_learning_3
			has_trait = education_learning_4
		}
		OR = {
			has_game_rule = GPT_all_traits
		}
		age >= 16
		}
		effect = {
			add_character_flag = {
				flag = mbti_2
			}
		send_interface_message = {
			type = event_mbti_trait_with_text
			title = mbti_on_action_2_title
			desc = mbti_on_action_2_desc
			left_icon = root
			show_as_tooltip = { custom_tooltip = { text = gained_mbti_trait_tip } }
		}
		random_list = {
				1000 = {
					modifier = {factor = 0.7 has_trait = lustful}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 1.5 has_trait = greedy}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 0.7 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = fickle}
					add_trait = mbti_intj_12
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 1.5 has_trait = callous}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_intp_12
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 0.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.5 has_trait = craven}
					modifier = {factor = 0.5 has_trait = shy}
					modifier = {factor = 2.5 has_trait = ambitious}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 2 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.2 has_trait = forgiving}
				add_trait = mbti_entj_12
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.7 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 0.7 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 0.7 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = vengeful}
				add_trait = mbti_entp_12
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 0.7 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2.5 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 2.5 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 2 has_trait = forgiving}
					modifier = {factor = -1000 age < 35 }
				add_trait = mbti_infj_12
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_12
				}
				1000 = {
					modifier = {factor = 0.7 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 2 has_trait = lazy}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 1.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
				add_trait = mbti_infp_12_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 2.5 has_trait = generous}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.7 has_trait = impatient}
					modifier = {factor = 2 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 2 has_trait = gregarious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 0.5 has_trait = vengeful}
				add_trait = mbti_enfj_12
				}
				1000 = {
					modifier = {factor = 2 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 1.5 has_trait = generous}
					modifier = {factor = 0.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 0.5 has_trait = patient}
					modifier = {factor = 2 has_trait = humble}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.5 has_trait = sadistic}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = vengeful}
				add_trait = mbti_enfp_12
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_12
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 0.7 has_trait = humble}
					modifier = {factor = 2.5 has_trait = honest}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 2 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
					modifier = {factor = 0.7 has_trait = vengeful}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_istj_12_extra
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = chaste}
					modifier = {factor = 1.5 has_trait = temperate}
					modifier = {factor = 2 has_trait = generous}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 0.7 has_trait = arrogant}
					modifier = {factor = 2.5 has_trait = humble}
					modifier = {factor = 0.7 has_trait = deceitful}
					modifier = {factor = 0.7 has_trait = craven}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = content}
					modifier = {factor = 2 has_trait = just}
					modifier = {factor = 2 has_trait = cynical}
					modifier = {factor = 0.5 has_trait = paranoid}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = callous}
					modifier = {factor = 0.2 has_trait = sadistic}
					modifier = {factor = 2 has_trait = stubborn}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfj_12
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 2 has_trait = temperate}
					modifier = {factor = 0.5 has_trait = generous}
					modifier = {factor = 2.5 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = calm}
					modifier = {factor = 2 has_trait = patient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 1.5 has_trait = honest}
					modifier = {factor = 2 has_trait = brave}
					modifier = {factor = 0.7 has_trait = shy}
					modifier = {factor = 0.7 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.2 has_trait = compassionate}
					modifier = {factor = 0.2 has_trait = fickle}
					modifier = {factor = 0.5 has_trait = forgiving}
				add_trait = mbti_estj_12
				}
				1000 = {
					modifier = {factor = 1.5 has_trait = lustful}
					modifier = {factor = 1.5 has_trait = gluttonous}
					modifier = {factor = 0.5 has_trait = greedy}
					modifier = {factor = 2 has_trait = diligent}
					modifier = {factor = 1.5 has_trait = wrathful}
					modifier = {factor = 1.5 has_trait = patient}
					modifier = {factor = 2 has_trait = craven}
					modifier = {factor = 2.5 has_trait = brave}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 0.2 has_trait = arbitrary}
					modifier = {factor = 0.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 0.7 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = forgiving}
				add_trait = mbti_esfj_12
				}
				1000 = {
					modifier = {factor = 2 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = gluttonous}
					modifier = {factor = 0.7 has_trait = generous}
					modifier = {factor = 0.2 has_trait = lazy}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = brave}
					modifier = {factor = 0.5 has_trait = gregarious}
					modifier = {factor = 1.5 has_trait = ambitious}
					modifier = {factor = 2.5 has_trait = arbitrary}
					modifier = {factor = 1.5 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 2 has_trait = callous}
					modifier = {factor = 0.7 has_trait = sadistic}
					modifier = {factor = 2.5 has_trait = stubborn}
				add_trait = mbti_istp_12
				}
				1000 = {
					modifier = {factor = 0.5 has_trait = chaste}
					modifier = {factor = 0.7 has_trait = greedy}
					modifier = {factor = 2 has_trait = calm}
					modifier = {factor = 0.5 has_trait = arrogant}
					modifier = {factor = 0.7 has_trait = brave}
					modifier = {factor = 2 has_trait = shy}
					modifier = {factor = 2 has_trait = content}
					modifier = {factor = 1.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = zealous}
					modifier = {factor = 0.5 has_trait = trusting}
					modifier = {factor = 2 has_trait = compassionate}
					modifier = {factor = 2 has_trait = fickle}
					modifier = {factor = 1.5 has_trait = forgiving}
				add_trait = mbti_isfp_12
				}
				1000 = {
					modifier = {factor = 0.2 has_trait = chaste}
					modifier = {factor = 0.2 has_trait = temperate}
					modifier = {factor = 2 has_trait = greedy}
					modifier = {factor = 1.5 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 2 has_trait = arrogant}
					modifier = {factor = 0.2 has_trait = craven}
					modifier = {factor = 0.2 has_trait = shy}
					modifier = {factor = 0.5 has_trait = content}
					modifier = {factor = 0.5 has_trait = just}
					modifier = {factor = 1.5 has_trait = paranoid}
					modifier = {factor = 0.5 has_trait = compassionate}
					modifier = {factor = 1.5 has_trait = sadistic}
					modifier = {factor = 1.5 has_trait = fickle}
					modifier = {factor = 0.7 has_trait = forgiving}
				add_trait = mbti_estp_12
				}
				1000 = {
					modifier = {factor = 2.5 has_trait = lustful}
					modifier = {factor = 0.5 has_trait = temperate}
					modifier = {factor = 0.7 has_trait = diligent}
					modifier = {factor = 0.5 has_trait = calm}
					modifier = {factor = 2.5 has_trait = impatient}
					modifier = {factor = 1.5 has_trait = humble}
					modifier = {factor = 2 has_trait = deceitful}
					modifier = {factor = 1.5 has_trait = craven}
					modifier = {factor = 2.5 has_trait = gregarious}
					modifier = {factor = 2 has_trait = ambitious}
					modifier = {factor = 1.5 has_trait = arbitrary}
					modifier = {factor = 0.7 has_trait = cynical}
					modifier = {factor = 0.7 has_trait = trusting}
					modifier = {factor = 1.5 has_trait = compassionate}
					modifier = {factor = 0.5 has_trait = stubborn}
					modifier = {factor = 2 has_trait = vengeful}
				add_trait = mbti_esfp_12
			}
		}
	}
}




