﻿namespace = deviant_contract_events



deviant_contract_events.0010 = {
	hidden = yes

	immediate = {
		random_list = {
			100 = {
				trigger = {
					scope:employer = { has_trait = sadistic }
				}
				trigger_event = deviant_contract_events.0100
			}
			100 = {
				# 
				trigger = {
					scope:employer = { has_trait = lustful }
				}
				trigger_event = deviant_contract_events.0100
			}
			100 = {
				# 
				trigger = {
					scope:employer = { has_trait = lustful }
				}
				trigger_event = deviant_contract_events.0100
			}
			100 = { trigger_event = deviant_contract_events.0100 }
			100 = {
				trigger = {
					scope:employer = { has_trait = sadistic }
				}
				trigger_event = deviant_contract_events.0100
			}
		}
	}
}
#creates contracts
deviant_contract_events.0011 = {
	hidden = yes
	trigger = {
		is_landless_adventurer = yes
		is_ai = no
	}

	immediate = {
		populate_location_with_courtesan_contracts_effect = {
			AREA_CHAR = root
			AMOUNT = 1
		}
	}	
}

#returning to camp after courtesaning, maybe add flavor later...
deviant_contract_events.0020 = {
	hidden = yes

	trigger = {
		is_imprisoned = no
		scope:visitor = {
			is_alive = yes
			is_imprisoned = no
			is_incapable = no
		}
	}

	on_trigger_fail = {
		# Dead.
		if = {
			limit = {
				scope:visitor = { is_alive = no }
			}
			trigger_event = ep3_laamp_flavour_ewan.9531
		}
		# Imprisoned.
		else_if = {
			limit = {
				scope:visitor = { is_imprisoned = yes }
			}
			trigger_event = ep3_laamp_flavour_ewan.9532
		}
		# Incapable.
		else_if = {
			limit = {
				scope:visitor = { is_incapable = yes }
			}
			trigger_event = ep3_laamp_flavour_ewan.9533
		}
		# If we're imprisoned, just return them to camp with no fanfare.
		else_if = {
			limit = { is_imprisoned = yes }
			scope:visitor = { return_to_court = yes }
		}
		# Fallback (we don't know what's happened to them).
		else = { trigger_event = ep3_laamp_flavour_ewan.9534 }
	}

	immediate = {
		# Wherever they were, we give them the language of the place & their soon-to-be-former host if they didn't speak them already.
		scope:visitor = {
			# Prio the host's language.
			if = {
				limit = {
					NOT = { knows_language_of_culture = host.culture }
					current_extra_languages < language_soft_cap
				}
				learn_language_of_culture = host.culture
			}
			# Then the local tongue.
			if = {
				limit = {
					NOT = { knows_language_of_culture = host.capital_county.culture }
					current_extra_languages < language_soft_cap
				}
				learn_language_of_culture = host.capital_county.culture
			}
			# Nab our host scopes so we can reference them in loc.
			host = {
				save_scope_as = host
				capital_county = { save_scope_as = capital }
			}
			random_list = {
				50 = {
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_domina_maiden_skill
						value = { 1 20 }
					}
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_dancer_maiden_skill
						value = { 1 20 }
					}
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_warrior_maiden_skill
						value = { 1 20 }
					}
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_religous_maiden_skill
						value = { 1 20 }
					}
				}
				25 = {
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_domina_maiden_skill
						value = { 1 20 }
					}
				}
				25 = {
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_dancer_maiden_skill
						value = { 1 20 }
					}
				}
				25 = {
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_warrior_maiden_skill
						value = { 1 20 }
					}
				}
				25 = {
					add_trait_xp = {
						trait = deviants_slut_hired_maiden
						track = deviants_religous_maiden_skill
						value = { 1 20 }
					}
				}
			}
		}
		# Next, determine what event we get when they return.
		## Try to have these add up to 100%.
		random_list = {
			# They're the same as ever.
			60 = {
				trigger_event = ep3_laamp_flavour_ewan.9511
				# Boosts for other entries come out of this one, so we reduce the likelihood based on modifiers further down.
			}
			# They've learnt a thing or two.
			25 = {
				trigger_event = ep3_laamp_flavour_ewan.9512
			}
			#DO custom versions of the two above that add trait track prog...
			#event of her sharing her earnings...
			#event of her cliaming she has nothing to give
			#event of her coming back scarred... from sadist liege... scope:host 
		}
	}
}


#0100 basic couretesan event
deviant_contract_events.0100 = { 
	type = character_event
	title = deviant_contract_events.0100.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { NOT = { exists = scope:courtesan_1 } }
			desc = deviant_contract_events.0100.a.desc
			}
			triggered_desc = {
				trigger = { exists = scope:courtesan_1 }
			desc = deviant_contract_events.0100.b.desc
			}
		}
	}
	override_background = { reference =	study }
	theme = deviantsmaskgo 
	right_portrait = {
		character = root
		animation = scheme
	}
	left_portrait = {
		character = scope:employer
		animation = throne_room_conversation_1
	}
	lower_right_portrait = scope:courtesan_1
	lower_center_portrait = scope:courtesan_2
	lower_left_portrait = scope:courtesan_3
	immediate = {
		random_courtier = {
			limit = {
				is_imprisoned = no
				is_incapable = no
				age >= 18
				has_trait = deviants_slut_hired_maiden
			}
			save_scope_as = courtesan_1
		}
		random_courtier = {
			limit = {
				is_imprisoned = no
				is_incapable = no
				age >= 18
				has_trait = deviants_slut_hired_maiden
				NOT = { this = scope:courtesan_1 }
			}
			save_scope_as = courtesan_2
		}
		random_courtier = {
			limit = {
				is_imprisoned = no
				is_incapable = no
				age >= 18
				has_trait = deviants_slut_hired_maiden
				NOT = { this = scope:courtesan_1 }
				NOT = { this = scope:courtesan_2 }
			}
			save_scope_as = courtesan_3
		}
	}
	# random value offers...
	option = {
		trigger = {
			exists = scope:courtesan_1
		}
		name = deviant_contract_events.0100.a
		custom_tooltip = deviant_contract_events.0100.a.tt
		hidden_effect = {
			root.current_travel_plan = { remove_character = scope:courtesan_1 }
		}
		scope:employer = { add_visiting_courtier = scope:courtesan_1 }
		# Set up their return.
		scope:courtesan_1 = {
			save_scope_as = visitor
			liege = {
				trigger_event = {
					id = deviant_contract_events.0020
					years = { 2 4 }
				}
			}
		}
		domicile = {
			change_provisions = { 10 200 }
		}
		scope:employer = {
			pay_short_term_gold = {
				target = root
				gold = { 1 100 }
			}
		}		
		scope:task_contract = { complete_task_contract = success_standard }
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_hiredcampslut
				track = pimpslutfame
				value = { 1 10 }
			}
		}
	}		
	# 
	option = {
		trigger = {
			exists = scope:courtesan_2
		}
		name = deviant_contract_events.0100.b
		custom_tooltip = deviant_contract_events.0100.b.tt
		hidden_effect = {
			root.current_travel_plan = { remove_character = scope:courtesan_2 }
		}
		scope:employer = { add_visiting_courtier = scope:courtesan_2 }
		# Set up their return.
		scope:courtesan_2 = {
			save_scope_as = visitor
			liege = {
				trigger_event = {
					id = deviant_contract_events.0020
					years = { 2 4 }
				}
			}
		}

		domicile = {
			change_provisions = { 10 200 }
		}
		scope:employer = {
			pay_short_term_gold = {
				target = root
				gold = { 1 100 }
			}
		}	
		scope:task_contract = { complete_task_contract = success_standard }
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_hiredcampslut
				track = pimpslutfame
				value = { 1 10 }
			}
		}
	}	
	#
	option = {
		trigger = {
			exists = scope:courtesan_3
		}
		name = deviant_contract_events.0100.c
		custom_tooltip = deviant_contract_events.0100.c.tt
		hidden_effect = {
			root.current_travel_plan = { remove_character = scope:courtesan_3 }
		}
		scope:employer = { add_visiting_courtier = scope:courtesan_3 }
		# Set up their return.
		scope:courtesan_3 = {
			save_scope_as = visitor
			liege = {
				trigger_event = {
					id = deviant_contract_events.0020
					years = { 2 4 }
				}
			}
		}

		domicile = {
			change_provisions = { 10 200 }
		}
		scope:employer = {
			pay_short_term_gold = {
				target = root
				gold = { 1 100 }
			}
		}	
		scope:task_contract = { complete_task_contract = success_standard }
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_hiredcampslut
				track = pimpslutfame
				value = { 1 10 }
			}
		}
	}	
	#all of them... if has 3...
	option = {
		trigger = {
			exists = scope:courtesan_1
			exists = scope:courtesan_2
			exists = scope:courtesan_3
		}
		name = deviant_contract_events.0100.d
		custom_tooltip = deviant_contract_events.0100.d.tt
		hidden_effect = {
			root.current_travel_plan = { remove_character = scope:courtesan_1 }
		}
		scope:employer = { add_visiting_courtier = scope:courtesan_1 }
		# Set up their return.
		scope:courtesan_1 = {
			save_scope_as = visitor
			liege = {
				trigger_event = {
					id = deviant_contract_events.0020
					years = { 1 4 }
				}
			}
		}
		hidden_effect = {
			root.current_travel_plan = { remove_character = scope:courtesan_2 }
		}
		scope:employer = { add_visiting_courtier = scope:courtesan_2 }
		# Set up their return.
		scope:courtesan_2 = {
			save_scope_as = visitor
			liege = {
				trigger_event = {
					id = deviant_contract_events.0020
					years = { 2 4 }
				}
			}
		}
		hidden_effect = {
			root.current_travel_plan = { remove_character = scope:courtesan_3 }
		}
		scope:employer = { add_visiting_courtier = scope:courtesan_3 }
		# Set up their return.
		scope:courtesan_3 = {
			save_scope_as = visitor
			liege = {
				trigger_event = {
					id = deviant_contract_events.0020
					years = { 2 8 }
				}
			}
		}
		domicile = {
			change_provisions = { 200 400 }
		}
		scope:employer = {
			pay_short_term_gold = {
				target = root
				gold = { 200 300 }
			}
		}	
		scope:task_contract = { complete_task_contract = success_critical }
		hidden_effect = {
			add_trait_xp = {
				trait = deviants_hiredcampslut
				track = pimpslutfame
				value = { 5 10 }
			}
		}
	}
	#refuse his offers...	
	option = {
		name = deviant_contract_events.0100.e
		custom_tooltip = deviant_contract_events.0100.e.tt
		scope:task_contract = { complete_task_contract = failure_standard }

	}	
	after = {
		current_travel_plan = { cancel_travel_plan = yes }
	}	
}



