﻿# used in the marriage introduction events

lmf_neg_reaction_type = {
	type = character

	text = {
		trigger = {
			OR = {
				has_trait = wrathful
				has_trait = vengeful
				has_trait = stubborn
				has_trait = rowdy
			}
		}
		localization_key = lmf_neg_reaction_type_wrathful
	}

	text = {
		trigger = { has_trait = arrogant }
		localization_key = lmf_neg_reaction_type_arrogant
	}

	text = {
		trigger = { has_trait = sadistic }
		localization_key = lmf_neg_reaction_type_sadistic
	}

	text = {
		trigger = {
			OR = {
				has_trait = callous
				has_trait = paranoid
				has_trait = bossy
			}
		}
		localization_key = lmf_neg_reaction_type_callous
	}

	text = {
		trigger = {
			OR = {
				has_trait = compassionate
				has_trait = just
			}
		}
		localization_key = lmf_neg_reaction_type_compassionate
	}

	text = {
		trigger = {
			OR = {
				has_trait = calm
				has_trait = patient
			}
		}
		localization_key = lmf_neg_reaction_type_calm
	}

	text = {
		trigger = { has_trait = shy }
		localization_key = lmf_neg_reaction_type_shy
	}

	text = {
		trigger = { has_trait = generous }
		localization_key = lmf_neg_reaction_type_generous
	}

	text = {
		trigger = { has_trait = humble }
		localization_key = lmf_neg_reaction_type_humble
	}

	text = {
		trigger = { has_trait = charming }
		localization_key = lmf_neg_reaction_type_charming
	}

	text = {
		trigger = { has_trait = pensive }
		localization_key = lmf_neg_reaction_type_pensive
	}

	text = {
		fallback = yes
		localization_key = lmf_neg_reaction_type_fallback
	}
}

lmf_has_relation = {
	type = character

	text = {
		trigger = {
			OR = {
				is_in_the_same_court_as = scope:second
				is_close_or_extended_family_of = scope:second
				has_any_good_relationship_with_character_trigger = { CHARACTER = scope:second }
				has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:second }
			}
		}
		localization_key = lmf_has_relation_them
	}
	text = {
		localization_key = lmf_has_no_relation_them
		fallback = yes
	}
}

