namespace = bp2_character_interaction

# Influence Ward's Personality - Success Event
bp2_character_interaction.1001 = {
	type = character_event
	content_source = dlc_009
	title = bp2_character_interaction.1001.t
	desc = {
		desc = bp2_character_interaction.1001.desc_intro
		first_valid = {
			triggered_desc = {
				trigger = { scope:target_trait = trait:lustful }
				desc = bp2_character_interaction.1001.desc_lustful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:chaste }
				desc = bp2_character_interaction.1001.desc_chaste
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:gluttonous }
				desc = bp2_character_interaction.1001.desc_gluttonous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:temperate }
				desc = bp2_character_interaction.1001.desc_temperate
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:greedy }
				desc = bp2_character_interaction.1001.desc_greedy
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:generous }
				desc = bp2_character_interaction.1001.desc_generous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:lazy }
				desc = bp2_character_interaction.1001.desc_lazy
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:diligent }
				desc = bp2_character_interaction.1001.desc_diligent
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:wrathful }
				desc = bp2_character_interaction.1001.desc_wrathful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:calm }
				desc = bp2_character_interaction.1001.desc_calm
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:patient }
				desc = bp2_character_interaction.1001.desc_patient
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:impatient }
				desc = bp2_character_interaction.1001.desc_impatient
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:arrogant}
				desc = bp2_character_interaction.1001.desc_arrogant
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:humble }
				desc = bp2_character_interaction.1001.desc_humble
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:deceitful }
				desc = bp2_character_interaction.1001.desc_deceitful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:honest }
				desc = bp2_character_interaction.1001.desc_honest
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:craven }
				desc = bp2_character_interaction.1001.desc_craven
			} 
			triggered_desc = {
				trigger = {
					scope:target_trait = trait:brave
					scope:recipient = { is_landed = yes }
				}
				desc = bp2_character_interaction.1001.desc_brave_self
			}
			triggered_desc = {
				trigger = {
					scope:target_trait = trait:brave
					scope:recipient = { exists = liege }
				}
				desc = bp2_character_interaction.1001.desc_brave_liege
			}
			triggered_desc = {
				trigger = {
					scope:target_trait = trait:brave
				}
				desc = bp2_character_interaction.1001.desc_brave_root
			}
			triggered_desc = {
				trigger = { scope:target_trait = trait:shy }
				desc = bp2_character_interaction.1001.desc_shy
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:gregarious }
				desc = bp2_character_interaction.1001.desc_gregarious
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:ambitious }
				desc = bp2_character_interaction.1001.desc_ambitious
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:content }
				desc = bp2_character_interaction.1001.desc_content
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:arbitrary }
				desc = bp2_character_interaction.1001.desc_arbitrary
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:just }
				desc = bp2_character_interaction.1001.desc_just
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:cynical }
				desc = bp2_character_interaction.1001.desc_cynical
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:zealous }
				desc = bp2_character_interaction.1001.desc_zealous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:paranoid }
				desc = bp2_character_interaction.1001.desc_paranoid
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:trusting }
				desc = bp2_character_interaction.1001.desc_trusting
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:compassionate }
				desc = bp2_character_interaction.1001.desc_compassionate
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:callous }
				desc = bp2_character_interaction.1001.desc_callous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:sadistic }
				desc = bp2_character_interaction.1001.desc_sadistic
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:stubborn }
				desc = bp2_character_interaction.1001.desc_stubborn
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:fickle }
				desc = bp2_character_interaction.1001.desc_fickle
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:eccentric }
				desc = bp2_character_interaction.1001.desc_eccentric
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:vengeful }
				desc = bp2_character_interaction.1001.desc_vengeful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:forgiving }
				desc = bp2_character_interaction.1001.desc_forgiving
			} 
		}
	}
	theme = family
	override_background = {
		trigger = {
			scope:recipient = {
				age < 12
			}
		}
		reference = bp2_nursery
	}
	override_background = {
		trigger = {
			scope:recipient = {
				age >= 12
			}
		}
		reference = garden
	}
	
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:recipient
		triggered_animation = {
			trigger = {
				OR = {
					scope:target_trait = trait:greedy
					scope:target_trait = trait:generous
				}
			}
			animation = hunting_shortbow_rest_arrow_default
		}
		animation = admiration
	}

	trigger = {
		exists = scope:target_trait
	}

	immediate = {
		scope:recipient = {
			set_favorite_toy_effect = yes
		}
	}

	option = { 
		name = bp2_character_interaction.1001.a
		flavor = bp2_character_interaction.1001.a.flavor
		add_opinion = {
			target = scope:recipient
			modifier = pleased_opinion
			opinion = 20
		}
		scope:recipient = {
			add_trait = scope:target_trait
			add_opinion = {
				target = root
				modifier = admiration_opinion
				opinion = 20
			}
		}
		if = {
			limit = {
				scope:recipient = {
					any_parent = {
						this != root
						is_ai = no
					}
				}
			}
			scope:recipient = {
				every_parent = {
					limit = {
						this != root
					 	is_ai = no
					}
					send_interface_message = {
						type = event_childhood_good_text
						title = guardian_influenced_personality
						desc = guardian_influenced_personality_desc
						left_icon = scope:recipient
						right_icon = scope:actor
					}
				}
			}
		}
		stress_impact = {
			base = minor_stress_impact_gain
		}
	}
}

