
namespace = Plus

#reserved: Plus.4050 to Plus.4099

#######################################
# CHILDHOOD TRAIT REVEAL EVENTS
# Written by Zeress
#######################################

# Child Realizes They Are Homosexual

character_event = {
	id = Plus.4050
	desc = "EVTDESC_Plus_4050"
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	
	min_age = 10
	max_age = 16

	trigger = {
		trait = homosexual
		NOT = { has_character_flag = had_homosexual_reveal_event }
	}
	
	weight_multiplier = {
		days = 1		
	}
	
	immediate = {
		set_character_flag = had_homosexual_reveal_event
	}
		
	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
		}
		name = "EVTOPTA_PLUS_4050"
		custom_tooltip = { text = "PLUS_4050_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4051
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4051
						days = 3
					}
				}
			}
		}
	}
	
	option = {		
		name = "EVTOPTB_PLUS_4050"
		custom_tooltip = { text = "PLUS_4050_hover_ctt" }
	}
}

# Guardian discovers homosexuality
character_event = {
	id = Plus.4051
	desc = "EVTDESC_PLUS_4051"
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes
	
	option = { # Beat it out of them
		name = "EVTOPTA_PLUS_4051"
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				trait = cruel
			}
		}
		FROM = {			
			opinion = {
				modifier = opinion_bitter
				who = ROOT
				years = 20
			}
		}		
		hidden_tooltip = { 
			FROM = { 
				character_event = { id = Plus.4052 } 
				random = {
					chance = 80
					set_character_flag = guardian_suspects_gay_@ROOT
				}
			} 
		}
	}
	
	option = { # Lecture them
		name = "EVTOPTB_PLUS_4051"	
		ai_chance = {
			factor = 10

			modifier = {
				factor = 9
				trait = zealous
			}
		}
		FROM = {			
			opinion = {
				modifier = opinion_mad_at_guardian
				who = ROOT
				years = 5
			}
		}		
		hidden_tooltip = { 
			FROM = { 
				character_event = { id = Plus.4053 } 
				random = {
					chance = 80
					set_character_flag = guardian_suspects_gay_@ROOT
				}
			} 
		}
	}

	option = { # I'm just reading too much into things...
		ai_chance = {
			factor = 30			
		}
		name = "EVTOPTC_PLUS_4051"		
		hidden_tooltip = { FROM = { character_event = { id = Plus.4054 } } }
	}
}

# Guardian beats you
character_event = {
	id = Plus.4052
	desc = "EVTDESC_PLUS_4052"
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # I am so confused...
		name = "EVTOPTA_PLUS_4052"
	}
}

# Guardian lectures you
character_event = {
	id = Plus.4053
	desc = "EVTDESC_PLUS_4053"
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # I am so confused...
		name = "EVTOPTA_PLUS_4052"
	}
}

# Guardian lectures you
character_event = {
	id = Plus.4054
	desc = "EVTDESC_PLUS_4054"
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # I am so confused...
		name = "EVTOPTA_PLUS_4052"
	}
}

# Child is exceptionally smart or stupid.