#1000 meeting the guy
deviant_contract_events.1000 = { 
	type = character_event
	title = deviant_contract_events.1000.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { NOT = { has_trait = pregnant } }
			desc = deviant_contract_events.1000.a.desc
			}
			triggered_desc = {
				trigger = { has_trait = pregnant }
			desc = deviant_contract_events.1000.b.desc
			}
		}
	}
	override_background = { reference =	deviantgoorgy }
	theme = deviantsmaskgo 
	right_portrait = {
		character = root
		animation = thinking
	}
	left_portrait = {
		character = scope:employer
		animation = scheme
	}
	immediate = {
		scope:employer = {
			save_scope_as = deviant_go_random_1
		}
	}
	# random value offers...
	option = {
		trigger = {
			NOT = { has_trait = pregnant }
		}
		name = deviant_contract_events.1000.a
		custom_tooltip = deviant_contract_events.1000.a.tt
		trigger_event = deviant_contract_events.1010
	}		
	#refuse his offers...	
	option = {
		name = deviant_contract_events.1000.b
		custom_tooltip = deviant_contract_events.1000.b.tt
		scope:scheme = { end_scheme = yes }   
		scope:task_contract = { complete_task_contract = failure_standard }
		current_travel_plan = { cancel_travel_plan = yes }
	}		
}

#1010 intro on the stage
deviant_contract_events.1010 = { 
	type = character_event
	title = deviant_contract_events.1010.t
	desc = deviant_contract_events.1010.a.desc
	theme = deviantsmaskgo 
    override_background = {
		trigger = { 
            exists = scope:deviant_line_of_women_1
        }
		reference = deviant_line_of_women_1
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_line_of_women_2
        }
		reference = deviant_line_of_women_2
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_line_of_women_3
        }
		reference = deviant_line_of_women_3
	}
	immediate = {
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = deviant_line_of_women_1
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_line_of_women_2
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_line_of_women_3
				}
			}
		}
	}
	# intro
	option = {
		name = deviant_contract_events.1010.a
		custom_tooltip = deviant_contract_events.1010.a.tt
		if = { 
			limit = {
				NOT = { has_trait = lustful_inn_slut }
			}
			add_trait_force_tooltip = lustful_inn_slut
		}
		trigger_event = deviant_contract_events.1011
	}		
	#flee
	option = {
		name = deviant_contract_events.1010.b
		custom_tooltip = deviant_contract_events.1010.b.tt
		scope:scheme = { end_scheme = yes }   
		scope:task_contract = { complete_task_contract = failure_standard }
		current_travel_plan = { cancel_travel_plan = yes }
		stress_impact = {
			base = major_stress_impact_gain
		}
	}		
}

#1011 announce name on stage
deviant_contract_events.1011 = { 
	type = character_event
	title = deviant_contract_events.1011.t
	desc = deviant_contract_events.1011.a.desc
	theme = deviantsmaskgo 
    	override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviant_present_wet_pussy_one
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviant_present_wet_pussy_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_present_wet_pussy_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_present_wet_pussy_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_present_wet_pussy_five
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_present_wet_pussy_six
	}
	immediate = {
		random_list = {
			25 = {
				ROOT = {
					save_scope_as = background_one
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_two
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_three
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_four
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_five
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_six
				}
			}
		}
		add_prestige = { minor_prestige_loss medium_prestige_loss }
		add_character_modifier = {
			modifier = ambitious_shameless_woman_modifier
			days = { 100 400 }
		}
		scope:deviant_go_random_1 = {
			add_prestige = { minor_prestige_gain medium_prestige_gain }
			if = { 
				limit = {
					NOT = { has_trait = deviant_patron_of_inns }
				}
				add_trait_force_tooltip = deviant_patron_of_inns
			}
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 5 }
				}
			}
		}
	}
	# start competitions
	option = {
		name = deviant_contract_events.1011.a
		custom_tooltip = deviant_contract_events.1011.a.tt
	}				
}

