﻿namespace = sadistic_deviantgo_events

#the execute button opens up some basic intro event for you fetishinsg messing with the commoners
sadistic_deviantgo_events.0090 = { 
	type = character_event
	title = sadistic_deviantgo_events.0090.t
	desc = sadistic_deviantgo_events.0090.desc
	theme = deviantsmaskgo 
	override_background = { reference =	bedchamber }
	right_portrait = {
		character = root
		animation = thinking  
	}
	# good idea
	option = {
		name = sadistic_deviantgo_events.0090.a
		custom_tooltip = sadistic_deviantgo_events.0090.a.tt

	}			
}

#basic logs for joyriding
sadistic_deviantgo_events.0010 = { 
	type = character_event
	hidden = yes
	trigger = {
		has_trait =	sadistic
	}

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

		random_list = {
			#not enough knights...
			20 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count < 4 }
					}

				}
				root = {
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_not_enough_notification
						right_icon = ROOT
						desc = deviant_sadistic_joyrides_not_enough
					}		
				}
			}
			#General scaring peasants/running them down
			60 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count >= 4 }
					}

				}
				scope:scheme = {
					every_scheme_agent_character = {
						custom = custom.every_scheme_agent_character
						add_opinion = {
							target = root
							modifier = amused_opinion
							opinion = { 1 4 }
						}
						stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
					}
				}
				root = {
					hidden_effect = {
						add_trait_xp = {
							trait = deviants_sadistic_joyrides
							track = dsm_joyride_reputation
							value = { 0 3 }
						}
					}
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_basic_notification
						right_icon = ROOT
						desc = deviant_sadistic_joyrides_basic
						root = {
							stress_impact = {
								base = { -1 -6 }
							}	
							add_piety = { -10 -1 }
							add_prestige = { -10 -1 }
							add_dread = { 0 2 }
						}
					}		
				}
			}
			#General doing bad things that commoners like
			20 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count >= 4 }
					}

				}
				scope:scheme = {
					every_scheme_agent_character = {
						custom = custom.every_scheme_agent_character
						add_opinion = {
							target = root
							modifier = amused_opinion
							opinion = { 1 4 }
						}
						stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
					}
				}
				root = {
					hidden_effect = {
						add_trait_xp = {
							trait = deviants_sadistic_joyrides
							track = dsm_joyride_reputation
							value = { 0 3 }
						}
					}
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_gooddeed_notification
						right_icon = ROOT
						desc = deviant_sadistic_gooddeed_basic
						root = {
							stress_impact = {
								base = { -1 -6 }
							}	
							add_piety = { 1 10 }
							add_prestige = { 1 10 }
						}
					}		
				}
			}
			#gang molesting a woman you spotted, you mostly watching, they too ugly for you to touch
			20 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count >= 4 }
					}

				}	
				scope:scheme = {
					every_scheme_agent_character = {
						custom = custom.every_scheme_agent_character
						add_opinion = {
							target = root
							modifier = amused_opinion
							opinion = { 1 4 }
						}
						stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
					}
				}
				root = {
					hidden_effect = {
						add_trait_xp = {
							trait = deviants_sadistic_joyrides
							track = dsm_joyride_reputation
							value = { 0 3 }
						}
					}
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_groupmolest_notification
						right_icon = ROOT
						desc = deviant_sadistic_joyrides_groupmolest
						root = {
							stress_impact = {
								base = { -1 -6 }
							}	
							add_piety = { -10 -1 }
							add_prestige = { -10 -1 }
							add_dread = { 0 2 }
						}
					}		
				}
			}
			#gangraping a women you spotted, you mostly watching, they too ugly for you to touch
			20 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count >= 4 }
					}

				}	
				
				scope:scheme = {
					every_scheme_agent_character = {
						custom = custom.every_scheme_agent_character
						add_opinion = {
							target = root
							modifier = amused_opinion
							opinion = { 1 4 }
						}
						stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
					}
				}
				root = {
					hidden_effect = {
						add_trait_xp = {
							trait = deviants_sadistic_joyrides
							track = dsm_joyride_reputation
							value = { 0 3 }
						}
					}
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_gangrape_notification
						right_icon = ROOT
						desc = deviant_sadistic_joyrides_gangrape
						root = {
							stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
							add_piety = { -10 -1 }
							add_prestige = { -10 -1 }
							add_dread = { 0 2 }
						}
					}		
				}
			}
			#if male, fucking some peasant woman who got your attention...
			20 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count >= 4 }
					}
					OR = {	is_female = no	has_trait = futanari_genetic }
				}	
				root = {
					hidden_effect = {
						add_trait_xp = {
							trait = deviants_sadistic_joyrides
							track = dsm_joyride_reputation
							value = { 0 3 }
						}
					}
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_malerape_notification
						right_icon = ROOT
						desc = deviant_sadistic_joyrides_malerape
						root = {
							stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
							add_piety = { -10 -1 }
							add_prestige = { -10 -1 }
							add_dread = { 0 2 }
						}
					}		
				}
			}
			#if female, some peasant caught your attention...
			20 = {
				trigger = {
					scope:scheme = {
						any_scheme_agent_character = { count >= 4 }
					}
					is_female = yes
				}	
				root = {
					hidden_effect = {
						add_trait_xp = {
							trait = deviants_sadistic_joyrides
							track = dsm_joyride_reputation
							value = { 0 3 }
						}
					}
					send_interface_toast = {
						type = event_joyrides_deviantgo_text
						title = deviant_sadistic_joyrides_femalerape_notification
						right_icon = ROOT
						desc = deviant_sadistic_joyrides_femalerape
						root = {
							stress_impact = {
								base = { minor_stress_impact_loss medium_stress_loss }
							}	
							add_piety = { -10 -1 }
							add_prestige = { -10 -1 }
							add_dread = { 0 2 }
						}
					}		
				}
			}
		}
	}			
}

