namespace = monster

##########################################################################
# Drowners have ruined merchant's goods that were left overnight at docks
##########################################################################
#Merchant complains
character_event = {
	id = monster.1
	desc = EVTDESCmonster.1
	picture = GFX_evt_market
	
	min_age = 15
	capable_only = yes
	prisoner = no
	only_rulers = yes
	
	trigger = {
		is_landed = yes
		any_demesne_province = { has_province_modifier = drowners }
	}
	
	mean_time_to_happen = {
		months = 24
	}
	
	option = { # Send a witcher
		name = EVTOPTAmonster.1
		trigger = {
			any_courtier = { trait = witcher }
		}
		custom_tooltip = {
			text = send_witcher
			hidden_tooltip = {
				random_courtier = {
					limit ={ trait = witcher }
					character_event = { id = monster.2 }
				}
			}
		}
	}
	option = { # Hire witcher and send him
		name = EVTOPTBmonster.1
		trigger = {
			NOT = { any_courtier = { trait = witcher } }
		}
		set_character_flag = merchants_drowner
		if = {
			limit = { ai = yes }
			set_character_flag = invited_witcher
		}
	}
	option = { # Send your soldiers
		name = EVTOPTCmonster.1
		custom_tooltip = {
			text = send_your_soldiers
			hidden_tooltip = {
				random_list = {
					50 = { character_event = { id = monster.5 days = 15 } }
					50 = { character_event = { id = monster.6 days = 15 } }
				}
			}
		}
	}
	option = { # Do nothing
		name = EVTOPTDmonster.1
		random_demesne_province = {
			limit = { has_province_modifier = drowners }
			add_province_modifier = { name = dissatisfied_merchants duration = 360 }
			random = { chance = 25 remove_province_modifier = drowners }
		}
	}
}
# Send a witcher - witcher ping
character_event = {
	id = monster.2
	
	hide_window = yes
	is_triggered_only = yes
	
	option = {
		name = OK
		FROM = { letter_event = { id = monster.3 days = 5 } }
	}
}
# Witcher does its craft
# FROM is the Witcher
letter_event = {
	id = monster.3
	desc = EVTDESCmonster.3
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.3
		random_demesne_province = {
			limit = { has_province_modifier = drowners }
			remove_province_modifier = drowners
			add_province_modifier = { name = monster_purge duration = 360 hidden = yes }
		}
		wealth = -10
		FROM = { 
			wealth = 10
			add_character_modifier = { name = recent_witcher_work duration = 180 hidden = yes }
		}
	}
}
# Hire witcher and send him - asking second time
character_event = {
	id = monster.4
	desc = EVTDESCmonster.4
	picture = GFX_evt_market
	
	hide_from = yes
	
	trigger = {
		has_character_flag = merchants_drowner
		any_demesne_province = { has_province_modifier = drowners }
	}
	mean_time_to_happen = {
		days = 360
		modifier = { factor = 0 any_courtier = { trait = witcher } }
	}
	
	option = { # Send witcher
		name = EVTOPTAmonster.4
		trigger = {
			any_courtier = { trait = witcher }
		}
		custom_tooltip = {
			text = send_witcher
			hidden_tooltip = {
				random_courtier = {
					limit ={ trait = witcher }
					character_event = { id = monster.2 }
				}
			}
		}
	}
	option = { # Send your soldiers
		name = EVTOPTBmonster.4
		custom_tooltip = {
			text = send_your_soldiers
			hidden_tooltip = {
				random_list = {
					50 = { character_event = { id = monster.5 days = 15 } }
					50 = { character_event = { id = monster.6 days = 15 } }
				}
			}
		}
	}
	option = { # Do nothing
		name = EVTOPTCmonster.4
		random_demesne_province = {
			limit = { has_province_modifier = drowners }
			add_province_modifier = { name = dissatisfied_merchants duration = 360 }
			random = {
				chance = 25
				remove_province_modifier = drowners
				add_province_modifier = { name = monster_purge duration = 360 hidden = yes }
			}
		}
	}
}
# Send your soldiers success
character_event = {
	id = monster.5
	desc = EVTDESCmonster.5
	picture = GFX_evt_market
	
	is_triggered_only = yes
	hide_from = yes
	
	option = {
		name = EVTOPTAmonster.5
		random_demesne_province = {
			limit = { has_province_modifier = drowners }
			remove_province_modifier = drowners
		}
	}
}
# Send your soldiers failure
character_event = {
	id = monster.6
	desc = EVTDESCmonster.6
	picture = GFX_evt_burning_house
	
	is_triggered_only = yes
	hide_from = yes
	
	option = {
		name = EVTOPTAmonster.6
		random_demesne_province = {
			limit = { has_province_modifier = drowners }
			remove_province_modifier = drowners
			add_province_modifier = { name = monster_purge duration = 360 hidden = yes }
			add_province_modifier = { name = dissatisfied_merchants duration = 360 }
		}
	}
}