#scheme completion 4 options
deviant_contract_events.1020 = {
	type = character_event
	window = scheme_preparations_event
	title = {
		desc = deviant_contract_events.1020.t.scheme
	}
	desc = scheme_critical_moments.0002.desc
	theme = deviantscourtesango
	left_portrait = {
		character = scope:left_portrait
		animation = flirtation
	}
	right_portrait = {
		character = scope:right_portrait
		animation = scheme
	}
	# Background overrides.
	override_background = {
        reference = throne_room
    }

	# Scheme Preparations status bar
	widget = {
		gui = "event_window_widget_scheme_preparations"
		container = "custom_widgets_container"
	}

	trigger = {
		NOR = {
			has_character_flag = currently_in_scheme_preparations
			has_character_flag = currently_in_scheme_reminder
		}
	}

	immediate = {
		# Flag that we're in the event, so no doubles pls.
		add_character_flag = currently_in_scheme_preparations
        ROOT = { save_scope_as = left_portrait }
        scope:target = { save_scope_as = right_portrait }
	}

	# Standard completion: no buffs.
	option = {
		name = deviant_contract_events.1020.a
		show_as_unavailable = { always = yes }
		trigger = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.a.tt.stymied.insufficient_opportunities
				scope:scheme = { scheme_agent_charges >= multi_ending_scheme_charge_to_advance_threshold_t1_value }
			}
			# Tell the AI not to bother unless their chance are at least 50:50.
			trigger_if = {
				limit = {
					is_ai = yes
					# Make sure the AI can get out of long schemes eventually.
					scope:scheme.scheme_duration_days < 3650
				}
				scope:scheme = {
					# Must have a good shot.
					scheme_success_chance >= 50
					# Only consider the best possible option.
					scheme_agent_charges < multi_ending_scheme_charge_to_advance_threshold_t2_value
				}
			}
		}
		laamp_base_contract_schemes_set_up_outcome_immediate_effect = yes
			scope:scheme.task_contract = { complete_task_contract = success_standard }
			# Employer outcome.
			scope:target = {
				add_prestige = medium_prestige_gain
			}
			# And wrap things up.
			scope:scheme ?= { end_scheme = yes }
        hidden_effect = {
            trigger_event = deviant_contract_events.1400
        }    

		# Scheme gon' try to conclude.
		custom_tooltip = scheme_critical_moments.0001.a.tt.progress

		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

	# Pricier completion: minor success chance gains.
	option = {
		name = deviant_contract_events.1020.b
		show_as_unavailable = { always = yes }
		trigger = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.b.tt.stymied.insufficient_opportunities
				scope:scheme = { scheme_agent_charges >= multi_ending_scheme_charge_to_advance_threshold_t2_value }
			}
			# Tell the AI not to bother unless their chance are at least 50:50.
			trigger_if = {
				limit = {
					is_ai = yes
					# Make sure the AI can get out of long schemes eventually.
					scope:scheme.scheme_duration_days < 3650
				}
				scope:scheme = {
					# Must have a good shot.
					scheme_success_chance >= 50
					# Only consider the best possible option.
					scheme_agent_charges < multi_ending_scheme_charge_to_advance_threshold_t3_value
				}
			}
		}

		# Scheme gon' try to conclude.
		custom_tooltip = scheme_critical_moments.0002.b.tt.progress
		scope:scheme = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.b.tt.clarify_buff
				add_scheme_modifier = { type = scheme_end_buff_t2_modifier }
			}
		}
		laamp_base_contract_schemes_set_up_outcome_immediate_effect = yes
			scope:scheme.task_contract = { complete_task_contract = success_standard }
			# Employer outcome.
			scope:target = {
				add_prestige = medium_prestige_gain
			}
			# And wrap things up.
			scope:scheme ?= { end_scheme = yes }
        hidden_effect = {
            trigger_event = deviant_contract_events.1410
        }  

		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

	# Very pricey completion: moderate success chance gains.
	option = {
		name = deviant_contract_events.1020.c
		show_as_unavailable = { always = yes }
		trigger = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.c.tt.stymied.insufficient_opportunities
				scope:scheme = { scheme_agent_charges >= multi_ending_scheme_charge_to_advance_threshold_t3_value }
			}
			# Tell the AI not to bother unless their chance are at least 50:50.
			trigger_if = {
				limit = {
					is_ai = yes
					# Make sure the AI can get out of long schemes eventually.
					scope:scheme.scheme_duration_days < 3650
				}
				scope:scheme = {
					# Must have a good shot.
					scheme_success_chance >= 50
					# Only consider the best possible option.
					scheme_agent_charges < multi_ending_scheme_charge_to_advance_threshold_t4_value
				}
			}
		}

		# Scheme gon' try to conclude.
		custom_tooltip = scheme_critical_moments.0002.c.tt.progress
		scope:scheme = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.c.tt.clarify_buff
				add_scheme_modifier = { type = scheme_end_buff_t3_modifier }
			}
		}
		laamp_base_contract_schemes_set_up_outcome_immediate_effect = yes
			scope:scheme.task_contract = { complete_task_contract = success_standard }
			# Employer outcome.
			scope:target = {
				add_prestige = medium_prestige_gain
			}
			# And wrap things up.
			scope:scheme ?= { end_scheme = yes }
        hidden_effect = {
            trigger_event = deviant_contract_events.1420
        } 

		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

	# Max pricey completion: excellent success chance gains.
	option = {
		name = deviant_contract_events.1020.d
		show_as_unavailable = { always = yes }
		trigger = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.d.tt.stymied.insufficient_opportunities
				scope:scheme = { scheme_agent_charges >= multi_ending_scheme_charge_to_advance_threshold_t4_value }
			}
			# Tell the AI not to bother unless their chance are at least 50:50.
			trigger_if = {
				limit = {
					is_ai = yes
					# Make sure the AI can get out of long schemes eventually.
					scope:scheme.scheme_duration_days < 3650
				}
				scope:scheme = {
					OR = {
						scheme_success_chance >= 50
						AND = {
							scheme_success_chance >= max_scheme_success_chance
							scheme_agent_charges >= multi_ending_scheme_charge_to_advance_threshold_t4_value
						}
					}
				}
			}
		}
		# Scheme gon' try to conclude.
		custom_tooltip = scheme_critical_moments.0002.d.tt.progress
		scope:scheme = {
			custom_tooltip = {
				text = scheme_critical_moments.0002.d.tt.clarify_buff
				add_scheme_modifier = { type = scheme_end_buff_t4_modifier }
			}
		}
		laamp_base_contract_schemes_set_up_outcome_immediate_effect = yes
			scope:scheme.task_contract = { complete_task_contract = success_standard }
			# Employer outcome.
			scope:target = {
				add_prestige = medium_prestige_gain
			}
			# And wrap things up.
			scope:scheme ?= { end_scheme = yes }
        hidden_effect = {
            trigger_event = deviant_contract_events.1430
        } 
		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

	# Come back later.
	option = {
		name = scheme_critical_moments.0002.e
		custom_tooltip = scheme_critical_moments.0002.e.tt.zero_opportunities

	}

	after = {
		remove_character_flag = currently_in_scheme_preparations
		scope:scheme = { remove_variable = target_intercept_repeatable_chance }
	}
}

