﻿namespace = deviants_gorandom_log



#house of whores modifier
deviants_gorandom_log.0090 = { 
	type = character_event
	title = deviants_gorandom_log.0090.t
	desc = deviants_gorandom_log.0090.a.desc
	theme = deviantsmaskgo
	override_background = { reference = study }
	cooldown = { years = 40 }
	right_portrait = {
		character = root
		animation = chancellor 
	}	
	trigger = {
		has_trait = lustful
		has_trait = deviants_mask
		has_trait = lustful_inn_slut
		has_trait = deviant_courtesan_slut
		has_trait = deviants_campslut
		has_trait = deviants_demonanalslut
		has_trait_xp = {
			trait = deviant_courtesan_slut
			track = deviant_courtesan_slut_popularity
			value >= 100
		}
		has_trait_xp = {
			trait = lustful_inn_slut
			track = lustful_inn_slut_status
			value >= 100
		}
		has_trait_xp = {
			trait = deviants_campslut
			track = campslutfame
			value >= 100
		}
		NOT = {
			house = {
				has_house_modifier = deviant_house_of_whores_modifier
			}
		}
	}
	immediate = {
		house = {
			add_house_modifier = {
				modifier = deviant_house_of_whores_modifier
			}
		}
	}
	# 
	option = {  
		name = deviants_gorandom_log.0090.a
		custom_tooltip = deviants_gorandom_log.0090.a.tt
	}	

	#
	option = {  
		name = deviants_gorandom_log.0090.b
		custom_tooltip = deviants_gorandom_log.0090.b.tt
		remove_short_term_gold = 10000
		house = {
			remove_house_modifier = deviant_house_of_whores_modifier
		}
	}	
}


#nickname pick event
deviants_gorandom_log.0100 = { 
	type = character_event
	title = deviants_gorandom_log.0100.t
	desc = deviants_gorandom_log.0100.a.desc
	theme = deviantsmaskgo
	override_background = { reference = study }
	right_portrait = {
		character = root
		animation = thinking  
	}
	option = {  
 		trigger = {
			has_any_nickname = yes
		}
		name =  deviants_gorandom_log.0100.aa
		custom_tooltip = deviants_gorandom_log.0100.aa.tt
		remove_nickname = yes
		trigger_event = deviants_gorandom_log.0100
	}	
	# pick basic whore nick
	option = {  
 		trigger = {
			is_female = yes
		}

		name =  deviants_gorandom_log.0100.a
		custom_tooltip = deviants_gorandom_log.0100.a.tt
		if = {
			limit = {
				has_any_nickname = yes
			}
			remove_nickname = yes
		}
		random_list = {
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantgowhore }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_courtesandeviant }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantharlot }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_cumslut }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantsiren }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantcunt }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_queenofwhores }
			}
		}
		trigger_event = deviants_gorandom_log.0100
	}	

	#
	option = {  
		trigger = {
			is_female = yes
		}
		name =  deviants_gorandom_log.0100.b
		custom_tooltip = deviants_gorandom_log.0100.b.tt
		if = {
			limit = {
				has_any_nickname = yes
			}
			remove_nickname = yes
		}
		random_list = {
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantbitch }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_horsefucker }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_doglover }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_thefox }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_animallover }
			}
		}
		trigger_event = deviants_gorandom_log.0100
	}	
	#
	option = {  
		trigger = {
			is_female = yes
		}
		name =  deviants_gorandom_log.0100.c
		custom_tooltip = deviants_gorandom_log.0100.c.tt
		if = {
			limit = {
				has_any_nickname = yes
			}
			remove_nickname = yes
		}
		random_list = {
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_goddessdev }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantdev }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_demonlover }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_demonwitch }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_Deviantsodomite }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_Deviantmaid }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_Deviantmaiden }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_Deviantjoy }
			}
		}
		trigger_event = deviants_gorandom_log.0100
	}	
	#
	option = {  
		trigger = {
			OR = {	is_female = no	has_trait = futanari_genetic }
		}
		name =  deviants_gorandom_log.0100.d
		custom_tooltip = deviants_gorandom_log.0100.d.tt
		if = {
			limit = {
				has_any_nickname = yes
			}
			remove_nickname = yes
		}
		random_list = {
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_bigdick }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_smalldick }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_longdick }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_bigballs }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_hairyballs }
			}
		}
		trigger_event = deviants_gorandom_log.0100
	}	
	#
	option = {  
		trigger = {
			OR = {	is_female = no	has_trait = futanari_genetic }
		}
		name =  deviants_gorandom_log.0100.e
		custom_tooltip = deviants_gorandom_log.0100.e.tt
		if = {
			limit = {
				has_any_nickname = yes
			}
			remove_nickname = yes
		}
		random_list = {
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_devianstallion }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantdominant }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_viriledeviant }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_studdeviant }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_fatherofbastards }
			}
		}
		trigger_event = deviants_gorandom_log.0100
	}	
	#
	option = {  
		trigger = {
			OR = {	is_female = no	has_trait = futanari_genetic }
		}
		name =  deviants_gorandom_log.0100.f
		custom_tooltip = deviants_gorandom_log.0100.f.tt
		if = {
			limit = {
				has_any_nickname = yes
			}
			remove_nickname = yes
		}
		random_list = {
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_devianscum }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_uglybastard }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_cuntbreaker }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_bicthslapper }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_bitshbreaker }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantrapist }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantcuck }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantcuckold }
			}
			25 = {
				set_nickname_effect = { NICKNAME = nick_the_deviantdevil }
			}
		}
		trigger_event = deviants_gorandom_log.0100
	}	
	option = {  
		name =  deviants_gorandom_log.0100.x
		custom_tooltip = deviants_gorandom_log.0100.x.tt
	}
}