# Influence Ward's Personality - Basic Failure Event
bp2_character_interaction.1002 = {
	type = character_event
	content_source = dlc_009
	title = bp2_character_interaction.1002.t
	desc = {
		desc = bp2_character_interaction.1002.desc_intro
		first_valid = {
			triggered_desc = {
				trigger = { scope:target_trait = trait:lustful }
				desc = bp2_character_interaction.1002.desc_lustful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:chaste }
				desc = bp2_character_interaction.1002.desc_chaste
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:gluttonous }
				desc = bp2_character_interaction.1002.desc_gluttonous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:temperate }
				desc = bp2_character_interaction.1002.desc_temperate
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:greedy }
				desc = bp2_character_interaction.1002.desc_greedy
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:generous }
				desc = bp2_character_interaction.1002.desc_generous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:lazy }
				desc = bp2_character_interaction.1002.desc_lazy
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:diligent }
				desc = bp2_character_interaction.1002.desc_diligent
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:wrathful }
				desc = bp2_character_interaction.1002.desc_wrathful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:calm }
				desc = bp2_character_interaction.1002.desc_calm
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:patient }
				desc = bp2_character_interaction.1002.desc_patient
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:impatient }
				desc = bp2_character_interaction.1002.desc_impatient
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:arrogant}
				desc = bp2_character_interaction.1002.desc_arrogant
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:humble }
				desc = bp2_character_interaction.1002.desc_humble
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:deceitful }
				desc = bp2_character_interaction.1002.desc_deceitful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:honest }
				desc = bp2_character_interaction.1002.desc_honest
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:craven }
				desc = bp2_character_interaction.1002.desc_craven
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:brave }
				desc = bp2_character_interaction.1002.desc_brave
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:shy }
				desc = bp2_character_interaction.1002.desc_shy
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:gregarious }
				desc = bp2_character_interaction.1002.desc_gregarious
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:ambitious }
				desc = bp2_character_interaction.1002.desc_ambitious
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:content }
				desc = bp2_character_interaction.1002.desc_content
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:arbitrary }
				desc = bp2_character_interaction.1002.desc_arbitrary
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:just }
				desc = bp2_character_interaction.1002.desc_just
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:cynical }
				desc = bp2_character_interaction.1002.desc_cynical
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:zealous }
				desc = bp2_character_interaction.1002.desc_zealous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:paranoid }
				desc = bp2_character_interaction.1002.desc_paranoid
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:trusting }
				desc = bp2_character_interaction.1002.desc_trusting
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:compassionate }
				desc = bp2_character_interaction.1002.desc_compassionate
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:callous }
				desc = bp2_character_interaction.1002.desc_callous
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:sadistic }
				desc = bp2_character_interaction.1002.desc_sadistic
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:stubborn }
				desc = bp2_character_interaction.1002.desc_stubborn
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:fickle }
				desc = bp2_character_interaction.1002.desc_fickle
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:eccentric }
				desc = bp2_character_interaction.1002.desc_eccentric
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:vengeful }
				desc = bp2_character_interaction.1002.desc_vengeful
			} 
			triggered_desc = {
				trigger = { scope:target_trait = trait:forgiving }
				desc = bp2_character_interaction.1002.desc_forgiving
			} 
		}
	}
	theme = family
	override_background = {
		trigger = {
			scope:recipient = {
				age < 12
			}
		}
		reference = bp2_nursery
	}
	override_background = {
		trigger = {
			scope:recipient = {
				age >= 12
			}
		}
		reference = garden
	}
	
	left_portrait = {
		character = root
		animation = stress
	}
	right_portrait = {
		character = scope:recipient
		triggered_animation = {
			trigger = {
				OR = {
					scope:target_trait = trait:greedy
					scope:target_trait = trait:generous
				}
			}
			animation = hunting_shortbow_rest_arrow_default
		}
		triggered_animation = {
			trigger = { scope:target_trait = trait:paranoid }
			animation = disapproval
		}
		triggered_animation = {
			trigger = { scope:recipient = { age >= 12 } }
			animation = shame
		}
		animation = clutching_toy
	}

	immediate = {
		scope:recipient = {
			set_favorite_toy_effect = yes
		}
	}

	option = { 
		name = bp2_character_interaction.1002.a
		flavor = bp2_character_interaction.1002.a.flavor
		scope:recipient = {
			add_opinion = {
				target = root
				modifier = confused_opinion
				opinion = -20
			}
		}
		add_opinion = {
			target = scope:recipient
			modifier = disappointed_opinion
			opinion = -20
		}
		if = {
			limit = {
				scope:recipient = {
					any_parent = {
						this != root
						is_ai = no
					}
				}
			}
			scope:recipient = {
				every_parent = {
					limit = {
						this != root
					 	is_ai = no
					}
					send_interface_message = {
						type = event_childhood_bad_text
						title = guardian_influenced_personality_fail
						desc = guardian_influenced_personality_fail_desc
						left_icon = scope:recipient
						right_icon = scope:actor
					}
				}
			}
		}
		stress_impact = {
			base = medium_stress_impact_gain
		}
	}
}