#1110 stage improv play competition
deviant_contract_events.1110 = { 
	type = character_event
	title = deviant_contract_events.1110.t
	desc = deviant_contract_events.1110.a.desc
	theme = deviantsmaskgo 
    override_background = {
		trigger = { 
            exists = scope:deviant_line_of_women_1
        }
		reference = deviant_line_of_women_1
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_line_of_women_2
        }
		reference = deviant_line_of_women_2
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_line_of_women_3
        }
		reference = deviant_line_of_women_3
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
    }
	immediate = {
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = deviant_line_of_women_1
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_line_of_women_2
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_line_of_women_3
				}
			}
		}
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
	}
	# duel
	option = {
		name = deviant_contract_events.1110.a
		custom_tooltip = deviant_contract_events.1110.a.tt
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
		}
		duel = {
			skills = { diplomacy intrigue prowess }
			value = { 5 20 }
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_contract_events.1110.awin.tt
				}	 
				scope:scheme = {
                    change_opportunities = 1
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 30 100 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 5 }
						}
					}
				}
				hidden_effect = {
					add_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_infamy
						value = { 0 5 }
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_stageshow_ambiwin_notification
						right_icon = ROOT
						desc = deviant_inn_stageshow_ambiwin
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							25 = {
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_contract_events.1110.alose.tt
				}	
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -5 -10 }
                }
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = minor_prestige_loss
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_stageshow_ambilose_notification
						right_icon = ROOT
						desc = deviant_inn_stageshow_ambilose
						random_list = {
							25 = {
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}
	}	
	# give up
	option = {
		name = deviant_contract_events.1110.b
		custom_tooltip = deviant_contract_events.1110.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}						
}
#1120 riding masked patrons on the stage, last one wins
deviant_contract_events.1120 = { 
	type = character_event
	title = deviant_contract_events.1120.t
	desc = deviant_contract_events.1120.a.desc
	theme = deviantsmaskgo 
    override_background = {
		trigger = { 
            exists = scope:deviant_cowgirl_vagride_1
        }
		reference = deviant_cowgirl_vagride_1
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_cowgirl_vagride_2
        }
		reference = deviant_cowgirl_vagride_2
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_cowgirl_vagride_3
        }
		reference = deviant_cowgirl_vagride_3
	}

	override_background = {
		trigger = { 
            exists = scope:deviant_cowgirl_vagride_4
        }
		reference = deviant_cowgirl_vagride_4
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
    }
	immediate = {
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = deviant_cowgirl_vagride_1
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_cowgirl_vagride_2
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_cowgirl_vagride_3
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_cowgirl_vagride_4
				}
			}
		}
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		random_ruler = {
			limit = {
				in_diplomatic_range = root
				OR = {	is_female = no	has_trait = futanari_genetic }
				age >= 18
				NOT = { has_sexuality = homosexual }
				NOT = { has_relation_lover = root }
				NOT = { this = root }
				NOT = { has_trait = chaste }
				NOT = { has_trait = shy }
				NOT = { has_trait = celibate }
				NOT = { 
					has_trait = eunuch_1
					has_trait = beardless_eunuch
				}
				NOT = { has_trait = blind }
				NOT = { has_trait = loyal }
			}
			save_scope_as = ruler
			hidden_effect = {
				if = { 
					limit = {
						NOT = { has_trait = deviant_patron_of_inns }
					}
					add_trait_force_tooltip = deviant_patron_of_inns
				}
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 5 }
				}
			}
		}
	}
	# 
	option = {
		name = deviant_contract_events.1120.a
		custom_tooltip = deviant_contract_events.1120.a.tt
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 2 }
			}
		}
		random_list = {
			40 = { 
				custom_tooltip = deviant_contract_events.1120.winluck.tt
				scope:scheme = {
                    change_opportunities = 1
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 60 200 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 5 }
						}
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_lastwoman_ambiwin_notification
						right_icon = ROOT
						desc = deviant_inn_lastwoman_ambiwin
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							25 = {
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = minor_prestige_loss
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_lastwoman_ambilose_notification
						right_icon = ROOT
						desc = deviant_inn_lastwoman_ambilose
						had_sex_with_effect = {
							CHARACTER = scope:ruler
							PREGNANCY_CHANCE = 10	
						}
						scope:ruler = {
							add_prestige = minor_prestige_gain
							add_gold = { 60 200 }
							hidden_effect = {
								add_trait_xp = {
									trait = deviant_patron_of_inns
									track = deviant_inn_patron_connections
									value = { 0 5 }
								}
							}
						}
						random_list = {
							25 = {
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}
	}	
	# give up
	option = {
		name = deviant_contract_events.1120.b
		custom_tooltip = deviant_contract_events.1120.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}						
}



#1130 competing to please one important cock with multiple women, 
deviant_contract_events.1130 = { 
	type = character_event
	title = deviant_contract_events.1130.t
	desc = deviant_contract_events.1130.a.desc
	theme = deviantsmaskgo 
    override_background = {
		trigger = { 
            exists = scope:deviant_watched_blowjob
        }
		reference = deviant_watched_blowjob
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_watched_blowjob_two
        }
		reference = deviant_watched_blowjob_two
	}
    override_background = {
		trigger = { 
            exists = scope:deviantsvaginaltoppussyjob
        }
		reference = deviantsvaginaltoppussyjob
	}

	override_background = {
		trigger = { 
            exists = scope:deviant_triple_boobjob
        }
		reference = deviant_triple_boobjob
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
    }
	immediate = {
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = deviant_watched_blowjob
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_watched_blowjob_two
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviantsvaginaltoppussyjob
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviantsvaginaltoppussyjob
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_triple_boobjob
				}
			}
		}
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
	}
	# duel
	option = {
		name = deviant_contract_events.1120.a
		custom_tooltip = deviant_contract_events.1120.a.tt
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 2 }
			}
		}
		random_list = {
			40 = { 
				custom_tooltip = deviant_contract_events.1120.winluck.tt
				scope:scheme = {
                    change_opportunities = 1
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 60 200 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 5 }
						}
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_queenofcock_ambiwin_notification
						right_icon = ROOT
						desc = deviant_inn_queenofcock_ambiwin
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							25 = {
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				custom_tooltip = deviant_contract_events.1120.loseluck.tt
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -5 -10 }
                }
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = minor_prestige_loss
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_queenofcock_ambilose_notification
						right_icon = ROOT
						desc = deviant_inn_queenofcock_ambilose
						random_list = {
							25 = {
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}
	}	
	# give up
	option = {
		name = deviant_contract_events.1130.b
		custom_tooltip = deviant_contract_events.1130.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}						
}

#1140 dildo riding competition, women on the line,
deviant_contract_events.1140 = { 
	type = character_event
	title = deviant_contract_events.1140.t
	desc = deviant_contract_events.1140.a.desc
	theme = deviantsmaskgo 
    override_background = {
		trigger = { 
            exists = scope:deviant_dildo_duel_1
        }
		reference = deviant_dildo_duel_1
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_dildo_duel_2
        }
		reference = deviant_dildo_duel_2
	}
    override_background = {
		trigger = { 
            exists = scope:deviant_dildo_duel_3
        }
		reference = deviant_dildo_duel_3
	}

	override_background = {
		trigger = { 
            exists = scope:deviant_dildo_duel_4
        }
		reference = deviant_dildo_duel_4
	}
	override_background = {
		trigger = { 
            exists = scope:deviant_dildo_duel_5
        }
		reference = deviant_dildo_duel_5
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
    }
	immediate = {
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = deviant_dildo_duel_1
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_dildo_duel_2
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_dildo_duel_3
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_dildo_duel_4
				}
			}
			25 = {
				ROOT = {
					save_scope_as = deviant_dildo_duel_5
				}
			}
		}
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
	}
	# 
	option = {
		name = deviant_contract_events.1140.a
		custom_tooltip = deviant_contract_events.1140.a.tt
		if = { 
			limit = {
				NOT = { has_trait = deviants_strange_dildo }
			}
			add_trait = deviants_strange_dildo
		}
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviants_strange_dildo
				track = strange_dildo_addiction
				value = { 0 10 }
			}
		}
		duel = {
			skills = { intrigue prowess }
			value = { 5 20 }
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_contract_events.1140.awin.tt
				}	 
				scope:scheme = {
                    change_opportunities = 2
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 70 170 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 10 }
						}
					}
				}
				hidden_effect = {
					add_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_infamy
						value = { 0 5 }
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_bestdilodrider_ambiwin_notification
						right_icon = ROOT
						desc = deviant_inn_bestdilodrider_ambiwin
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							20 = {
								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
									}
								}
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_contract_events.1140.alose.tt
				}	
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -5 -10 }
                }
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = minor_prestige_loss
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_bestdilodrider_ambilose_notification
						right_icon = ROOT
						desc = deviant_inn_bestdilodrider_ambilose
						random_list = {
							25 = {
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}	
	}	
	# give up
	option = {
		name = deviant_contract_events.1140.b
		custom_tooltip = deviant_contract_events.1140.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}						
}
#1150 dildo duel,
deviant_contract_events.1150 = { 
	type = character_event
	title = deviant_contract_events.1150.t
	desc = deviant_contract_events.1150.a.desc
	theme = deviantsmaskgo 
    override_background = {
		reference = deviantdoubledildowomenfun
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
    }
	immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
	}
	# 
	option = {
		name = deviant_contract_events.1150.a
		custom_tooltip = deviant_contract_events.1150.a.tt
		if = { 
			limit = {
				NOT = { has_trait = deviants_strange_dildo }
			}
			add_trait = deviants_strange_dildo
		}
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviants_strange_dildo
				track = strange_dildo_addiction
				value = { 0 10 }
			}
		}
		duel = {
			skills = { intrigue prowess }
			value = { 10 20 }
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_contract_events.1150.awin.tt
				}	 
				scope:scheme = {
                    change_opportunities = 2
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 70 170 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 10 }
						}
					}
				}
				hidden_effect = {
					add_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_infamy
						value = { 0 5 }
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_dildoduel_ambiwin_notification
						right_icon = ROOT
						desc = deviant_inn_dildoduel_ambiwin
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							20 = {
								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
									}
								}
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_contract_events.1150.alose.tt
				}	
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -5 -10 }
                }
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = minor_prestige_loss
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_dildoduel_ambilose_notification
						right_icon = ROOT
						desc = deviant_inn_dildoduel_ambilose
						random_list = {
							25 = {
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}	
	}	
	# give up
	option = {
		name = deviant_contract_events.1150.b
		custom_tooltip = deviant_contract_events.1150.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}						
}