deviants_gorandom_log.0110 = { 
	type = character_event
	hidden = yes
	trigger = {
		highest_held_title_tier = tier_empire
		age >= 100
		has_trait = deviants_demonanalslut
		short_term_gold >= 1000
		is_landed = yes
		any_courtier = {
			highest_held_title_tier = tier_kingdom
			is_available_ai_adult = yes
			OR = {	is_female = no	has_trait = futanari_genetic }
			age >= 18
			NOT = { has_relation_lover = root }
			NOT = { is_concubine_of = root }
			NOT = { is_spouse_of = root }
			NOT = { this = root }
			NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
			NOT = { has_trait = DSM_born_to_rule }
			OR = {	
				has_trait = sadistic
				has_trait = arrogant
				has_trait = wrathful
				has_trait = ambitious
				has_trait = vengeful
				has_trait = callous
				has_trait = deceitful
				has_relation_rival = root 
				has_relation_nemesis = root 
			}
			NOT = { 
				has_trait = eunuch_1
				has_trait = beardless_eunuch
			}
			NOT = { has_trait = blind }
			NOT = { has_trait = loyal }
		}
	}
	cooldown = { years = 40 }

	immediate = {
		random_courtier = {
			limit = {
				highest_held_title_tier = tier_kingdom
				is_available_ai_adult = yes
				OR = {	is_female = no	has_trait = futanari_genetic }
				age >= 18
				NOT = { has_relation_lover = root }
				NOT = { is_concubine_of = root }
				NOT = { is_spouse_of = root }
				NOT = { this = root }
				NOT = { has_trait = chaste }
				NOT = { has_trait = shy }
				NOT = { has_trait = celibate }
				NOT = { has_trait = DSM_born_to_rule }
				OR = {	
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
					has_trait = ambitious
					has_trait = vengeful
					has_trait = callous
					has_trait = deceitful
					has_relation_rival = root 
					has_relation_nemesis = root 
				}
				NOT = { 
					has_trait = eunuch_1
					has_trait = beardless_eunuch
				}
				NOT = { has_trait = blind }
				NOT = { has_trait = loyal }
			}
			save_scope_as = deviant_go_male_1
		}
		scope:deviant_go_male_1 = {
			add_trait = DSM_born_to_rule
			add_prowess_skill = 20
			add_intrigue_skill = 20
			add_learning_skill = 10
			add_stewardship_skill = 20
			add_martial_skill = 20
			add_diplomacy_skill = 10
			if = {
				limit = { NOT = { has_trait = ambitious } }
				add_trait = ambitious
			}
			add_gold = 1000
			spawn_army = {
				levies = 1000
				men_at_arms = {
					type = jomsviking_pirates
					stacks = 10
				}
				men_at_arms = {
					type = handpicked_faithful
					stacks = 20
				}
				men_at_arms = {
					type = varangian_veterans
					stacks = 6
				}
				men_at_arms = {
					type = onager
					stacks = 20
				}
				men_at_arms = {
					type = armored_horsemen
					stacks = 10
				}
				location = scope:deviant_go_male_1.capital_province
				origin = scope:deviant_go_male_1.capital_province
				name = dsm_devoted_deviant_volunteers
			}
		}
	}			
}
deviants_gorandom_log.0111 = { 
	type = character_event
	hidden = yes
	trigger = {
		is_ai = no
		has_trait = DSM_born_to_rule
	}

	immediate = {
		remove_trait = DSM_born_to_rule
	}			
}


#9000 random log events
deviants_gorandom_log.9000 = { 
	type = character_event
	hidden = yes
	trigger = {
		has_trait = deviants_mask
		is_female = yes
		NOT = { 
			any_character_artifact = {
				has_artifact_modifier = deviants_demon_master_dildo_modifier
			}
		}
	}

	immediate = {
		random_courtier_or_guest = {
			save_scope_as = deviantgo
		}
		random_list = {
			20 = {
				trigger = {
					has_trait = deviant_courtesan_slut
					has_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_popularity
						value >= 100
					}
				}
				#getting a few coins from a secret admirer
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_generic_gift_notification
						right_icon = ROOT
						custom_tooltip = deviant_generic_gift
						root = {
							add_gold = 1
						}
					}
				}
			}
			10 = {
				trigger = {
					has_trait = deviant_courtesan_slut
					has_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_infamy
						value > 50
					}
				}
				#random whore rumor about you, like commoner plays about you fucking multiple men getting popular
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_generic_bad_rumor_notification
						right_icon = ROOT
						custom_tooltip = deviant_generic_bad_rumor
						root = {
							add_prestige = minor_prestige_loss
						}
					}
				}
			}
			20 = {
				trigger = {
					has_trait = deviant_courtesan_slut
					has_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_popularity
						value >= 10
					}
				}
				#waking from horny dreams about selling yourself
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_courtesan_wetdream_notification
						right_icon = ROOT
						custom_tooltip = deviant_courtesan_wetdream
						root = {
							stress_impact = {
								base = minor_stress_impact_loss
								lustful = minor_stress_impact_loss
							}	
						}
					}
				}
			}
			50 = {
				trigger = {
					has_trait = deviants_strange_dildo
					any_character_artifact = {
						has_artifact_modifier = deviants_strangedildo_modifier
					}
					has_trait_xp = {
						trait = deviants_strange_dildo
						track = strange_dildo_addiction
						value >= 50
					}
				}
				#fucking your dildo
				root = {
					send_interface_toast = {
						type = event_dildo_deviantgo
						title = deviant_generic_fuck_dildo_notification
						right_icon = ROOT
						desc = deviant_generic_fuck_dildo
						root = {
							stress_impact = {
								base = minor_stress_impact_loss
							}	
							hidden_effect = {
								add_trait_xp = {
									trait = deviants_strange_dildo
									track = strange_dildo_addiction
									value = { 1 2 }
								}
							}
						}
					}	
					add_character_modifier = {
						modifier = deviant_canonlythinkdildo_modifier
						days = { 10 90 }
					}
				}
			}
			50 = {
				trigger = {
					has_trait = deviants_strange_dildo
					any_character_artifact = {
						has_artifact_modifier = deviants_strangedildo_modifier
					}
					has_trait_xp = {
						trait = deviants_strange_dildo
						track = strange_dildo_addiction
						value >= 100
					}
				}
				trigger_event = deviants_maskgo.0610
			}
			20 = {
				trigger = {
					has_trait = deviants_campslut
					has_trait_xp = {
						trait = deviants_campslut
						track = campslutfame
						value >= 30
					}
				}
				#waking from horny dreams about fucking all your men
				root = {
					send_interface_toast = {
						type = event_campslut_deviantgo
						title = deviant_campslut_dream_notification
						right_icon = ROOT
						custom_tooltip = deviant_campslut_dream
						root = {
							stress_impact = {
								base = minor_stress_impact_loss
								lustful = minor_stress_impact_loss
							}	
						}
					}
				}
			}
			10 = {
				trigger = {
					has_trait = deviants_campslut
					has_trait_xp = {
						trait = deviants_campslut
						track = campslutfame
						value >= 100
					}
				}
				#random pervy rumor about you
				root = {
					send_interface_toast = {
						type = event_campslut_deviantgo
						title = deviant_generic_campslut_rumor_notification
						right_icon = ROOT
						custom_tooltip = deviant_generic_campslut_rumor
						root = {
							stress_impact = {
								base = minor_stress_impact_gain
								lustful = minor_stress_impact_loss
							}	
							add_prestige = minor_prestige_loss
						}
					}
				}
			}

			30 = {
				trigger = {
					has_trait = deviants_demonanalslut
					has_trait_xp = {
						trait = deviants_demonanalslut
						track = demonsubmissionslut
						value >= 20
					}
				}
				#waking from a wet dream
				root = {
					send_interface_toast = {
						type = event_demonslut_deviantgo
						title = deviant_demonslut_wetdream_notification
						right_icon = ROOT
						custom_tooltip = deviant_demonslut_wetdream
						root = {
							stress_impact = {
								base = minor_stress_impact_loss
								lustful = minor_stress_impact_loss
							}	
						}
					}
				}
			}
			5 = {
				trigger = {
					has_trait = deviants_demonanalslut
					has_trait_xp = {
						trait = deviants_demonanalslut
						track = demonsubmissionslut
						value >= 90
					}
				}
				#them molesting you in public... making you cum...
				root = {
					send_interface_toast = {
						type = event_demonslut_deviantgo
						title = deviant_demonslut_molest_notification
						right_icon = ROOT
						custom_tooltip = deviant_demonslut_molest
						root = {
							stress_impact = {
								base = minor_stress_impact_loss
								lustful = minor_stress_impact_loss
							}	
							add_prestige = minor_prestige_loss
						}
					}
				}
			}
			5 = {
				trigger = {
					has_trait = deviants_demonanalslut
					has_trait_xp = {
						trait = deviants_demonanalslut
						track = demonanalslutcorruption
						value >= 50
					}
				}
				#bad rumors about you fucking demons
				root = {
					send_interface_toast = {
						type = event_demonslut_deviantgo
						title = deviant_demonslut_rumor_notification
						right_icon = ROOT
						custom_tooltip = deviant_demonslut_rumor
						root = {
							stress_impact = {
								base = minor_stress_impact_gain
								lustful = minor_stress_impact_loss
							}	
							add_prestige = minor_prestige_loss
						}
					}
				}
			}
		}
	}			
}

