﻿namespace = gptev_coming_of_age

# Dispatcher event - randomly selects which trait event to fire
gptev_coming_of_age.0001 = {
    hidden = yes

	trigger = {
		OR = {
			is_ai = no
			any_parent = {
				is_ai = no
			}
		}
		gpt_has_genetic_trait = no
	}
    
    immediate = {
		this = { save_scope_as = child }
		if = {
			limit = {
				exists = root.father
			}
			root.father = { save_scope_as = father }
		}
		if = {
			limit = {
				exists = root.mother
			}
			root.mother = { save_scope_as = mother }
		}

		if = {
			limit = {
				is_ai = no
			}
			random_list = {
				300 = { }
				4 = { trigger_event = gptev_coming_of_age.0101 } # beauty_good
				3 = { trigger_event = gptev_coming_of_age.0102 } # beauty_bad
				2 = { trigger_event = gptev_coming_of_age.0201 } # intellect_good
				1 = { trigger_event = gptev_coming_of_age.0202 } # intellect_bad
				3 = { trigger_event = gptev_coming_of_age.0301 } # physique_good
				2 = { trigger_event = gptev_coming_of_age.0302 } # physique_bad
				1 = { trigger_event = gptev_coming_of_age.0401 } # fecund
				1 = { trigger_event = gptev_coming_of_age.0402 } # impotent
				1 = { trigger_event = gptev_coming_of_age.0501 } # strong
				1 = { trigger_event = gptev_coming_of_age.0502 } # weak
				1 = { trigger_event = gptev_coming_of_age.0601 } # shrewd
				1 = { trigger_event = gptev_coming_of_age.0602 } # dull
				1 = { trigger_event = gptev_coming_of_age.0701 } # deviant
				1 = { trigger_event = gptev_coming_of_age.0702 } # depressed_genetic
				1 = { trigger_event = gptev_coming_of_age.0703 } # lunatic_genetic
				1 = { trigger_event = gptev_coming_of_age.0704 } # possessed_genetic
			}
		}
		else_if ={
			limit = {
				exists = scope:father
				scope:father = {
					is_ai = no
				}
			}
			scope:father = {
				random_list = {
					300 = { }
					4 = { trigger_event = gptev_coming_of_age.0101 } # beauty_good
                    3 = { trigger_event = gptev_coming_of_age.0102 } # beauty_bad
                    2 = { trigger_event = gptev_coming_of_age.0201 } # intellect_good
                    1 = { trigger_event = gptev_coming_of_age.0202 } # intellect_bad
                    3 = { trigger_event = gptev_coming_of_age.0301 } # physique_good
                    2 = { trigger_event = gptev_coming_of_age.0302 } # physique_bad
                    1 = { trigger_event = gptev_coming_of_age.0401 } # fecund
                    1 = { trigger_event = gptev_coming_of_age.0402 } # impotent
                    1 = { trigger_event = gptev_coming_of_age.0501 } # strong
                    1 = { trigger_event = gptev_coming_of_age.0502 } # weak
                    1 = { trigger_event = gptev_coming_of_age.0601 } # shrewd
                    1 = { trigger_event = gptev_coming_of_age.0602 } # dull
                    1 = { trigger_event = gptev_coming_of_age.0701 } # deviant
                    1 = { trigger_event = gptev_coming_of_age.0702 } # depressed_genetic
                    1 = { trigger_event = gptev_coming_of_age.0703 } # lunatic_genetic
                    1 = { trigger_event = gptev_coming_of_age.0704 } # possessed_genetic
				}
			}
		}
		else_if ={
			limit = {
				exists = scope:mother
				scope:mother = {
					is_ai = no
				}
			}
			scope:mother = {
				random_list = {
					300 = { }
					4 = { trigger_event = gptev_coming_of_age.0101 } # beauty_good
                    3 = { trigger_event = gptev_coming_of_age.0102 } # beauty_bad
                    2 = { trigger_event = gptev_coming_of_age.0201 } # intellect_good
                    1 = { trigger_event = gptev_coming_of_age.0202 } # intellect_bad
                    3 = { trigger_event = gptev_coming_of_age.0301 } # physique_good
                    2 = { trigger_event = gptev_coming_of_age.0302 } # physique_bad
                    1 = { trigger_event = gptev_coming_of_age.0401 } # fecund
                    1 = { trigger_event = gptev_coming_of_age.0402 } # impotent
                    1 = { trigger_event = gptev_coming_of_age.0501 } # strong
                    1 = { trigger_event = gptev_coming_of_age.0502 } # weak
                    1 = { trigger_event = gptev_coming_of_age.0601 } # shrewd
                    1 = { trigger_event = gptev_coming_of_age.0602 } # dull
                    1 = { trigger_event = gptev_coming_of_age.0701 } # deviant
                    1 = { trigger_event = gptev_coming_of_age.0702 } # depressed_genetic
                    1 = { trigger_event = gptev_coming_of_age.0703 } # lunatic_genetic
                    1 = { trigger_event = gptev_coming_of_age.0704 } # possessed_genetic
				}
			}
		}
    }
}