#1160 competing with another noble woman
deviant_contract_events.1160 = { 
	type = character_event
	title = deviant_contract_events.1160.t
	desc = deviant_contract_events.1160.a.desc
	theme = deviantsmaskgo 
    override_background = {
		reference = deviantgoorgy
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	right_portrait = {
		character = root
		animation = flirtation
		outfit_tags = { no_clothes }
	}
	left_portrait = {
		character = scope:deviant_go_random_2
		animation = flirtation_left
		outfit_tags = { no_clothes }
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
		any_ruler = {
			any_courtier_or_guest = {
				is_female = yes
				age >= 18
				OR = {
					has_trait = lustful
					has_trait = greedy
					has_trait = ambitious
					has_trait = lustful_inn_slut
					has_trait = deviants_strange_dildo
					debt_level >= 2
				}
				NOT = { has_trait = pregnant }
				NOT = { has_trait = chaste }
				NOT = { has_trait = celibate }
			}
		}	
    }
	immediate = {
		random_ruler = {
			limit = { 
				any_courtier_or_guest = {
					is_female = yes
					age >= 18
					OR = {
						has_trait = lustful
						has_trait = greedy
						has_trait = ambitious
						has_trait = lustful_inn_slut
						has_trait = deviants_strange_dildo
						debt_level >= 2
					}
					NOT = { has_trait = pregnant }
					NOT = { has_trait = chaste }
					NOT = { has_trait = celibate }
				}
			}
			random_courtier_or_guest = {
				limit = {
					is_female = yes
					age >= 18
					OR = {
						has_trait = lustful
						has_trait = greedy
						has_trait = ambitious
						has_trait = lustful_inn_slut
						has_trait = deviants_strange_dildo
						debt_level >= 2
					}
					NOT = { has_trait = pregnant }
					NOT = { has_trait = chaste }
					NOT = { has_trait = celibate }
				}
				save_scope_as = deviant_go_random_2
			}
		}

		hidden_effect = {
			scope:deviant_go_random_2 = {
				if = { 
					limit = {
						NOT = { has_trait = lustful_inn_slut }
					}
					add_trait = lustful_inn_slut
				}
				if = { 
					limit = {
						NOT = { has_trait = deviants_strange_dildo }
					}
					add_trait = deviants_strange_dildo
				}
				add_trait_xp = {
					trait = lustful_inn_slut
					track = lustful_inn_slut_daring
					value = { 0 10 }
				}
				add_trait_xp = {
					trait = lustful_inn_slut
					track = lustful_inn_slut_experince
					value = { 0 10 }
				}
				add_trait_xp = {
					trait = lustful_inn_slut
					track = lustful_inn_slut_status
					value = { 0 10 }
				}
			}
			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_experince
				value = { 0 5 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_status
				value = { 0 5 }
			}
		}

		scope:target = {
			save_scope_as = deviant_go_random_1
		}
	}
	# 
	option = {
		name = deviant_contract_events.1160.a
		custom_tooltip = deviant_contract_events.1160.a.tt
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 2 }
			}
		}
		duel = {
			skills = { intrigue diplomacy prowess }
			target = scope:deviant_go_random_2
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_contract_events.1160.awin.tt
				}	 
				scope:scheme = {
                    change_opportunities = 2
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 70 170 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 10 }
						}
					}
				}
				hidden_effect = {
					add_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_infamy
						value = { 0 5 }
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_bestwoman_ambiwin_notification
						right_icon = ROOT
						left_icon = scope:deviant_go_random_2
						desc = deviant_inn_bestwoman_ambiwin
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							25 = {
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_contract_events.1160.alose.tt
				}	
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -5 -10 }
                }
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = minor_prestige_loss
				hidden_effect = {
					scope:deviant_go_random_2 = {
						add_prestige = minor_prestige_loss
						add_gold = { 70 170 }
					}
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_bestwoman_ambilose_notification
						right_icon = ROOT
						left_icon = scope:deviant_go_random_2
						desc = deviant_inn_bestwoman_ambilose
						random_list = {
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}	
	}	
	# give up
	option = {
		name = deviant_contract_events.1160.b
		custom_tooltip = deviant_contract_events.1160.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}						
}