#test using the ranomd message key in the local file
#test doing custom message type in another file but in the same folder to change icon...


#9100 random log events
deviants_gorandom_log.9100 = { 
	type = character_event
	hidden = yes

	immediate = {
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_mask
				track = deviantlibido
				value = 1
			}
		}
		ROOT = {
			save_scope_as = deviantgo
		}
		random_list = {
			20 = {
				trigger = {
					is_landless_adventurer = no
				}
				#You serviced a local trader. 
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_fuck_local_merchant_notification
						right_icon = ROOT
						custom_tooltip = deviant_fuck_local_merchant
						root = {
							add_gold = { 1 10 }
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 1 }
						}
					}		
				}
			}
			20 = {
				trigger = {
					is_landless_adventurer = no
				}
				#You serviced a traveling trader.
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_fuck_traveling_merchant_notification
						right_icon = ROOT
						custom_tooltip = deviant_fuck_traveling_merchant
						root = {
							add_gold = { 1 10 }
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 1 }
						}
					}
				}
			}
			10 = {
				trigger = {
					is_landless_adventurer = no
				}
				#You serviced traders at a party. 
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_service_merchant_party_notification
						right_icon = ROOT
						custom_tooltip = deviant_service_merchant_party
						root = {
							add_gold = { 10 30 }
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 4 }
						}
					}
				}
			}
			10 = {
				trigger = {
					is_landless_adventurer = no
				}
				#Trader paid you to service his men.
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_service_men_merchant_notification
						right_icon = ROOT
						custom_tooltip = deviant_service_men_merchant
						root = {
							add_gold = { 5 20 }
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 4 }
						}
					}
				}
			}
			#variants if landless, just copypaste with provisions rewards addded
			20 = {
				#You serviced a local trader. 
				trigger = {
					is_landless_adventurer = yes
				}
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_fuck_local_merchant_notification
						right_icon = ROOT
						custom_tooltip = deviant_fuck_local_merchant
						root = {
							add_gold = { 1 2 }
							domicile = {
								change_provisions = { 10 50 }
							}
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 1 }
						}
					}
				}
			}
			20 = {
				#You serviced a traveling trader.
				trigger = {
					is_landless_adventurer = yes
				}
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_fuck_traveling_merchant_notification
						right_icon = ROOT
						custom_tooltip = deviant_fuck_traveling_merchant
						root = {
							add_gold = { 1 2 }
							domicile = {
								change_provisions = { 1 20 }
							}
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 1 }
						}
					}
				}
			}
			10 = {
				#You serviced traders at a party. 
				trigger = {
					is_landless_adventurer = yes
				}
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_service_merchant_party_notification
						right_icon = ROOT
						custom_tooltip = deviant_service_merchant_party
						root = {
							add_gold = { 1 10 }
							domicile = {
								change_provisions = { 1 20 }
							}
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 3 }
						}
					}
				}
			}
			10 = {
				#Trader paid you to service his men.
				trigger = {
					is_landless_adventurer = yes
				}
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_service_men_merchant_notification
						right_icon = ROOT
						custom_tooltip = deviant_service_men_merchant
						root = {
							add_gold = { 1 10 }
							domicile = {
								change_provisions = { 10 50 }
							}
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 3 }
						}
					}
				}
			}
			10 = {
				#you were robbed
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_you_were_robbed_notification
						right_icon = ROOT
						custom_tooltip = deviant_you_were_robbed
						root = {
							stress_impact = {
								base = minor_stress_gain
								greedy = minor_stress_gain
							}
						}
					}
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_courtesan_slut
							track = deviant_courtesan_merchant_connections
							value = { 0 1 }
						}
					}
				}
			}
			10 = {
				#you were not paid
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_you_werenot_paid_notification
						right_icon = ROOT
						custom_tooltip = deviant_you_werenot_paid
						root = {
							stress_impact = {
								base = minor_stress_gain
								greedy = minor_stress_gain
							}
						}
					}
				}
			}	
		}
	#chance for bad rumour log...
		random_list = {
			80 = {
			}
			40 = {
				root = {
					send_interface_message = {
						type = event_innslut_deviantgo_text
						title = deviant_bad_merchant_whore_client_notification
						right_icon = ROOT
						desc = deviant_bad_inn_whore_client
						root = {
							stress_impact = {
								base = minor_stress_gain
							}
						}
					}
				}	
			}
			20 = {
				trigger = {
					has_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_merchant_connections
						value >= 20
					}
				}
				root = {
					send_interface_message = {
						type = event_generic_deviantgo
						title = deviant_bad_whore_rumor_notification
						right_icon = ROOT
						custom_tooltip = deviant_bad_whore_rumor
						root = {
							add_piety = { -10 -1 }
							add_prestige = { -10 -1 }
						}
					}
				}
			}
		}	
	}			
}