#if pimp, found a peasant woman who is suiated to be a whore, gets courtier with the trait
sadistic_deviantgo_events.0100 = { 
	type = character_event
	title = sadistic_deviantgo_events.0100.t
	desc = sadistic_deviantgo_events.0100.desc
	theme = deviantsmaskgo 
	override_background = { reference =	wilderness }
	cooldown = { years = 1 }
	right_portrait = {
		character = root
		animation = thinking  
		outfit_tags = { military_outfit }
	}
	left_portrait = {
		character = scope:deviant_go_random_1
		animation = shock
	}
	lower_left_portrait = {
		character = scope:deviant_go_knight_1
		animation = aggressive_unarmed
		outfit_tags = { military_outfit }
	}
	lower_center_portrait = {
		character = scope:deviant_go_knight_2
		animation = aggressive_unarmed
		outfit_tags = { military_outfit }
	}
	lower_right_portrait = {
		character = scope:deviant_go_knight_3
		animation = aggressive_unarmed
		outfit_tags = { military_outfit }
	}
	trigger = {
		has_trait = deviants_hiredcampslut
	}
	immediate = {
		create_character = {
			template = beautiful_peasant_character
			culture = location.culture
			location = root.location
			faith = location.faith
			age = { 20 23 }
			gender_female_chance = 100
			dynasty = none
			save_scope_as = deviant_go_random_1
		}
		scope:scheme = {
			random_scheme_agent_character = {
                save_scope_as = deviant_go_knight_1
            }
			random_scheme_agent_character = {
				limit = {
						NOT = { this = scope:deviant_go_knight_1 }
				}
                save_scope_as = deviant_go_knight_2
            }
			random_scheme_agent_character = {
				limit = {
						NOT = { this = scope:deviant_go_knight_1 }
						NOT = { this = scope:deviant_go_knight_2 }
				}
                save_scope_as = deviant_go_knight_3
            }
		}
	}
	# imprison her, for crimes...
	option = {
		trigger = {
			has_trait = sadistic
		}
		trait = sadistic
		name = sadistic_deviantgo_events.0100.a
		custom_tooltip = sadistic_deviantgo_events.0100.a.tt
		imprison = {
			target = scope:deviant_go_random_1
			type = dungeon
		}
	}	
	#  shower with gold to the point she agrees
	option = {
		name = sadistic_deviantgo_events.0100.b
		custom_tooltip = sadistic_deviantgo_events.0100.b.tt
		remove_short_term_gold = minor_gold_value
		scope:deviant_go_random_1 = {
			add_to_court_and_entourage_effect = yes
			add_opinion = {
				target = root
				modifier = grateful_opinion
				opinion = 50
			}
			add_trait = deviants_slut_hired_maiden
		}
	}	
	# let's just have some fun
	option = {
		trigger = {
			has_trait = sadistic
		}
		name = sadistic_deviantgo_events.0100.c
		custom_tooltip = sadistic_deviantgo_events.0100.c.tt
		add_prestige = { -10 -1 }
		add_piety = { -10 -1 }
		stress_impact = {
			base = minor_stress_impact_loss
			sadistic = major_stress_impact_loss
		}
		add_character_modifier = {
			modifier = deviant_motivatedknights_modifier
			days = 30
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_sadistic_joyrides
				track = dsm_joyride_reputation
				value = { 0 3 }
			}
		}
		hidden_effect = {
			scope:deviant_go_random_1 = {
				death = {
					death_reason = death_vanished
				}
			}
		}	
	}			
}