#1170 the sponsor asking for a special favor, get X to become patron
deviant_contract_events.1170 = { 
	type = character_event
	title = deviant_contract_events.1170.t
	desc = deviant_contract_events.1170.a.desc
	theme = deviantsmaskgo 
    override_background = {
		reference = deviantgoorgy
	}
	right_portrait = {
		character = root
		animation = thinking
		outfit_tags = { no_clothes }
	}
	left_portrait = {
		character = scope:deviant_go_random_2
		animation = scheme
	}
	lower_right_portrait = scope:deviant_go_random_1
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
	trigger = {
        NOT = { has_trait = pregnant }
		scope:scheme = {
			scheme_breaches < scheme_breaches_about_to_hit_limit_value 
		}
		any_ruler = {
			in_diplomatic_range = root
			OR = {	is_female = no	has_trait = futanari_genetic }
			age >= 18
			NOT = { has_sexuality = homosexual }
			NOT = { has_relation_lover = root }
			NOT = { this = root }
			NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
			NOT = { has_trait = deviant_patron_of_inns }
			NOT = { 
				has_trait = eunuch_1
				has_trait = beardless_eunuch
			}
			NOT = { has_trait = blind }
			NOT = { has_trait = loyal }
		}
    }
	immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		random_ruler = {
			limit = {
				in_diplomatic_range = root
				OR = {	is_female = no	has_trait = futanari_genetic }
				age >= 18
				NOT = { has_sexuality = homosexual }
				NOT = { has_relation_lover = root }
				NOT = { this = root }
				NOT = { has_trait = chaste }
				NOT = { has_trait = shy }
				NOT = { has_trait = celibate }
				NOT = { has_trait = deviant_patron_of_inns }
				NOT = { 
					has_trait = eunuch_1
					has_trait = beardless_eunuch
				}
				NOT = { has_trait = blind }
				NOT = { has_trait = loyal }
			}
			save_scope_as = ruler
		}
	}
	# 
	option = {
		name = deviant_contract_events.1170.a
		custom_tooltip = deviant_contract_events.1170.a.tt
		hidden_effect = {
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_daring
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = lustful_inn_slut
				track = lustful_inn_slut_experince
				value = { 0 2 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 2 }
			}
		}
		duel = {
			skills = { intrigue diplomacy }
			target = scope:ruler
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_contract_events.1170.awin.tt
				}	 
				scope:scheme = {
                    change_opportunities = 2
                }
				add_prestige = minor_prestige_loss
				scope:deviant_go_random_1 = {
					add_prestige = minor_prestige_gain
					add_gold = { 70 170 }
					hidden_effect = {
						add_trait_xp = {
							trait = deviant_patron_of_inns
							track = deviant_inn_patron_connections
							value = { 0 10 }
						}
					}
				}
				hidden_effect = {
					add_trait_xp = {
						trait = deviant_courtesan_slut
						track = deviant_courtesan_slut_infamy
						value = { 0 5 }
					}
				}
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_convincehim_ambiwin_notification
						right_icon = ROOT
						left_icon = scope:ruler
						desc = deviant_inn_convincehim_ambiwin
						scope:ruler = {
							if = { 
								limit = {
									NOT = { has_trait = deviant_patron_of_inns }
								}
								add_trait = deviant_patron_of_inns
							}
							add_prestige = minor_prestige_gain
							hidden_effect = {
								add_trait_xp = {
									trait = deviant_patron_of_inns
									track = deviant_inn_patron_connections
									value = { 0 5 }
								}
							}
						}
						root = {
							add_gold = { 10 20 }
							domicile = {
								change_provisions = { 10 100 }
							}
						}
						random_list = {
							25 = {
							}
							25 = {
							}
							5 = {
								add_intrigue_skill = 1
							}
							5 = {
								add_diplomacy_skill = 1
							}
						}
					}
				}	
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_contract_events.1170.alose.tt
				}	
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -5 -10 }
                }
				scope:scheme = {
                    add_scheme_breach = 1
                }
				add_prestige = medium_prestige_loss
				hidden_effect = {
					send_interface_toast = {
						type = event_innslut_deviantgo_text
						title = deviant_inn_convincehim_ambilose_notification
						right_icon = ROOT
						left_icon = scope:ruler
						desc = deviant_inn_convincehim_ambilose
						random_list = {
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
								scope:deviant_go_random_1 = {
									add_prestige = minor_prestige_loss
								}
								stress_impact = {
									base = minor_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -20 }
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
							}
							25 = {
								stress_impact = {
									base = major_stress_impact_gain
								}
								reverse_add_opinion = {
									target = scope:target
									modifier = annoyed_opinion
									opinion = { -5 -10 }
								}
							}
						}
					}	
				}		
			}
		}
	}	
	# give up
	option = {
		name = deviant_contract_events.1170.b
		custom_tooltip = deviant_contract_events.1170.b.tt
		reverse_add_opinion = {
			target = scope:target
			modifier = annoyed_opinion
			opinion = { -5 -10 }
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_pig_decorationpenualty_notification
				right_icon = ROOT
				desc = deviant_inn_pig_decorationpenualty
				scope:scheme = {
                    add_scheme_breach = 1
                }
				random_list = {
					25 = {
						stress_impact = {
							base = minor_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = major_stress_impact_gain
						}
					}
					25 = {
						stress_impact = {
							base = medium_stress_impact_gain
						}
					}
				}
			}	
		}				
	}				
}



#1300 max breaches, not working out
deviant_contract_events.1300 = {
	type = character_event
	title = deviant_contract_events.1300.t
	desc = deviant_contract_events.1300.a.desc
	theme = deviantscourtesango
    	override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviant_analcum_bondage_gangbang_2
	}
    override_background = {
		trigger = { 
            exists = scope:background_two
        }
		reference = deviant_analcum_bondage_gangbang_3
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_analcum_bondage_gangbang_4
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_analcum_bondage_gangbang_5
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_analcum_bondage_gangbang_6
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_analcum_bondage_gangbang_7
	}
	trigger = {
		scope:scheme = {
			scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
		}
	}
    immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		random_list = {
			25 = {
				ROOT = {
					save_scope_as = background_one
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_two
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_three
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_four
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_five
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_six
				}
			}
		}
		scope:target = {
			add_gold = { 50 200 }
		}
        random_list = {
            25 = {
				scope:target = {
					add_prestige = minor_prestige_gain
				}
            }
            25 = {
                scope:target = {
					add_prestige = medium_prestige_gain
				}
                
            }
            25 = {
                scope:target = {
					add_prestige = major_prestige_gain
				}
                
            }
        }
		random_list = {
			25 = {
				stress_impact = {
					base = minor_stress_impact_gain
				}
			}
			25 = {
				stress_impact = {
					base = medium_stress_impact_gain
				}
			}
		}
    }

	#
	option = {
		name = deviant_contract_events.1300.a
        custom_tooltip = deviant_contract_events.1300.a.tt
		scope:scheme = { end_scheme = yes }   
		scope:task_contract = { complete_task_contract = failure_standard }
		current_travel_plan = { cancel_travel_plan = yes }
	
	}
}

#1310 if gets pregnant, gift giving stage fuck
deviant_contract_events.1310 = {
	type = character_event
	title = deviant_contract_events.1310.t
	desc = deviant_contract_events.1310.a.desc
	theme = deviantscourtesango
    override_background = {
		trigger = { 
            exists = scope:background_1
        }
		reference = deviant_preg_vag_fuck_cum_1
	}
    override_background = {
		trigger = { 
            exists = scope:background_2
        }
		reference = deviant_preg_vag_fuck_cum_2
	}
    override_background = {
		trigger = { 
            exists = scope:background_3
        }
		reference = deviant_preg_vag_fuck_cum_3
	}
    override_background = {
		trigger = { 
            exists = scope:background_4
        }
		reference = deviant_preg_vag_fuck_cum_4
	}
    override_background = {
		trigger = { 
            exists = scope:background_5
        }
		reference = deviant_preg_vag_fuck_cum_5
	}
	override_background = {
		trigger = { 
            exists = scope:background_6
        }
		reference = deviant_preg_vag_fuck_cum_6
	}
	override_background = {
		trigger = { 
            exists = scope:background_7
        }
		reference = deviant_preg_vag_fuck_cum_7
	}
	override_background = {
		trigger = { 
            exists = scope:background_8
        }
		reference = deviant_preg_vag_fuck_cum_8
	}
	trigger = {
		has_trait = pregnant
	}
    immediate = {
		random_list = {
			25 = {
				ROOT = {
					save_scope_as = background_1
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_2
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_3
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_4
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_5
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_6
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_7
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_8
				}
			}
		}
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		scope:deviant_go_random_1 = {
			add_prestige = medium_prestige_gain
			add_gold = { 100 200 }
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 10 20 }
				}
			}
		}
		add_gold = { 100 200 }
		domicile = {
			change_provisions = { 500 700 }
		}
        random_list = {
			25 = {
				create_artifact = {
					name = dsm_sexy_lingerie
					description = dsm_sexy_lingerie_desc
					type = miscellaneous
					modifier = dsm_sexy_lingerie_modifier
					visuals = icon_dsm_sexy_lingerie
					template = dsm_sexy_lingerie_template
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					max_durability = 100
					wealth = 15
					quality = 15
					save_scope_as = dsm_sexy_lingerie
				}
				hidden_effect = {
					random_list = {
						50 = {
						}
						25 = {
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}	
						}
						25 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						10 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						5 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}	
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_fertility_effect = yes
								}
							}	
						}
					}
				}
			}
			30 = {
				create_artifact = {
					name = artifact_ornate_dagger_name
					description = artifact_ornate_dagger_desc
					visuals = dagger
					type = dagger 
					modifier = artifact_prowess_1_modifier
					modifier = artifact_monthly_prestige_2_modifier
					modifier = artifact_intrigue_per_prestige_level_1_modifier
					wealth = { 15 100 }
					quality = { 15 100 }
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
				}
			}
			20 = {
				create_artifact = {
					name = perfume_bottle
					description = perfume_bottle_description
					type = miscellaneous
					visuals = flask
					modifier = artifact_attraction_opinion_2_modifier
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					wealth = { 15 100 }
					quality = { 15 100 }
					save_scope_as = perfume_bottle
				}
			}
            25 = {
                reverse_add_opinion = {
					target = scope:target
					modifier = amused_opinion
					opinion = { 10 50 }
				}
            }
        }
	}	

	#
	option = {
		name = deviant_contract_events.1310.a
        custom_tooltip = deviant_contract_events.1310.a.tt
		scope:scheme = { end_scheme = yes }   
		scope:task_contract = { complete_task_contract = success_standard }
		current_travel_plan = { cancel_travel_plan = yes }
	
	}
}

