﻿education_conversation_subject = {
	type = character
	random_valid = yes

	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = education_conversation_subject_martial_1 #new strategies
	}
	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = education_conversation_subject_martial_2 #ancient campaigns
	}
	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = education_conversation_subject_martial_3 #foreign military innovations
	}
	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = education_conversation_subject_martial_4 #best general ever
	}
	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = education_conversation_subject_martial_5 #the importance of troops morale
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = education_conversation_subject_diplomacy_1 #other lords
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = education_conversation_subject_diplomacy_2 #the art of feasting
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = education_conversation_subject_diplomacy_3 #etiquette in foreign courts
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = education_conversation_subject_diplomacy_4 #journeys to faraway lands
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = education_conversation_subject_diplomacy_5 #the art of giving public speeches
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_1 #theological treatises
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_2 #metaphysical conundrums
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_3 #the stars and planets
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_4 #the nature of unusual diseases
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_5 #collecting rare manuscripts
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_6 #bibliomancy
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_7 #calligraphy
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = education_conversation_subject_stewardship_1 #gold minting reduction
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = education_conversation_subject_stewardship_2 #development of trade routes
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = education_conversation_subject_stewardship_3 #best practices for tax collectors
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = education_conversation_subject_stewardship_4 #cartography
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = education_conversation_subject_stewardship_5 #book-keeping
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = education_conversation_subject_stewardship_6 #cadastral surveys
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = education_conversation_subject_intrigue_1 #shadowy rumors
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = education_conversation_subject_intrigue_2 #dagger-smiths
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = education_conversation_subject_intrigue_3 #exotic poisons and their antidotes
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = education_conversation_subject_intrigue_4 #ciphers
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = education_conversation_subject_intrigue_5 #ancient conspiracies
	}
}

#A subject of interest to a character, might contain pronouns such as "his wife"
herhis_subject_of_interest = {
	type = character
	random_valid = yes


	### DIPLOMACY ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:court_politics
			}
			trigger_else = {
				OR = {
					has_education_diplomacy_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus }
					diplomacy >= high_skill_rating
				}
			}
		}
		localization_key = court_politics
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:court_alliances
			}
			trigger_else = {
				OR = {
					has_education_diplomacy_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus }
					diplomacy >= high_skill_rating
				}
			}
		}
		localization_key = court_alliances
	}

	### MARTIAL ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:education_conversation_subject_martial_2
			}
			trigger_else = {
				OR = {
					has_education_martial_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus }
					has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus }
					martial >= high_skill_rating
				}
			}
		}
		localization_key = education_conversation_subject_martial_2 #ancient campaigns
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:troop_compositions
			}
			trigger_else = {
				OR = {
					has_education_martial_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus }
					martial >= high_skill_rating
				}
			}
		}
		localization_key = troop_compositions
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:sword_practise
			}
			trigger_else = {
				OR = {
					has_education_martial_trigger = yes
					has_trait = lifestyle_blademaster
					has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus }
				}
			}
		}
		localization_key = sword_practise
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:military_strategies
			}
			trigger_else = {
				OR = {
					has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus }
					has_education_martial_trigger = yes
				}
			}
		}
		localization_key = military_strategies
	}

	### STEWARDSHIP ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:trade_routes
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus }
					stewardship >= high_skill_rating
				}
			}
		}
		localization_key = trade_routes
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:tax_levels
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus }
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus }
					stewardship >= high_skill_rating
					has_trait = greedy
				}
			}
		}
		localization_key = tax_levels
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_investments
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_trait = greedy
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus }
				}
			}
		}
		localization_key = herhis_investments
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:lawmaking
			}
			trigger_else = {
				has_trait = just
				has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus }
			}
		}
		localization_key = lawmaking
	}

	### INTRIGUE ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:poisons
			}
			trigger_else = {
				OR = {
					has_education_intrigue_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus }
					intrigue >= high_skill_rating
				}
			}
		}
		localization_key = poisons
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:the_rumors_at_court
			}
			trigger_else = {
				OR = {
					has_education_intrigue_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus }
					intrigue >= high_skill_rating
				}
			}
		}
		localization_key = the_rumors_at_court
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:the_art_of_love
			}
			trigger_else = {
				OR = {
					has_trait = lustful
					has_focus_or_focus_trait_trigger = { FOCUS = intrigue_temptation_focus }
				}
			}
		}
		localization_key = the_art_of_love
	}

	### LEARNING ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:education_conversation_subject_learning_1
			}
			trigger_else = {
				OR = {
					has_education_learning_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = learning_theology_focus }
					learning >= high_skill_rating
				}
			}
		}
		localization_key = education_conversation_subject_learning_1 #theological treatises
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_tome_collection
			}
			trigger_else = {
				OR = {
					has_education_learning_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = learning_scholarship_focus }
				}
			}
		}
		localization_key = herhis_tome_collection
	}

	### RELATIONS ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_daughter
			}
			trigger_else = {
				any_child = {
					is_male = no
					reverse_opinion = {
						target = PREV
						value > 40
					}
				}
			}
		}
		localization_key = herhis_favorite_daughter
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_son
			}
			trigger_else = {
				any_child = {
					is_male = yes
					reverse_opinion = {
						target = PREV
						value > 40
					}
				}
			}
		}
		localization_key = herhis_favorite_son
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_beloved_spouse
			}
			trigger_else = {
				any_spouse = {
					reverse_opinion = {
						target = PREV
						value > 50
					}
				}
			}
		}
		localization_key = herhis_beloved_spouse
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_friends
			}
			trigger_else = {
				OR = {
					num_of_relation_friend >= 1
				}
			}
		}
		localization_key = herhis_friends
	}

	### MISC ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:parties_shehe_has_attended
			}
			trigger_else = {
				OR = {
					has_trait = diplomat
					has_trait = lifestyle_reveler
					has_trait = drunkard
				}
			}
		}
		localization_key = parties_shehe_has_attended
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_best_hunting_kills
			}
			trigger_else = {
				has_trait = lifestyle_hunter
			}
		}
		localization_key = herhis_best_hunting_kills
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_favorite_food
			}
			trigger_else = {
				has_trait = gluttonous
			}
		}
		localization_key = herhis_favorite_food
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herselfhimself
			}
			trigger_else = {
				has_trait = arrogant
			}
		}
		localization_key = herselfhimself
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_ambitions
			}
			trigger_else = {
				has_trait = ambitious
			}
		}
		localization_key = herhis_ambitions
	}
	
	text = {
		trigger = {
			always = no
		}
		fallback = yes
		localization_key = fallback_conversation
	}
}