character_event = {
	id = Plus.4055
	desc = {
	  trigger = {
		OR = {
			trait = genius
			trait = quick
		}
	  }
	  text = "EVTDESCa_Plus_4055"
	}
	desc = {
	  trigger = {
		OR = {
			trait = imbecile
			trait = slow
		}
	  }
	  text = "EVTDESCb_Plus_4055"
	}
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	
	min_age = 5
	max_age = 16

	trigger = {
		NOT = { has_global_flag = always_visible_traits }
		OR = {
			trait = genius
			trait = quick
			trait = imbecile
			trait = slow
		}
		NOT = { has_character_flag = had_smart_stupid_reveal_event }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.5
			age = 3
			NOT = { age = 4 }
		}
		
		modifier = {
			factor = 5
			age = 6
			NOT = { age = 7 }
		}
		
		modifier = {
			factor = 10
			age = 7
		}
	}

	immediate = {
		set_character_flag = had_smart_stupid_reveal_event
		hidden_tooltip = {
			if = {
				limit = { trait = genius }
				remove_character_modifier = hidden_genius
			}
			if = {
				limit = { trait = quick }
				remove_character_modifier = hidden_quick
			}
			if = {
				limit = { trait = imbecile }
				remove_character_modifier = hidden_imbecile
			}
			if = {
				limit = { trait = slow }
				remove_character_modifier = hidden_slow
			}
		}
	}
	
	# Genius
	
	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = genius
		}
		name = "EVTOPTA_PLUS_4055"
		custom_tooltip = { text = "PLUS_4055a_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4056
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4056
						days = 3
					}
				}
			}
		}
	}
	
	option = {
		trigger = {
			NOR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = genius
		}
		name = "EVTOPTB_PLUS_4055"
		custom_tooltip = { text = "PLUS_4055a_hover_ctt" }
	}
	
	# Quick

	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = quick
		}
		name = "EVTOPTA_PLUS_4055"
		custom_tooltip = { text = "PLUS_4055b_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4056
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4056
						days = 3
					}
				}
			}
		}
	}	
	
	option = {
		trigger = {
			has_guardian = no
			trait = quick
		}
		name = "EVTOPTB_PLUS_4055"
		custom_tooltip = { text = "PLUS_4055b_hover_ctt" }
	}
}

# Guardian discovers genius/quick
character_event = {
	id = Plus.4056
	desc = {
	  trigger = {
		FROM = {
			OR = {
				trait = genius
				trait = quick
			}
		}
	  }
	  text = "EVTDESCa_PLUS_4056"
	}
	desc = {
	  trigger = {
		FROM = {
			OR = {
				trait = imbecile
				trait = slow
			}
		}
	  }
	  text = "EVTDESCb_PLUS_4056"
	}
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # Fantastic!
		trigger = {
			FROM = { trait = genius }
		}
		name = "EVTOPTa_PLUS_4056"
		custom_tooltip = { text = "PLUS_4056a_hover_ctt" }
	}
	
	option = { # Fantastic
		trigger = {
			FROM = { trait = quick }
		}
		name = "EVTOPTa_PLUS_4056"
		custom_tooltip = { text = "PLUS_4056b_hover_ctt" }
	}
	
	option = { # You hide the rocks
		trigger = {
			FROM = { trait = imbecile }
		}
		name = "EVTOPTb_PLUS_4056"
		custom_tooltip = { text = "PLUS_4056c_hover_ctt" }
	}
	
	option = { # You hide the rocks
		trigger = {
			FROM = { trait = slow }
		}
		name = "EVTOPTb_PLUS_4056"
		custom_tooltip = { text = "PLUS_4056d_hover_ctt" }
	}
}

# Child is tall or a dwarf

character_event = {
	id = Plus.4057
	desc = {
	  trigger = {
		trait = tall
	  }
	  text = "EVTDESCa_Plus_4057"
	}
	desc = {
	  trigger = {
		trait = dwarf
	  }
	  text = "EVTDESCb_Plus_4057"
	}
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	
	min_age = 2
	max_age = 16

	trigger = {
		NOT = { has_global_flag = always_visible_traits }
		OR = {
			AND = {
				trait = tall
				age = 7
			}
			trait = dwarf
		}
		NOT = { has_character_flag = had_height_reveal_event }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.5
			
			trait = tall
			age = 2
			NOT = { age = 3 }
		}
		
		modifier = {
			factor = 5
			
			trait = tall
			age = 5
			NOT = { age = 6 }
		}
		
		modifier = {
			factor = 10
			
			trait = tall
			age = 6
		}
		
		modifier = {
			factor = 0.5
			
			trait = dwarf
			age = 2
			NOT = { age = 3 }
		}
		
		modifier = {
			factor = 5
			
			trait = dwarf
			age = 3
			NOT = { age = 4 }
		}
		
		modifier = {
			factor = 10
			
			trait = dwarf
			age = 4
		}
	}
	
	immediate = {
		set_character_flag = had_height_reveal_event
		hidden_tooltip = {
			if = {
				limit = { trait = tall }
				remove_character_modifier = hidden_tall
			}
			if = {
				limit = { trait = dwarf }
				remove_character_modifier = hidden_dwarf
			}
		}
	}
	
	# Tall
	
	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = tall
		}
		name = "EVTOPTA_PLUS_4057"
		custom_tooltip = { text = "PLUS_4057a_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4058
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4058
						days = 3
					}
				}
			}
		}
	}
	
	option = {
		trigger = {
			NOR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = tall
		}
		name = "EVTOPTB_PLUS_4057"
		custom_tooltip = { text = "PLUS_4057a_hover_ctt" }
	}
	
	# Dwarf

	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = dwarf
		}
		name = "EVTOPTA_PLUS_4057"
		custom_tooltip = { text = "PLUS_4057b_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4058
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4058
						days = 3
					}
				}
			}
		}
	}	
	
	option = {
		trigger = {
			has_guardian = no
			trait = dwarf
		}
		name = "EVTOPTB_PLUS_4057"
		custom_tooltip = { text = "PLUS_4057b_hover_ctt" }
	}
}