#commoner whoring basic spin
deviants_gorandom_log.9200 = { 
	type = character_event
	hidden = yes
	trigger = {
		is_ai = no
		has_trait = deviants_hiredcampslut
		any_courtier = {
			has_trait = deviants_slut_hired_maiden
			has_character_modifier = deviants_courtesan_whoring_commoners_modifier
			is_incapable = no
			is_imprisoned = no
		}

	}

	immediate = {
		ROOT = {
			save_scope_as = deviantgo
		}
		random_courtier = {
			save_scope_as = deviant_go_random_1
			limit = {
				has_trait = deviants_slut_hired_maiden
				has_character_modifier = deviants_courtesan_whoring_commoners_modifier
				is_incapable = no
				is_imprisoned = no
			}
		}
		random_list = {
			20 = {
				trigger = {
					is_landless_adventurer = no
					any_courtier = {
						count < 4
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
				# poor earnings
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_poor_whore_earnings_notification
						right_icon = ROOT
						left_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_poor_whore_earnings
						root = {
							add_gold = { 1 9 }
						}
					}
					hidden_effect = {
						scope:deviant_go_random_1 = {
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_dancer_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_warrior_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_domina_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_religous_maiden_skill
									value = { 0 5 }
								}
							}	
						}	
					}
				}
			20 = {
				trigger = {
					is_landless_adventurer = no
					any_courtier = {
						count >= 3
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
				# good earnings
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_good_whore_earnings_notification
						right_icon = ROOT
						left_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_good_whore_earnings
						root = {
							add_gold = { 10 19 }
						}
					}
					hidden_effect = {
						scope:deviant_go_random_1 = {
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_dancer_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_warrior_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_domina_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_religous_maiden_skill
									value = { 0 5 }
								}
							}	
						}	
					}
				}
			60 = {
				trigger = {
					is_landless_adventurer = no
					any_courtier = {
						count >= 7
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
				#very good earnings
				root = {
				send_interface_toast = {
					type = event_generic_deviantgo
					title = deviant_vgood_whore_earnings_notification
					right_icon = ROOT
					left_icon = scope:deviant_go_random_1
					custom_tooltip = deviant_vgood_whore_earnings
					root = {
						add_gold = { 20 40 }
					}
				}
				hidden_effect = {
					scope:deviant_go_random_1 = {
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_dancer_maiden_skill
								value = { 0 10 }
							}
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_warrior_maiden_skill
								value = { 0 10 }
							}
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_domina_maiden_skill
								value = { 0 10 }
							}
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_religous_maiden_skill
								value = { 0 10 }
							}
						}	
					}	
				}
			}
			#variants if landless, just copypaste with provisions rewards addded
			20 = {
				trigger = {
					is_landless_adventurer = yes
					any_courtier = {
						count < 4
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
				# poor earnings
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_poor_whore_earnings_notification
						right_icon = ROOT
						left_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_poor_whore_earnings
						root = {
							add_gold = { 1 5 }
							domicile = {
								change_provisions = { 1 40 }
							}
						}
					}
					hidden_effect = {
						scope:deviant_go_random_1 = {
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_dancer_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_warrior_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_domina_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_religous_maiden_skill
									value = { 0 5 }
								}
							}	
						}	
					}
				}
			20 = {
				trigger = {
					is_landless_adventurer = yes
					any_courtier = {
						count >= 3
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
					# good earnings
					root = {
							send_interface_toast = {
							type = event_generic_deviantgo
							title = deviant_good_whore_earnings_notification
							right_icon = ROOT
							left_icon = scope:deviant_go_random_1
							custom_tooltip = deviant_good_whore_earnings
							root = {
								add_gold = { 5 12 }
								domicile = {
									change_provisions = { 40 80 }
								}
							}
						}
					hidden_effect = {
						scope:deviant_go_random_1 = {
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_dancer_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_warrior_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_domina_maiden_skill
									value = { 0 5 }
								}
								add_trait_xp = {
									trait = deviants_slut_hired_maiden
									track = deviants_religous_maiden_skill
									value = { 0 5 }
								}
							}	
						}	
					}
				}	
			60 = {
				trigger = {
					is_landless_adventurer = yes
					any_courtier = {
						count >= 7
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
				#very good earnings
				root = {
				send_interface_toast = {
					type = event_generic_deviantgo
					title = deviant_vgood_whore_earnings_notification
					right_icon = ROOT
					left_icon = scope:deviant_go_random_1
					custom_tooltip = deviant_vgood_whore_earnings
					root = {
						add_gold = { 14 30 }
						domicile = {
							change_provisions = { 80 150 }
						}
					}
				}
				hidden_effect = {
					scope:deviant_go_random_1 = {
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_dancer_maiden_skill
								value = { 0 10 }
							}
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_warrior_maiden_skill
								value = { 0 10 }
							}
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_domina_maiden_skill
								value = { 0 10 }
							}
							add_trait_xp = {
								trait = deviants_slut_hired_maiden
								track = deviants_religous_maiden_skill
								value = { 0 10 }
							}
						}	
					}	
				}
			}
		}
	#chance for special extra events...
		random_list = {
			100 = {
			}
			40 = {
					#serviced well paying client
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_serviced_wellpaying_client_notification
						right_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_serviced_wellpaying_client
						scope:deviant_go_random_1 = {
							add_gold = { 2 4 }
						}
					}
				}
			}
			20 = {
				#serviced a well paying group of men
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_serviced_wellpaying_group_notification
						right_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_serviced_wellpaying_group
						scope:deviant_go_random_1 = {
							add_gold = { 5 8 }
						}
					}
				}
			}
			20 = {
				trigger = {
					is_landless_adventurer = no
					any_courtier = {
						count >= 3
						has_trait = deviants_slut_hired_maiden
						has_character_modifier = deviants_courtesan_whoring_commoners_modifier
						is_incapable = no
						is_imprisoned = no
					}
				}
				#a group of your courtesans were hired
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_serviced_wellpaying_party_notification
						right_icon = ROOT
						left_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_serviced_wellpaying_party
						scope:deviant_go_random_1 = {
							add_gold = { 10 20 }
						}
					}
				}
			}
			40 = {
				#got ill
				trigger = {
					scope:deviant_go_random_1 = {
						NOT = { has_trait = ill }
					}
				}
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_whore_got_ill_notification
						right_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_whore_got_ill
						scope:deviant_go_random_1 = {
							add_trait = ill
						}
					}
				}
			}
			20 = {
				#got wounded
				trigger = {
					scope:deviant_go_random_1 = {
						NOT = { has_trait = wounded_1 }
					}
				}
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_whore_got_wounded_notification
						right_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_whore_got_wounded
						scope:deviant_go_random_1 = {
							add_trait = wounded_1
						}
					}
				}
			}
			#20 = {
				#got pregnant
			#}
			20 = {
				#dissapeared, opens event for player to see if she truly vanish or you pay to find her
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_whore_vanished_notification
						right_icon = scope:deviant_go_random_1
						custom_tooltip = deviant_whore_vanished
						scope:deviant_go_random_1 = {
							death = {
								death_reason = death_vanished_whore
							}
						}
					}
				}
			}
			20 = {
				#got lover's pox
				trigger = {
					scope:deviant_go_random_1 = {
						NOT = { has_trait = lovers_pox }
					}
				}
				scope:deviant_go_random_1 = {
					add_trait = lovers_pox 
				}
			}
			20 = {
				trigger = {
					scope:deviant_go_random_1 = {
						has_trait = lustful
					}
				}
				trigger_event = courtesango_deviant_events.6200
			}
			100 = {
				trigger = {
					scope:deviant_go_random_1 = {
						current_weight < 10
						age < 21
						NOT = { has_trait = lustful }
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_dancer_maiden_skill
							value < 5
						}
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_warrior_maiden_skill
							value < 5
						}
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_domina_maiden_skill
							value < 5
						}
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_religous_maiden_skill
							value < 5
						}
					}
				}
				trigger_event = courtesango_deviant_events.6210
			}
			50 = {
				trigger = {
					scope:deviant_go_random_1 = {
						age < 21
						has_trait = lustful
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_dancer_maiden_skill
							value < 5
						}
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_warrior_maiden_skill
							value < 5
						}
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_domina_maiden_skill
							value < 5
						}
						has_trait_xp = {
							trait = deviants_slut_hired_maiden
							track = deviants_religous_maiden_skill
							value < 5
						}
					}
				}
				trigger_event = courtesango_deviant_events.6211
			}
			30 = {
				trigger = {
					scope:deviant_go_random_1 = {
						age < 30
						current_weight < 10
						NOT = { has_trait = lustful }
						has_trait = zealous
					}
				}
				trigger_event = courtesango_deviant_events.6212
			}
		}	
	}			
}