#A subject of interest to a character, might contain pronouns such as "my wife"
my_subject_of_interest = {
	type = character
	random_valid = yes


	### DIPLOMACY ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:court_politics
			}
			trigger_else = {
				OR = {
					has_education_diplomacy_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus }
					diplomacy >= high_skill_rating
				}
			}
		}
		localization_key = court_politics
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:court_alliances
			}
			trigger_else = {
				OR = {
					has_education_diplomacy_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = diplomacy_majesty_focus }
					diplomacy >= high_skill_rating
				}
			}
		}
		localization_key = court_alliances
	}

	### MARTIAL ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:education_conversation_subject_martial_2
			}
			trigger_else = {
				OR = {
					has_education_martial_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus }
					has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus }
					martial >= high_skill_rating
				}
			}
		}
		localization_key = education_conversation_subject_martial_2 #ancient campaigns
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:troop_compositions
			}
			trigger_else = {
				OR = {
					has_education_martial_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus }
					martial >= high_skill_rating
				}
			}
		}
		localization_key = troop_compositions
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:sword_practise
			}
			trigger_else = {
				OR = {
					has_education_martial_trigger = yes
					has_trait = lifestyle_blademaster
					has_focus_or_focus_trait_trigger = { FOCUS = martial_chivalry_focus }
				}
			}
		}
		localization_key = sword_practise
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:military_strategies
			}
			trigger_else = {
				OR = {
					has_focus_or_focus_trait_trigger = { FOCUS = martial_strategy_focus }
					has_education_martial_trigger = yes
				}
			}
		}
		localization_key = military_strategies
	}

	### STEWARDSHIP ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:trade_routes
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus }
					stewardship >= high_skill_rating
				}
			}
		}
		localization_key = trade_routes
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:tax_levels
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus }
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus }
					stewardship >= high_skill_rating
					has_trait = greedy
				}
			}
		}
		localization_key = tax_levels
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_investments
			}
			trigger_else = {
				OR = {
					has_education_stewardship_trigger = yes
					has_trait = greedy
					has_focus_or_focus_trait_trigger = { FOCUS = stewardship_wealth_focus }
				}
			}
		}
		localization_key = my_investments
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:lawmaking
			}
			trigger_else = {
				has_trait = just
				has_focus_or_focus_trait_trigger = { FOCUS = stewardship_domain_focus }
			}
		}
		localization_key = lawmaking
	}

	### INTRIGUE ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:poisons
			}
			trigger_else = {
				OR = {
					has_education_intrigue_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus }
					intrigue >= high_skill_rating
				}
			}
		}
		localization_key = poisons
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:the_rumors_at_court
			}
			trigger_else = {
				OR = {
					has_education_intrigue_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = intrigue_skulduggery_focus }
					intrigue >= high_skill_rating
				}
			}
		}
		localization_key = the_rumors_at_court
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:the_art_of_love
			}
			trigger_else = {
				OR = {
					has_trait = lustful
					has_focus_or_focus_trait_trigger = { FOCUS = intrigue_temptation_focus }
				}
			}
		}
		localization_key = the_art_of_love
	}

	### LEARNING ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:education_conversation_subject_learning_1
			}
			trigger_else = {
				OR = {
					has_education_learning_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = learning_theology_focus }
					learning >= high_skill_rating
				}
			}
		}
		localization_key = education_conversation_subject_learning_1 #theological treatises
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_tome_collection
			}
			trigger_else = {
				OR = {
					has_education_learning_trigger = yes
					has_focus_or_focus_trait_trigger = { FOCUS = learning_scholarship_focus }
				}
			}
		}
		localization_key = my_tome_collection
	}

	### RELATIONS ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_daughter
			}
			trigger_else = {
				any_child = {
					is_male = no
					reverse_opinion = {
						target = PREV
						value > 50
					}
				}
			}
		}
		localization_key = my_favorite_daughter
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_favorite_son
			}
			trigger_else = {
				any_child = {
					is_male = yes
					reverse_opinion = {
						target = PREV
						value > 50
					}
				}
			}
		}
		localization_key = my_favorite_son
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_beloved_spouse
			}
			trigger_else = {
				any_spouse = {
					reverse_opinion = {
						target = PREV
						value > 50
					}
				}
			}
		}
		localization_key = my_beloved_spouse
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_friends
			}
			trigger_else = {
				OR = {
					num_of_relation_friend >= 1
				}
			}
		}
		localization_key = my_friends
	}

	### MISC ###
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:parties_shehe_has_attended
			}
			trigger_else = {
				OR = {
					has_trait = diplomat
					has_trait = lifestyle_reveler
					has_trait = drunkard
				}
			}
		}
		localization_key = parties_shehe_has_attended
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_best_hunting_kills
			}
			trigger_else = {
				has_trait = lifestyle_hunter
			}
		}
		localization_key = my_best_hunting_kills
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				var:subject_of_interest = flag:herhis_favorite_food
			}
			trigger_else = {
				has_trait = gluttonous
			}
		}
		localization_key = my_favorite_food
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herselfhimself
			}
			trigger_else = {
				has_trait = arrogant
			}
		}
		localization_key = myself
	}
	text = {
		trigger = {
			trigger_if = {
				limit = { has_variable = subject_of_interest }
				always = no #not used yet: var:subject_of_interest = flag:herhis_ambitions
			}
			trigger_else = {
				has_trait = ambitious
			}
		}
		localization_key = my_ambitions
	}
	
	text = {
		trigger = {
			always = no
		}
		fallback = yes
		localization_key = fallback_conversation
	}
}