#1400 reward page 1
deviant_contract_events.1400 = {
	type = character_event
	title = deviant_contract_events.1400.t
	desc = deviant_contract_events.1400.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		add_gold = { 100 200 }
		domicile = {
			change_provisions = { 10 200 }
		}
		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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_three
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				NOT = { this = scope:random_ruler_two }
				NOT = { this = scope:random_ruler_three }
				in_diplomatic_range = root
				age >= 18
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_four
		}
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { 100 200 }
                    }
                } 
            }
			25 = {
				create_artifact = {
					name = dsm_sexy_lingerie
					description = dsm_sexy_lingerie_desc
					type = miscellaneous
					modifier = dsm_sexy_lingerie_modifier
					visuals = icon_dsm_sexy_lingerie
					template = dsm_sexy_lingerie_template
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					max_durability = 100
					wealth = 15
					quality = 15
					save_scope_as = dsm_sexy_lingerie
				}
				hidden_effect = {
					random_list = {
						50 = {
						}
						25 = {
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}	
						}
						25 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						10 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						5 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}	
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_fertility_effect = yes
								}
							}	
						}
					}
				}
			}
			30 = {
				create_artifact = {
					name = artifact_ornate_dagger_name
					description = artifact_ornate_dagger_desc
					visuals = dagger
					type = dagger 
					modifier = artifact_prowess_1_modifier
					modifier = artifact_monthly_prestige_2_modifier
					modifier = artifact_intrigue_per_prestige_level_1_modifier
					wealth = { 15 100 }
					quality = { 15 100 }
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
				}
			}
			20 = {
				create_artifact = {
					name = perfume_bottle
					description = perfume_bottle_description
					type = miscellaneous
					visuals = flask
					modifier = artifact_attraction_opinion_2_modifier
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					wealth = { 15 100 }
					quality = { 15 100 }
					save_scope_as = perfume_bottle
				}
			}
            25 = {
                reverse_add_opinion = {
					target = scope:target
					modifier = amused_opinion
					opinion = { 10 50 }
				}
            }
        }
    }

	# thsi is enough
	option = {
		name = deviant_contract_events.1400.a
        custom_tooltip = deviant_contract_events.1400.a.tt
	}

	# beg for patrons
	option = {
		name = deviant_contract_events.1400.b
        custom_tooltip = deviant_contract_events.1400.b.tt
		add_character_modifier = {
			modifier = ambitious_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_patrons_notification
				right_icon = ROOT
				desc = deviant_inn_begging_patrons
				random_list = {
					25 = {
						add_contact = scope:random_ruler_one
					}
					25 = {
						add_contact = scope:random_ruler_one
					}
					5 = {
						add_contact = scope:random_ruler_one
						add_contact = scope:random_ruler_two
					}
					5 = {
						add_contact = scope:random_ruler_one
						add_contact = scope:random_ruler_two
						add_contact = scope:random_ruler_three
					}
				}
			}
		}
	}

	# beg for gold
	option = {
		name = deviant_contract_events.1400.c
        custom_tooltip = deviant_contract_events.1400.c.tt
		add_character_modifier = {
			modifier = ambitious_greedy_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_gold_notification
				right_icon = ROOT
				desc = deviant_inn_begging_gold
				add_gold = { 20 400 }
			}
		}
	}

	# beg for provisions
	option = {
		name = deviant_contract_events.1400.d
        custom_tooltip = deviant_contract_events.1400.d.tt
		add_character_modifier = {
			modifier = ambitious_hungry_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_food_notification
				right_icon = ROOT
				desc = deviant_inn_begging_food
				domicile = {
					change_provisions = { 200 1800 }
				}
			}
		}
	}
}