#the special merchant whoring opportunities

#if got wounded
#if got ill
#if never came back... proper event to decide if you invest resources to find her... low chance... try making custom death casue... "Vanished while being a commoner whore."
#if got lover's pox
#if got pregnant


deviants_gorandom_log.9210 = { 
	type = character_event
	hidden = yes
	trigger = {
		has_trait = deviants_strange_dildo
		is_female = yes
		is_landless_adventurer = yes
		any_character_artifact = {
			has_artifact_modifier = deviants_strangedildo_modifier
		}
	}

	immediate = {
		ROOT = {
			save_scope_as = deviantgo
		}
		random_list = {
			10 = {
				trigger = {
					has_trait = deviant_courtesan_slut
					has_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_popularity
						value >= 10
					}
				}
				#waking from horny dreams about selling yourself
				root = {
					send_interface_toast = {
						type = event_generic_deviantgo
						title = deviant_courtesan_wetdream_notification
						right_icon = ROOT
						custom_tooltip = deviant_courtesan_wetdream
						root = {
							stress_impact = {
								lustful = minor_stress_impact_loss
							}	
						}
					}
				}
			}
			50 = {
				trigger = {
					has_trait = deviants_strange_dildo
					any_character_artifact = {
						has_artifact_modifier = deviants_strangedildo_modifier
					}
					has_trait_xp = {
						trait = deviants_strange_dildo
						track = strange_dildo_addiction
						value >= 50
					}
				}
				#fucking your dildo
				root = {
					send_interface_toast = {
						type = event_dildo_deviantgo
						title = deviant_generic_fuck_dildo_notification
						right_icon = ROOT
						desc = deviant_generic_fuck_dildo
						root = {
							stress_impact = {
								base = minor_stress_impact_loss
							}	
							hidden_effect = {
								add_trait_xp = {
									trait = deviants_strange_dildo
									track = strange_dildo_addiction
									value = { 1 10 }
								}
							}
						}
					}
					add_character_modifier = {
						modifier = deviant_canonlythinkdildo_modifier
						days = { 10 90 }
					}
				}
			}
			50 = {
				trigger = {
					has_trait = deviants_strange_dildo
					any_character_artifact = {
						has_artifact_modifier = deviants_strangedildo_modifier
					}
					has_trait_xp = {
						trait = deviants_strange_dildo
						track = strange_dildo_addiction
						value >= 100
					}
				}
				trigger_event = deviants_maskgo.0610
			}
		}
	}			
}