#Same as herhis_interesting_subject but without reference to any characters
subject_of_interest = {
	type = character
	random_valid = yes

	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = education_conversation_subject_martial_2 #ancient campaigns
	}
	text = {
		trigger = { has_education_martial_trigger = yes }
		localization_key = troop_compositions
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = court_politics
	}
	text = {
		trigger = { has_education_diplomacy_trigger = yes }
		localization_key = court_alliances
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = trade_routes
	}
	text = {
		trigger = { has_education_stewardship_trigger = yes }
		localization_key = tax_levels
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = poisons
	}
	text = {
		trigger = { has_education_intrigue_trigger = yes }
		localization_key = the_rumors_at_court
	}
	text = {
		trigger = { has_education_learning_trigger = yes }
		localization_key = education_conversation_subject_learning_1 #theological treatises
	}
	text = {
		trigger = {
			any_child = {
				reverse_opinion = {
					target = PREV
					value > 40
				}
			}
		}
		localization_key = the_blessings_of_family
	}
	text = {
		trigger = {
			any_spouse = {
				reverse_opinion = {
					target = PREV
					value > 50
				}
			}
		}
		localization_key = the_blessings_of_marriage
	}
	text = {
		trigger = {
			OR = {
				has_education_stewardship_trigger = yes
				has_trait = greedy
			}
		}
		localization_key = investment_opportunities
	}
	text = {
		trigger = {
			OR = {
				has_education_martial_trigger = yes
				has_trait = lifestyle_blademaster
			}
		}
		localization_key = sword_practise
	}
	text = {
		trigger = {
			OR = {
				has_education_learning_trigger = yes
				has_trait = scholar
			}
		}
		localization_key = tome_collections
	}
	text = {
		trigger = {
			OR = {
				num_of_relation_friend > 0
				num_of_relation_best_friend > 0
				has_trait = diplomat
			}
		}
		localization_key = friendship
	}
	text = {
		trigger = {
			OR = {
				has_trait = diplomat
				has_trait = lifestyle_reveler
				has_trait = drunkard
			}
		}
		localization_key = parties
	}
	text = {
		trigger = {
			has_trait = lifestyle_hunter
		}
		localization_key = hunting
	}
	text = {
		trigger = {
			OR = {
				has_trait = strategist
				has_education_martial_trigger = yes
			}
		}
		localization_key = military_strategies
	}
	text = {
		trigger = {
			OR = {
				has_trait = seducer
				has_trait = lustful
			}
		}
		localization_key = the_art_of_love
	}
	text = {
		trigger = { has_trait = gluttonous }
		localization_key = sugary_treats
	}
	text = {
		trigger = { has_trait = just }
		localization_key = lawmaking
	}
}