#1410 reward page 2
deviant_contract_events.1410 = {
	type = character_event
	title = deviant_contract_events.1410.t
	desc = deviant_contract_events.1410.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		add_gold = { 300 400 }
		domicile = {
			change_provisions = { 200 400 }
		}
		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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_three
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				NOT = { this = scope:random_ruler_two }
				NOT = { this = scope:random_ruler_three }
				in_diplomatic_range = root
				age >= 18
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_four
		}
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { 100 200 }
                    }
                } 
            }
			25 = {
				create_artifact = {
					name = dsm_sexy_lingerie
					description = dsm_sexy_lingerie_desc
					type = miscellaneous
					modifier = dsm_sexy_lingerie_modifier
					visuals = icon_dsm_sexy_lingerie
					template = dsm_sexy_lingerie_template
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					max_durability = 100
					wealth = 15
					quality = 15
					save_scope_as = dsm_sexy_lingerie
				}
				hidden_effect = {
					random_list = {
						50 = {
						}
						25 = {
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}	
						}
						25 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						10 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						5 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}	
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_fertility_effect = yes
								}
							}	
						}
					}
				}
			}
			30 = {
				create_artifact = {
					name = artifact_ornate_dagger_name
					description = artifact_ornate_dagger_desc
					visuals = dagger
					type = dagger 
					modifier = artifact_prowess_1_modifier
					modifier = artifact_monthly_prestige_2_modifier
					modifier = artifact_intrigue_per_prestige_level_1_modifier
					wealth = { 15 100 }
					quality = { 15 100 }
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
				}
			}
			20 = {
				create_artifact = {
					name = perfume_bottle
					description = perfume_bottle_description
					type = miscellaneous
					visuals = flask
					modifier = artifact_attraction_opinion_2_modifier
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					wealth = { 15 100 }
					quality = { 15 100 }
					save_scope_as = perfume_bottle
				}
			}
            25 = {
                reverse_add_opinion = {
					target = scope:target
					modifier = amused_opinion
					opinion = { 10 50 }
				}
            }
        }
    }

	#
	option = {
		name = deviant_contract_events.1410.a
        custom_tooltip = deviant_contract_events.1410.a.tt
	}
	# beg for patrons
	option = {
		name = deviant_contract_events.1400.b
        custom_tooltip = deviant_contract_events.1400.b.tt
		add_character_modifier = {
			modifier = ambitious_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_patrons_notification
				right_icon = ROOT
				desc = deviant_inn_begging_patrons
				random_list = {
					25 = {
						add_contact = scope:random_ruler_one
					}
					25 = {
						add_contact = scope:random_ruler_one
					}
					5 = {
						add_contact = scope:random_ruler_one
						add_contact = scope:random_ruler_two
					}
					5 = {
						add_contact = scope:random_ruler_one
						add_contact = scope:random_ruler_two
						add_contact = scope:random_ruler_three
					}
				}
			}
		}
	}

	# beg for gold
	option = {
		name = deviant_contract_events.1400.c
        custom_tooltip = deviant_contract_events.1400.c.tt
		add_character_modifier = {
			modifier = ambitious_greedy_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_gold_notification
				right_icon = ROOT
				desc = deviant_inn_begging_gold
				add_gold = { 20 400 }
			}
		}
	}

	# beg for provisions
	option = {
		name = deviant_contract_events.1400.d
        custom_tooltip = deviant_contract_events.1400.d.tt
		add_character_modifier = {
			modifier = ambitious_hungry_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_food_notification
				right_icon = ROOT
				desc = deviant_inn_begging_food
				domicile = {
					change_provisions = { 200 1800 }
				}
			}
		}
	}
}
#1420 reward page 3
deviant_contract_events.1420 = {
	type = character_event
	title = deviant_contract_events.1420.t
	desc = deviant_contract_events.1420.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		add_gold = { 500 700 }
		domicile = {
			change_provisions = { 500 700 }
		}
		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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_three
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				NOT = { this = scope:random_ruler_two }
				NOT = { this = scope:random_ruler_three }
				in_diplomatic_range = root
				age >= 18
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_four
		}
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { 100 200 }
                    }
                } 
            }
			25 = {
				create_artifact = {
					name = dsm_sexy_lingerie
					description = dsm_sexy_lingerie_desc
					type = miscellaneous
					modifier = dsm_sexy_lingerie_modifier
					visuals = icon_dsm_sexy_lingerie
					template = dsm_sexy_lingerie_template
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					max_durability = 100
					wealth = 15
					quality = 15
					save_scope_as = dsm_sexy_lingerie
				}
				hidden_effect = {
					random_list = {
						50 = {
						}
						25 = {
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}	
						}
						25 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						10 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						5 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}	
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_fertility_effect = yes
								}
							}	
						}
					}
				}
			}
			30 = {
				create_artifact = {
					name = artifact_ornate_dagger_name
					description = artifact_ornate_dagger_desc
					visuals = dagger
					type = dagger 
					modifier = artifact_prowess_1_modifier
					modifier = artifact_monthly_prestige_2_modifier
					modifier = artifact_intrigue_per_prestige_level_1_modifier
					wealth = { 15 100 }
					quality = { 15 100 }
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
				}
			}
			20 = {
				create_artifact = {
					name = perfume_bottle
					description = perfume_bottle_description
					type = miscellaneous
					visuals = flask
					modifier = artifact_attraction_opinion_2_modifier
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					wealth = { 15 100 }
					quality = { 15 100 }
					save_scope_as = perfume_bottle
				}
			}
            25 = {
                reverse_add_opinion = {
					target = scope:target
					modifier = amused_opinion
					opinion = { 10 50 }
				}
            }
        }
    }

	#
	option = {
		name = deviant_contract_events.1420.a
        custom_tooltip = deviant_contract_events.1420.a.tt
	}
}
#1430 reward page 4
deviant_contract_events.1430 = {
	type = character_event
	title = deviant_contract_events.1430.t
	desc = deviant_contract_events.1430.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
		scope:target = {
			save_scope_as = deviant_go_random_1
		}
		add_gold = { 1800 2400 }
		domicile = {
			change_provisions = { 2200 4400 }
		}
		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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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_duchy
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = 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
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_three
		}
		random_ruler = {
			limit = { 
				NOT = { this = root } 
				NOT = { this = scope:random_ruler_one }
				NOT = { this = scope:random_ruler_two }
				NOT = { this = scope:random_ruler_three }
				in_diplomatic_range = root
				age >= 18
				highest_held_title_tier >= tier_kingdom
				NOT = { is_incapable = yes }
				NOT = { is_contact_of = root }
			}
			save_scope_as = random_ruler_four
		}
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { 100 200 }
                    }
                } 
            }
			25 = {
				create_artifact = {
					name = dsm_sexy_lingerie
					description = dsm_sexy_lingerie_desc
					type = miscellaneous
					modifier = dsm_sexy_lingerie_modifier
					visuals = icon_dsm_sexy_lingerie
					template = dsm_sexy_lingerie_template
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					max_durability = 100
					wealth = 15
					quality = 15
					save_scope_as = dsm_sexy_lingerie
				}
				hidden_effect = {
					random_list = {
						50 = {
						}
						25 = {
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}	
						}
						25 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						10 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}
							
						}
						5 = {
							hidden_effect_new_object = {
							scope:dsm_sexy_lingerie = {
								add_deviant_artifact_modifier_lingerie_attraction_effect = yes
							}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_attraction_effect = yes
								}
							}
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_dildo_effect = yes
								}
							}	
							hidden_effect_new_object = {
								scope:dsm_sexy_lingerie = {
									add_deviant_artifact_modifier_lingerie_fertility_effect = yes
								}
							}	
						}
					}
				}
			}
			30 = {
				create_artifact = {
					name = artifact_ornate_dagger_name
					description = artifact_ornate_dagger_desc
					visuals = dagger
					type = dagger 
					modifier = artifact_prowess_1_modifier
					modifier = artifact_monthly_prestige_2_modifier
					modifier = artifact_intrigue_per_prestige_level_1_modifier
					wealth = { 15 100 }
					quality = { 15 100 }
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
				}
			}
			20 = {
				create_artifact = {
					name = perfume_bottle
					description = perfume_bottle_description
					type = miscellaneous
					visuals = flask
					modifier = artifact_attraction_opinion_2_modifier
					history = {
						type = created_before_history
						date = 670.1.1 #To order entries correctly
					}
					wealth = { 15 100 }
					quality = { 15 100 }
					save_scope_as = perfume_bottle
				}
			}
            25 = {
                reverse_add_opinion = {
					target = scope:target
					modifier = amused_opinion
					opinion = { 10 50 }
				}
            }
        }
    }

	#
	option = {
		name = deviant_contract_events.1430.a
        custom_tooltip = deviant_contract_events.1430.a.tt
	}
	# beg for patrons
	option = {
		name = deviant_contract_events.1400.b
        custom_tooltip = deviant_contract_events.1400.b.tt
		add_character_modifier = {
			modifier = ambitious_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_patrons_notification
				right_icon = ROOT
				desc = deviant_inn_begging_patrons
				random_list = {
					25 = {
						add_contact = scope:random_ruler_one
					}
					25 = {
						add_contact = scope:random_ruler_one
					}
					5 = {
						add_contact = scope:random_ruler_one
						add_contact = scope:random_ruler_two
					}
					5 = {
						add_contact = scope:random_ruler_one
						add_contact = scope:random_ruler_two
						add_contact = scope:random_ruler_three
					}
				}
			}
		}
	}

	# beg for gold
	option = {
		name = deviant_contract_events.1400.c
        custom_tooltip = deviant_contract_events.1400.c.tt
		add_character_modifier = {
			modifier = ambitious_greedy_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_gold_notification
				right_icon = ROOT
				desc = deviant_inn_begging_gold
				add_gold = { 20 400 }
			}
		}
	}

	# beg for provisions
	option = {
		name = deviant_contract_events.1400.d
        custom_tooltip = deviant_contract_events.1400.d.tt
		add_character_modifier = {
			modifier = ambitious_hungry_whore_modifier
			days = { 100 400 }
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 5 }
			}
		}
		add_prestige = minor_prestige_loss
		scope:deviant_go_random_1 = {
			add_prestige = minor_prestige_gain
			add_gold = 100
			hidden_effect = {
				add_trait_xp = {
					trait = deviant_patron_of_inns
					track = deviant_inn_patron_connections
					value = { 0 10 }
				}
			}
		}
		hidden_effect = {
			send_interface_toast = {
				type = event_innslut_deviantgo_text
				title = deviant_inn_begging_food_notification
				right_icon = ROOT
				desc = deviant_inn_begging_food
				domicile = {
					change_provisions = { 200 1800 }
				}
			}
		}
	}
}


#special reward events if you complete with 15-20 points