#empire artifact claim hidden events...
deviants_gorandom_log.9220 = { 
	type = character_event
	hidden = yes
	trigger = {
		highest_held_title_tier = tier_empire
		OR = {
			any_character_artifact = {
				has_artifact_modifier = deviants_demon_master_dildo_modifier
			}
			any_character_artifact = {
				has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
			}
		}	
	}

	immediate = {
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				in_diplomatic_range = root
				age >= 18
				OR = {	is_female = no	has_trait = futanari_genetic }
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { 
					has_trait = chaste 
					has_trait = shy
					has_trait = celibate
				}
				OR = {	
					has_trait = greedy
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
					has_trait = ambitious
					has_trait = vengeful
					has_trait = callous
					has_trait = deceitful
					has_trait = lustful
					has_trait = rakish
					has_relation_rival = root 
					has_relation_nemesis = root 
				}
			}
			save_scope_as = random_ruler_one
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				in_diplomatic_range = root
				age >= 18
				OR = {	is_female = no	has_trait = futanari_genetic }
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { 
					has_trait = chaste 
					has_trait = shy
					has_trait = celibate
				}
				OR = {	
					has_trait = greedy
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
					has_trait = ambitious
					has_trait = vengeful
					has_trait = callous
					has_trait = deceitful
					has_trait = lustful
					has_trait = rakish
					has_relation_rival = root 
					has_relation_nemesis = root 
				}
			}
			save_scope_as = random_ruler_two
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				NOT = { this = scope:random_ruler_two }
				in_diplomatic_range = root
				age >= 18
				OR = {	is_female = no	has_trait = futanari_genetic }
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { 
					has_trait = chaste 
					has_trait = shy
					has_trait = celibate
				}
				OR = {	
					has_trait = greedy
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
					has_trait = ambitious
					has_trait = vengeful
					has_trait = callous
					has_trait = deceitful
					has_trait = lustful
					has_trait = rakish
					has_relation_rival = root 
					has_relation_nemesis = root 
				}
			}
			save_scope_as = random_ruler_three
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				NOT = { this = scope:random_ruler_three }
				in_diplomatic_range = root
				age >= 18
				OR = {	is_female = no	has_trait = futanari_genetic }
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { 
					has_trait = chaste 
					has_trait = shy
					has_trait = celibate
				}
				OR = {	
					has_trait = greedy
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
					has_trait = ambitious
					has_trait = vengeful
					has_trait = callous
					has_trait = deceitful
					has_trait = lustful
					has_trait = rakish
					has_relation_rival = root 
					has_relation_nemesis = root 
				}
			}
			save_scope_as = random_ruler_four
		}
		if = {
			limit = {
				root = {
					any_character_artifact = {
						has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
					}
				}
			}
			random_character_artifact = {
				limit = {
					has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
				}
				save_scope_as = deviant_innslut_snake_bracelet
			}
		}
		if = {
			limit = {
				root = {
					any_character_artifact = {
						has_artifact_modifier = deviants_demon_master_dildo_modifier
					}
				}
			}
			random_character_artifact = {
				limit = {
					has_artifact_modifier = deviants_demon_master_dildo_modifier
				}
				save_scope_as = deviants_demon_master_dildo
			}
		}
		random_list = {
			60 = {

			}
			40 = {
				trigger = {
					any_character_artifact = {
						has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
					}
				}
				scope:random_ruler_one = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviant_innslut_snake_bracelet }
						}
						add_personal_artifact_claim = scope:deviant_innslut_snake_bracelet
					}
				}
				scope:random_ruler_two = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviant_innslut_snake_bracelet }
						}
						add_personal_artifact_claim = scope:deviant_innslut_snake_bracelet
					}
				}
				scope:random_ruler_three = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviant_innslut_snake_bracelet }
						}
						add_personal_artifact_claim = scope:deviant_innslut_snake_bracelet
					}
				}
				scope:random_ruler_four = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviant_innslut_snake_bracelet }
						}
						add_personal_artifact_claim = scope:deviant_innslut_snake_bracelet
					}
				}

			}
			20 = {
				trigger = {
					any_character_artifact = {
						has_artifact_modifier = deviants_demon_master_dildo_modifier
					}
				}
				scope:random_ruler_one = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviants_demon_master_dildo }
						}
						add_personal_artifact_claim = scope:deviants_demon_master_dildo
					}
				}
				scope:random_ruler_two = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviants_demon_master_dildo }
						}
						add_personal_artifact_claim = scope:deviants_demon_master_dildo
					}
				}
				scope:random_ruler_three = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviants_demon_master_dildo }
						}
						add_personal_artifact_claim = scope:deviants_demon_master_dildo
					}
				}
				scope:random_ruler_four = {
					if = { 
						limit = { 
							NOT = { has_personal_artifact_claim = scope:deviants_demon_master_dildo }
						}
						add_personal_artifact_claim = scope:deviants_demon_master_dildo
					}
				}
			}
		}
	}			
}


#nether oil log events, under 50, near 0 or 0, and above 50... quarterly 100...
deviants_gorandom_log.9230 = { 
	type = character_event
	hidden = yes
	trigger = {
		has_trait =	deviant_nether_oil
	}

	immediate = {
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_mask
				track = deviantlibido
				value = 1
			}
		}
		ROOT = {
			save_scope_as = deviantgo
		}

		random_list = {
			20 = {
				trigger = {
					has_trait_xp = {
						trait = deviant_nether_oil
						track = deviant_nether_oil_addiction
						value < 60
					}
					has_trait_xp = {
						trait = deviant_nether_oil
						track = deviant_nether_oil_addiction
						value > 25
					}
				}
				root = {
					send_interface_toast = {
						type = event_netheroil_deviantgo_text
						title = deviant_hungry_flower_netheroil_notification
						right_icon = ROOT
						desc = deviant_hungry_flower_netheroil
						root = {
							stress_impact = {
								base = minor_stress_impact_gain
							}	
						}
					}		
				}

			}
			20 = {
				trigger = {
					has_trait_xp = {
						trait = deviant_nether_oil
						track = deviant_nether_oil_addiction
						value <= 25
					}
				}	
				root = {
					send_interface_toast = {
						type = event_netheroil_deviantgo_text
						title = deviant_starved_flower_netheroil_notification
						right_icon = ROOT
						desc = deviant_starved_flower_netheroil
						root = {
							stress_impact = {
								base = minor_stress_impact_gain
								lustful = minor_stress_impact_gain
							}	
						}
					}		
				}
			}
		}
	}			
}


#AI female dildo corruption
deviants_gorandom_log.9300 = { 
	type = character_event
	hidden = yes
	trigger = {
		is_ai = yes
		is_female = yes
		age > 18
		any_character_artifact = {
			has_artifact_modifier = deviants_strangedildo_modifier 
		}
		NOT = { has_trait = deviants_strange_dildo }
	}

	immediate = {


		random_list = {
			60 = {
			}
			20 = {
				add_trait = deviants_strange_dildo
			}
		}
	}			
}

