﻿# Events for children centering around the relationships bully/crush/friend

namespace = childhood



# Response event for crush
# by Linnéa Thimrén
childhood.0999 = {
	type = character_event
	title = childhood.0999.t
	desc = {
		desc = childhood.0999.desc
		triggered_desc = {
			trigger = {
				has_character_flag = unrequited_crush
			}
			desc = childhood.0999.desc_unrequited
		}
	}
	theme = friendly
	left_portrait = scope:root_crush
	
	trigger = {
		has_character_flag = crush_over	
	}

	immediate = {
		if = {
			limit = {
				NOT = { has_character_flag = unrequited_crush }
			}
			if = {
				limit = {
					is_ai = no
				}
				set_variable = {
					name = had_childhood_crush_variable
					value = scope:root_crush
				}
			}
		}
	}

	option = {
		name = childhood.0999.a
		add_opinion = {
			modifier = childhood_crush
			target = scope:root_crush
		}
		if = {
			limit = {
				has_relation_crush = scope:root_crush
			}
			remove_relation_crush = scope:root_crush
		}
	}
	after = {
		# Family romance mod
		if = {
			limit = {
				has_character_flag = unrequited_crush
			}
			set_variable = {
				name = fr_family_unrequired_crush
				value = scope:root_crush
			}
		}
		# Family romance mod
		remove_character_flag = crush_over		
		remove_character_flag = unrequited_crush
	}
}