# Beauty Good
gptev_coming_of_age.0101 = {
    type = character_event
    title = gptev_coming_of_age.0101.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0101.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0101.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0101.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = admiration
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = happiness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = flirtation
    }
    
    immediate = {
        scope:child = {
            add_trait = beauty_good_1
        }
    }
    
    option = {
        name = gptev_coming_of_age.0101.a
    }
}

# Beauty Bad
gptev_coming_of_age.0102 = {
    type = character_event
    title = gptev_coming_of_age.0102.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0102.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0102.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0102.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = disappointment
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = sadness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = shame
    }
    
    immediate = {
        scope:child = {
            add_trait = beauty_bad_1
        }
    }
    
    option = {
        name = gptev_coming_of_age.0102.a
    }
}

# Intellect Good
gptev_coming_of_age.0201 = {
    type = character_event
    title = gptev_coming_of_age.0201.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0201.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0201.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0201.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = happiness
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = throne_room_applaud_1
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = thinking
    }
    
    immediate = {
        scope:child = {
            add_trait = intellect_good_1
        }
    }
    
    option = {
        name = gptev_coming_of_age.0201.a
    }
}

# Intellect Bad
gptev_coming_of_age.0202 = {
    type = character_event
    title = gptev_coming_of_age.0202.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0202.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0202.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0202.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = sadness
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = worry
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = disappointed
    }
    
    immediate = {
        scope:child = {
            add_trait = intellect_bad_1
        }
    }
    
    option = {
        name = gptev_coming_of_age.0202.a
    }
}

# Physique Good
gptev_coming_of_age.0301 = {
    type = character_event
    title = gptev_coming_of_age.0301.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0301.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0301.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0301.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = celebrate
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = admiration
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = hero_flex
    }
    
    immediate = {
        scope:child = {
            add_trait = physique_good_1
        }
    }
    
    option = {
        name = gptev_coming_of_age.0301.a
    }
}

# Physique Bad
gptev_coming_of_age.0302 = {
    type = character_event
    title = gptev_coming_of_age.0302.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0302.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0302.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0302.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = worry
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = sadness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = sick
    }
    
    immediate = {
        scope:child = {
            add_trait = physique_bad_1
        }
    }
    
    option = {
        name = gptev_coming_of_age.0302.a
    }
}

# Fecund
gptev_coming_of_age.0401 = {
    type = character_event
    title = gptev_coming_of_age.0401.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0401.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0401.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0401.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = happiness
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = throne_room_applaud_1
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = happiness
    }
    
    immediate = {
        scope:child = {
            add_trait = fecund
        }
    }
    
    option = {
        name = gptev_coming_of_age.0401.a
    }
}

# Impotent
gptev_coming_of_age.0402 = {
    type = character_event
    title = gptev_coming_of_age.0402.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0402.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0402.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0402.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = disappointment
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = sadness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = shame
    }
    
    immediate = {
        scope:child = {
            add_trait = impotent
        }
    }
    
    option = {
        name = gptev_coming_of_age.0402.a
    }
}