#AI female dildo corruption gain
deviants_gorandom_log.9301 = { 
	type = character_event
	hidden = yes
	trigger = {
		is_ai = yes
		is_female = yes
		age > 18
		has_trait = deviants_strange_dildo
	}

	immediate = {
		ROOT = { save_scope_as = deviant_go_random_1 }
		stress_impact = {
			base = medium_stress_impact_loss
			lustful = massive_stress_impact_loss
		}
		add_character_modifier = {
			modifier = deviant_canonlythinkdildo_modifier
			days = 30
		}

		random_list = {
			80 = {
				trigger = {
					NOT = { has_trait = deviants_demonanalslut }
				}
				add_trait_xp = {
					trait = deviants_strange_dildo
					track = strange_dildo_addiction
					value = { 1 5 }
				}
				stress_impact = {
					base = medium_stress_impact_loss
					lustful = massive_stress_impact_loss
				}
			}
			20 = {
				trigger = {
					NOT = { has_trait = deviants_demonanalslut }
				}
				add_trait_xp = {
					trait = deviants_strange_dildo
					track = strange_dildo_addiction
					value = { 1 20 }
				}
				stress_impact = {
					base = medium_stress_impact_loss
					lustful = massive_stress_impact_loss
				}
			}
			60 = {
				trigger = {
					has_trait = deviants_demonanalslut
				}
				add_trait_xp = {
					trait = deviants_demonanalslut
					track = demonsubmissionslut
					value = { 1 5 }
				}
				stress_impact = {
					base = medium_stress_impact_loss
					lustful = massive_stress_impact_loss
				}
			}
			20 = {
				trigger = {
					has_trait = deviants_demonanalslut
				}
				add_trait_xp = {
					trait = deviants_demonanalslut
					track = demonsubmissionslut
					value = { 1 2 }
				}
				stress_impact = {
					base = medium_stress_impact_loss
					lustful = massive_stress_impact_loss
				}
			}
			20 = {
				trigger = {
					NOT = {
						has_trait = lustful
					}
				}	
				if = {
					limit = { has_trait = chaste }
					remove_trait = chaste
				}
				else_if = {
					limit = { has_trait = humble }
					remove_trait = humble
				}
				else_if = {
					limit = { has_trait = gregarious }
					remove_trait = gregarious
				}
				else_if = {
					limit = { has_trait = shy }
					remove_trait = shy
				}
				else_if = {
					limit = { has_trait = calm }
					remove_trait = calm
				}
				else_if = {
					limit = { has_trait = content }
					remove_trait = content
				}
				else_if = {
					limit = { has_trait = generous }
					remove_trait = generous
				}
				else_if = {
					limit = { has_trait = just }
					remove_trait = just
				}
				else_if = {
					limit = { has_trait = honest }
					remove_trait = honest
				}
				else_if = {
					limit = { has_trait = patient }
					remove_trait = patient
				}
				else_if = {
					limit = { has_trait = temperate }
					remove_trait = temperate
				}
				else_if = {
					limit = { has_trait = diligent }
					remove_trait = diligent
				}
				else_if = {
					limit = { has_trait = greedy }
					remove_trait = greedy
				}
				else_if = {
					limit = { has_trait = ambitious }
					remove_trait = ambitious
				}
				else_if = {
					limit = { has_trait = impatient }
					remove_trait = impatient
				}
				else_if = {
					limit = { has_trait = gluttonous }
					remove_trait = gluttonous
				}
				else_if = {
					limit = { has_trait = lazy }
					remove_trait = lazy
				}
				else_if = {
					limit = { has_trait = wrathful }
					remove_trait = wrathful
				}
				else_if = {
					limit = { has_trait = deceitful }
					remove_trait = deceitful
				}
				else_if = {
					limit = { has_trait = arrogant }
					remove_trait = arrogant
				}
				else_if = {
					limit = { has_trait = craven }
					remove_trait = craven
				}
				else_if = {
					limit = { has_trait = brave }
					remove_trait = brave
				}
				else_if = {
					limit = { has_trait = arbitrary }
					remove_trait = arbitrary
				}
				else_if = {
					limit = { has_trait = cynical }
					remove_trait = cynical
				}
				else_if = {
					limit = { has_trait = zealous }
					remove_trait = zealous
				}
				else_if = {
					limit = { has_trait = paranoid }
					remove_trait = paranoid
				}
				else_if = {
					limit = { has_trait = trusting }
					remove_trait = trusting
				}
				else_if = {
					limit = { has_trait = compassionate }
					remove_trait = compassionate
				}
				else_if = {
					limit = { has_trait = callous }
					remove_trait = callous
				}
				else_if = {
					limit = { has_trait = forgiving }
					remove_trait = forgiving
				}
				else_if = {
					limit = { has_trait = vengeful }
					remove_trait = vengeful
				}
				else_if = {
					limit = { has_trait = stubborn }
					remove_trait = stubborn
				}
				else_if = {
					limit = { has_trait = fickle }
					remove_trait = fickle
				}
				add_trait = lustful
				add_trait_xp = {
					trait = deviants_strange_dildo
					track = strange_dildo_addiction
					value = { 1 20 }
				}
			}
			5 = {
				trigger = {
					highest_held_title_tier >= tier_kingdom
					has_trait = lustful
					NOT = { has_trait = deviants_demonanalslut }
					has_trait_xp = {
						trait = deviants_strange_dildo
						track = strange_dildo_addiction
						value >= 100
					}
				}
				add_trait = deviants_demonanalslut
				hidden_effect = {
					set_immortal_age = 20
				}
				add_character_modifier = {
					modifier = deviant_canonlythinkdildo_modifier
					days = 30
				}
			}
			20 = {
				trigger = {
					has_trait = lustful
					has_trait = deviants_demonanalslut
				}
				create_artifact = {
					name = deviantstrangetoy
					description = deviantstrangetoy_desc
					type = miscellaneous
					modifier = deviants_strangedildo_modifier
					visuals = deviant_strange_toy
					template = deviant_dildo_relic_template
					max_durability = 100
					wealth = 15
					creator = scope:deviant_go_random_1
					quality = 15
					save_scope_as = deviant_dildo_thing
				}
				hidden_effect_new_object = {
					scope:deviant_dildo_thing = {
						add_deviant_artifact_modifier_dildo_effect = yes
					}
				}
			}	
			100 = {
				trigger = {
					has_trait = deviants_strange_dildo
					NOT = {
						any_character_artifact = {
							has_artifact_modifier = deviants_strangedildo_modifier 
						}
					}	
				}
				remove_short_term_gold = 40
				create_artifact = {
					name = deviantstrangetoy
					description = deviantstrangetoy_desc
					type = miscellaneous
					modifier = deviants_strangedildo_modifier
					visuals = deviant_strange_toy
					template = deviant_dildo_relic_template
					max_durability = 100
					wealth = 15
					creator = scope:deviant_go_random_1
					quality = 15
					save_scope_as = deviant_dildo_thing
				}
				hidden_effect_new_object = {
					scope:deviant_dildo_thing = {
						add_deviant_artifact_modifier_dildo_effect = yes
					}
				}
			}
			50 = {
				trigger = {
					has_trait = deviants_strange_dildo
					debt_level >= 1	
					has_trait = lustful
					NOT = { has_trait = lustful_inn_slut }
					has_trait_xp = {
						trait = deviants_strange_dildo
						track = strange_dildo_addiction
						value >= 50
					}
				}
				add_trait = lustful_inn_slut
			}
			50 = {
				trigger = {
					has_trait = lustful_inn_slut
					NOT = {
						has_trait_xp = {
							trait = lustful_inn_slut
							track = lustful_inn_slut_experince
							value = 100
						}
					}
				}
				add_gold = { 1 20 }
                add_trait_xp = {
                    trait = lustful_inn_slut
                    track = lustful_inn_slut_experince
                    value = { 1 20 }
                }
			}
			50 = {
				trigger = {
					has_trait = lustful_inn_slut
					has_trait_xp = {
						trait = lustful_inn_slut
						track = lustful_inn_slut_experince
						value = 100
					}
					NOT = { has_character_flag = given_deviant_innslut_snake_bracelet }
					NOT = {
						any_character_artifact = {
							has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
						}
					}	
				}
				add_gold = { 1 20 }
                add_character_flag = given_deviant_innslut_snake_bracelet 
				create_artifact = {
					name = deviant_innslut_snake_bracelet
					description = deviant_innslut_snake_bracelet_desc
					type = miscellaneous
					modifier = deviant_innslut_snake_bracelet_modifier
					visuals = icon_deviant_innslut_snake_bracelet
					template = deviant_innslut_snake_bracelet_template
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					max_durability = 100
					wealth = 15
					quality = 15
				}
			}
			50 = {
				trigger = {
					has_trait = lustful_inn_slut
					has_character_flag = given_deviant_innslut_snake_bracelet
					any_character_artifact = {
						has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
					}
				}
				add_gold = { 1 40 }
				add_trait_xp = {
                    trait = lustful_inn_slut
                    track = lustful_inn_slut_experince
                    value = { 0 5 }
                }
				add_trait_xp = {
                    trait = lustful_inn_slut
                    track = lustful_inn_slut_daring
                    value = { 0 5 }
                }
				add_trait_xp = {
                    trait = lustful_inn_slut
                    track = lustful_inn_slut_status
                    value = { 0 2 }
                }
				add_trait_xp = {
                    trait = lustful_inn_slut
                    track = lustful_inn_slut_those_clients
                    value = { 0 2 }
                }
			}
			50 = {
				trigger = {
					has_trait = lustful_inn_slut
					has_trait = lustful
					NOT = { has_character_flag = given_deviant_innslut_snake_bracelet }
					any_character_artifact = {
						has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
					}
				}
				add_gold = { 1 40 }
				add_character_flag = given_deviant_innslut_snake_bracelet
			}
			50 = {
				trigger = {
					NOT = { has_trait = lustful_inn_slut }
					has_trait = lustful
					any_character_artifact = {
						has_artifact_modifier = deviant_innslut_snake_bracelet_modifier
					}
				}
				add_gold = { 1 40 }
				add_trait = lustful_inn_slut
				add_character_flag = given_deviant_innslut_snake_bracelet
			}
		}
	}			
}