MatchingConversationSubject = {
	type = character
	random_valid = yes

	text = {
		trigger = {
			OR = {
				has_trait = education_martial
				has_lifestyle = martial_lifestyle
				has_martial_lifestyle_trait_trigger = yes
			}
			scope:second = {
				OR = {
					has_trait = education_martial
					has_lifestyle = martial_lifestyle
					has_martial_lifestyle_trait_trigger = yes
				}
			}
		}
		localization_key = education_conversation_subject_martial_1 #new strategies
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_martial
				has_lifestyle = martial_lifestyle
				has_martial_lifestyle_trait_trigger = yes
			}
			scope:second = {
				OR = {
					has_trait = education_martial
					has_lifestyle = martial_lifestyle
					has_martial_lifestyle_trait_trigger = yes
				}
			}
		}
		localization_key = education_conversation_subject_martial_2 #ancient campaigns
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_martial
				has_lifestyle = martial_lifestyle
				has_trait = lifestyle_hunter
				has_trait = lifestyle_blademaster
			}
			scope:second = {
				OR = {
					has_trait = education_martial
					has_lifestyle = martial_lifestyle
					has_trait = lifestyle_hunter
					has_trait = lifestyle_blademaster
				}
			}
		}
		localization_key = conversation_subject_fighting_techniques #how to bring a foe down
	}
	text = {
		trigger = {
			
			OR = {
				has_trait = education_diplomacy
				has_diplomacy_lifestyle_trait_trigger = yes
				has_trait = seducer
				has_lifestyle = diplomacy_lifestyle
			}
			scope:second = {
				OR = {
					has_lifestyle = diplomacy_lifestyle
					has_trait = seducer
					has_diplomacy_lifestyle_trait_trigger = yes
					has_trait = education_diplomacy
				}
			}
		}
		localization_key = education_conversation_subject_diplomacy_1 #other lords
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_diplomacy
				has_lifestyle = diplomacy_lifestyle
				has_trait = lifestyle_reveler
				has_diplomacy_lifestyle_trait_trigger = yes
				has_trait = gregarious
			}
			scope:second = {
				OR = {
					has_lifestyle = diplomacy_lifestyle
					has_trait = education_diplomacy
					has_trait = lifestyle_reveler
					has_diplomacy_lifestyle_trait_trigger = yes
					has_trait = gregarious
				}
			}
		}
		localization_key = education_conversation_subject_diplomacy_2 #the art of feasting
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_diplomacy
				has_lifestyle = diplomacy_lifestyle
				has_diplomacy_lifestyle_trait_trigger = yes
				has_trait = gregarious
			}
			scope:second = {
				OR = {
					has_lifestyle = diplomacy_lifestyle
					has_trait = education_diplomacy
					has_diplomacy_lifestyle_trait_trigger = yes
					has_trait = gregarious
				}
			}
		}
		localization_key = education_conversation_subject_charm #true charm
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_learning
				has_lifestyle = learning_lifestyle
				has_learning_lifestyle_trait_trigger = yes
			}
			scope:second = {
				OR = {
					has_trait = education_learning
					has_lifestyle = learning_lifestyle
					has_learning_lifestyle_trait_trigger = yes
				}
			}
		}
		localization_key = education_conversation_subject_learning_1 #theological treatises
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_learning
				has_trait = lunatic
				has_lifestyle = learning_lifestyle
				has_learning_lifestyle_trait_trigger = yes
				has_trait = zealous
				has_trait = cynical
			}
			scope:second = {
				OR = {
					has_trait = education_learning
					has_trait = lunatic
					has_lifestyle = learning_lifestyle
					has_learning_lifestyle_trait_trigger = yes
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
		localization_key = education_conversation_subject_learning_2 #metaphysical conundrums
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_stewardship
				has_lifestyle = stewardship_lifestyle
				has_stewardship_lifestyle_trait_trigger = yes
				has_trait = greedy
			}
			scope:second = {
				OR = {
					has_trait = greedy
					has_trait = education_stewardship
					has_lifestyle = stewardship_lifestyle
					has_stewardship_lifestyle_trait_trigger = yes
				}	
			}
		}
		localization_key = education_conversation_subject_stewardship_1 #gold minting reduction
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_stewardship
				has_lifestyle = stewardship_lifestyle
				has_stewardship_lifestyle_trait_trigger = yes
				has_trait = diligent
			}
			scope:second = {
				OR = {
					has_trait = diligent
					has_trait = education_stewardship
					has_lifestyle = stewardship_lifestyle
					has_stewardship_lifestyle_trait_trigger = yes
				}	
			}
		}
		localization_key = education_conversation_subject_stewardship_2 #development of trade routes
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_stewardship
				has_lifestyle = stewardship_lifestyle
				has_stewardship_lifestyle_trait_trigger = yes
				has_trait = diligent
				has_trait = greedy
			}
			scope:second = {
				OR = {
					has_trait = diligent
					has_trait = greedy
					has_trait = education_stewardship
					has_lifestyle = stewardship_lifestyle
					has_stewardship_lifestyle_trait_trigger = yes
				}	
			}
		}
		localization_key = education_conversation_subject_stewardship_3 #tax collection
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_intrigue
				has_lifestyle = intrigue_lifestyle
				has_intrigue_lifestyle_trait_trigger = yes
				has_trait = paranoid
			}
			scope:second = {
				OR = {
					has_trait = education_intrigue
					has_lifestyle = intrigue_lifestyle
					has_intrigue_lifestyle_trait_trigger = yes
					has_trait = paranoid
				}	
			}
		}
		localization_key = education_conversation_subject_intrigue_1 #shadowy rumors
	}
	text = {
		trigger = {
			OR = {
				has_trait = education_intrigue
				has_lifestyle = intrigue_lifestyle
				has_intrigue_lifestyle_trait_trigger = yes
				has_trait = paranoid
				AND = {
					has_trait = ambitious
					has_trait = deceitful
				}
			}
			scope:second = {
				OR = {
					has_trait = education_intrigue
					has_lifestyle = intrigue_lifestyle
					has_intrigue_lifestyle_trait_trigger = yes
					has_trait = paranoid
					AND = {
						has_trait = ambitious
						has_trait = deceitful
					}
				}	
			}
		}
		localization_key = education_conversation_subject_intrigue_2 #dagger-smiths
	}

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