# Guardian discovers tall/dwarf
character_event = {
	id = Plus.4058
	desc = {
	  trigger = {
		FROM = {
			trait = tall
		}
	  }
	  text = "EVTDESCa_PLUS_4058"
	}
	desc = {
	  trigger = {
		FROM = {
			trait = dwarf
		}
	  }
	  text = "EVTDESCb_PLUS_4058"
	}
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # Fantastic!
		trigger = {
			FROM = { trait = tall }
		}
		name = "EVTOPTa_PLUS_4056"
		custom_tooltip = { text = "PLUS_4058a_hover_ctt" }
	}
	
	option = { # Worrisome...
		trigger = {
			FROM = { trait = dwarf }
		}
		name = "EVTOPTb_PLUS_4058"
		custom_tooltip = { text = "PLUS_4058b_hover_ctt" }
	}

}

# Child is strong or weak

character_event = {
	id = Plus.4059
	desc = {
	  trigger = {
		trait = strong
	  }
	  text = "EVTDESCa_Plus_4059"
	}
	desc = {
	  trigger = {
		trait = weak
	  }
	  text = "EVTDESCb_Plus_4059"
	}
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	
	min_age = 5
	max_age = 16

	trigger = {
		NOT = { has_global_flag = always_visible_traits }
		OR = {
			trait = strong
			trait = weak
		}
		NOT = { has_character_flag = had_strength_reveal_event }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.5

			age = 5
			NOT = { age = 7 }
		}
		
		modifier = {
			factor = 5
			
			age = 9
			NOT = { age = 10 }
		}
		
		modifier = {
			factor = 10
			
			age = 11
		}
	}
	
	immediate = {
		set_character_flag = had_strength_reveal_event
		hidden_tooltip = {
			if = {
				limit = { trait = strong }
				remove_character_modifier = hidden_strong
			}
			if = {
				limit = { trait = weak }
				remove_character_modifier = hidden_weak
			}
		}
	}
	
	# Strong
	
	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = strong
		}
		name = "EVTOPTA_PLUS_4059"
		custom_tooltip = { text = "PLUS_4059a_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4060
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4060
						days = 3
					}
				}
			}
		}
	}
	
	option = {
		trigger = {
			NOR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = strong
		}
		name = "EVTOPTB_PLUS_4059"
		custom_tooltip = { text = "PLUS_4059a_hover_ctt" }
	}
	
	# Weak

	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = weak
		}
		name = "EVTOPTA_PLUS_4059"
		custom_tooltip = { text = "PLUS_4059b_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4060
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4060
						days = 3
					}
				}
			}
		}
	}	
	
	option = {
		trigger = {
			has_guardian = no
			trait = weak
		}
		name = "EVTOPTB_PLUS_4059"
		custom_tooltip = { text = "PLUS_4059b_hover_ctt" }
	}
}