#event to take this as a official hobby... gain fame trait... that lowers county opinion
sadistic_deviantgo_events.0110 = { 
	type = character_event
	title = sadistic_deviantgo_events.0110.t
	desc = sadistic_deviantgo_events.0110.desc
	theme = deviantsmaskgo 
	override_background = { reference =	wilderness }
	cooldown = { years = 3 }
	right_portrait = {
		character = root
		animation = thinking  
		outfit_tags = { military_outfit }
	}
	left_portrait = {
		character = scope:deviant_go_knight_4
		animation = celebrate_spear
	}
	lower_left_portrait = {
		character = scope:deviant_go_knight_1
		animation = aggressive_unarmed
		outfit_tags = { military_outfit }
	}
	lower_center_portrait = {
		character = scope:deviant_go_knight_2
		animation = aggressive_unarmed
		outfit_tags = { military_outfit }
	}
	lower_right_portrait = {
		character = scope:deviant_go_knight_3
		animation = aggressive_unarmed
		outfit_tags = { military_outfit }
	}
	immediate = {
		scope:scheme = {
			random_scheme_agent_character = {
                save_scope_as = deviant_go_knight_1
            }
			random_scheme_agent_character = {
				limit = {
						NOT = { this = scope:deviant_go_knight_1 }
				}
                save_scope_as = deviant_go_knight_2
            }
			random_scheme_agent_character = {
				limit = {
						NOT = { this = scope:deviant_go_knight_1 }
						NOT = { this = scope:deviant_go_knight_2 }
				}
                save_scope_as = deviant_go_knight_3
            }
			random_scheme_agent_character = {
				limit = {
						NOT = { this = scope:deviant_go_knight_1 }
						NOT = { this = scope:deviant_go_knight_2 }
						NOT = { this = scope:deviant_go_knight_3 }
				}
                save_scope_as = deviant_go_knight_4
            }
		}
		add_prestige = { -10 -1 }
		add_piety = { -10 -1 }
		stress_impact = {
			base = minor_stress_impact_loss
			sadistic = minor_stress_impact_loss
		}
	}
	# good idea
	option = {
		trigger = {
			has_trait = sadistic
		}
		name = sadistic_deviantgo_events.0110.a
		custom_tooltip = sadistic_deviantgo_events.0110.a.tt
		add_trait_force_tooltip = deviants_sadistic_joyrides

	}	
	# no need to take this so seriously
	option = {
		name = sadistic_deviantgo_events.0110.b
		custom_tooltip = sadistic_deviantgo_events.0110.b.tt
	}			
}

#one of the beutiful1-3 + lustful or sadistic, option to just play with her until bored for massive stress relief...

#if landed, your courtiers taking issue, random value loss to all your courtiers who aren't sadistic/other negative traits
#if landed, spotting the daughter of X courtier in public, wants to make her into a whore,


#the execute button opens up some basic intro event for you fetishinsg messing with the commoners

#attacked by a peasant horde


#female only trouble, if you lose to the peasants
#female only trouble, if you get stranded with your bored knights to some remote hut by rain...