﻿namespace = DE_misc_decision_event


DE_misc_decision_event.0001 = { # Host a Bride Show

	type = character_event
	title = ce_host_a_bride_show.0001.t
	desc = ce_host_a_bride_show.0001.desc
	
	theme = realm

	left_portrait = {
		character = root
		animation = personality_greedy
	}
	right_portrait = {
		character = scope:imperial_chancellor
		animation = chancellor
	}

	lower_left_portrait = scope:bride_1
	lower_center_portrait = scope:bride_2
	lower_right_portrait = scope:bride_3

	immediate = {
			cp:councillor_chancellor = { save_scope_as = imperial_chancellor }

			# Bride 1
			create_character = {
				# Basic Info
				gender_female_chance = root.marriage_gender_adjusted_female_chance
				age = { 16 35 }
				dynasty = generate
				location = root.capital_province
				faith = root.faith
				culture = root.culture

				# Traits
				random_traits = no

				# Traits - Education
				random_traits_list = {
					count = 1
					education_diplomacy_2 = {}
					education_diplomacy_3 = {}
					education_diplomacy_4 = {}
					education_stewardship_2 = {}
					education_stewardship_3 = {}
					education_stewardship_4 = {}
					education_intrigue_2 = {}
					education_intrigue_3 = {}
					education_intrigue_4 = {}
					education_learning_2 = {}
					education_learning_3 = {}
					education_learning_4 = {}
				}

				# Traits - Personality
				random_traits_list = {
					count = 1
					brave = {}
					just = {}
				}
				random_traits_list = { #Something nice
					count = 1
					honest = {}
					gregarious = {}
					trusting = {}
					compassionate = {}
					generous = {}
					humble = {}
					calm = {}
				}
				random_traits_list = {
					count = 1
					lustful = {}
					chaste = {}
					wrathful = {}
					arrogant = {}
					impatient = {}
					patient = {}
					impatient  = {}
					ambitious = {}
					cynical = {}
					zealous = {}
					stubborn = {}
				}
				random_traits_list = {
					count = { 0 1 }
					beauty_good_1 = { weight = { base = 30 } }
					beauty_good_2 = { weight = { base = 10 } }
					beauty_good_3 = { weight = { base = 5 } }
					intellect_good_1 = { weight = { base = 20 } }
					intellect_good_2 = { weight = { base = 10 } }
					physique_good_1 = { weight = { base = 15 } }
					physique_good_2 = { weight = { base = 5 } }
					fecund = { weight = { base = 5 } }
				}
				random_traits_list = {
					count = { 0 1 }
					lifestyle_mystic = {}
					lifestyle_physician = {}
					lifestyle_herbalist = {}
					lifestyle_gardener = {}
					lifestyle_poet = {}
				}

				# Skills
				diplomacy = { 4 12 }
				martial = { 4 12 }
				stewardship = { 4 12 }
				intrigue = { 4 12 }
				learning = { 4 12 }
				prowess = { 4 12 }

				# Make potential bride not a nobody
				after_creation = { 
					add_prestige = {
						value = { minor_prestige_gain major_prestige_gain }
						multiply = { 1 5 }
						round = yes
					}
					add_piety = {
						value = { minor_piety_gain medium_piety_gain }
						multiply = { 1 5 }
						round = yes
					}
				}
				save_scope_as = bride_1

			}

			# Bride 2
			create_character = {
				# Basic Info
				gender_female_chance = root.marriage_gender_adjusted_female_chance
				age = { 16 35 }
				dynasty = generate
				location = root.capital_province
				faith = root.faith
				culture = root.culture

				# Traits
				random_traits = no

				# Traits - Education
				random_traits_list = {
					count = 1
					education_diplomacy_2 = {}
					education_diplomacy_3 = {}
					education_diplomacy_4 = {}
					education_stewardship_2 = {}
					education_stewardship_3 = {}
					education_stewardship_4 = {}
					education_intrigue_2 = {}
					education_intrigue_3 = {}
					education_intrigue_4 = {}
					education_learning_2 = {}
					education_learning_3 = {}
					education_learning_4 = {}
				}

				# Traits - Personality
				random_traits_list = {
					count = 1
					brave = {}
					just = {}
				}
				random_traits_list = { #Something nice
					count = 1
					honest = {}
					gregarious = {}
					trusting = {}
					compassionate = {}
					generous = {}
					humble = {}
					calm = {}
				}
				random_traits_list = {
					count = 1
					lustful = {}
					chaste = {}
					wrathful = {}
					arrogant = {}
					impatient = {}
					patient = {}
					impatient  = {}
					ambitious = {}
					cynical = {}
					zealous = {}
					stubborn = {}
				}
				random_traits_list = {
					count = { 0 1 }
					beauty_good_1 = { weight = { base = 30 } }
					beauty_good_2 = { weight = { base = 10 } }
					beauty_good_3 = { weight = { base = 5 } }
					intellect_good_1 = { weight = { base = 20 } }
					intellect_good_2 = { weight = { base = 10 } }
					physique_good_1 = { weight = { base = 15 } }
					physique_good_2 = { weight = { base = 5 } }
					fecund = { weight = { base = 5 } }
				}
				random_traits_list = {
					count = { 0 1 }
					lifestyle_mystic = {}
					lifestyle_physician = {}
					lifestyle_herbalist = {}
					lifestyle_gardener = {}
					lifestyle_poet = {}
				}

				# Skills
				diplomacy = { 4 12 }
				martial = { 4 12 }
				stewardship = { 4 12 }
				intrigue = { 4 12 }
				learning = { 4 12 }
				prowess = { 4 12 }

				# Make potential bride not a nobody
				after_creation = { 
					add_prestige = {
						value = { minor_prestige_gain major_prestige_gain }
						multiply = { 1 5 }
						round = yes
					}
					add_piety = {
						value = { minor_piety_gain medium_piety_gain }
						multiply = { 1 5 }
						round = yes
					}
				}
				save_scope_as = bride_2
			}

			# Bride 3
			create_character = {
				# Basic Info
				gender_female_chance = root.marriage_gender_adjusted_female_chance
				age = { 16 35 }
				dynasty = generate
				location = root.capital_province
				faith = root.faith
				culture = root.culture

				# Traits
				random_traits = no

				# Traits - Education
				random_traits_list = {
					count = 1
					education_diplomacy_2 = {}
					education_diplomacy_3 = {}
					education_diplomacy_4 = {}
					education_stewardship_2 = {}
					education_stewardship_3 = {}
					education_stewardship_4 = {}
					education_intrigue_2 = {}
					education_intrigue_3 = {}
					education_intrigue_4 = {}
					education_learning_2 = {}
					education_learning_3 = {}
					education_learning_4 = {}
				}

				# Traits - Personality
				random_traits_list = {
					count = 1
					brave = {}
					just = {}
				}
				random_traits_list = { #Something nice
					count = 1
					honest = {}
					gregarious = {}
					trusting = {}
					compassionate = {}
					generous = {}
					humble = {}
					calm = {}
				}
				random_traits_list = {
					count = 1
					lustful = {}
					chaste = {}
					wrathful = {}
					arrogant = {}
					impatient = {}
					patient = {}
					impatient  = {}
					ambitious = {}
					cynical = {}
					zealous = {}
					stubborn = {}
				}
				random_traits_list = {
					count = { 0 1 }
					beauty_good_1 = { weight = { base = 30 } }
					beauty_good_2 = { weight = { base = 10 } }
					beauty_good_3 = { weight = { base = 5 } }
					intellect_good_1 = { weight = { base = 20 } }
					intellect_good_2 = { weight = { base = 10 } }
					physique_good_1 = { weight = { base = 15 } }
					physique_good_2 = { weight = { base = 5 } }
					fecund = { weight = { base = 5 } }
				}
				random_traits_list = {
					count = { 0 1 }
					lifestyle_mystic = {}
					lifestyle_physician = {}
					lifestyle_herbalist = {}
					lifestyle_gardener = {}
					lifestyle_poet = {}
				}

				# Skills
				diplomacy = { 4 12 }
				martial = { 4 12 }
				stewardship = { 4 12 }
				intrigue = { 4 12 }
				learning = { 4 12 }
				prowess = { 4 12 }

				# Make potential bride not a nobody
				after_creation = { 
					add_prestige = {
						value = { minor_prestige_gain major_prestige_gain }
						multiply = { 1 5 }
						round = yes
					}
					add_piety = {
						value = { minor_piety_gain medium_piety_gain }
						multiply = { 1 5 }
						round = yes
					}
				}
				save_scope_as = bride_3
			}

		hidden_effect = {
			scope:bride_1 = {		
				remove_trait = giant
				remove_trait = scaly
				remove_trait = clubfooted
				remove_trait = dwarf
				remove_trait = hunchbacked
				remove_trait = spindly
				remove_trait = albino
				remove_trait = infertile 
				remove_trait = wheezing 
				remove_trait = bleeder 
				remove_trait = depressed_genetic 
				remove_trait = depressed_1
				remove_trait = lunatic_genetic
				remove_trait = lunatic_1
				remove_trait = possessed_genetic
				remove_trait = possessed_1
				remove_trait = lisping 
				remove_trait = stuttering
				remove_trait = beauty_bad_1 
				remove_trait = beauty_bad_2
				remove_trait = beauty_bad_3
				remove_trait = intellect_bad_1 
				remove_trait = intellect_bad_2
				remove_trait = intellect_bad_3
				remove_trait = physique_bad_1
				remove_trait = physique_bad_2
				remove_trait = physique_bad_3
				dynasty = {
					add_dynasty_prestige = {
						value = { 0 5000 }
					}
				}
			}

			scope:bride_2 = {		
				remove_trait = giant
				remove_trait = scaly
				remove_trait = clubfooted
				remove_trait = dwarf
				remove_trait = hunchbacked
				remove_trait = spindly
				remove_trait = albino
				remove_trait = infertile 
				remove_trait = wheezing 
				remove_trait = bleeder 
				remove_trait = depressed_genetic 
				remove_trait = depressed_1
				remove_trait = lunatic_genetic
				remove_trait = lunatic_1
				remove_trait = possessed_genetic
				remove_trait = possessed_1
				remove_trait = lisping 
				remove_trait = stuttering
				remove_trait = beauty_bad_1 
				remove_trait = beauty_bad_2
				remove_trait = beauty_bad_3
				remove_trait = intellect_bad_1 
				remove_trait = intellect_bad_2
				remove_trait = intellect_bad_3
				remove_trait = physique_bad_1
				remove_trait = physique_bad_2
				remove_trait = physique_bad_3
				dynasty = {
					add_dynasty_prestige = {
						value = { 0 5000 }
					}
				}
			}

			scope:bride_3 = {		
				remove_trait = giant
				remove_trait = scaly
				remove_trait = clubfooted
				remove_trait = dwarf
				remove_trait = hunchbacked
				remove_trait = spindly
				remove_trait = albino
				remove_trait = infertile 
				remove_trait = wheezing 
				remove_trait = bleeder 
				remove_trait = depressed_genetic 
				remove_trait = depressed_1
				remove_trait = lunatic_genetic
				remove_trait = lunatic_1
				remove_trait = possessed_genetic
				remove_trait = possessed_1
				remove_trait = lisping 
				remove_trait = stuttering
				remove_trait = beauty_bad_1 
				remove_trait = beauty_bad_2
				remove_trait = beauty_bad_3
				remove_trait = intellect_bad_1 
				remove_trait = intellect_bad_2
				remove_trait = intellect_bad_3
				remove_trait = physique_bad_1
				remove_trait = physique_bad_2
				remove_trait = physique_bad_3
				dynasty = {
					add_dynasty_prestige = {
						value = { 0 5000 }
					}
				}
			}
		}
	}

	option = {
		name = ce_host_a_bride_show.0001.a
		ai_chance = { base = 50 }
		marry = scope:bride_1
		hidden_effect = {
			scope:bride_2 = {		
				death = {
					death_reason = death_disappearance
				}
			}
			scope:bride_3 = {		
				death = {
					death_reason = death_disappearance
				}
			}
		}
	}

	option = {
		name = ce_host_a_bride_show.0001.b
		ai_chance = { base = 30 }
		marry = scope:bride_2
		hidden_effect = {
			scope:bride_1 = {		
				death = {
					death_reason = death_disappearance
				}
			}
			scope:bride_3 = {		
				death = {
					death_reason = death_disappearance
				}
			}
		}
	}

	option = {
		name = ce_host_a_bride_show.0001.c
		ai_chance = { base = 10 }
		marry = scope:bride_3
		hidden_effect = {
			scope:bride_1 = {		
				death = {
					death_reason = death_disappearance
				}
			}
			scope:bride_2 = {		
				death = {
					death_reason = death_disappearance
				}
			}
		}
	}

	option = {
		name = ce_host_a_bride_show.0001.d
		custom_tooltip = ce_refuse_to_marry_any_option_tt
		ai_chance = { base = 10 }
		hidden_effect = {
			scope:bride_1 = {		
				death = {
					death_reason = death_disappearance
				}
			}
			scope:bride_2 = {		
				death = {
					death_reason = death_disappearance
				}
			}
			scope:bride_3 = {		
				death = {
					death_reason = death_disappearance
				}
			}
		}
	}
}