# Guardian discovers strong/weak
character_event = {
	id = Plus.4060
	desc = {
	  trigger = {
		FROM = {
			trait = strong
		}
	  }
	  text = "EVTDESCa_PLUS_4060"
	}
	desc = {
	  trigger = {
		FROM = {
			trait = weak
		}
	  }
	  text = "EVTDESCb_PLUS_4060"
	}
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # Fantastic!
		trigger = {
			FROM = { trait = strong }
		}
		name = "EVTOPTa_PLUS_4056"
		custom_tooltip = { text = "PLUS_4060a_hover_ctt" }
	}
	
	option = { # Worrisome...
		trigger = {
			FROM = { trait = weak }
		}
		name = "EVTOPTb_PLUS_4060"
		custom_tooltip = { text = "PLUS_4060b_hover_ctt" }
	}

}

# Child is fair or ugly

character_event = {
	id = Plus.4061
	desc = {
	  trigger = {
		trait = fair
	  }
	  text = "EVTDESCa_Plus_4061"
	}
	desc = {
	  trigger = {
		trait = ugly
	  }
	  text = "EVTDESCb_Plus_4061"
	}
	picture = "GFX_evt_child_play"
	
	is_triggered_only = yes
	
	min_age = 11
	max_age = 16

	trigger = {
		NOT = { has_global_flag = always_visible_traits }
		OR = {
			trait = fair
			trait = ugly
		}
		NOT = { has_character_flag = had_attractiveness_reveal_event }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.5

			age = 11
			NOT = { age = 12 }
		}
		
		modifier = {
			factor = 5
			
			age = 13
			NOT = { age = 14 }
		}
		
		modifier = {
			factor = 10
			
			age = 15
		}
	}
	
	immediate = {
		set_character_flag = had_attractiveness_reveal_event
		hidden_tooltip = {
			if = {
				limit = { trait = fair }
				remove_character_modifier = hidden_fair
			}
			if = {
				limit = { trait = ugly }
				remove_character_modifier = hidden_ugly
			}
		}
	}
	
	# fair
	
	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = fair
		}
		name = "EVTOPTA_PLUS_4061"
		custom_tooltip = { text = "PLUS_4061a_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4062
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4062
						days = 3
					}
				}
			}
		}
	}
	
	option = {
		trigger = {
			NOR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = fair
		}
		name = "EVTOPTB_PLUS_4061"
		custom_tooltip = { text = "PLUS_4061a_hover_ctt" }
	}
	
	# ugly

	option = {
		trigger = {
			OR = {
				has_guardian = yes
				educator = { always = yes }
			}
			trait = ugly
		}
		name = "EVTOPTA_PLUS_4061"
		custom_tooltip = { text = "PLUS_4061b_hover_ctt" }
		hidden_tooltip = {
			if = {
				limit = { has_guardian = yes }
				guardian = {
					character_event = {
						id = Plus.4062
						days = 3
					}
				}
				break = yes
			}
			if = {
				limit = { educator = { always = yes } }
				educator = {
					character_event = {
						id = Plus.4062
						days = 3
					}
				}
			}
		}
	}	
	
	option = {
		trigger = {
			has_guardian = no
			trait = ugly
		}
		name = "EVTOPTB_PLUS_4061"
		custom_tooltip = { text = "PLUS_4061b_hover_ctt" }
	}
}

# Guardian discovers fair or ugly
character_event = {
	id = Plus.4062
	desc = {
	  trigger = {
		FROM = {
			trait = fair
		}
	  }
	  text = "EVTDESCa_PLUS_4062"
	}
	desc = {
	  trigger = {
		FROM = {
			trait = ugly
		}
	  }
	  text = "EVTDESCb_PLUS_4062"
	}
	picture = "GFX_evt_guardian"
	
	is_triggered_only = yes

	option = { # Fantastic!
		trigger = {
			FROM = { trait = fair }
		}
		name = "EVTOPTa_PLUS_4056"
		custom_tooltip = { text = "PLUS_4062a_hover_ctt" }
	}
	
	option = { # Worrisome...
		trigger = {
			FROM = { trait = ugly }
		}
		name = "EVTOPTb_PLUS_4062"
		custom_tooltip = { text = "PLUS_4062b_hover_ctt" }
	}

}