##########################################################################
# An ancestors ghost is haunting the castle
##########################################################################
# Rumor
character_event = {
	id = monster.10
	desc = EVTDESCmonster.10
	picture = GFX_evt_comet
	
	min_age = 15
	capable_only = yes
	prisoner = no
	only_rulers = yes
	
	trigger = {
		always = yes
	}
	
	mean_time_to_happen = {
		months = 18000
	}
	
	option = {
		name = EVTOPTAmonster.10
		prestige = 5
	}
	option = {
		name = EVTOPTBmonster.10
		piety = 5
	}
}

##########################################################################
# Troll has settled near a bridge
##########################################################################
# Troll bridge
province_event = {
	id = monster.20
	desc = EVTDESCmonster.20
	picture = GFX_evt_castle_construction
	
	trigger = {
		NOT = { has_province_modifier = trolls }
		any_province_lord = {
			is_feudal = yes
			ROOT = {
				owner = {
					NOT = {
						character = PREVPREV
					}
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 18000
	}
	
	option = { # Leave troll alone
		name = EVTOPTAmonster.20
		add_province_modifier = {
			name = trolls
		}
		random_province_lord = {
			limit = {
				is_feudal = yes
				ROOT = {
					owner = {
						NOT = {
							character = PREVPREV
						}
					}
				}
			}
			opinion = {
				modifier = opinion_dislike
				who = ROOT
				years = 2
			}
		}
	}
	option = { # Hunt troll down
		name = EVTOPTBmonster.20
		random_province_lord = {
			limit = {
				is_feudal = yes
				ROOT = {
					owner = {
						NOT = {
							character = PREVPREV
						}
					}
				}
			}
			opinion = {
				modifier = opinion_happy
				who = ROOT
				years = 2
			}
		}
	}
}

##########################################################################
# Wild Hunt
##########################################################################
# Rumors
character_event = {
	id = monster.30
	desc = EVTDESCmonster.30
	picture = GFX_evt_comet
	
	min_age = 15
	capable_only = yes
	prisoner = no
	only_rulers = yes
	
	trigger = {
		trait = human_race
		OR = {
			month = 11
			NOT = { month = 2 }
		}
	}
	
	mean_time_to_happen = {
		months = 18000
	}
	
	option = {
		name = EVTOPTAmonster.30
		piety = 5
	}
}

##########################################################################
# Doppler
##########################################################################
# Doppler replaces vassal
character_event = {
	id = monster.40
	
	hide_window = yes
	
	trigger = {
		liege = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		ai = yes
		OR = {
			tier = baron
			tier = count
		}
		is_adult = yes
		NOT = { trait = incapable }
		NOT = {
			has_character_flag = doppler_racist
			has_character_flag = doppler_lustful
			has_character_flag = doppler_gluttonous
			has_character_flag = doppler_greedy
			has_character_flag = doppler_slothful
			has_character_flag = doppler_envious
			has_character_flag = doppler_wroth
			has_character_flag = doppler_proud
			has_character_flag = doppler_deceitful
			has_character_flag = doppler_craven
			has_character_flag = doppler_arbitrary
			has_character_flag = doppler_paranoid
			has_character_flag = doppler_cruel
			has_character_flag = doppler_lunatic
		}
	}
	
	mean_time_to_happen = {
		months = 18000
	}
	
	option = {
		if = {
			limit = { trait = racist }
			random = {
				chance = 80
				remove_trait = racist
				add_trait = tolerant
				set_character_flag = doppler_racist
			}
		}
		if = {
			limit = { trait = lustful }
			random = {
				chance = 80
				remove_trait = lustful
				add_trait = chaste
				set_character_flag = doppler_lustful
			}
		}
		if = {
			limit = { trait = gluttonous }
			random = {
				chance = 80
				remove_trait = gluttonous
				add_trait = temperate
				set_character_flag = doppler_gluttonous
			}
		}
		if = {
			limit = { trait = greedy }
			random = {
				chance = 80
				remove_trait = greedy
				add_trait = charitable
				set_character_flag = doppler_greedy
			}
		}
		if = {
			limit = { trait = slothful }
			random = {
				chance = 80
				remove_trait = slothful
				add_trait = diligent
				set_character_flag = doppler_slothful
			}
		}
		if = {
			limit = { trait = envious }
			random = {
				chance = 80
				remove_trait = envious
				add_trait = kind
				set_character_flag = doppler_envious
			}
		}
		if = {
			limit = { trait = wroth }
			random = {
				chance = 80
				remove_trait = wroth
				add_trait = patient
				set_character_flag = doppler_wroth
			}
		}
		if = {
			limit = { trait = proud }
			random = {
				chance = 80
				remove_trait = proud
				add_trait = humble
				set_character_flag = doppler_proud
			}
		}
		if = {
			limit = { trait = deceitful }
			random = {
				chance = 80
				remove_trait = deceitful
				add_trait = honest
				set_character_flag = doppler_deceitful
			}
		}
		if = {
			limit = { trait = craven }
			random = {
				chance = 80
				remove_trait = craven
				add_trait = brave
				set_character_flag = doppler_craven
			}
		}
		if = {
			limit = { trait = arbitrary }
			random = {
				chance = 80
				remove_trait = arbitrary
				add_trait = just
				set_character_flag = doppler_arbitrary
			}
		}
		if = {
			limit = { trait = paranoid }
			random = {
				chance = 80
				remove_trait = paranoid
				add_trait = trusting
				set_character_flag = doppler_paranoid
			}
		}
		if = {
			limit = { trait = cruel }
			random = {
				chance = 80
				remove_trait = cruel
				add_trait = kind
				set_character_flag = doppler_cruel
			}
		}
		if = {
			limit = { trait = lunatic }
			remove_trait = lunatic
			set_character_flag = doppler_lunatic
		}
		random = {
			chance = 10
			liege = { character_event = { id = monster.46 days = 2000 random = 1500 } }
		}
	}
}
# Doppler - Ping - Liege is suspicous of you
character_event = {
	id = monster.41
	
	hide_window = yes
	
	trigger = {
		liege = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		OR = {
			has_character_flag = doppler_racist
			has_character_flag = doppler_lustful
			has_character_flag = doppler_gluttonous
			has_character_flag = doppler_greedy
			has_character_flag = doppler_slothful
			has_character_flag = doppler_envious
			has_character_flag = doppler_wroth
			has_character_flag = doppler_proud
			has_character_flag = doppler_deceitful
			has_character_flag = doppler_craven
			has_character_flag = doppler_arbitrary
			has_character_flag = doppler_paranoid
			has_character_flag = doppler_cruel
			has_character_flag = doppler_lunatic
		}
	}
	
	mean_time_to_happen = {
		months = 120
		modifier = { factor = 0.5 liege = { trait = perceptive } }
		modifier = { factor = 1.5 liege = { trait = absentminded } }
		modifier = { factor = 0.8 liege = { trait = gregarious } }
		modifier = { factor = 1.5 liege = { trait = shy } }
		modifier = { factor = 0.5 liege = { trait = paranoid } }
		modifier = { factor = 2 liege = { trait = trusting } }
		modifier = { factor = 0.8 liege = { OR = { trait = quick trait = shrewd } } }
		modifier = { factor = 1.5 liege = { OR = { trait = slow trait = dull } } }
		modifier = { factor = 0.5 liege = { trait = genius } }
		modifier = { factor = 2 liege = { trait = imbecile } }
	}
	
	option = {
		liege = { character_event = { id = monster.42 } }
	}
}
# You are suspicous of doppler
character_event = {
	id = monster.42
	desc = EVTDESCmonster.42
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = { # Search for real vassal
		name = EVTOPTAmonster.42
		trigger = { trait = paranoid }
		custom_tooltip = {
			text = search_for_person_doppler_is_impersonating
			hidden_tooltip = {
				random_list = {
					40 = { character_event = { id = monster.43 days = 3 } }
					30 = { character_event = { id = monster.44 days = 3 } }
					30 = { character_event = { id = monster.45 days = 3 } }
				}
			}
		}
	}
	option = { # Ignore
		name = EVTOPTBmonster.42
		trigger = { trait = trusting }
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			clr_character_flag = doppler_racist
			clr_character_flag = doppler_lustful
			clr_character_flag = doppler_gluttonous
			clr_character_flag = doppler_greedy
			clr_character_flag = doppler_slothful
			clr_character_flag = doppler_envious
			clr_character_flag = doppler_wroth
			clr_character_flag = doppler_proud
			clr_character_flag = doppler_deceitful
			clr_character_flag = doppler_craven
			clr_character_flag = doppler_arbitrary
			clr_character_flag = doppler_paranoid
			clr_character_flag = doppler_cruel
			clr_character_flag = doppler_lunatic
		}
	}
	option = { # Search for real vassal
		name = EVTOPTCmonster.42
		trigger = {
			NOT = { trait = paranoid }
			NOT = { trait = trusting }
		}
		custom_tooltip = {
			text = search_for_person_doppler_is_impersonating
			hidden_tooltip = {
				random_list = {
					40 = { character_event = { id = monster.43 days = 3 } }
					30 = { character_event = { id = monster.44 days = 3 } }
					30 = { character_event = { id = monster.45 days = 3 } }
				}
			}
		}
	}
	option = { # Ignore
		name = EVTOPTDmonster.42
		trigger = {
			NOT = { trait = paranoid }
			NOT = { trait = trusting }
		}
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			clr_character_flag = doppler_racist
			clr_character_flag = doppler_lustful
			clr_character_flag = doppler_gluttonous
			clr_character_flag = doppler_greedy
			clr_character_flag = doppler_slothful
			clr_character_flag = doppler_envious
			clr_character_flag = doppler_wroth
			clr_character_flag = doppler_proud
			clr_character_flag = doppler_deceitful
			clr_character_flag = doppler_craven
			clr_character_flag = doppler_arbitrary
			clr_character_flag = doppler_paranoid
			clr_character_flag = doppler_cruel
			clr_character_flag = doppler_lunatic
			opinion = { modifier = opinion_grateful who = ROOT }
		}
	}
}
# Searching for real vassal - didn't find real vassal
character_event = {
	id = monster.43
	desc = EVTDESCmonster.43
	picture = GFX_evt_spymaster
	
	show_from_from = yes
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.43
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			clr_character_flag = doppler_racist
			clr_character_flag = doppler_lustful
			clr_character_flag = doppler_gluttonous
			clr_character_flag = doppler_greedy
			clr_character_flag = doppler_slothful
			clr_character_flag = doppler_envious
			clr_character_flag = doppler_wroth
			clr_character_flag = doppler_proud
			clr_character_flag = doppler_deceitful
			clr_character_flag = doppler_craven
			clr_character_flag = doppler_arbitrary
			clr_character_flag = doppler_paranoid
			clr_character_flag = doppler_cruel
			clr_character_flag = doppler_lunatic
			opinion = { modifier = opinion_angry who = ROOT months = 12 }
		}
	}
}
# Searching for real vassal - found imprisoned
character_event = {
	id = monster.44
	desc = EVTDESCmonster.44
	picture = GFX_evt_spymaster
	
	show_from_from = yes
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.44
		custom_tooltip = { text = get_rid_of_doppler }
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			hidden_tooltip = {
				if = {
					limit = { has_character_flag = doppler_racist }
					clr_character_flag = doppler_racist
					remove_trait = tolerant
					add_trait = racist
				}
				if = {
					limit = { has_character_flag = doppler_lustful }
					clr_character_flag = doppler_lustful
					remove_trait = chaste
					add_trait = lustful
				}
				if = {
					limit = { has_character_flag = doppler_gluttonous }
					clr_character_flag = doppler_gluttonous
					remove_trait = temperate
					add_trait = gluttonous
					gain_weight_medium_effect = yes
					weight_trait_check_effect = yes
				}
				if = {
					limit = { has_character_flag = doppler_greedy }
					clr_character_flag = doppler_greedy
					remove_trait = charitable
					add_trait = greedy
				}
				if = {
					limit = { has_character_flag = doppler_slothful }
					clr_character_flag = doppler_slothful
					remove_trait = diligent
					add_trait = slothful
				}
				if = {
					limit = { has_character_flag = doppler_envious }
					clr_character_flag = doppler_envious
					remove_trait = kind
					add_trait = envious
				}
				if = {
					limit = { has_character_flag = doppler_wroth }
					clr_character_flag = doppler_wroth
					remove_trait = patient
					add_trait = wroth
				}
				if = {
					limit = { has_character_flag = doppler_proud }
					clr_character_flag = doppler_proud
					remove_trait = humble
					add_trait = proud
				}
				if = {
					limit = { has_character_flag = doppler_deceitful }
					clr_character_flag = doppler_deceitful
					remove_trait = honest
					add_trait = deceitful
				}
				if = {
					limit = { has_character_flag = doppler_craven }
					clr_character_flag = doppler_craven
					remove_trait = brave
					add_trait = craven
				}
				if = {
					limit = { has_character_flag = doppler_arbitrary }
					clr_character_flag = doppler_arbitrary
					remove_trait = just
					add_trait = arbitrary
				}
				if = {
					limit = { has_character_flag = doppler_paranoid }
					clr_character_flag = doppler_paranoid
					remove_trait = trusting
					add_trait = paranoid
				}
				if = {
					limit = { has_character_flag = doppler_cruel }
					clr_character_flag = doppler_cruel
					remove_trait = kind
					add_trait = cruel
				}
				if = {
					limit = { has_character_flag = doppler_lunatic }
					clr_character_flag = doppler_lunatic
					remove_trait = lunatic
				}
			}
			opinion = { modifier = opinion_grateful who = ROOT }
		}
	}
}
# Searching for real vassal - found dead
character_event = {
	id = monster.45
	desc = EVTDESCmonster.45
	picture = GFX_evt_spymaster
	
	show_from_from = yes
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.45
		custom_tooltip = { text = get_rid_of_doppler }
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			hidden_tooltip = {
				if = {
					limit = { has_character_flag = doppler_racist }
					clr_character_flag = doppler_racist
					remove_trait = tolerant
					add_trait = racist
				}
				if = {
					limit = { has_character_flag = doppler_lustful }
					clr_character_flag = doppler_lustful
					remove_trait = chaste
					add_trait = lustful
				}
				if = {
					limit = { has_character_flag = doppler_gluttonous }
					clr_character_flag = doppler_gluttonous
					remove_trait = temperate
					add_trait = gluttonous
					gain_weight_medium_effect = yes
					weight_trait_check_effect = yes
				}
				if = {
					limit = { has_character_flag = doppler_greedy }
					clr_character_flag = doppler_greedy
					remove_trait = charitable
					add_trait = greedy
				}
				if = {
					limit = { has_character_flag = doppler_slothful }
					clr_character_flag = doppler_slothful
					remove_trait = diligent
					add_trait = slothful
				}
				if = {
					limit = { has_character_flag = doppler_envious }
					clr_character_flag = doppler_envious
					remove_trait = kind
					add_trait = envious
				}
				if = {
					limit = { has_character_flag = doppler_wroth }
					clr_character_flag = doppler_wroth
					remove_trait = patient
					add_trait = wroth
				}
				if = {
					limit = { has_character_flag = doppler_proud }
					clr_character_flag = doppler_proud
					remove_trait = humble
					add_trait = proud
				}
				if = {
					limit = { has_character_flag = doppler_deceitful }
					clr_character_flag = doppler_deceitful
					remove_trait = honest
					add_trait = deceitful
				}
				if = {
					limit = { has_character_flag = doppler_craven }
					clr_character_flag = doppler_craven
					remove_trait = brave
					add_trait = craven
				}
				if = {
					limit = { has_character_flag = doppler_arbitrary }
					clr_character_flag = doppler_arbitrary
					remove_trait = just
					add_trait = arbitrary
				}
				if = {
					limit = { has_character_flag = doppler_paranoid }
					clr_character_flag = doppler_paranoid
					remove_trait = trusting
					add_trait = paranoid
				}
				if = {
					limit = { has_character_flag = doppler_cruel }
					clr_character_flag = doppler_cruel
					remove_trait = kind
					add_trait = cruel
				}
				if = {
					limit = { has_character_flag = doppler_lunatic }
					clr_character_flag = doppler_lunatic
					remove_trait = lunatic
				}
			}
			death = { death_reason = death_monsters }
		}
	}
}
# Real vassal comes to you and claims he is the real one
character_event = {
	id = monster.46
	desc = EVTDESCmonster.46
	picture = GFX_evt_throne_room
	
	hide_from = yes
	is_triggered_only = yes
	
	option = { # Accept his claim
		name = EVTOPTAmonster.46
		custom_tooltip = { text = get_rid_of_doppler }
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			hidden_tooltip = {
				if = {
					limit = { has_character_flag = doppler_racist }
					clr_character_flag = doppler_racist
					remove_trait = tolerant
					add_trait = racist
				}
				if = {
					limit = { has_character_flag = doppler_lustful }
					clr_character_flag = doppler_lustful
					remove_trait = chaste
					add_trait = lustful
				}
				if = {
					limit = { has_character_flag = doppler_gluttonous }
					clr_character_flag = doppler_gluttonous
					remove_trait = temperate
					add_trait = gluttonous
					gain_weight_medium_effect = yes
					weight_trait_check_effect = yes
				}
				if = {
					limit = { has_character_flag = doppler_greedy }
					clr_character_flag = doppler_greedy
					remove_trait = charitable
					add_trait = greedy
				}
				if = {
					limit = { has_character_flag = doppler_slothful }
					clr_character_flag = doppler_slothful
					remove_trait = diligent
					add_trait = slothful
				}
				if = {
					limit = { has_character_flag = doppler_envious }
					clr_character_flag = doppler_envious
					remove_trait = kind
					add_trait = envious
				}
				if = {
					limit = { has_character_flag = doppler_wroth }
					clr_character_flag = doppler_wroth
					remove_trait = patient
					add_trait = wroth
				}
				if = {
					limit = { has_character_flag = doppler_proud }
					clr_character_flag = doppler_proud
					remove_trait = humble
					add_trait = proud
				}
				if = {
					limit = { has_character_flag = doppler_deceitful }
					clr_character_flag = doppler_deceitful
					remove_trait = honest
					add_trait = deceitful
				}
				if = {
					limit = { has_character_flag = doppler_craven }
					clr_character_flag = doppler_craven
					remove_trait = brave
					add_trait = craven
				}
				if = {
					limit = { has_character_flag = doppler_arbitrary }
					clr_character_flag = doppler_arbitrary
					remove_trait = just
					add_trait = arbitrary
				}
				if = {
					limit = { has_character_flag = doppler_paranoid }
					clr_character_flag = doppler_paranoid
					remove_trait = trusting
					add_trait = paranoid
				}
				if = {
					limit = { has_character_flag = doppler_cruel }
					clr_character_flag = doppler_cruel
					remove_trait = kind
					add_trait = cruel
				}
				if = {
					limit = { has_character_flag = doppler_lunatic }
					clr_character_flag = doppler_lunatic
					remove_trait = lunatic
				}
			}
			opinion = { modifier = opinion_grateful who = ROOT }
		}
	}
	option = { # Ignore his claim
		name = EVTOPTBmonster.46
		random_vassal = {
			limit = {
				OR = {
					has_character_flag = doppler_racist
					has_character_flag = doppler_lustful
					has_character_flag = doppler_gluttonous
					has_character_flag = doppler_greedy
					has_character_flag = doppler_slothful
					has_character_flag = doppler_envious
					has_character_flag = doppler_wroth
					has_character_flag = doppler_proud
					has_character_flag = doppler_deceitful
					has_character_flag = doppler_craven
					has_character_flag = doppler_arbitrary
					has_character_flag = doppler_paranoid
					has_character_flag = doppler_cruel
					has_character_flag = doppler_lunatic
				}
			}
			clr_character_flag = doppler_racist
			clr_character_flag = doppler_lustful
			clr_character_flag = doppler_gluttonous
			clr_character_flag = doppler_greedy
			clr_character_flag = doppler_slothful
			clr_character_flag = doppler_envious
			clr_character_flag = doppler_wroth
			clr_character_flag = doppler_proud
			clr_character_flag = doppler_deceitful
			clr_character_flag = doppler_craven
			clr_character_flag = doppler_arbitrary
			clr_character_flag = doppler_paranoid
			clr_character_flag = doppler_cruel
			clr_character_flag = doppler_lunatic
			opinion = { modifier = opinion_grateful who = ROOT }
		}
	}
}

