﻿# used in interaction events

disinherit_worst_trait = {
	type = character

	random_valid = yes

	text = {
		trigger = { probably_unintelligent_trigger = yes }
		weight_multiplier = {
			base = 100
		}
		localization_key = lmf_interaction.0001.worst.unintelligent
	}
	text = {
		trigger = {
			OR = {
				has_trait = lunatic
				has_trait = possessed
			}
		}
		weight_multiplier = {
			base = 100
		}
		localization_key = lmf_interaction.0001.worst.crazy
	}
	text = {
		trigger = {
			OR = {
				has_trait = adulterer
				has_trait = fornicator
				has_trait = deviant
				has_trait = sodomite
				has_trait = incestuous
			}
			scope:second = {
				NOR = {
					has_trait = adulterer
					has_trait = fornicator
					has_trait = deviant
					has_trait = sodomite
					has_trait = incestuous
				}
			}
		}
		weight_multiplier = {
			base = 50
			modifier = {
				add = 50
				has_trait = deviant
			}
		}
		localization_key = lmf_interaction.0001.worst.deviant
	}
	text = {
		trigger = { sum_of_all_skills_value <= 30 }
		weight_multiplier = {
			base = 50
		}
		localization_key = lmf_interaction.0001.worst.unskilled
	}
	text = {
		trigger = { ai_boldness <= high_negative_ai_value }
		weight_multiplier = {
			base = 50
		}
		localization_key = lmf_interaction.0001.worst.cowardly
	}
	text = {
		trigger = { ai_honor <= high_negative_ai_value }
		weight_multiplier = {
			base = 25
		}
		localization_key = lmf_interaction.0001.worst.dishonorable
	}
	text = {
		trigger = {
			OR = {
				ai_zeal <= high_negative_ai_value
				has_character_modifier = known_non_believer
				AND = {
					scope:second = {
						is_witch_trigger = no
						knows_about_character_being_witch_trigger = { CHARACTER = root }
					}
					trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:second.faith GENDER_CHARACTER = root }
				}
			}
		}
		weight_multiplier = {
			base = 25
			modifier = {
				add = 25
				has_character_modifier = known_non_believer
			}
			modifier = {
				add = 75
				scope:second = {
					is_witch_trigger = no
					knows_about_character_being_witch_trigger = { CHARACTER = root }
				}
				trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:second.faith GENDER_CHARACTER = root }
			}
		}
		localization_key = lmf_interaction.0001.worst.faithless
	}
	text = {
		trigger = { ai_compassion <= high_negative_ai_value }
		weight_multiplier = {
			base = 25
		}
		localization_key = lmf_interaction.0001.worst.callous
	}
	text = {
		trigger = { untrustworthy_trigger = yes }
		weight_multiplier = {
			base = 10
			modifier = {
				add = -5
				has_trait = arbitrary
			}
		}
		localization_key = lmf_interaction.0001.worst.untrustworthy
	}
	text = {
		trigger = { has_trait = drunkard }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.worst.drunkard
	}
	text = {
		trigger = { has_trait = physique_bad }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.worst.weak
	}
	text = {
		trigger = { has_personality_submissive_trigger = yes }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.worst.submissive
	}
	text = {
		trigger = { has_personality_malicious_trigger = yes }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.worst.malicious
	}
	text = {
		trigger = { always = no }
		fallback = yes
		localization_key = lmf_interaction.0001.worst.unworthy
	}
}

disinherit_best_trait = {
	type = character

	random_valid = yes

	text = {
		trigger = { sum_of_all_skills_value >= 60 }
		weight_multiplier = {
			base = 50
			modifier = {
				add = 50
				sum_of_all_skills_value >= 80
			}
		}
		localization_key = lmf_interaction.0001.best.skilled
	}
	text = {
		trigger = { ai_boldness >= high_positive_ai_value }
		weight_multiplier = {
			base = 50
		}
		localization_key = lmf_interaction.0001.best.bold
	}
	text = {
		trigger = {
			can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:second }
			has_trait = education_martial
			OR = {
				has_trait = physique_good_3
				martial >= high_skill_rating
				prowess >= high_skill_rating
			}
		}
		weight_multiplier = {
			base = 50
		}
		localization_key = lmf_interaction.0001.best.warrior
	}
	text = {
		trigger = { probably_intelligent_trigger = yes }
		weight_multiplier = {
			base = 25
			modifier = {
				add = 75
				has_trait = intellect_good_3
			}
			modifier = {
				add = 25
				has_trait = intellect_good_2
			}
		}
		localization_key = lmf_interaction.0001.best.intelligent
	}
	text = {
		trigger = { ai_zeal >= high_positive_ai_value }
		weight_multiplier = {
			base = 25
			modifier = {
				add = 25
				scope:second = { has_trait = zealous }
			}
		}
		localization_key = lmf_interaction.0001.best.zealous
	}
	text = {
		trigger = { ai_honor >= high_positive_ai_value }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.best.honorable
	}
	text = {
		trigger = { ai_compassion >= high_positive_ai_value }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.best.compassionate
	}
	text = {
		trigger = { has_personality_levelheaded_trigger = yes }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.best.levelheaded
	}
	text = {
		trigger = { has_personality_benevolent_trigger = yes }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.best.benevolent
	}
	text = {
		trigger = { has_trait = just }
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_interaction.0001.best.just
	}
	text = {
		trigger = { always = no }
		fallback = yes
		localization_key = lmf_interaction.0001.best.proud
	}
}