lmf_neg_reaction = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			is_adult = yes
			ai_compassion <= 0
			is_attracted_to_gender_of = scope:second
			scope:second = {
				is_female = yes
				has_trait = beauty_bad
			}
		}
		weight_multiplier = {
			base = 5
			modifier = {
				add = 4
				scope:second = { has_trait = beauty_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = beauty_bad_3 }
			}
			modifier = {
				add = 5
				has_trait = lustful
			}
			modifier = {
				add = -5
				has_trait = chaste
			}
			min = 1
		}
		localization_key = lmf_neg_reaction_ugly_female
	}

	text = {
		trigger = {
			is_adult = yes
			ai_compassion <= 0
			is_attracted_to_gender_of = scope:second
			scope:second = {
				is_male = yes
				has_trait = beauty_bad
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				scope:second = { has_trait = beauty_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = beauty_bad_3 }
			}
			modifier = {
				add = 5
				has_trait = lustful
			}
			modifier = {
				add = -5
				has_trait = chaste
			}
			min = 1
		}
		localization_key = lmf_neg_reaction_ugly_male
	}

	text = {
		trigger = {
			is_adult = no
			ai_compassion <= 0
			is_attracted_to_gender_of = scope:second
			scope:second = { has_trait = beauty_bad }
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				scope:second = { has_trait = beauty_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = beauty_bad_3 }
			}
			modifier = {
				add = 5
				has_trait = lustful
			}
			modifier = {
				add = -5
				has_trait = chaste
			}
			min = 1
		}
		localization_key = lmf_neg_reaction_ugly_child
	}

	text = {
		trigger = {
			is_adult = yes
			NOT = { has_trait = intellect_bad }
			scope:second = { has_trait = intellect_bad }
		}
		weight_multiplier = {
			base = 2
			modifier = {
				add = 4
				scope:second = { has_trait = intellect_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = intellect_bad_3 }
			}
		}
		localization_key = lmf_neg_reaction_dumb
	}

	text = {
		trigger = {
			is_adult = no
			NOT = { has_trait = intellect_bad }
			scope:second = { has_trait = intellect_bad }
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 4
				scope:second = { has_trait = intellect_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = intellect_bad_3 }
			}
		}
		localization_key = lmf_neg_reaction_dumb_child
	}

	text = {
		trigger = {
			is_adult = yes
			NOT = { has_trait = physique_bad }
			scope:second = {
				is_female = yes
				has_trait = physique_bad
			}
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 4
				scope:second = { has_trait = physique_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = physique_bad_3 }
			}
		}
		localization_key = lmf_neg_reaction_weak_female
	}

	text = {
		trigger = {
			is_adult = yes
			NOT = { has_trait = physique_bad }
			scope:second = {
				is_male = yes
				has_trait = physique_bad
			}
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 4
				scope:second = { has_trait = physique_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = physique_bad_3 }
			}
		}
		localization_key = lmf_neg_reaction_weak_male
	}

	text = {
		trigger = {
			is_adult = no
			NOT = { has_trait = physique_bad }
			scope:second = { has_trait = physique_bad }
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 4
				scope:second = { has_trait = physique_bad_2 }
			}
			modifier = {
				add = 19
				scope:second = { has_trait = physique_bad_3 }
			}
		}
		localization_key = lmf_neg_reaction_weak_child
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			scope:second = { has_trait = dwarf }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_dwarf
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			NOT = { has_trait = giant }
			scope:second = { has_trait = giant }
		}
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_neg_reaction_giant
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			scope:second = { has_trait = hunchbacked }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_hunchbacked
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			scope:second = { has_trait = albino }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_albino
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			scope:second = { has_trait = inbred }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_inbred
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			scope:second = { has_trait = leper }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_leper
	}

	text = {
		trigger = {
			is_malformed_trigger = no
			scope:second = { has_trait = scaly }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_scaly
	}

	text = {
		trigger = {
			is_adult = yes
			current_weight <= 0
			ai_compassion <= 0
			scope:second = { current_weight > 50 }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_fat
	}

	text = {
		trigger = {
			is_adult = no
			current_weight <= 0
			ai_compassion <= 0
			scope:second = { current_weight > 50 }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_neg_reaction_fat_child
	}

	text = {
		trigger = {
			scope:second.age >= age_plus_25
		}
		weight_multiplier = {
			base = 10
			modifier = {
				add = 10
				scope:second.age >= 45
			}
		}
		localization_key = lmf_neg_reaction_much_older
	}

	text = {
		trigger = {
			scope:second.age < age_plus_25
			scope:second.age >= age_plus_10
		}
		weight_multiplier = {
			base = 10
		}
		localization_key = lmf_neg_reaction_older
	}

	text = {
		trigger = {
			OR = {
				is_male = yes
				is_adult = no
			}
			scope:second.age < age_plus_10
			scope:second.age >= age_plus_5
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 4
				is_male = yes
			}
		}
		localization_key = lmf_neg_reaction_bit_older
	}

	text = {
		trigger = {
			age < 41
			scope:second.age <= age_minus_25
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 9
				is_female = yes
			}
		}
		localization_key = lmf_neg_reaction_much_younger
	}

	text = {
		trigger = {
			OR = {
				is_female = yes
				age <= 24
			}
			scope:second.age > age_minus_25
			scope:second.age <= age_minus_10
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_younger
	}

	text = {
		trigger = {
			scope:second = { is_lowborn = yes }
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_lowborn
	}

	text = {
		trigger = {
			NOT = { has_trait = humble }
			scope:second = { exists = dynasty }
			dynasty.dynasty_prestige_level > scope:second.dynasty.dynasty_prestige_level
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 4
				dynasty.dynasty_prestige_level > scope:second.dynasty.dynasty_prestige_level_plus_2
			}
			modifier = {
				add = 15
				dynasty.dynasty_prestige_level > scope:second.dynasty.dynasty_prestige_level_plus_5
			}
		}
		localization_key = lmf_neg_reaction_lesser
	}

	text = {
		trigger = {
			scope:second = { has_trait = lazy }
			NOT = { has_trait = lazy }
			OR = {
				has_trait = diligent
				ai_energy >= high_positive_ai_value
				AND = {
					faith = { trait_is_sin = lazy }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_lazy
	}

	text = {
		trigger = {
			scope:second = { has_trait = wrathful }
			NOT = { has_trait = wrathful }
			OR = {
				has_trait = calm
				ai_rationality >= very_high_positive_ai_value
				AND = {
					faith = { trait_is_sin = wrathful }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_wrathful
	}

	text = {
		trigger = {
			scope:second = { has_trait = deceitful }
			NOT = { has_trait = deceitful }
			OR = {
				has_trait = honest
				ai_honor >= high_positive_ai_value
				AND = {
					faith = { trait_is_sin = deceitful }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_deceitful
	}

	text = {
		trigger = {
			scope:second = {
				has_trait = craven
				is_male = yes
			}
			NOT = { has_trait = craven }
			OR = {
				has_trait = brave
				ai_boldness >= high_positive_ai_value
				AND = {
					faith = { trait_is_sin = craven }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_craven
	}

	text = {
		trigger = {
			scope:second = { has_trait = shy }
			NOT = { has_trait = shy }
			OR = {
				has_trait = gregarious
				ai_sociability >= high_positive_ai_value
				AND = {
					faith = { trait_is_sin = shy }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_shy
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = ambitious
					has_trait = arrogant
				}
			}
			NOR = {
				has_trait = ambitious
				has_trait = arrogant
			}
			OR = {
				has_trait = humble
				has_trait = content
				ai_boldness <= high_negative_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_bold
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = humble
					has_trait = content
				}
			}
			NOR = {
				has_trait = humble
				has_trait = content
			}
			OR = {
				has_trait = ambitious
				has_trait = arrogant
				ai_boldness >= high_positive_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_meek
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = sadistic
					has_trait = callous
				}
			}
			NOR = {
				has_trait = sadistic
				has_trait = callous
			}
			OR = {
				has_trait = compassionate
				ai_compassion >= high_positive_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_cruel
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = compassionate
					ai_compassion >= high_positive_ai_value
				}
			}
			NOT = { has_trait = compassionate }
			OR = {
				has_trait = sadistic
				has_trait = callous
				ai_compassion <= high_negative_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_dogooder
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = lustful
					has_trait = adulterer
					has_trait = fornicator
				}
				is_male = yes
			}
			NOR = {
				has_trait = lustful
				has_trait = adulterer
				has_trait = fornicator
			}
			OR = {
				has_trait = chaste
				AND = {
					faith = { trait_is_sin = lustful }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 2
				has_trait = chaste
			}
		}
		localization_key = lmf_neg_reaction_lustful_male
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = lustful
					has_trait = adulterer
					has_trait = fornicator
				}
				is_female = yes
			}
			NOR = {
				has_trait = lustful
				has_trait = adulterer
				has_trait = fornicator
			}
			OR = {
				has_trait = chaste
				AND = {
					faith = { trait_is_sin = lustful }
					num_sinful_traits < 1
				}
			}
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 2
				has_trait = chaste
			}
		}
		localization_key = lmf_neg_reaction_lustful_female
	}

	text = {
		trigger = {
			scope:second = {
				has_trait = chaste
				is_female = yes
			}
			NOT = { has_trait = chaste }
			likely_to_take_lover_trigger = yes
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_chaste_female
	}

	text = {
		trigger = {
			scope:second = {
				has_trait = chaste
				is_male = yes
			}
			NOT = { has_trait = chaste }
			likely_to_take_lover_trigger = yes
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_chaste_male
	}

	text = {
		trigger = {
			scope:second = { has_trait = drunkard }
			NOR = {
				has_trait = drunkard
				has_trait = gluttonous
				has_trait = lifestyle_reveler
			}
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 2
				has_trait = temperate
			}
		}
		localization_key = lmf_neg_reaction_drunk
	}

	text = {
		trigger = {
			scope:second = { has_trait = depressed }
			NOR = {
				has_trait = depressed
				ai_compassion >= high_positive_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_sad
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = lunatic
					has_trait = possessed
				}
			}
			NOR = {
				has_trait = lunatic
				has_trait = possessed
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_crazy
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = bastard
					has_trait = legitimized_bastard
					has_trait = disputed_heritage
				}
			}
			NOR = {
				has_trait = bastard
				has_trait = legitimized_bastard
				has_trait = disputed_heritage
				ai_compassion >= low_positive_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_bastard
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = deviant
					has_trait = sodomite
					has_trait = incestuous
				}
			}
			NOR = {
				has_trait = deviant
				has_trait = sodomite
				has_trait = incestuous
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_pervert
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = murderer
					has_trait = kinslayer
				}
			}
			NOR = {
				has_trait = murderer
				has_trait = kinslayer
				ai_honor <= low_negative_ai_value
			}
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_neg_reaction_murderer
	}

	text = {
		trigger = {
			scope:second = { has_trait = witch }
			NOR = {
				has_trait = witch
				has_trait = cynical
			}
			trait_is_shunned_or_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = root.faith GENDER_CHARACTER = root }
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 2
				ai_zeal >= 25
			}
		}
		localization_key = lmf_neg_reaction_witch
	}

	text = {
		trigger = {
			scope:second = {
				NOR = {
					has_trait = intellect_good
					has_trait = physique_good
					has_trait = beauty_good
					has_any_high_skill_rating = yes
				}
			}
			OR = {
				has_trait = intellect_good
				has_trait = physique_good
				has_trait = beauty_good
				has_any_high_skill_rating = yes
			}
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 2
				has_trait = arrogant
			}
		}
		localization_key = lmf_neg_reaction_unremarkable
	}

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

lmf_pos_reaction = {
	type = character

	random_valid = yes

	text = {
		trigger = {
			is_attracted_to_gender_of = scope:second
			scope:second = {
				OR = {
					has_trait = beauty_good_1
					has_trait = beauty_good_2
				}
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 7
				scope:second = { has_trait = beauty_good_2 }
			}
			modifier = {
				add = 5
				has_trait = lustful
			}
			modifier = {
				add = -5
				has_trait = chaste
			}
			min = 1
		}
		localization_key = lmf_pos_reaction_beauty
	}

	text = {
		trigger = {
			is_attracted_to_gender_of = scope:second
			scope:second = { has_trait = beauty_good_3 }
		}
		weight_multiplier = {
			base = 20
			modifier = {
				add = 5
				has_trait = lustful
			}
			modifier = {
				add = -5
				has_trait = chaste
			}
			min = 1
		}
		localization_key = lmf_pos_reaction_beauty_3
	}

	text = {
		trigger = {
			scope:second = {
				OR = {
					has_trait = intellect_good_1
					has_trait = intellect_good_2
				}
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 7
				scope:second = { has_trait = intellect_good_2 }
			}
		}
		localization_key = lmf_pos_reaction_intellect
	}

	text = {
		trigger = {
			scope:second = { has_trait = intellect_good_3 }
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_pos_reaction_intellect_3
	}

	text = {
		trigger = {
			scope:second = {
				age >= 14
				is_male = yes
				OR = {
					has_trait = physique_good
					has_trait = strong
				}
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 2
				scope:second = { has_trait = physique_good_2 }
			}
			modifier = {
				add = 7
				scope:second = { has_trait = physique_good_3 }
			}
		}
		localization_key = lmf_pos_reaction_physique
	}

	text = {
		trigger = {
			scope:second = { is_playable_character = yes }
			trigger_if = {
				limit = { is_playable_character = yes }
				scope:second.highest_held_title_tier >= root.highest_held_title_tier
			}
			trigger_if = {
				limit = {
					is_playable_character = no
					exists = liege
				}
				scope:second.highest_held_title_tier >= root.liege.highest_held_title_tier
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				is_playable_character = yes
				scope:second.highest_held_title_tier > root.highest_held_title_tier
			}
			modifier = {
				add = 4
				is_playable_character = no
				exists = liege
				scope:second.highest_held_title_tier > root.liege.highest_held_title_tier
			}
			modifier = {
				add = 5
				is_playable_character = yes
				scope:second.highest_held_title_tier > root.highest_held_title_tier_plus_one
			}
			modifier = {
				add = 5
				is_playable_character = no
				exists = liege
				scope:second.highest_held_title_tier > root.liege.highest_held_title_tier_plus_one
			}
		}
		localization_key = lmf_pos_reaction_ruler
	}

	text = {
		trigger = {
			scope:second = {
				is_playable_character = no
				exists = liege
				NAND = {
					exists = root.liege
					liege = root.liege
				}
				is_close_or_extended_family_of = liege
			}
			trigger_if = {
				limit = { is_playable_character = yes }
				scope:second.liege.highest_held_title_tier >= root.highest_held_title_tier
			}
			trigger_if = {
				limit = {
					is_playable_character = no
					exists = liege
				}
				scope:second.liege.highest_held_title_tier >= root.liege.highest_held_title_tier
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				is_playable_character = yes
				scope:second.liege.highest_held_title_tier > root.highest_held_title_tier
			}
			modifier = {
				add = 4
				is_playable_character = no
				exists = liege
				scope:second.liege.highest_held_title_tier > root.liege.highest_held_title_tier
			}
			modifier = {
				add = 5
				is_playable_character = yes
				scope:second.liege.highest_held_title_tier > root.highest_held_title_tier_plus_one
			}
			modifier = {
				add = 5
				is_playable_character = no
				exists = liege
				scope:second.liege.highest_held_title_tier > root.liege.highest_held_title_tier_plus_one
			}
			modifier = {
				factor = 0.5
				scope:second = {
					NOT = { is_close_family_of = liege }
				}
			}
		}
		localization_key = lmf_pos_reaction_liege_kin
	}

	text = {
		trigger = {
			scope:second = {
				exists = dynasty
				NOT = { dynasty = root.dynasty }
				dynasty = {
					dynasty_prestige_level > 2
					dynasty_prestige_level >= root.dynasty.dynasty_prestige_level
				}
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				dynasty.dynasty_prestige_level > root.dynasty.dynasty_prestige_level
			}
		}
		localization_key = lmf_pos_reaction_family
	}

	text = {
		trigger = {
			scope:second = {
				is_adult = yes
				OR = {
					AND = {
						is_playable_character = yes
						is_male = yes
					}
					is_knight = yes
				}
				prowess >= 15
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				scope:second = { prowess >= 20 }
			}
			modifier = {
				add = 5
				scope:second = { prowess >= 25 }
			}
		}
		localization_key = lmf_pos_reaction_warrior
	}

	text = {
		trigger = {
			scope:second = {
				is_playable_character = no
				exists = liege
				is_councillor = yes
			}
		}
		weight_multiplier = {
			base = 2
		}
		localization_key = lmf_pos_reaction_councillor
	}

	text = {
		trigger = {
			trait_compatibility = { target = scope:second value >= medium_positive_trait_compatibility }
		}
		weight_multiplier = {
			base = 5
			modifier = {
				add = 10
				trait_compatibility = { target = scope:second value >= high_positive_trait_compatibility }
			}
		}
		localization_key = lmf_pos_reaction_alike
	}

	text = {
		trigger = {
			OR = {
				num_sinful_traits < 1
				has_trait = zealous
			}
			num_virtuous_traits > 0
			ai_zeal >= 0
			scope:second = {
				faith = root.faith
				num_sinful_traits < 1
				num_virtuous_traits > 0
			}
		}
		weight_multiplier = {
			base = 3
			modifier = {
				add = 4
				scope:second = { num_virtuous_traits > 1 }
			}
			modifier = {
				add = 5
				scope:second = { num_virtuous_traits > 2 }
			}
		}
		localization_key = lmf_pos_reaction_virtuous
	}

	text = {
		trigger = {
			has_relation_friend = scope:second
		}
		weight_multiplier = {
			base = 20
		}
		localization_key = lmf_pos_reaction_friend
	}

	text = {
		trigger = {
			opinion = { target = scope:second value >= 25 }
		}
		weight_multiplier = {
			base = 1
			modifier = {
				add = 2
				opinion = { target = scope:second value >= 75 }
			}
		}
		localization_key = lmf_pos_reaction_like
	}

	text = {
		trigger = {
			has_variable = is_in_marriage_introduction
		}
		weight_multiplier = {
			base = 1
		}
		localization_key = lmf_pos_reaction_picked
	}

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

lmf_intro_planned_activity = {
	type = character

	text = {
		trigger = { var:intro_activity = flag:hunting }
		localization_key = intro_planned_activity_hunting
	}
	text = {
		trigger = { var:intro_activity = flag:hike }
		localization_key = intro_planned_activity_hike
	}
	text = {
		trigger = { var:intro_activity = flag:garrison }
		localization_key = intro_planned_activity_garrison
	}
	text = {
		trigger = { var:intro_activity = flag:seduction }
		localization_key = intro_planned_activity_seduction
	}
	text = {
		trigger = { var:intro_activity = flag:poetry }
		localization_key = intro_planned_activity_poetry
	}
	text = {
		trigger = { var:intro_activity = flag:library }
		localization_key = intro_planned_activity_library
	}
	text = {
		trigger = { var:intro_activity = flag:church }
		localization_key = intro_planned_activity_church
	}
	text = {
		trigger = { var:intro_activity = flag:tavern }
		localization_key = intro_planned_activity_tavern
	}
	text = {
		trigger = { var:intro_activity = flag:poor }
		localization_key = intro_planned_activity_poor
	}
	text = {
		trigger = { var:intro_activity = flag:tour }
		localization_key = intro_planned_activity_tour
	}
	text = {
		fallback = yes
		localization_key = intro_planned_activity_garden
	}
}

lmf_intro_activity_short = {
	type = character

	text = {
		trigger = { var:intro_activity = flag:hunting }
		localization_key = intro_activity_short_hunting
	}
	text = {
		trigger = { var:intro_activity = flag:hike }
		localization_key = intro_activity_short_hike
	}
	text = {
		trigger = { var:intro_activity = flag:garrison }
		localization_key = intro_activity_short_garrison
	}
	text = {
		trigger = { var:intro_activity = flag:seduction }
		localization_key = intro_activity_short_seduction
	}
	text = {
		trigger = { var:intro_activity = flag:poetry }
		localization_key = intro_activity_short_poetry
	}
	text = {
		trigger = { var:intro_activity = flag:library }
		localization_key = intro_activity_short_library
	}
	text = {
		trigger = { var:intro_activity = flag:church }
		localization_key = intro_activity_short_church
	}
	text = {
		trigger = { var:intro_activity = flag:tavern }
		localization_key = intro_activity_short_tavern
	}
	text = {
		trigger = { var:intro_activity = flag:poor }
		localization_key = intro_activity_short_poor
	}
	text = {
		trigger = { var:intro_activity = flag:tour }
		localization_key = intro_activity_short_tour
	}
	text = {
		fallback = yes
		localization_key = intro_activity_short_garden
	}
}