##########################################################################
# Vampire
##########################################################################
# Garlic against vampires (on_yearly_pulse)
character_event = {
	id = monster.50
	desc = EVTDESCmonster.50
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	min_age = 15
	only_rulers = yes
	capable_only = yes
	prisoner = no
	
	trigger = {
		war = no
		in_command = no
		is_abroad = no
		any_demesne_province = { has_province_modifier = vampires }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 2
			trait = proud
		}
		modifier = {
			factor = 0.5
			trait = humble
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		modifier = {
			factor = 2
			trait = stressed
		}
		modifier = {
			factor = 0.5
			trait = content
		}
		modifier = {
			factor = 2
			trait = cynical
		}
		modifier = {
			factor = 0.5
			trait = zealous
		}
		modifier = {
			factor = 2
			trait = depressed
		}
		modifier = {
			factor = 0.5
			trait = patient
		}
		modifier = {
			factor = 2
			trait = diligent
		}
		modifier = {
			factor = 0.5
			trait = slothful
		}
	}
	
	option = {
		name = EVTOPTAmonster.50
		random = {
			chance = 20
			add_trait = paranoid
			hidden_tooltip = { character_event = { id = 38275 } }
		}
	}
	option = {
		name = EVTOPTBmonster.50
		prestige = -5
		random = {
			chance = 30
			add_trait = cynical
			hidden_tooltip = { character_event = { id = 38258 } }
		}
	}
}