# Strong
gptev_coming_of_age.0501 = {
    type = character_event
    title = gptev_coming_of_age.0501.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0501.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0501.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0501.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = admiration
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = happiness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = hero_flex
    }
    
    immediate = {
        scope:child = {
            add_trait = strong
        }
    }
    
    option = {
        name = gptev_coming_of_age.0501.a
    }
}

# Weak
gptev_coming_of_age.0502 = {
    type = character_event
    title = gptev_coming_of_age.0502.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0502.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0502.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0502.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = worry
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = sadness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = sick
    }
    
    immediate = {
        scope:child = {
            add_trait = weak
        }
    }
    
    option = {
        name = gptev_coming_of_age.0502.a
    }
}

# Shrewd
gptev_coming_of_age.0601 = {
    type = character_event
    title = gptev_coming_of_age.0601.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0601.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0601.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0601.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = admiration
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = happiness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = scheme
    }
    
    immediate = {
        scope:child = {
            add_trait = shrewd
        }
    }
    
    option = {
        name = gptev_coming_of_age.0601.a
    }
}

# Dull
gptev_coming_of_age.0602 = {
    type = character_event
    title = gptev_coming_of_age.0602.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0602.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0602.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0602.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = disappointment
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = worry
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = boredom
    }
    
    immediate = {
        scope:child = {
            add_trait = dull
        }
    }
    
    option = {
        name = gptev_coming_of_age.0602.a
    }
}

# Deviant
gptev_coming_of_age.0701 = {
    type = character_event
    title = gptev_coming_of_age.0701.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0701.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0701.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0701.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = worry
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = disgust
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = scheme
    }
    
    immediate = {
        scope:child = {
            add_trait = deviant
        }
    }
    
    option = {
        name = gptev_coming_of_age.0701.a
    }
}

# Depressed (Genetic)
gptev_coming_of_age.0702 = {
    type = character_event
    title = gptev_coming_of_age.0702.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0702.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0702.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0702.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = worry
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = sadness
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = sadness
    }
    
    immediate = {
        scope:child = {
            add_trait = depressed_genetic
        }
    }
    
    option = {
        name = gptev_coming_of_age.0702.a
    }
}

# Lunatic (Genetic)
gptev_coming_of_age.0703 = {
    type = character_event
    title = gptev_coming_of_age.0703.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0703.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0703.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0703.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = shock
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = fear
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = lunatic
    }
    
    immediate = {
        scope:child = {
            add_trait = lunatic_genetic
        }
    }
    
    option = {
        name = gptev_coming_of_age.0703.a
    }
}

# Possessed (Genetic)
gptev_coming_of_age.0704 = {
    type = character_event
    title = gptev_coming_of_age.0704.t
    desc = {
        triggered_desc = {
            trigger = { this = scope:child }
            desc = gptev_coming_of_age.0704.desc_child
        }
        triggered_desc = {
            trigger = { exists = scope:father scope:father = { is_alive = yes } exists = scope:mother scope:mother = { is_alive = yes } }
            desc = gptev_coming_of_age.0704.desc_parent
        }
        triggered_desc = {
            trigger = { OR = { this = scope:father this = scope:mother } OR = { NOT = { exists = scope:father scope:father = { is_alive = yes } } NOT = { exists = scope:mother scope:mother = { is_alive = yes } } } }
            desc = gptev_coming_of_age.0704.desc_father
        }
    }
    theme = family
    window = big_event_window
    
    left_portrait = {
		trigger = { exists = scope:father scope:father = { is_alive = yes } }
        character = scope:father
        animation = fear
    }
    
    right_portrait = {
		trigger = { exists = scope:mother scope:mother = { is_alive = yes } }
        character = scope:mother
        animation = shock
    }
    
    center_portrait = {
        character = scope:child
        trigger = { exists = scope:child }
        animation = manic
    }
    
    immediate = {
        scope:child = {
            add_trait = possessed_genetic
        }
    }
    
    option = {
        name = gptev_coming_of_age.0704.a
    }
}