#AI female dildo gift extra dildo...
deviants_gorandom_log.9302 = { 
	type = character_event
	hidden = yes
	trigger = {
		is_ai = yes
		is_female = yes
		age > 18
		has_trait = deviants_strange_dildo
		has_trait = lustful
		has_trait = deviants_demonanalslut
	}

	immediate = {
		stress_impact = {
			base = medium_stress_impact_loss
			lustful = medium_stress_impact_loss
		}
		add_character_modifier = {
			modifier = deviant_canonlythinkdildo_modifier
			days = 30
		}
		random_list = {
			#dynasty member
			25 = {
				trigger = {
					dynasty = {
						any_dynasty_member = {
							is_ai = yes
							is_female = yes
							age > 18
							NOT = { has_trait = deviants_strange_dildo }
						}
					}	
				}
				dynasty = {
					random_dynasty_member = {
						limit = {
							is_ai = yes
							is_female = yes
							age > 18
							NOT = { has_trait = deviants_strange_dildo }
						}
						add_trait = deviants_strange_dildo
					}
				}	
			}
			#adult child
			25 = {
				trigger = {
					any_child = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
				}
					
				random_child = {
					limit = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
					add_trait = deviants_strange_dildo
				}
			}
			#friend
			25 = {
				trigger = {
					any_relation = {
						type = friend
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
				}
				random_relation = {
					type = friend
					limit = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
					add_trait = deviants_strange_dildo
				}
			}
			25 = {
				trigger = {
					is_landed = yes
					any_courtier = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
				}
				random_courtier = {
					limit = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
					add_trait = deviants_strange_dildo
				}
			}
			25 = {
				trigger = {
					is_landed = yes
					any_courtier = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
				}
				random_courtier = {
					limit = {
						is_ai = yes
						is_female = yes
						age > 18
						NOT = { has_trait = deviants_strange_dildo }
					}
					add_trait = deviants_strange_dildo
				}
			}
			100 = {
			}
		}
	}			
}

#none ruler get trait
deviants_gorandom_log.9304 = { 
	type = character_event
	hidden = yes
	trigger = {
		any_courtier_or_guest = {
			is_ai = yes
			is_female = yes
			age > 18
			any_character_artifact = {
				has_artifact_modifier = deviants_strangedildo_modifier 
			}
			NOT = { has_trait = deviants_strange_dildo }
		}	
	}

	immediate = {
		random_courtier_or_guest = {
			limit = {
				is_ai = yes
				is_female = yes
				age > 18
				any_character_artifact = {
					has_artifact_modifier = deviants_strangedildo_modifier 
				}
				NOT = { has_trait = deviants_strange_dildo }
			}	
			save_scope_as = deviant_go_random_1
		}	
		scope:deviant_go_random_1 = {
			trigger_event = deviants_gorandom_log.9300
		}
	}			
}

#none ruler events
deviants_gorandom_log.9305 = { 
	type = character_event
	hidden = yes
	trigger = {
		any_courtier_or_guest = {
			is_ai = yes
			is_female = yes
			age > 18
			has_trait = deviants_strange_dildo
		}	
	}

	immediate = {
		random_courtier_or_guest = {
			limit = {
				is_ai = yes
				is_female = yes
				age > 18
				has_trait = deviants_strange_dildo
			}	
			save_scope_as = deviant_go_random_1
		}	
		scope:deviant_go_random_1 = {
			trigger_event = deviants_gorandom_log.9301
			trigger_event = deviants_gorandom_log.9302
		}
	}			
}