##########################################################################
# Mermaid
##########################################################################
# Liege - Mysterious maiden with beautiful voice
character_event = {
	id = monster.60
	desc = EVTDESCmonster.60
	picture = GFX_evt_bishop
	
	is_triggered_only = yes
	
	min_age = 15
	only_rulers = yes
	capable_only = yes
	prisoner = no
	only_men = yes
	
	ai = no
	
	trigger = { 
		war = no 
		in_command = no 
		is_abroad = no
		location = {
			port = yes
		}
		any_courtier = {
			is_female = no
			is_adult = yes
			ai = yes
			NOT = { has_character_modifier = old_age }
			OR = {
				has_fair_trait_trigger = yes
				trait = gregarious
				trait = kind
				trait = tall
			}
			NOT = { trait = incapable }
			NOT = { has_ugly_trait_trigger = yes }
			NOT = { trait = cruel }
		}
		NOT = { has_global_flag = mermaid_event_complete }
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 2
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = shy
		}
		modifier = {
			factor = 2
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = cynical
		}
		modifier = {
			factor = 2
			trait = perceptive 
		}
		modifier = {
			factor = 0.5
			trait = absentminded
		}
		modifier = {
			factor = 2
			trait = patient
		}
		modifier = {
			factor = 0.5
			trait = wroth
		}
		modifier = {
			factor = 2
			trait = humble
		}
		modifier = {
			factor = 0.5
			trait = proud
		}
		modifier = {
			factor = 2
			trait = slothful
		}
		modifier = {
			factor = 0.5
			trait = diligent
		}
	}

	option = {
		name = EVTOPTAmonster.60
		random_courtier = {
			limit = {
				is_female = no
				is_adult = yes
				ai = yes
				NOT = { has_character_modifier = old_age }
				OR = {
					has_fair_trait_trigger = yes
					trait = gregarious
					trait = kind
					trait = tall
				}
				NOT = { trait = incapable }
				NOT = { has_ugly_trait_trigger = yes }
				NOT = { trait = cruel }
			}
			character_event = { id = monster.61 tooltip = EVTTOOLTIPmonster.61 days = 20 }
		}
	}
}
# Random courtier - Dies
character_event = {
	id = monster.61
	
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		FROM = { narrative_event = { id = monster.62 } }
		death = { death_reason = death_missing }
	}
}
# Liege - Mysterious disappearance
narrative_event = {
	id = monster.62
	title = EVTTITLEmonster.62
	desc =EVTDESCmonster.62
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.62
		custom_tooltip = {
			text = EVTTOOLTIPmonster.63
			hidden_tooltip = {
				random = {
					chance = 70
					narrative_event = { id = monster.63 days = 8 random = 10 }
				}
			}
		}
	}

}
# Liege - Siren?
narrative_event = {
	id = monster.63
	title = EVTTITLEmonster.63
	desc = EVTDESCmonster.63
	picture = GFX_evt_trade_post_republic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.63
		narrative_event = { id = monster.64 tooltip = EVTTOOLTIPmonster.64 days = 3 }
	}
}
# Liege - A Voice Like No Other
narrative_event = {
	id = monster.64
	title = EVTTITLEmonster.64
	desc = EVTDESCmonster.64
	picture = GFX_evt_trade_post_republic
	
	is_triggered_only = yes
	
	option = { # Feeling sleepy
		name = EVTOPTAmonster.64
		narrative_event = { id = monster.65 tooltip = EVTTOOLTIPmonster.65 days = 3 }
	}
	option = { # Listen attentively
		name = EVTOPTBmonster.64
		narrative_event = { id = monster.66 tooltip = EVTTOOLTIPmonster.66 days = 3 }
	}
}
# Liege - Waking Up By The Sea
narrative_event = {
	id = monster.65
	title = EVTTITLEmonster.65
	desc = EVTDESCmonster.65
	picture = GFX_evt_trade_post_republic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.65
		piety = 5
	}
}
# Liege - Under the Sea
narrative_event = {
	id = monster.66
	title = EVTTITLEmonster.66
	desc = EVTDESCmonster.66
	picture = GFX_evt_lovers
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmonster.66
		custom_tooltip = { text = mermaid_death }
		hidden_tooltip = {
			location = { set_province_flag = mermaid_flag }
			death = { death_reason = death_monsters }
		}
		set_global_flag = mermaid_event_complete
	}
	option = {
		name = EVTOPTBmonster.66
		narrative_event = { id = monster.65 tooltip = EVTTOOLTIP2monster.65 days = 3 }
	}
}
# Mermaid province event
province_event = {
	id = monster.67
	title = EVTTITLEmonster.67
	desc = EVTDESCmonster.67
	picture = GFX_evt_trade_post_republic
	
	trigger = {
		has_province_flag = mermaid_flag
	}
	
	mean_time_to_happen = {
		months = 3000
	}
	
	option = {
		name = EVTOPTAmonster.67
		clr_province_flag = mermaid_flag
		add_province_modifier = { name = mermaid_legend duration = -1 }
	}
}
