﻿namespace = courtesango_deviant_events


#basic courtier asking for sex 
courtesango_deviant_events.0100 = { 
	type = character_event
	title = courtesango_deviant_events.0100.t
	desc = courtesango_deviant_events.0100.a.desc
	override_background = { reference =	council_chamber }
	theme = deviantscourtesango
    cooldown = { years = 1 }
	right_portrait = {
		character = root
		animation = thinking
	}
    left_portrait = {
		character = scope:deviant_go_random_1
		animation = throne_room_conversation_1
	}
    widget = {
		gui = "event_window_widget_deviant_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
    trigger = { 
        has_trait = deviant_courtesan_slut
        is_female = yes
        NOT = { has_trait = pregnant }
        any_courtier = {
            gold >= 100
            OR = {	is_female = no	has_trait = futanari_genetic }
            age >= 18
            is_ai = yes
            is_adult = yes
            is_incapable = no
            is_imprisoned = no
            NOT = { has_sexuality = homosexual }
            NOT = { has_relation_lover = root }
            NOT = { has_relation_soulmate = root }
            NOT = { is_concubine_of = root }
            NOT = { is_spouse_of = root }
            NOT = { is_child_of = root }
            NOT = { is_sibling_of = root }
            NOT = { is_parent_of = root }
            NOT = { is_grandparent_of = root }
            NOT = { is_grandchild_of = root }
            NOT = { this = root }
            NOT = { has_trait = chaste }
            NOT = { has_trait = shy }
            NOT = { has_trait = celibate }
            NOT = { has_trait = eunuch_1 }
			NOT = { has_trait = beardless_eunuch }
            NOT = { has_trait = blind }
            NOT = { has_trait = loyal }
        }
	}
    immediate = {
        save_scope_value_as = { # 5 stages
			name = event_chain_length
			value = 6
		}
        save_scope_value_as = { # 
			name = event_chain_progress
			value = 1
		}
        random_courtier  = {
            limit = {
                age >= 18
                OR = {	is_female = no	has_trait = futanari_genetic }
                is_ai = yes
                is_adult = yes
                is_incapable = no
                is_imprisoned = no
                NOT = { has_sexuality = homosexual }
				NOT = { has_relation_lover = root }
                NOT = { has_relation_soulmate = root }
				NOT = { is_concubine_of = root }
				NOT = { is_spouse_of = root }
				NOT = { is_child_of = root }
				NOT = { is_sibling_of = root }
				NOT = { is_parent_of = root }
				NOT = { is_grandparent_of = root }
				NOT = { is_grandchild_of = root }
				NOT = { this = root }
				NOT = { has_trait = chaste }
				NOT = { has_trait = shy }
				NOT = { has_trait = celibate }
				NOT = { has_trait = eunuch_1 }
			    NOT = { has_trait = beardless_eunuch }
				NOT = { has_trait = blind }
				NOT = { has_trait = loyal }
            }
            save_scope_as = deviant_go_random_1
        }
	}
	# 
	option = {
		name = courtesango_deviant_events.0100.a
		custom_tooltip = courtesango_deviant_events.0100.a.tt
        scope:deviant_go_random_1 = { 
            pay_short_term_gold = {
				target = root
				gold = { 1 tiny_gold_value }
			}
            if = {
                limit = {
                    NOT = { has_trait = special_courtesan_client }
                }
                add_trait = special_courtesan_client 
            }
        }    
        trigger_event = courtesango_deviant_events.0110
	}	
    # 
	option = {
        trigger = {
            has_trait = deviant_courtesan_slut
            has_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_popularity
                value >= 35
            }
        }
		name = courtesango_deviant_events.0100.b
		custom_tooltip = courtesango_deviant_events.0100.b.tt
        scope:deviant_go_random_1 = { 
            if = {
                limit = {
                    NOT = { has_trait = special_courtesan_client }
                }
                add_trait = special_courtesan_client 
            }
        }    
        trigger_event = courtesango_deviant_events.0200
	}	
    # 
	option = {
        trigger = {
            has_trait = lustful
        }
		name = courtesango_deviant_events.0100.c
		custom_tooltip = courtesango_deviant_events.0100.c.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0100.diploduelwin.tt
				}	
                scope:deviant_go_random_1 = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { 1 tiny_gold_value }
                    }
                    if = {
                        limit = {
                            NOT = { has_trait = special_courtesan_client }
                        }
                        add_trait = special_courtesan_client 
                    }
                }    
                had_sex_with_effect = {
                    CHARACTER = scope:deviant_go_random_1
                    PREGNANCY_CHANCE = pregnancy_chance
                }
                trigger_event = courtesango_deviant_events.0300
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0100.diploduellose.tt
				}	
                scope:deviant_go_random_1 = {
                    add_opinion = {
                        target = root
                        modifier = disgusted_opinion
                        opinion = { -30 -10 }
                    }
                }		
			}
		}
        
	}	
	# 
	option = {
		name = courtesango_deviant_events.0100.x
		custom_tooltip = courtesango_deviant_events.0100.x.tt
        scope:deviant_go_random_1 = {
            add_opinion = {
                target = root
                modifier = disappointed_opinion
                opinion = { -20 -1 }
            }
        }
	}				
}


 #main anal duel
 courtesango_deviant_events.0110 = { 
	type = character_event
	title = courtesango_deviant_events.0110.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_round_one }
				}
			desc = courtesango_deviant_events.0110.startinsert.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_won 
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = courtesango_deviant_events.0110.wondiplo.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_lost
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = courtesango_deviant_events.0110.lostdiplo.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_won 
                    has_character_flag = deviant_anal_round_three
				}
			desc = courtesango_deviant_events.0110.wondiplopastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_lost
                    has_character_flag = deviant_anal_round_three
				}
			desc = courtesango_deviant_events.0110.lostdiplopastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_won
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = courtesango_deviant_events.0110.wonintrigue.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_lost
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = courtesango_deviant_events.0110.lostintrigue.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_won
                    has_character_flag = deviant_anal_round_three
				}
			desc = courtesango_deviant_events.0110.wonintriguepastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_lost
                    has_character_flag = deviant_anal_round_three
				}
			desc = courtesango_deviant_events.0110.lostintriguepastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_won
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = courtesango_deviant_events.0110.wonprowess.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_lost
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = courtesango_deviant_events.0110.lostprowess.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_won
                    has_character_flag = deviant_anal_round_three
				}
			desc = courtesango_deviant_events.0110.wonprowesspastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_lost
                    has_character_flag = deviant_anal_round_three
				}
			desc = courtesango_deviant_events.0110.lostprowesspastthree.desc
			}
            triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_wondelay
				}
			desc = courtesango_deviant_events.0110.wondelay.desc
			}
            triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_lostdelay
				}
			desc = courtesango_deviant_events.0110.lostdelay.desc
			}
		}
	}	
    override_background = {
		trigger = { NOT = { has_character_flag = deviant_anal_round_one } }
		reference = deviant_anal_rideontop_four
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_diplo_won
        }
		reference = deviantanalontopservice
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_diplo_lost
        }
		reference = deviant_anal_rideontop_two
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_intrigue_won
        }
		reference = deviant_anal_rideontop_three
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_intrigue_lost
        }
		reference = deviantanalontopfrombehind
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_prowess_won
        }
		reference = deviant_anal_rideontop_five
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_prowess_lost
        }
		reference = deviant_anal_rideontop_six
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_wondelay
        }
		reference = deviant_anal_rideontop_seven
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_lostdelay
        }
		reference = deviant_anal_rideontop_eight
	}
	theme = deviantscourtesango
    widget = {
		gui = "event_window_widget_deviant_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
    immediate = {
        save_scope_value_as = { # 4 events in this event chain
			name = event_chain_length
			value = 5
		}
    }
	# diplo
	option = {
		name = courtesango_deviant_events.0110.diploduel
		custom_tooltip = courtesango_deviant_events.0110.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
        }
        duel = {
			skill = diplomacy
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0110.diploduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_diplo_won
                    random_list = {
                        15 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {
                            
                        }
                    } 
                } 
                if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    } 
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0110.diploduellose.tt
				}		
                add_character_flag = deviant_anal_diplo_lost	
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0110 
                }
                20 = {
                    trigger_event = courtesango_deviant_events.0120 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0120 
                }
            } 
        }
	}		
    # intrigue
	option = {
		name = courtesango_deviant_events.0110.intrigueduel
		custom_tooltip = courtesango_deviant_events.0110.intrigueduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
        }
        duel = {
			skill = intrigue
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0110.intrigueduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_intrigue_won
                    random_list = {
                        15 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {
                            
                        }
                    } 
                    if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    }
                }  
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0110.intrigueduellose.tt
				}		
                add_character_flag = deviant_anal_intrigue_lost	
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0110 
                }
                20 = {
                    trigger_event = courtesango_deviant_events.0120 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0120 
                }
            } 
        }
	}	
    # prowess
	option = {
		name = courtesango_deviant_events.0110.prowessduel
		custom_tooltip = courtesango_deviant_events.0110.prowessduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
        }
        duel = {
			skill = prowess
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0110.prowessduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_prowess_won
                    random_list = {
                        15 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {
                            
                        }
                    }  
                    if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    }
                }  
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0110.diploduellose.tt
				}		
                add_character_flag = deviant_anal_prowess_lost	
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0110 
                }
                40 = {
                    trigger_event = courtesango_deviant_events.0120 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0120 
                }
            } 
        }
	}	
     # try to delay
	option = {
        trigger = {
            has_character_flag = deviant_anal_round_three
        }
		name = courtesango_deviant_events.0110.delayduel
		custom_tooltip = courtesango_deviant_events.0110.delayduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
        }
        duel = {
			skills = { prowess intrigue }
			target = scope:deviant_go_random_1
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0110.delayduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_wondelay
                    random_list = {
                        25 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {

                        }
                    }  
                    if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    }
                }  
			}
			# lose
			70 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0110.delayduellose.tt
				}		
                add_character_flag = deviant_anal_lostdelay	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -10 -1 }
                }
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0110 
                }
                20 = {
                    trigger_event = courtesango_deviant_events.0120 
                }
                50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0120 
                }
            } 
        }
	}
	
    #adds count counter via flags
    after = {
        hidden_effect = { 
            if = { 
                limit = {
                    NOT = { has_character_flag = deviant_anal_round_one }
                }
                add_character_flag = deviant_anal_round_one
            }
            else_if = { 
                limit = {
                    has_character_flag = deviant_anal_round_one
                    NOT = { has_character_flag = deviant_anal_round_two }
                }
                add_character_flag = deviant_anal_round_two
            }
            else_if = { 
                limit = {
                    has_character_flag = deviant_anal_round_two
                    NOT = { has_character_flag = deviant_anal_round_three }
                }
                add_character_flag = deviant_anal_round_three
            }
            else_if = { 
                limit = {
                    has_character_flag = deviant_anal_round_three
                    NOT = { has_character_flag = deviant_anal_round_four }
                }
                add_character_flag = deviant_anal_round_four
            }
        } 
    }		
}

 #anal cum page, ALL are diplo duels to negotaite better rewards/benefist... some have chance for small legitimacy from small favors and other... basically gambling
 #low chance to mitiogate bad effects, at high chanche to trigger good other effects, both via logs that explain how you got extra prestige or legitmicay or other
 courtesango_deviant_events.0120 = { 
	type = character_event
	title = courtesango_deviant_events.0120.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_one }
				}
			desc = courtesango_deviant_events.0120.cumtoosoon.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_one
                    NOT = { has_character_flag = deviant_anal_good_two }
				}
			desc = courtesango_deviant_events.0120.cumnotsated.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_two
                    NOT = { has_character_flag = deviant_anal_good_three }
				}
			desc = courtesango_deviant_events.0120.cumpoorlysated.desc
			}
			triggered_desc = {
				trigger = { 
                   OR = {
                    has_character_flag = deviant_anal_good_three
                    has_character_flag = deviant_anal_good_four
                   } 
                   NOT = { has_character_flag = deviant_anal_good_five }
				}
			desc = courtesango_deviant_events.0120.decentsated.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_five
				}
			desc = courtesango_deviant_events.0120.wellsated.desc
			}
		}
	}	
    override_background = {
		trigger = { 
            NOT = { has_character_flag = deviant_anal_good_one }
        }
		reference = deviantanalontopservicecum
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_good_one
            NOT = { has_character_flag = deviant_anal_good_two }
        }
		reference = deviant_analcum_rideontop_two
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_good_two
            NOT = { has_character_flag = deviant_anal_good_three }
        }
		reference = deviant_analcum_rideontop_three
	}
    override_background = {
		trigger = { 
            OR = {
            has_character_flag = deviant_anal_good_three
            has_character_flag = deviant_anal_good_four
            } 
            NOT = { has_character_flag = deviant_anal_good_five }
        }
		reference = deviant_analcum_rideontop_four
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_good_five
        }
		reference = deviant_analcum_rideontop_five
	}
    
	theme = deviantscourtesango
    widget = {
		gui = "event_window_widget_deviant_satisfactioncum_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
    immediate = {
        random_list = {
            25 = {
                trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_one }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = minor_stress_impact_gain
                        lustful = minor_stress_impact_gain
                    }
                }
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_one
                    NOT = { has_character_flag = deviant_anal_good_two }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = minor_stress_impact_loss
                        lustful = minor_stress_impact_loss
                    }
                } 
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_two
                    NOT = { has_character_flag = deviant_anal_good_three }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = medium_stress_impact_loss
                        lustful = medium_stress_impact_loss
                    }
                }
                
            }
            25 = {
                trigger = { 
                    OR = {
                    has_character_flag = deviant_anal_good_three
                    has_character_flag = deviant_anal_good_four
                    } 
                    NOT = { has_character_flag = deviant_anal_good_five }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = major_stress_impact_loss
                        lustful = medium_stress_impact_loss
                    }
                }
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_five
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = massive_stress_impact_loss
                        lustful = medium_stress_impact_loss
                    }
                }
            }
        }
    }
	# not sated at all
	option = {
        trigger = { 
            NOT = { has_character_flag = deviant_anal_good_one }
        }
		name = courtesango_deviant_events.0120.cumtoosoon
		custom_tooltip = courtesango_deviant_events.0120.cumtoosoon.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0120.cumtoosoonlwin.tt
				}	 
                hidden_effect = {
                    random_list = {
                        25 = {
                            #mild bad rumors

                        }
                        25 = {
                            #just annoyned
                            
                        }
                        25 = {
                            #a bit amused
                            
                        }
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0120.cumtoosoonlose.tt
				}	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -20 -10 }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
                            #bad bad rumors

                        }
                        25 = {
                            #very annoyned
                            
                        }
                        25 = {
                            #slander
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 1 5 }
                            }
                            
                        }
                    }
                }		
			}
		}
	}			
    option = {
        trigger = { 
            NOT = { has_character_flag = deviant_anal_good_one }
        }
		name = courtesango_deviant_events.0120.cumtoosoonfree
		custom_tooltip = courtesango_deviant_events.0120.cumtoosoonfree.tt
        hidden_effect = {
            random_list = {
                25 = {
                    #mild bad rumors
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_infamy
                        value = { 1 5 }
                    }

                }
                25 = {
                    #just annoyned
                    
                }
                25 = {
                    #a bit amused
                    
                }
            }
        }
	}	
    # not really sated
	option = {
        trigger = { 
            has_character_flag = deviant_anal_good_one
            NOT = { has_character_flag = deviant_anal_good_two }
        }
		name = courtesango_deviant_events.0120.cumnotsated
		custom_tooltip = courtesango_deviant_events.0120.cumnotsated.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0120.cumnotsatedwin.tt
				}	 
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = 1
                    }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
                            #mild bad rumors

                        }
                        25 = {
                            #just annoyned
                            
                        }
                        25 = {
                            #a bit amused
                            
                        }
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0120.cumnotsatedlose.tt
				}	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -10 -1 }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
                            #bad bad rumors

                        }
                        25 = {
                            #very annoyned
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 1 3 }
                            }
                            
                        }
                        25 = {
                            #slander
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 2 5 }
                            }
                            
                        }
                    }
                }		
			}
		}
	}			
    option = {
        trigger = { 
            has_character_flag = deviant_anal_good_one
            NOT = { has_character_flag = deviant_anal_good_two }
        }
		name = courtesango_deviant_events.0120.cumnotsatedfree
		custom_tooltip = courtesango_deviant_events.0120.cumnotsatedfree.tt
        hidden_effect = {
            random_list = {
                25 = {
                    #mild bad rumors
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_infamy
                        value = { 1 2 }
                    }

                }
                25 = {
                    #just annoyned
                    
                }
                25 = {
                    #a bit amused
                    
                }
            }
        }
	}	
    # poorly sated
	option = {
        trigger = { 
            has_character_flag = deviant_anal_good_two
            NOT = { has_character_flag = deviant_anal_good_three }
        }
		name = courtesango_deviant_events.0120.cumpoorlysated
		custom_tooltip = courtesango_deviant_events.0120.cumpoorlysated.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0120.cumpoorlysatedwin.tt
				}	 
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = { 2 10 }
                    }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
                            #mild bad rumors

                        }
                        25 = {
                            #just annoyned
                            
                        }
                        25 = {
                            #a bit amused
                            
                        }
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0120.cumpoorlysatedlose.tt
				}	
                hidden_effect = {
                    random_list = {
                        25 = {
                            #bad bad rumors

                        }
                        25 = {
                            #very annoyned
                            
                        }
                        25 = {
                            #slander
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 2 5 }
                            }
                            
                        }
                    }
                }		
			}
		}
	}			
    option = {
        trigger = { 
            has_character_flag = deviant_anal_good_two
            NOT = { has_character_flag = deviant_anal_good_three }
        }
		name = courtesango_deviant_events.0120.cumpoorlysatedfree
		custom_tooltip = courtesango_deviant_events.0120.cumpoorlysatedfree.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = amused_opinion
			opinion = { 1 10 }
		}
        hidden_effect = {
            random_list = {
                25 = {
                    #mild bad rumors

                }
                25 = {
                    #just annoyned
                    
                }
                25 = {
                    #a bit amused
                    
                }
            }
        }
	}	
    # medium sated
	option = {
        trigger = { 
            OR = {
            has_character_flag = deviant_anal_good_three
            has_character_flag = deviant_anal_good_four
            } 
            NOT = { has_character_flag = deviant_anal_good_five }
        }
		name = courtesango_deviant_events.0120.decentsated
		custom_tooltip = courtesango_deviant_events.0120.decentsated.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0120.decentsatedwin.tt
				}	 
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = { tiny_gold_value minor_gold_value }
                    }
                    hidden_effect = {
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 5 10 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_popularity
                                value = { 1 5 }
                            }

                        }
                        25 = {
                 
                            
                        }
                        25 = {

                            
                        }
                    }
                }
			}
			# lose
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0120.decentsatedlose.tt
				}	
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = { 0 tiny_gold_value }
                    }
                    hidden_effect = {
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 1 5 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
    

                        }
                        25 = {
  
                            
                        }
                        25 = {
    
                            
                        }
                    }
                }		
			}
		}
	}			
    option = {
        trigger = { 
            OR = {
            has_character_flag = deviant_anal_good_three
            has_character_flag = deviant_anal_good_four
            } 
            NOT = { has_character_flag = deviant_anal_good_five }
        }
		name = courtesango_deviant_events.0120.decentsatedfree
		custom_tooltip = courtesango_deviant_events.0120.decentsatedfree.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = amused_opinion
			opinion = { 10 20 }
		}
        hidden_effect = {
            scope:deviant_go_random_1 = { 
                add_trait_xp = {
                    trait = special_courtesan_client
                    track = special_courtesan_client_met
                    value = { 5 10 }
                }
            } 
            random_list = {
                25 = {
    

                }
                25 = {

                    
                }
                25 = {

                    
                }
            }
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_popularity
                value = { 1 5 }
            }
        }
	}	
    # best sated
	option = {
        trigger = { 
            has_character_flag = deviant_anal_good_five
        }
		name = courtesango_deviant_events.0120.wellsated
		custom_tooltip = courtesango_deviant_events.0120.wellsated.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0120.wellsatedwin.tt
				}	
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value medium_gold_value }
                    }
                    hidden_effect = {
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 10 20 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }    
                } 
                hidden_effect = {
                    random_list = {
                        25 = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_popularity
                                value = { 1 5 }
                            }
                        }
                        25 = {
                            
                        }
                        25 = {
                            
                        }
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0120.wellsatedlose.tt
				}	
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = { 0 minor_gold_value }
                    }
                    hidden_effect = {
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 5 10 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }    
                }
                hidden_effect = {
                    random_list = {
                        25 = {

                        }
                        25 = {
                            
                        }
                        25 = {
                            
                        }
                    }
                }		
			}
		}
	}			
    option = {
        trigger = { 
            has_character_flag = deviant_anal_good_five
        }
		name = courtesango_deviant_events.0120.wellsatedfree
		custom_tooltip = courtesango_deviant_events.0120.wellsatedfree.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = amused_opinion
			opinion = { 10 30 }
		}
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_popularity
                value = { 1 5 }
            }
            scope:deviant_go_random_1 = { 
                add_trait_xp = {
                    trait = special_courtesan_client
                    track = special_courtesan_client_met
                    value = { 20 30 }
                }
            }    
            random_list = {
                25 = {


                }
                25 = {

                    
                }
                25 = {

                    
                }
            }
        }
	}	
    after = {
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_one
                }
                remove_character_flag = deviant_anal_round_one
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_two
                }
                remove_character_flag = deviant_anal_round_two
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_three
                }
                remove_character_flag = deviant_anal_round_three
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_four
                }
                remove_character_flag = deviant_anal_round_four
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_one
                }
                remove_character_flag = deviant_anal_good_one
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_two
                }
                remove_character_flag = deviant_anal_good_two
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_three
                }
                remove_character_flag = deviant_anal_good_three
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_four
                }
                remove_character_flag = deviant_anal_good_four
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_five
                }
                remove_character_flag = deviant_anal_good_five
            }
            scope:deviant_go_random_1 = { 
                add_trait_xp = {
                    trait = special_courtesan_client
                    track = special_courtesan_client_met
                    value = { 1 5 }
                }
            } 
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_popularity
                value = { 0 2 }
            }
        }
    }
}

#main oral duel
 courtesango_deviant_events.0200 = { 
	type = character_event
	title = courtesango_deviant_events.0200.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_round_one }
				}
			desc = courtesango_deviant_events.0200.startinsert.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_oral_won 
				}
			desc = courtesango_deviant_events.0200.wonoral.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_oral_lost
				}
			desc = courtesango_deviant_events.0200.lostoral.desc
			}
		}
	}	
    override_background = {
		trigger = { NOT = { has_character_flag = deviant_anal_round_one } }
		reference = deviant_oral_kiss
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_diplo_won
        }
		reference = deviant_oral_suck_two
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_diplo_lost
        }
		reference = deviant_oral_suck_one
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_intrigue_won
        }
		reference = deviant_oral_suck_three
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_intrigue_lost
        }
		reference = deviant_oral_suck_four
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_prowess_won
        }
		reference = deviant_oral_suck_five
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_prowess_lost
        }
		reference = deviant_oral_suck_six
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_wondelay
        }
		reference = deviant_oral_suck_seven
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_lostdelay
        }
		reference = deviant_oral_suck_eight
	}
	theme = deviantscourtesango
    widget = {
		gui = "event_window_widget_deviant_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
    immediate = {
        save_scope_value_as = { # 4 events in this event chain
			name = event_chain_length
			value = 5
		}
    }
	# diplo
	option = {
		name = courtesango_deviant_events.0200.diploduel
		custom_tooltip = courtesango_deviant_events.0200.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_won
                }
                remove_character_flag = deviant_oral_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_lost
                }
                remove_character_flag = deviant_oral_lost
            }
        }
        duel = {
			skill = diplomacy
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0200.diploduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_diplo_won
                    add_character_flag = deviant_oral_won
                    random_list = {
                        15 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {
                            
                        }
                    } 
                } 
                if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    } 
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0200.diploduellose.tt
				}		
                add_character_flag = deviant_anal_diplo_lost	
                add_character_flag = deviant_oral_lost
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0200 
                }
                20 = {
                    trigger_event = courtesango_deviant_events.0210 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0210 
                }
            } 
        }
	}		
    # intrigue
	option = {
		name = courtesango_deviant_events.0200.intrigueduel
		custom_tooltip = courtesango_deviant_events.0200.intrigueduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_won
                }
                remove_character_flag = deviant_oral_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_lost
                }
                remove_character_flag = deviant_oral_lost
            }
        }
        duel = {
			skill = intrigue
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0200.intrigueduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_intrigue_won
                    add_character_flag = deviant_oral_won
                    random_list = {
                        15 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {
                            
                        }
                    } 
                    if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    }
                }  
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0200.intrigueduellose.tt
				}		
                add_character_flag = deviant_anal_intrigue_lost	
                add_character_flag = deviant_oral_lost
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0200 
                }
                20 = {
                    trigger_event = courtesango_deviant_events.0210 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0210 
                }
            } 
        }
	}	
    # prowess
	option = {
		name = courtesango_deviant_events.0200.prowessduel
		custom_tooltip = courtesango_deviant_events.0200.prowessduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_won
                }
                remove_character_flag = deviant_oral_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_lost
                }
                remove_character_flag = deviant_oral_lost
            }
        }
        duel = {
			skill = prowess
			target = scope:deviant_go_random_1
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0200.prowessduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    else_if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_prowess_won
                    add_character_flag = deviant_oral_won
                    random_list = {
                        15 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {
                            
                        }
                    }  
                    if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    }
                }  
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0200.prowessduellose.tt
				}		
                add_character_flag = deviant_anal_prowess_lost	
                add_character_flag = deviant_oral_lost
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0200 
                }
                40 = {
                    trigger_event = courtesango_deviant_events.0210 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0210 
                }
            } 
        }
	}	
     # try to delay
	option = {
        trigger = {
            has_character_flag = deviant_anal_round_three
        }
		name = courtesango_deviant_events.0200.delayduel
		custom_tooltip = courtesango_deviant_events.0200.delayduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_won
                }
                remove_character_flag = deviant_oral_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_lost
                }
                remove_character_flag = deviant_oral_lost
            }
        }
        duel = {
			skills = { prowess intrigue }
			target = scope:deviant_go_random_1
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0200.delayduelwin.tt
				}	
                hidden_effect = { 
                    if = { 
                        limit = {
                            NOT = { has_character_flag = deviant_anal_good_one }
                        }
                        add_character_flag = deviant_anal_good_one
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_one
                            NOT = { has_character_flag = deviant_anal_good_two }
                        }
                        add_character_flag = deviant_anal_good_two
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_two
                            NOT = { has_character_flag = deviant_anal_good_three }
                        }
                        add_character_flag = deviant_anal_good_three
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_three
                            NOT = { has_character_flag = deviant_anal_good_four }
                        }
                        add_character_flag = deviant_anal_good_four
                    }
                    if = { 
                        limit = {
                            has_character_flag = deviant_anal_good_four
                            NOT = { has_character_flag = deviant_anal_good_five }
                        }
                        add_character_flag = deviant_anal_good_five
                    }
                    add_character_flag = deviant_anal_wondelay
                    add_character_flag = deviant_oral_won
                    random_list = {
                        25 = {
                            scope:deviant_go_random_1 = {
                                add_opinion = {
                                    target = root
                                    modifier = special_courtesan_relationship
                                }
                            }
                        }
                        50 = {

                        }
                    }  
                    if = {
                        limit = {
                            scope:event_chain_progress = 1
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 2
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 2
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 3
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 3
                        }
                        save_scope_value_as = { #
                            name = event_chain_progress
                            value = 4
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 4
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 5
                        }
                    }
                    else_if = {
                        limit = {
                            scope:event_chain_progress = 5
                        }
                        save_scope_value_as = { # 
                            name = event_chain_progress
                            value = 6
                        }
                    }
                }  
			}
			# lose
			70 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0200.delayduellose.tt
				}		
                add_character_flag = deviant_anal_lostdelay	
                add_character_flag = deviant_oral_lost
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -10 -1 }
                }
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = courtesango_deviant_events.0200 
                }
                20 = {
                    trigger_event = courtesango_deviant_events.0210 
                }
                50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = courtesango_deviant_events.0210 
                }
            } 
        }
	}
	
    #adds count counter via flags
    after = {
        hidden_effect = { 
            if = { 
                limit = {
                    NOT = { has_character_flag = deviant_anal_round_one }
                }
                add_character_flag = deviant_anal_round_one
            }
            else_if = { 
                limit = {
                    has_character_flag = deviant_anal_round_one
                    NOT = { has_character_flag = deviant_anal_round_two }
                }
                add_character_flag = deviant_anal_round_two
            }
            else_if = { 
                limit = {
                    has_character_flag = deviant_anal_round_two
                    NOT = { has_character_flag = deviant_anal_round_three }
                }
                add_character_flag = deviant_anal_round_three
            }
            else_if = { 
                limit = {
                    has_character_flag = deviant_anal_round_three
                    NOT = { has_character_flag = deviant_anal_round_four }
                }
                add_character_flag = deviant_anal_round_four
            }
        } 
    }		
}

#oral cum
courtesango_deviant_events.0210 = { 
	type = character_event
	title = courtesango_deviant_events.0210.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_two }
				}
			desc = courtesango_deviant_events.0210.cumnotsated.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_two
				}
			desc = courtesango_deviant_events.0210.cummehlysated.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_three
				}
			desc = courtesango_deviant_events.0210.wellsated.desc
			}
		}
	}	
    override_background = {
		trigger = { 
            NOT = { has_character_flag = deviant_anal_good_one }
        }
		reference = deviant_oralcum_one
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_good_one
            NOT = { has_character_flag = deviant_anal_good_two }
        }
		reference = deviant_oralcum_two
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_good_two
            NOT = { has_character_flag = deviant_anal_good_three }
        }
		reference = deviant_oralcum_three
	}
    override_background = {
		trigger = { 
            OR = {
            has_character_flag = deviant_anal_good_three
            has_character_flag = deviant_anal_good_four
            } 
            NOT = { has_character_flag = deviant_anal_good_five }
        }
		reference = deviant_oralcum_four
	}
    override_background = {
		trigger = { 
            has_character_flag = deviant_anal_good_five
        }
		reference = deviant_oralcum_five
	}
    
	theme = deviantscourtesango
    widget = {
		gui = "event_window_widget_deviant_satisfactioncum_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
    immediate = {
        random_list = {
            25 = {
                trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_one }
                }
                reverse_add_opinion = {
                        target = scope:deviant_go_random_1
                        modifier = annoyed_opinion
                        opinion = { -10 -1 }
                    }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = minor_stress_impact_gain
                        lustful = minor_stress_impact_gain
                    }
                    hidden_effect = {
                        random_list = {
                            25 = {
                                #bad bad rumors

                            }
                            25 = {
                                #very annoyned
                                add_trait_xp = {
                                    trait = deviant_courtesan_slut
                                    track = deviant_courtesan_slut_infamy
                                    value = { 1 3 }
                                }
                                
                            }
                            25 = {
                                #slander
                                add_trait_xp = {
                                    trait = deviant_courtesan_slut
                                    track = deviant_courtesan_slut_infamy
                                    value = { 2 5 }
                                }
                                
                            }
                        }
                    }
                }
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_one
                    NOT = { has_character_flag = deviant_anal_good_two }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = minor_stress_impact_loss
                        lustful = minor_stress_impact_loss
                    }
                    pay_short_term_gold = {
                        target = root
                        gold = 1
                    }
                } 
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_two
                    NOT = { has_character_flag = deviant_anal_good_three }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = medium_stress_impact_loss
                        lustful = medium_stress_impact_loss
                    }
                    pay_short_term_gold = {
                        target = root
                        gold = { 2 10 }
                    }
                }
                
            }
            25 = {
                trigger = { 
                    OR = {
                    has_character_flag = deviant_anal_good_three
                    has_character_flag = deviant_anal_good_four
                    } 
                    NOT = { has_character_flag = deviant_anal_good_five }
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = major_stress_impact_loss
                        lustful = medium_stress_impact_loss
                    }
                    pay_short_term_gold = {
                        target = root
                        gold = { tiny_gold_value minor_gold_value }
                    }
                    hidden_effect = {
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 5 10 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }
                }
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_five
                }
                scope:deviant_go_random_1 = {
                    stress_impact = {
                        base = massive_stress_impact_loss
                        lustful = medium_stress_impact_loss
                    }
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value medium_gold_value }
                    }
                    
                }
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = amused_opinion
                    opinion = { 10 30 }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                    scope:deviant_go_random_1 = { 
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 20 30 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }    
                }
            }
        }
    }		
    option = {
		name = courtesango_deviant_events.0210.a
		custom_tooltip = courtesango_deviant_events.0210.a.tt
	}	
    # suck until pay more...
	option = {
		name = courtesango_deviant_events.0210.b
		custom_tooltip = courtesango_deviant_events.0210.b.tt
        duel = {
			skills = { diplomacy intrigue prowess }
			target = scope:deviant_go_random_1
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.0210.bwin.tt
				}	 
                scope:deviant_go_random_1 = {
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value medium_gold_value }
                    }
                }
                random_list = {
                    25 = {
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = amused_opinion
                            opinion = { 10 30 }
                        }
                    }
                    25 = {
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = flustered_opinion
                            opinion = { 1 10 }
                        }
                        
                    }
                    25 = {
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = humiliated_opinion
                            opinion = { -30 -10 }
                        }
                    }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 4 10 }
                    }
                }
			}
			# lose
			70 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.0210.blose.tt
				}	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = angry_opinion
                    opinion = { -30 -10 }
                }
                hidden_effect = {
                    random_list = {
                        25 = {
                            #bad bad rumors

                        }
                        25 = {
                            #very annoyned
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 1 3 }
                            }
                            
                        }
                        25 = {
                            #slander
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 2 5 }
                            }
                            
                        }
                    }
                }		
			}
		}
	}													
    after = {
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_won
                }
                remove_character_flag = deviant_anal_diplo_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_diplo_lost
                }
                remove_character_flag = deviant_anal_diplo_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_won
                }
                remove_character_flag = deviant_anal_intrigue_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_intrigue_lost
                }
                remove_character_flag = deviant_anal_intrigue_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_won
                }
                remove_character_flag = deviant_anal_prowess_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_prowess_lost
                }
                remove_character_flag = deviant_anal_prowess_lost
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_wondelay
                }
                remove_character_flag = deviant_anal_wondelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_lostdelay
                }
                remove_character_flag = deviant_anal_lostdelay
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_one
                }
                remove_character_flag = deviant_anal_round_one
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_two
                }
                remove_character_flag = deviant_anal_round_two
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_three
                }
                remove_character_flag = deviant_anal_round_three
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_round_four
                }
                remove_character_flag = deviant_anal_round_four
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_one
                }
                remove_character_flag = deviant_anal_good_one
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_two
                }
                remove_character_flag = deviant_anal_good_two
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_three
                }
                remove_character_flag = deviant_anal_good_three
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_four
                }
                remove_character_flag = deviant_anal_good_four
            }
            if = { 
                limit = {
                    has_character_flag = deviant_anal_good_five
                }
                remove_character_flag = deviant_anal_good_five
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_won
                }
                remove_character_flag = deviant_oral_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_oral_lost
                }
                remove_character_flag = deviant_oral_lost
            }
            scope:deviant_go_random_1 = { 
                add_trait_xp = {
                    trait = special_courtesan_client
                    track = special_courtesan_client_met
                    value = { 1 5 }
                }
            } 
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_popularity
                value = { 0 2 }
            }
        }
    }
}

#0300 vaginal fuck cum
courtesango_deviant_events.0300 = { 
	type = character_event
	title = courtesango_deviant_events.0300.t
	desc = courtesango_deviant_events.0300.desc
	theme = deviantsmaskgo 
	 override_background = {
		trigger = { 
            exists = scope:background_1
        }
		reference = deviant_matingpress_cum_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_2
        }
		reference = deviant_vaginal_fuck_cum_seven
	}
    override_background = {
		trigger = { 
            exists = scope:background_3
        }
		reference = deviant_vaginal_fuck_cum_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_4
        }
		reference = deviant_vaginal_fuck_cum_five
	}
    override_background = {
		trigger = { 
            exists = scope:background_5
        }
		reference = deviant_sideways_vaginalcum
	}
    override_background = {
		trigger = { 
            exists = scope:background_6
        }
		reference = deviant_lustful_vagcum_1
	}
    override_background = {
		trigger = { 
            exists = scope:background_7
        }
		reference = deviant_lustful_vagcum_2
	}
    override_background = {
		trigger = { 
            exists = scope:background_8
        }
		reference = deviant_lustful_vagcum_3
	}
    override_background = {
		trigger = { 
            exists = scope:background_9
        }
		reference = deviant_lustful_vagcum_4
	}
    override_background = {
		trigger = { 
            exists = scope:background_10
        }
		reference = deviant_lustful_vagcum_5
	}
	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
				}
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = dismissive_opinion
                    opinion = { -10 -20 }
                }
			}
            25 = {
				ROOT = {
					save_scope_as = background_6
				}
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = dismissive_opinion
                    opinion = { -10 -20 }
                }
			}
			25 = {
				ROOT = {
					save_scope_as = background_7
				}
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = dismissive_opinion
                    opinion = { -10 -20 }
                }
			}
			25 = {
				ROOT = {
					save_scope_as = background_8
				}
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = dismissive_opinion
                    opinion = { -10 -20 }
                }
			}
			25 = {
				ROOT = {
					save_scope_as = background_9
				}
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = dismissive_opinion
                    opinion = { -10 -20 }
                }
			}
			25 = {
				ROOT = {
					save_scope_as = background_10
				}
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = dismissive_opinion
                    opinion = { -10 -20 }
                }
			}
		}
		had_sex_with_effect = {
			CHARACTER = scope:deviant_go_random_1
			PREGNANCY_CHANCE = pregnancy_chance
		}
        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
								}
							}	
						}
					}
				}
			}
			50 = {
				trigger = {
					government_has_flag = government_is_administrative
				}
				add_gold = { 10 50 }
				change_influence = { 2 100 }
				
			}
			60 = {
				add_gold = { 10 50 }
				
			}
		}
	}

	# 
	option = {
		name = courtesango_deviant_events.0300.a
		custom_tooltip = courtesango_deviant_events.0300.a.tt
        hidden_effect = {
            scope:deviant_go_random_1 = { 
                add_trait_xp = {
                    trait = special_courtesan_client
                    track = special_courtesan_client_met
                    value = { 1 5 }
                }
                add_opinion = {
                    target = root
                    modifier = special_courtesan_relationship
                }
            } 
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_popularity
                value = { 0 2 }
            }
        }
	}				
}


courtesango_deviant_events.1000 = {
	type = letter_event
	opening = courtesango_deviant_events.1000.opening
    desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1000.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1000.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1000.e.desc
			}
            triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1000.r.desc
			}
            triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1000.t.desc
			}
		}
	}	
	sender = scope:deviant_go_random_1
	cooldown = { years = 1 }
	trigger = {
        exists = liege
		is_independent_ruler = no
        has_trait = deviant_courtesan_slut
		has_trait = deviants_mask
		has_trait_xp = {
			trait = deviant_courtesan_slut
			track = deviant_courtesan_slut_popularity
			value >= 40
		}
		is_ruler = yes
		is_female = yes
		age >= 18
        liege = {
            any_courtier = {
                gold >= 100
                OR = {	is_female = no	has_trait = futanari_genetic }
                age >= 18
                is_available_ai_adult = yes
                NOT = { has_sexuality = homosexual }
                NOT = { has_relation_lover = root }
                NOT = { has_relation_soulmate = root }
                NOT = { is_concubine_of = root }
                NOT = { is_spouse_of = root }
                NOT = { is_child_of = root }
                NOT = { is_sibling_of = root }
                NOT = { is_parent_of = root }
                NOT = { is_grandparent_of = root }
                NOT = { is_grandchild_of = root }
                NOT = { this = root }
                NOT = { has_trait = chaste }
                NOT = { has_trait = shy }
                NOT = { has_trait = celibate }
                NOT = { has_trait = eunuch_1 }
			    NOT = { has_trait = beardless_eunuch }
                NOT = { has_trait = blind }
                NOT = { has_trait = loyal }
            }
        }
    }
    immediate = {
        liege = {
			random_courtier = {
				limit = {
                    gold >= 100
                    OR = {	is_female = no	has_trait = futanari_genetic }
                    age >= 18
                    is_available_ai_adult = yes
                    NOT = { has_sexuality = homosexual }
                    NOT = { has_relation_lover = root }
                    NOT = { has_relation_soulmate = root }
                    NOT = { is_concubine_of = root }
                    NOT = { is_spouse_of = root }
                    NOT = { is_child_of = root }
                    NOT = { is_sibling_of = root }
                    NOT = { is_parent_of = root }
                    NOT = { is_grandparent_of = root }
                    NOT = { is_grandchild_of = root }
                    NOT = { this = root }
                    NOT = { has_trait = chaste }
                    NOT = { has_trait = shy }
                    NOT = { has_trait = celibate }
                    NOT = { has_trait = eunuch_1 }
			        NOT = { has_trait = beardless_eunuch }
                    NOT = { has_trait = blind }
                    NOT = { has_trait = loyal }	
				}
				save_scope_as = deviant_go_random_1
			}
		}
	}	

	option = { # 
		name = courtesango_deviant_events.1000.a
		custom_tooltip = courtesango_deviant_events.1000.a.tt
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = courtesango_deviant_events.1010
                }
                25 = {
                    trigger_event = courtesango_deviant_events.1020
                }
                #100 = {
                #    trigger = {
                #        scope:deviant_go_random_1 = {
                #            OR = {	
                #               has_trait = sadistic
                #                has_trait = arrogant
                #                has_trait = ambitious
                #                has_trait = vengeful
                #                has_trait = callous
                #                has_trait = deceitful
                #                has_relation_rival = scope:deviantgo_player_char 
                #                has_relation_nemesis = scope:deviantgo_player_char 
			    #   		}
                #       }
                #    }
                #    trigger_event = courtesango_deviant_events.1030
                #}
            }
        }    

	}

	option = { 
		name = courtesango_deviant_events.1000.b
		custom_tooltip = courtesango_deviant_events.1000.b.tt
        scope:deviant_go_random_1 = {
            add_opinion = {
                target = root
                modifier = disappointed_opinion
                opinion = { -20 -1 }
            }
        }
	}
}

#1010 he want anal
courtesango_deviant_events.1010 = { 
	type = character_event
	title = courtesango_deviant_events.1010.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1010.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1010.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1010.e.desc
			}
            triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1010.r.desc
			}
            triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1010.t.desc
			}
		}
	}
	override_background = { reference =	bedchamber }
	theme = deviantscourtesango
	right_portrait = {
		character = root
		animation = thinking
	}
    left_portrait = {
		character = scope:deviant_go_random_1
		animation = throne_room_conversation_1
	}
    widget = {
		gui = "event_window_widget_deviant_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
	immediate = {
        save_scope_value_as = { # 5 stages
			name = event_chain_length
			value = 6
		}
        save_scope_value_as = { # 
			name = event_chain_progress
			value = 1
		}
    }    
	option = {
		name = courtesango_deviant_events.1010.a
		custom_tooltip = courtesango_deviant_events.1010.a.tt 
        trigger_event = courtesango_deviant_events.0110
        scope:deviant_go_random_1 = {
            pay_short_term_gold = {
                target = root
                gold = { 1 5 }
            }
            if = {
                limit = {
                    NOT = { has_trait = special_courtesan_client }
                }
                add_trait = special_courtesan_client 
            }
        }
	}	
	# 
	option = {
		name = courtesango_deviant_events.1010.b
		custom_tooltip = courtesango_deviant_events.1010.b.tt
        scope:deviant_go_random_1 = {
            add_opinion = {
                target = root
                modifier = disappointed_opinion
                opinion = { -20 -1 }
            }
        }
	}				
}
#1020 he want oral
courtesango_deviant_events.1020 = { 
	type = character_event
	title = courtesango_deviant_events.1020.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1020.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1020.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1020.e.desc
			}
            triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1020.r.desc
			}
            triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = courtesango_deviant_events.1020.t.desc
			}
		}
	}
	override_background = { reference =	bedchamber }
	theme = deviantscourtesango
	right_portrait = {
		character = root
		animation = thinking
	}
    left_portrait = {
		character = scope:deviant_go_random_1
		animation = throne_room_conversation_1
	}
    widget = {
		gui = "event_window_widget_deviant_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
	immediate = {
        save_scope_value_as = { # 5 stages
			name = event_chain_length
			value = 6
		}
        save_scope_value_as = { # 
			name = event_chain_progress
			value = 1
		}
    }    
	option = {
		name = courtesango_deviant_events.1020.a
		custom_tooltip = courtesango_deviant_events.1020.a.tt 
        trigger_event = courtesango_deviant_events.0200
        scope:deviant_go_random_1 = {
            pay_short_term_gold = {
                target = root
                gold = { 1 5 }
            }
            if = {
                limit = {
                    NOT = { has_trait = special_courtesan_client }
                }
                add_trait = special_courtesan_client 
            }
        }
	}	
	# 
	option = {
		name = courtesango_deviant_events.1020.b
		custom_tooltip = courtesango_deviant_events.1020.b.tt
        scope:deviant_go_random_1 = {
            add_opinion = {
                target = root
                modifier = disappointed_opinion
                opinion = { -20 -1 }
            }
        }
	}				
}

#1030 he want bondage



courtesango_deviant_events.5000 = {
	type = character_event
	window = scheme_preparations_event
	title = {
		desc = courtesango_deviant_events.5000.t.scheme
	}
	desc = scheme_critical_moments.0002.desc
	theme = deviantscourtesango
	left_portrait = {
		character = scope:left_portrait
		animation = scheme
	}
	center_portrait = {
		character = scope:char_1
		animation = flirtation
	}
	right_portrait = {
		character = scope:right_portrait
		animation = thinking
	}
	# 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 }
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
                save_scope_as = char_1
            }
		}
	}

	# Standard completion: no buffs.
	option = {
		name = courtesango_deviant_events.5000.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
				}
			}
		}
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = courtesango_deviant_events.5011
                }
                25 = {
                    trigger_event = courtesango_deviant_events.5012
                }
            }
        }    

		# 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 = courtesango_deviant_events.5000.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 }
			}
		}
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = courtesango_deviant_events.5011
                }
                25 = {
                    trigger_event = courtesango_deviant_events.5012
                }
                25 = {
                    trigger_event = courtesango_deviant_events.5013
                }
            }
        }  

		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

	# Very pricey completion: moderate success chance gains.
	option = {
		name = courtesango_deviant_events.5000.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 }
			}
		}
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = courtesango_deviant_events.5012
                }
                25 = {
                    trigger_event = courtesango_deviant_events.5013
                }
                25 = {
                    trigger_event = courtesango_deviant_events.5014
                }
            }
        } 

		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

	# Max pricey completion: excellent success chance gains.
	option = {
		name = courtesango_deviant_events.5000.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 }
			}
		}
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = courtesango_deviant_events.5013
                }
                25 = {
                    trigger_event = courtesango_deviant_events.5014
                }
            }
        } 
		ai_chance = { scheme_prep_ai_should_execute_scheme_modifier = yes }
	}

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

		if = {
			limit = {
				scope:scheme = { scheme_agent_charges >= 1 }
			}
			custom_tooltip = scheme_critical_moments.0002.e.tt.some_opportunities
		}
		else = { 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 }
	}
}

#whores kicked out
courtesango_deviant_events.5009 = {
	type = character_event
	title = courtesango_deviant_events.5009.t
	desc = courtesango_deviant_events.5009.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = chancellor
	}
	right_portrait = {
		character = scope:target
		animation = disapproval 
	}
    immediate = {
        random_list = {
            25 = {
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -30 -11 }
                }
            }
            25 = {
                reverse_add_opinion = {
                    target = scope:target
                    modifier = angry_opinion
                    opinion = { -20 -3 }
                }
                
            }
            25 = {
                reverse_add_opinion = {
                    target = scope:target
                    modifier = disappointed_opinion
                    opinion = { -10 -3 }
                }
                
            }
            25 = {
                
            }
            25 = {
                
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5009.a
        custom_tooltip = courtesango_deviant_events.5009.a.tt
		scope:scheme = { end_scheme = yes }
        scope:target = {
            add_character_modifier = {
                modifier = deviant_boredofwhores_modifier
                days = { 200 660 }
            }
        }    
	}
}

#no pay
courtesango_deviant_events.5011 = {
	type = character_event
	title = courtesango_deviant_events.5011.t
	desc = courtesango_deviant_events.5011.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = disapproval
	}
    immediate = {
        random_list = {
            25 = {
                reverse_add_opinion = {
                    target = scope:target
                    modifier = annoyed_opinion
                    opinion = { -20 -11 }
                }
            }
            25 = {
                
            }
            25 = {
                reverse_add_opinion = {
                    target = scope:target
                    modifier = disappointed_opinion
                    opinion = { -10 -3 }
                }
                
            }
            25 = {
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_hiredcampslut
                        track = pimpslutfame
                        value = 2
                    }
                }
                
            }
            25 = {
                
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5011.a
        custom_tooltip = courtesango_deviant_events.5011.a.tt
		scope:scheme = { end_scheme = yes }
        scope:target = {
            add_character_modifier = {
                modifier = deviant_boredofwhores_modifier
                days = { 200 460 }
            }
        } 
	}
}

#bad pay
courtesango_deviant_events.5012 = {
	type = character_event
	title = courtesango_deviant_events.5012.t
	desc = courtesango_deviant_events.5012.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { 1 5 }
                    }
                } 
            }
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = 1
                    }
                    reverse_add_opinion = {
                        target = scope:target
                        modifier = annoyed_opinion
                        opinion = { -10 -3 }
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_hiredcampslut
                        track = pimpslutfame
                        value = { 2 10 }
                    }
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5012.a
        custom_tooltip = courtesango_deviant_events.5012.a.tt
		scope:scheme = { end_scheme = yes }
        scope:target = {
            add_character_modifier = {
                modifier = deviant_boredofwhores_modifier
                days = { 100 360 }
            }
        } 
	}
}

#meh pay
courtesango_deviant_events.5013 = {
	type = character_event
	title = courtesango_deviant_events.5013.t
	desc = courtesango_deviant_events.5013.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { tiny_gold_value minor_gold_value }
                    }
                    reverse_add_opinion = {
                        target = scope:target
                        modifier = grateful_opinion
                        opinion = { 4 10 }
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_hiredcampslut
                        track = pimpslutfame
                        value = { 2 10 }
                    }
                }
            }
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { tiny_gold_value minor_gold_value }
                    }
                    reverse_add_opinion = {
                        target = scope:target
                        modifier = grateful_opinion
                        opinion = { 20 30 }
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_hiredcampslut
                        track = pimpslutfame
                        value = { 6 10 }
                    }
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5013.a
        custom_tooltip = courtesango_deviant_events.5013.a.tt
		scope:scheme = { end_scheme = yes }
        scope:target = {
            add_character_modifier = {
                modifier = deviant_boredofwhores_modifier
                days = { 100 260 }
            }
        }
	}
}

#good pay
courtesango_deviant_events.5014 = {
	type = character_event
	title = courtesango_deviant_events.5014.t
	desc = courtesango_deviant_events.5014.desc
	theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
	left_portrait = {
		character = root
		animation = scheme
	}
	right_portrait = {
		character = scope:target
		animation = steward
	}
    immediate = {
        random_list = {
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value medium_gold_value }
                    }
                    reverse_add_opinion = {
                        target = scope:target
                        modifier = grateful_opinion
                        opinion = { 20 30 }
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_hiredcampslut
                        track = pimpslutfame
                        value = { 10 20 }
                    }
                }
            }
            25 = {
                scope:target = { 
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value major_gold_value }
                    }
                    reverse_add_opinion = {
                        target = scope:target
                        modifier = grateful_opinion
                        opinion = { 20 30 }
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_hiredcampslut
                        track = pimpslutfame
                        value = { 10 30 }
                    }
                }
                
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5014.a
        custom_tooltip = courtesango_deviant_events.5014.a.tt
		scope:scheme = { end_scheme = yes }
        scope:target = {
            add_character_modifier = {
                modifier = deviant_boredofwhores_modifier
                days = { 100 110 }
            }
        }
	}
}


#5100 Giving public performance, two women naked, doing the hand shake naked, with feast background
courtesango_deviant_events.5100 = {
	type = character_event
	title = courtesango_deviant_events.5100.t
	desc = courtesango_deviant_events.5100.desc
	theme = deviantscourtesango
    override_background = { reference =	feast }
	left_portrait = {
		character = scope:char_1
		animation = throne_room_cheer_2 
        outfit_tags = { no_clothes }
	}
	right_portrait = {
		character = scope:char_2
		animation = throne_room_cheer_2 
        outfit_tags = { no_clothes }
	}
    lower_right_portrait = {
		character = scope:deviant_go_random_1
		animation = throne_room_applaud_1
	}
    lower_left_portrait = {
		character = scope:deviant_go_random_2
		animation = throne_room_applaud_1
	}
    lower_center_portrait = {
		character = scope:deviant_go_random_3
		animation = throne_room_applaud_1
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { count >= 2 }
        }
        scope:target = {
            any_courtier_or_guest = {
                count >= 3
                OR = {	is_female = no	has_trait = futanari_genetic }
                OR = {	is_female = no	has_trait = futanari_genetic }
                age >= 18
                is_ai = yes
                is_adult = yes
                is_incapable = no
                is_imprisoned = no
            }
         }
    }
    immediate = {
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
                save_scope_as = char_1
            }
            random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
                    NOT = { this = scope:char_1 }
				}
                save_scope_as = char_2
            }
		}
        scope:target = {
            random_courtier_or_guest = {
                limit = {
                    OR = {	is_female = no	has_trait = futanari_genetic }
					age >= 18
					is_ai = yes
					is_adult = yes
					is_incapable = no
					is_imprisoned = no
                }
                save_scope_as = deviant_go_random_1
            }
            if = {
			limit = {
				any_courtier_or_guest = {
                    OR = {	is_female = no	has_trait = futanari_genetic }
					age >= 18
					is_ai = yes
					is_adult = yes
					is_incapable = no
					is_imprisoned = no
					NOT = { this = scope:deviant_go_random_1 }
				}
			}
			random_courtier_or_guest = {
				limit = {
					age >= 18
					OR = {	is_female = no	has_trait = futanari_genetic }
					is_ai = yes
					is_adult = yes
					is_incapable = no
					is_imprisoned = no
					NOT = { this = scope:deviant_go_random_1 }
				}
				save_scope_as = deviant_go_random_2
			}
		}
		if = {
			limit = {
				any_courtier_or_guest = {
					age >= 18
					is_ai = yes
                    OR = {	is_female = no	has_trait = futanari_genetic }
					is_adult = yes
					is_incapable = no
					is_imprisoned = no
					NOT = { this = scope:deviant_go_random_1 }
					NOT = { this = scope:deviant_go_random_2 }
				}
			}
			random_courtier_or_guest = {
				limit = {
					age >= 18
					OR = {	is_female = no	has_trait = futanari_genetic }
					is_ai = yes
                    OR = {	is_female = no	has_trait = futanari_genetic }
					is_adult = yes
					is_incapable = no
					is_imprisoned = no
					NOT = { this = scope:deviant_go_random_1 }
					NOT = { this = scope:deviant_go_random_2 }
				}
				save_scope_as = deviant_go_random_3
			}
		}
        }
        random_list = {
            25 = {
                add_gold = { 1 4 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                    }  
                    scope:char_2 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                    }   
                }
            }
            25 = {
                add_gold = { 1 5 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }  
                    scope:char_2 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5100.a
        custom_tooltip = courtesango_deviant_events.5100.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 1
                }
            }
            25 = {
                add_gold = { 1 3 }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5100.b
        custom_tooltip = courtesango_deviant_events.5100.b.tt
        add_gold = { 1 5 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 1
                }
            }
            25 = {
                add_gold = { 4 10 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5100.c
        custom_tooltip = courtesango_deviant_events.5100.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 2 50 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5100.d
        custom_tooltip = courtesango_deviant_events.5100.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 10 50 }
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}

#5101 giving oral to x guy at his court
courtesango_deviant_events.5101 = {
	type = character_event
	title = courtesango_deviant_events.5101.t
	desc = courtesango_deviant_events.5101.desc
	theme = deviantscourtesango
    override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviant_oral_suck_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_two
        }
		reference = deviant_oral_suck_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_oral_suck_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_oral_suck_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_oral_suck_five
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_oral_suck_six
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_oral_suck_seven
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_oral_suck_eight
	}
    override_background = {
		trigger = { 
             exists = scope:background_nine
        }
		reference = deviant_oralcum_one
	}
    override_background = {
		trigger = { 
             exists = scope:background_ten
        }
		reference = deviant_oralcum_two
	}
    override_background = {
		trigger = { 
             exists = scope:background_eleven
        }
		reference = deviant_oralcum_three
	}
    override_background = {
		trigger = { 
             exists = scope:background_twelve
        }
		reference = deviant_oralcum_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_thirteen
        }
		reference = deviant_oralcum_five
	}

	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { count >= 1 }
        }
    }
    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
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_nine
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_ten
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eleven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_twelve
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_thirteen
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
            save_scope_as = char_1
		    }
        }
        random_list = {
            25 = {
                add_gold = { 1 4 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                    }   
                }
            }
            25 = {
                add_gold = { 1 5 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5101.a
        custom_tooltip = courtesango_deviant_events.5101.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 1
                }
            }
            25 = {
                add_gold = { 1 3 }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5101.b
        custom_tooltip = courtesango_deviant_events.5101.b.tt
        add_gold = { 1 5 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 1
                }
            }
            25 = {
                add_gold = { 4 10 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5101.c
        custom_tooltip = courtesango_deviant_events.5101.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 2 50 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5101.d
        custom_tooltip = courtesango_deviant_events.5101.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 10 50 }
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}
#5102 humiliation sucking balls variant that is more stressful...
courtesango_deviant_events.5102 = {
	type = character_event
	title = courtesango_deviant_events.5102.t
	desc = courtesango_deviant_events.5102.desc
	theme = deviantscourtesango
    override_background = {
		trigger = { 
                exists = scope:background_one
            }
		reference = deviantssuckballs
	}
    override_background = {
		trigger = { 
            exists = scope:background_two
        }
		reference = deviantssuckballs_two
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { count >= 1 }
        }
    }
    immediate = {
        random_list = {
			25 = {
				ROOT = {
					save_scope_as = background_one
				}
			}
			25 = {
				ROOT = {
					save_scope_as = background_two
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
            save_scope_as = char_1
		    }
        }
        random_list = {
            25 = {
                add_gold = { 1 4 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                    }   
                }
                scope:char_1 = {
                    stress_impact = {
                        sadistic = minor_stress_impact_gain
                        lustful = minor_stress_impact_loss
                    }
                }    
            }
            25 = {
                add_gold = { 1 5 }
                scope:char_1 = {
                    stress_impact = {
                        sadistic = minor_stress_impact_gain
                        lustful = minor_stress_impact_loss
                    }
                }  
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5102.a
        custom_tooltip = courtesango_deviant_events.5102.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 1
                }
            }
            25 = {
                add_gold = { 1 3 }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5102.b
        custom_tooltip = courtesango_deviant_events.5102.b.tt
        add_gold = { 1 5 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 1
                }
            }
            25 = {
                add_gold = { 4 10 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5102.c
        custom_tooltip = courtesango_deviant_events.5102.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 2 50 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5102.d
        custom_tooltip = courtesango_deviant_events.5102.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 10 50 }
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}

#5103 anal riding x guy in his court
courtesango_deviant_events.5103 = {
	type = character_event
	title = courtesango_deviant_events.5103.t
	desc = courtesango_deviant_events.5103.desc
	theme = deviantscourtesango
     override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviant_anal_rideontop_four
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviantanalontopservice
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_anal_rideontop_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviantanalontopfrombehind
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_anal_rideontop_five
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_anal_rideontop_six
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_anal_rideontop_seven
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_anal_rideontop_eight
	}
    override_background = {
		trigger = { 
            exists = scope:background_nine
        }
		reference = deviant_analcum_rideontop_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_ten
        }
		reference = deviant_analcum_rideontop_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_eleven
        }
		reference = deviant_analcum_rideontop_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_twelve
        }
		reference = deviant_analcum_rideontop_five
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { count >= 1 }
        }
    }
    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
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_nine
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_ten
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eleven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_twelve
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
            save_scope_as = char_1
		    }
        }
        random_list = {
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                    }   
                }
                scope:char_1 = {
                    stress_impact = {
                        sadistic = minor_stress_impact_gain
                        lustful = minor_stress_impact_loss
                    }
                }    
            }
            25 = {
                add_gold = { 7 15 }
                scope:char_1 = {
                    stress_impact = {
                        sadistic = minor_stress_impact_gain
                        lustful = minor_stress_impact_loss
                    }
                }  
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5103.a
        custom_tooltip = courtesango_deviant_events.5103.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 1
                }
            }
            25 = {
                add_gold = { 1 3 }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5103.b
        custom_tooltip = courtesango_deviant_events.5103.b.tt
        add_gold = { 1 5 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 1
                }
            }
            25 = {
                add_gold = { 4 10 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5103.c
        custom_tooltip = courtesango_deviant_events.5103.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 2 50 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5103.d
        custom_tooltip = courtesango_deviant_events.5103.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 10 50 }
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}

#5104 party gangbang, levels up group service
courtesango_deviant_events.5104 = {
	type = character_event
	title = courtesango_deviant_events.5104.t
	desc = courtesango_deviant_events.5104.desc
	theme = deviantscourtesango
     override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviantgrouptablefuck
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviantgrouptablegrope
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviantanalspitroasthardfuck
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_human_gangbang_fuck_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_blowbang_cumface_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_blowbang_cumface_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_blowbang_cumface_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_human_gangbang_fuck_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_nine
        }
		reference = deviant_human_gangbang_fuck_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_ten
        }
		reference = deviant_human_gangbang_fuck_five
	}
    override_background = {
		trigger = { 
           exists = scope:background_eleven
        }
		reference = deviantgiananalspitroastcum
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { count >= 1 }
        }
    }
    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
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_nine
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_ten
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eleven
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
            save_scope_as = char_1
		    }
        }
        random_list = {
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_warrior_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
                scope:char_1 = {
                    stress_impact = {
                        base = medium_stress_impact_gain
                        sadistic = medium_stress_impact_gain
                        lustful = major_stress_impact_loss
                    }
                    add_prestige = minor_prestige_loss
                    add_piety = minor_piety_loss
                }    
            }
            25 = {
                add_gold = { 4 10 }
                scope:char_1 = {
                    stress_impact = {
                        base = medium_stress_impact_gain
                        sadistic = medium_stress_impact_gain
                        lustful = major_stress_impact_loss
                    }
                    add_prestige = minor_prestige_loss
                    add_piety = minor_piety_loss
                }  
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_warrior_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5104.a
        custom_tooltip = courtesango_deviant_events.5104.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 2
                }
            }
            25 = {
                add_gold = { 5 16 }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5104.b
        custom_tooltip = courtesango_deviant_events.5104.b.tt
        add_gold = { 10 15 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                add_gold = { 10 30 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5104.c
        custom_tooltip = courtesango_deviant_events.5104.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 39 100 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5104.d
        custom_tooltip = courtesango_deviant_events.5104.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 40 100 }
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}
#5105 bondage, levels up BDSM skills
courtesango_deviant_events.5105 = {
	type = character_event
	title = courtesango_deviant_events.5105.t
	desc = courtesango_deviant_events.5105.desc
	theme = deviantscourtesango
     override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviant_bondage_boobjob_cum_one
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviant_bondage_stickinass_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_analcum_pig_bondage_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_bondage_dildofuck_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_bondagepig_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_anal_pig_bondage_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_anal_pig_bondage_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_anal_pig_bondage_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_nine
        }
		reference = deviant_anal_pig_bondage_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_ten
        }
		reference = deviant_dildo_pig_bondage_two
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { count >= 1 }
        }
    }
    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
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_nine
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_ten
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
				}
                save_scope_as = char_1
		    }
        }
        random_list = {
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
                scope:char_1 = {
                    stress_impact = {
                        base = medium_stress_impact_gain
                        sadistic = medium_stress_impact_gain
                        lustful = major_stress_impact_loss
                    }
                    add_prestige = minor_prestige_loss
                    add_piety = minor_piety_loss
                }    
            }
            25 = {
                add_gold = { 4 10 }
                scope:char_1 = {
                    stress_impact = {
                        base = medium_stress_impact_gain
                        sadistic = medium_stress_impact_gain
                        lustful = major_stress_impact_loss
                    }
                    add_prestige = minor_prestige_loss
                    add_piety = minor_piety_loss
                }  
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 4 10 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_warrior_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5105.a
        custom_tooltip = courtesango_deviant_events.5105.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 2
                }
            }
            25 = {
                add_gold = { 5 16 }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5105.b
        custom_tooltip = courtesango_deviant_events.5105.b.tt
        add_gold = { 10 15 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                add_gold = { 10 30 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5105.c
        custom_tooltip = courtesango_deviant_events.5105.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 39 100 }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5105.d
        custom_tooltip = courtesango_deviant_events.5105.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 40 100 }
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}
#5106 sitting on male face pick, levels up BDSM skills
courtesango_deviant_events.5106 = {
	type = character_event
	title = courtesango_deviant_events.5106.t
	desc = courtesango_deviant_events.5106.desc
	theme = deviantscourtesango
     override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviantvaginafacesitlick
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviantvaginafacesitlick_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_anal_rideontop_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_oral_kiss
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviantsvaginaltoppussyjob
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = devianthumiliationpussyspread
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { 
                count >= 1 
                has_trait = sadistic
            }
        }
    }
    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
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    has_trait = sadistic
                }
            save_scope_as = char_1
		    }
        }
        random_list = {
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 8 19 }
                        }
                    }   
                }
                scope:char_1 = {
                    stress_impact = {
                        base = medium_stress_impact_loss
                        sadistic = medium_stress_impact_loss
                        lustful = major_stress_impact_loss
                    }
                }    
            }
            25 = {
                add_gold = { 4 10 }
                scope:char_1 = {
                    stress_impact = {
                        base = medium_stress_impact_loss
                        sadistic = medium_stress_impact_loss
                        lustful = major_stress_impact_loss
                    }
                }  
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 9 17 }
                        }
                    }   
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5106.a
        custom_tooltip = courtesango_deviant_events.5106.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 2
                }
            }
            25 = {
                add_gold = { 5 16 }
                scope:scheme = {
                    change_opportunities = 4
                }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5106.b
        custom_tooltip = courtesango_deviant_events.5106.b.tt
        add_gold = { 10 15 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                add_gold = { 20 40 }
                scope:scheme = {
                    change_opportunities = 3
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5106.c
        custom_tooltip = courtesango_deviant_events.5106.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 39 100 }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5106.d
        custom_tooltip = courtesango_deviant_events.5106.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 40 100 }
                }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}

#5107 2 women serving one man becoming popular
courtesango_deviant_events.5107 = {
	type = character_event
	title = courtesango_deviant_events.5107.t
	desc = courtesango_deviant_events.5107.desc
	theme = deviantscourtesango
     override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviantlineofnudewomen
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviantffmduocockworship
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_double_oral_cum
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_duokiss_cock_tease
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_triple_boobjob
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviants_duo_butt_job
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_watched_blowjob
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_watched_blowjob_two
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { 
                count >= 3 
            }
        }
    }
    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
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    has_trait = sadistic
                }
            save_scope_as = char_1
		    }
            random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
                    NOT = { this = scope:char_1 }
				}
                save_scope_as = char_2
            }
            random_scheme_agent_character = {
				limit = {
                    scope:scheme = {
					    any_scheme_agent_character = { count >= 1 }
                    }
                    NOT = { this = scope:char_1 }
                    NOT = { this = scope:char_2 }
				}
                save_scope_as = char_3
            }
        }
        random_list = {
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 1 19 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_warrior_maiden_skill
                            value = { 1 19 }
                        }
                    }   
                    scope:char_2 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 1 19 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_warrior_maiden_skill
                            value = { 1 19 }
                        }
                    } 
                    scope:char_3 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 1 8 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_domina_maiden_skill
                            value = { 1 19 }
                        }
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_warrior_maiden_skill
                            value = { 1 19 }
                        }
                    } 
                }   
            }
            25 = {
                add_gold = { 4 10 } 
                hidden_effect = {
                    scope:char_1 = {
                        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_domina_maiden_skill
                            value = { 1 7 }
                        }
                    }  
                    scope:char_2 = {
                        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_domina_maiden_skill
                            value = { 1 7 }
                        }
                    } 
                    scope:char_3 = {
                        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_domina_maiden_skill
                            value = { 1 7 }
                        }
                    }  
                }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.5107.a
        custom_tooltip = courtesango_deviant_events.5107.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 2
                }
            }
            25 = {
                add_gold = { 5 16 }
                scope:scheme = {
                    change_opportunities = 3
                }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5107.b
        custom_tooltip = courtesango_deviant_events.5107.b.tt
        add_gold = { 10 15 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                add_gold = { 10 30 }
                scope:scheme = {
                    change_opportunities = 4
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5107.c
        custom_tooltip = courtesango_deviant_events.5107.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 39 100 }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5107.d
        custom_tooltip = courtesango_deviant_events.5107.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 40 100 }
                }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}



#5108 has been fucking vaginal
courtesango_deviant_events.5108 = {
	type = character_event
	title = courtesango_deviant_events.5108.t
	desc = courtesango_deviant_events.5108.desc
	theme = deviantscourtesango
     override_background = {
		trigger = { 
            exists = scope:background_one
        }
		reference = deviant_kissing_anotherman_vaginal
	}
    override_background = {
		trigger = { 
             exists = scope:background_two
        }
		reference = deviant_vaginal_fuck_cum_one
	}
    override_background = {
		trigger = { 
            exists = scope:background_three
        }
		reference = deviant_vaginal_fuck_cum_two
	}
    override_background = {
		trigger = { 
            exists = scope:background_four
        }
		reference = deviant_vaginal_fuck_cum_three
	}
    override_background = {
		trigger = { 
            exists = scope:background_five
        }
		reference = deviant_vaginal_fuck_cum_four
	}
    override_background = {
		trigger = { 
            exists = scope:background_six
        }
		reference = deviant_vaginal_fuck_cum_five
	}
    override_background = {
		trigger = { 
            exists = scope:background_seven
        }
		reference = deviant_vaginal_fuck_cum_six
	}
    override_background = {
		trigger = { 
            exists = scope:background_eight
        }
		reference = deviant_vaginal_fuck_cum_seven
	}
    override_background = {
		trigger = { 
            exists = scope:background_nine
        }
		reference = deviant_vaginal_fuck_cum_eight
	}
    override_background = {
		trigger = { 
            exists = scope:background_ten
        }
		reference = deviant_vaginal_fuck_cum_nine
	}
	widget = {
		gui = "event_window_widget_scheme"
		container = "custom_widgets_container"
	}
    trigger = {
        scope:scheme = {
            any_scheme_agent_character = { 
                count >= 1 
                has_trait = lustful
            }
        }
        scope:target = {
            any_courtier_or_guest = {
                count >= 3
                OR = {	is_female = no	has_trait = futanari_genetic }
                OR = {	is_female = no	has_trait = futanari_genetic }
                age >= 18
                is_ai = yes
                is_adult = yes
                is_incapable = no
                is_imprisoned = no
            }
         }
    }
    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
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_seven
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_eight
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_nine
				}
			}
            25 = {
				ROOT = {
					save_scope_as = background_ten
				}
			}
		}
        scope:scheme = {
			random_scheme_agent_character = {
				limit = {
                    has_trait = lustful
                }
            save_scope_as = char_1
		    }
            scope:target = {
                random_courtier_or_guest = {
                    limit = {
                        OR = {	is_female = no	has_trait = futanari_genetic }
                        age >= 18
                        is_ai = yes
                        is_adult = yes
                        is_incapable = no
                        is_imprisoned = no
                    }
                    save_scope_as = deviant_go_random_1
                }
                if = {
                    limit = {
                        any_courtier_or_guest = {
                            OR = {	is_female = no	has_trait = futanari_genetic }
                            age >= 18
                            is_ai = yes
                            is_adult = yes
                            is_incapable = no
                            is_imprisoned = no
                            NOT = { this = scope:deviant_go_random_1 }
                        }
                    }
                    random_courtier_or_guest = {
                        limit = {
                            age >= 18
                            OR = {	is_female = no	has_trait = futanari_genetic }
                            is_ai = yes
                            is_adult = yes
                            is_incapable = no
                            is_imprisoned = no
                            NOT = { this = scope:deviant_go_random_1 }
                        }
                        save_scope_as = deviant_go_random_2
                    }
                }
                if = {
                    limit = {
                        any_courtier_or_guest = {
                            age >= 18
                            is_ai = yes
                            OR = {	is_female = no	has_trait = futanari_genetic }
                            is_adult = yes
                            is_incapable = no
                            is_imprisoned = no
                            NOT = { this = scope:deviant_go_random_1 }
                            NOT = { this = scope:deviant_go_random_2 }
                        }
                    }
                    random_courtier_or_guest = {
                        limit = {
                            age >= 18
                            OR = {	is_female = no	has_trait = futanari_genetic }
                            is_ai = yes
                            OR = {	is_female = no	has_trait = futanari_genetic }
                            is_adult = yes
                            is_incapable = no
                            is_imprisoned = no
                            NOT = { this = scope:deviant_go_random_1 }
                            NOT = { this = scope:deviant_go_random_2 }
                        }
                        save_scope_as = deviant_go_random_3
                    }
                }
            }    
        }    
        random_list = {
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
                scope:char_1 = {
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_1
                        PREGNANCY_CHANCE = pregnancy_chance
                    }
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_2
                        PREGNANCY_CHANCE = pregnancy_chance
                    }
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_3
                        PREGNANCY_CHANCE = pregnancy_chance
                    }
                }    
            }
            25 = {
                add_gold = { 4 10 }
                hidden_effect = {
                    scope:char_1 = {
                        add_trait_xp = {
                            trait = deviants_slut_hired_maiden
                            track = deviants_dancer_maiden_skill
                            value = { 4 10 }
                        }
                    }   
                }
                scope:char_1 = {
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_1
                        PREGNANCY_CHANCE = pregnancy_chance
                    }
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_2
                        PREGNANCY_CHANCE = pregnancy_chance
                    }
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_3
                        PREGNANCY_CHANCE = pregnancy_chance
                    }
                }   
            }
        }
        scope:char_1 = {
            add_prestige = minor_prestige_loss
            add_piety = minor_piety_loss
            if = {
                limit = {
                    NOT = { has_trait = deviant }
                }
                add_trait = deviant
            }
            if = {
                limit = {
                    NOT = { has_trait = fornicator }
                }
                add_trait = fornicator
            }
        }    
    }

	#
	option = {
		name = courtesango_deviant_events.5108.a
        custom_tooltip = courtesango_deviant_events.5108.a.tt
        random_list = {
            25 = {
                scope:scheme = {
                    change_opportunities = 2
                }
            }
            25 = {
                add_gold = { 5 16 }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
	}

	#
	option = {
		name = courtesango_deviant_events.5108.b
        custom_tooltip = courtesango_deviant_events.5108.b.tt
        add_gold = { 10 15 }
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                add_gold = { 10 30 }
                scope:scheme = {
                    change_opportunities = 4
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_administrative
        }
		name = courtesango_deviant_events.5108.c
        custom_tooltip = courtesango_deviant_events.5108.c.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                change_influence = { 39 100 }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
    option = {
        trigger = {
            government_has_flag = government_is_landless_adventurer
        }
		name = courtesango_deviant_events.5108.d
        custom_tooltip = courtesango_deviant_events.5108.d.tt
        random_list = {
            25 = {
                scope:scheme = {
                    add_scheme_breach = 2
                }
            }
            25 = {
                domicile = {
                    change_provisions = { 40 100 }
                }
                scope:scheme = {
                    change_opportunities = 2
                }
            }
        }
        if = {
            limit = { 
                scope:scheme = {
                    scheme_breaches >= scheme_breaches_about_to_hit_limit_value 
                }
            }
            trigger_event = courtesango_deviant_events.5009
        }
	}
}

#5109
#5110 2 women serving the lord
#5111 3 women serving the lord

#6000 hiring courtesan event
courtesango_deviant_events.6000 = { 
	type = character_event
	title = courtesango_deviant_events.6000.t
	desc = courtesango_deviant_events.6000.a.desc
	override_background = { reference =	study }
	theme = deviantscourtesango
	right_portrait = {
		character = root
		animation = scheme
	}
    left_portrait = {
		character = scope:recipient
		animation = throne_room_conversation_1
	}

    immediate = {

	}
	# 
	option = {
		name = courtesango_deviant_events.6000.a
		custom_tooltip = courtesango_deviant_events.6000.a.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:recipient
			# Success: win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.6000.awin.tt
				}

				scope:recipient = {
                    add_trait = deviants_slut_hired_maiden
				}
                scope:actor = {
			    send_interface_toast = {
                        title = hire_a_courtesan_interaction_notification
                        left_icon = scope:actor					
                        right_icon = scope:recipient
                    }
                }
			}
			# Failure, lose
			70 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.6000.alose.tt
				}	
                reverse_add_opinion = {
                    target = scope:recipient
                    modifier = disgusted_opinion
                    opinion = -30
                }
                scope:recipient = {
                    add_character_modifier = {
                        modifier = refused_to_be_whore_modifier
                        days = { 100 500 }
                    }
                }    
            }
	    }	
    }    
    # 
	option = {
        trigger = {
            scope:recipient = {
                OR = {
                    has_trait = lustful
                    has_trait = sadistic
                }   
            }     
        }
		name = courtesango_deviant_events.6000.b
		custom_tooltip = courtesango_deviant_events.6000.b.tt
        pay_short_term_gold = {
            target = scope:recipient
            gold = minor_gold_value
        }
        scope:recipient = {
            add_trait = deviants_slut_hired_maiden
        }
        send_interface_toast = {
            title = hire_a_courtesan_interaction_notification
            left_icon = scope:actor					
            right_icon = scope:recipient
        }
	}		
    # never mind
	option = {
		name = courtesango_deviant_events.6000.c
		custom_tooltip = courtesango_deviant_events.6000.c.tt
	}
}

courtesango_deviant_events.6100 = {
	hidden = yes

	immediate = {
        scope:recipient = { add_visiting_courtier = scope:secondary_recipient }
		# Set up their return.
		scope:secondary_recipient = {
			save_scope_as = visitor
            add_character_flag = sent_deviant_courtesan
			liege = {
				trigger_event = {
					id = courtesango_deviant_events.6101
					years = { 2 10 }
				}
            }    
		}
	}
}

courtesango_deviant_events.6101 = {
	hidden = yes

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

	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 = { scope:visitor = { return_to_court = yes } }
	}

	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 }
			}
            remove_character_flag = sent_deviant_courtesan
			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 = courtesango_deviant_events.6102
				# 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 = courtesango_deviant_events.6102
			}
			#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 
		}
	}
}

#courtesan returns
courtesango_deviant_events.6102 = {
	type = character_event
	title = courtesango_deviant_events.6102.t
	desc = {
		desc = courtesango_deviant_events.6102.desc.a
	}
	theme = deviantscourtesango
	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:visitor
		animation = throne_room_kneel_1
	}
	override_background = { reference = study }

	immediate = {
		scope:visitor = {
            random_list = {
                80 = {

                }
                25 = {
                    save_scope_value_as = {
                        name = skill_gain
                        value = {
                            integer_range = {
                                min = 2
                                max = 4
                            }
                            if = {
                                limit = { has_trait = diligent }
                                add = 1
                            }
                            else_if = {
                                limit = { has_trait = lazy }
                                add = -1
                            }
                        }
                    }
                    # Now add it to the highest skill that scope:visitor has.
                    switch = {
                        trigger = highest_skill
                        diplomacy = { add_diplomacy_skill = scope:skill_gain }
                        martial = { add_martial_skill = scope:skill_gain }
                        stewardship = { add_stewardship_skill = scope:skill_gain }
                        intrigue = { add_intrigue_skill = scope:skill_gain }
                        learning = { add_learning_skill = scope:skill_gain }
                    }
                }

            }
			return_to_court = yes
		}
        random_list = {
            25 = {
                trigger = {
                    is_landless_adventurer = yes
                }
                domicile = {
                    change_provisions = { 10 400 }
                }
                add_gold = { 1 100 }
            }
            25 = {
                trigger = {
                    government_has_flag = government_is_administrative
                }
                add_gold = { 1 100 }
                change_influence = { 10 200 }
                
            }
            25 = {
                trigger = {
                   NOT = { government_has_flag = government_is_administrative }
                   is_landless_adventurer = no
                }
                add_gold = { 1 100 }
            }
            10 = {
                add_gold = { 10 100 }
            }
        }
	}
    #Good, now go back and get more
    option = {
		name = courtesango_deviant_events.6102.a
        scope:host = { add_visiting_courtier = scope:visitor }
		# Set up their return.
		scope:visitor = {
			save_scope_as = visitor
            add_character_flag = sent_deviant_courtesan
			liege = {
				trigger_event = {
					id = courtesango_deviant_events.6101
					years = { 2 10 }
				}
            }    
		}

		# The AI should always just uncritically take people back.
		ai_chance = { base = 100 }
	}

	# Welcome, welcome!
	option = {
		name = courtesango_deviant_events.6102.b

		# The AI should always just uncritically take people back.
		ai_chance = { base = 100 }
	}
	
	# You are no longer welcome with us.
	option = {
		name = courtesango_deviant_events.6102.c
		scope:visitor = { 
            remove_trait = deviants_slut_hired_maiden
            select_and_move_to_pool_effect = yes 
        }
		# The AI should never take this option.
		ai_chance = { base = 0 }
	}
}

#ranodm pimp events
courtesango_deviant_events.6200 = {
	type = character_event
	title = courtesango_deviant_events.6200.t
	desc = courtesango_deviant_events.6200.desc
	theme = deviantscourtesango
    override_background = {
        reference = deviant_thighjob_cum_1
    }
	lower_right_portrait = {
		character = root
		animation = scheme
	}
	lower_left_portrait = {
		character = scope:deviant_go_random_1
		animation = steward
	}
    immediate = {
        add_gold = { tiny_gold_value minor_gold_value }
        scope:deviant_go_random_1 = { 
            hidden_effect = {
                add_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_dancer_maiden_skill
                    value = { 1 8 }
                }
            }    
        } 
        hidden_effect = {
            add_trait_xp = {
                trait = deviants_hiredcampslut
                track = pimpslutfame
                value = { 2 5 }
            }
        }
    }

	#
	option = {
		name = courtesango_deviant_events.6200.a
        custom_tooltip = courtesango_deviant_events.6200.a.tt
        scope:deviant_go_random_1 = { 
            add_opinion = {
                target = root
                modifier = amused_opinion
                opinion = { 5 10 }
            }
        } 
	}
    #
	option = {
		name = courtesango_deviant_events.6200.b
        custom_tooltip = courtesango_deviant_events.6200.b.tt
        scope:deviant_go_random_1 = { 
            add_opinion = {
                target = root
                modifier = disappointed_opinion
                opinion = { -5 -10 }
            }
        } 
	}
}

#inexperinced whore wanted
courtesango_deviant_events.6210 = {
	type = character_event
	title = courtesango_deviant_events.6210.t
	desc = courtesango_deviant_events.6210.desc
	theme = deviantscourtesango
    override_background = {
        reference = deviantbasicneckhold
    }
    immediate = {
        add_gold = { minor_gold_value medium_gold_value } 
    }

	#
	option = {
		name = courtesango_deviant_events.6210.a
        custom_tooltip = courtesango_deviant_events.6210.a.tt
        scope:deviant_go_random_1 = { 
            hidden_effect = {
                add_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_domina_maiden_skill
                    value = { 10 20 }
                }
            }
        } 
        random_list = {
            50 = {
            }
            50 = {
                scope:deviant_go_random_1 = { 
                    add_opinion = {
                        target = root
                        modifier = hate_opinion
                        opinion = { -10 -30 }
                    }
                } 
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = scarred }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = scarred
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = ill }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = ill
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = wounded_1 }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = wounded_1
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = depressed_1 }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = depressed_1
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = possessed_1 }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = possessed_1
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = deviant }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = deviant
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = lustful }
                    }
                }
                scope:deviant_go_random_1 = { 
                    if = {
                        limit = { has_trait = chaste }
                        remove_trait = chaste
                    }
                    else_if = {
                        limit = { has_trait = shy }
                        remove_trait = shy
                    }
                    else_if = {
                        limit = { has_trait = humble }
                        remove_trait = humble
                    }
                    else_if = {
                        limit = { has_trait = wrathful }
                        remove_trait = wrathful
                    }
                    else_if = {
                        limit = { has_trait = gregarious }
                        remove_trait = gregarious
                    }
                    else_if = {
                        limit = { has_trait = calm }
                        remove_trait = calm
                    }
                    else_if = {
                        limit = { has_trait = content }
                        remove_trait = content
                    }
                    else_if = {
                        limit = { has_trait = arrogant }
                        remove_trait = arrogant
                    }
                    else_if = {
                        limit = { has_trait = cynical }
                        remove_trait = cynical
                    }
                    else_if = {
                        limit = { has_trait = vengeful }
                        remove_trait = vengeful
                    }
                    else_if = {
                        limit = { has_trait = generous }
                        remove_trait = generous
                    }
                    else_if = {
                        limit = { has_trait = just }
                        remove_trait = just
                    }
                    else_if = {
                        limit = { has_trait = honest }
                        remove_trait = honest
                    }
                    else_if = {
                        limit = { has_trait = patient }
                        remove_trait = patient
                    }
                    else_if = {
                        limit = { has_trait = temperate }
                        remove_trait = temperate
                    }
                    else_if = {
                        limit = { has_trait = forgiving }
                        remove_trait = forgiving
                    }
                    else_if = {
                        limit = { has_trait = zealous }
                        remove_trait = zealous
                    }
                    else_if = {
                        limit = { has_trait = diligent }
                        remove_trait = diligent
                    }
                    else_if = {
                        limit = { has_trait = brave }
                        remove_trait = brave
                    }
                    else_if = {
                        limit = { has_trait = trusting }
                        remove_trait = trusting
                    }
                    else_if = {
                        limit = { has_trait = compassionate }
                        remove_trait = compassionate
                    }
                    else_if = {
                        limit = { has_trait = callous }
                        remove_trait = callous
                    }
                    else_if = {
                        limit = { has_trait = impatient }
                        remove_trait = impatient
                    }
                    else_if = {
                        limit = { has_trait = gluttonous }
                        remove_trait = gluttonous
                    }
                    else_if = {
                        limit = { has_trait = lazy }
                        remove_trait = lazy
                    }
                    else_if = {
                        limit = { has_trait = deceitful }
                        remove_trait = deceitful
                    }
                    else_if = {
                        limit = { has_trait = craven }
                        remove_trait = craven
                    }
                    else_if = {
                        limit = { has_trait = arbitrary }
                        remove_trait = arbitrary
                    }
                    else_if = {
                        limit = { has_trait = stubborn }
                        remove_trait = stubborn
                    }
                    else_if = {
                        limit = { has_trait = fickle }
                        remove_trait = fickle
                    }
                    else_if = {
                        limit = { has_trait = paranoid }
                        remove_trait = paranoid
                    }
                    else_if = {
                        limit = { has_trait = ambitious }
                        remove_trait = ambitious
                    }
                    else_if = {
                        limit = { has_trait = greedy }
                        remove_trait = greedy
                    }
                    add_trait_force_tooltip = lustful
                }
                
            }
            25 = {
                scope:deviant_go_random_1 = { 
                    death = {
                        death_reason = death_vanished
                    }
                }    
            }
        }
	}
}

#inexperinced lustful whore wanted
courtesango_deviant_events.6211 = {
	type = character_event
	title = courtesango_deviant_events.6211.t
	desc = courtesango_deviant_events.6211.desc
	theme = deviantscourtesango
    override_background = {
        reference = deviant_present_wet_pussy_one
    }
    immediate = {
        add_gold = { minor_gold_value medium_gold_value } 
        random_courtier = {
			save_scope_as = deviant_go_random_1
			limit = {
				has_trait = deviants_slut_hired_maiden
				has_character_modifier = deviants_courtesan_whoring_commoners_modifier
				is_incapable = no
				is_imprisoned = no
                age < 21
                has_trait = lustful
                has_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_dancer_maiden_skill
                    value < 5
                }
                has_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_warrior_maiden_skill
                    value < 5
                }
                has_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_domina_maiden_skill
                    value < 5
                }
                has_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_religous_maiden_skill
                    value < 5
                }
			}
		}
    }

	#
	option = {
		name = courtesango_deviant_events.6211.a
        custom_tooltip = courtesango_deviant_events.6211.a.tt
        scope:deviant_go_random_1 = { 
            hidden_effect = {
                add_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_domina_maiden_skill
                    value = { 20 30 }
                }
            }
        } 
        random_list = {
            50 = {
            }
            50 = {
                scope:deviant_go_random_1 = { 
                    add_opinion = {
                        target = root
                        modifier = grateful_opinion
                        opinion = { 10 30 }
                    }
                } 
            }
            25 = {
                add_gold = { minor_gold_value medium_gold_value } 
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = ill }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = ill
                }
                
            }
            100 = {
                scope:deviant_go_random_1 = { 
                    rakish_brothel_night_effect = yes
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = depressed_1 }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = depressed_1
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = seducer }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = seducer
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        is_deviant_trigger = no
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = deviant
                }
                
            }
            25 = {
                scope:deviant_go_random_1 = { 
                    death = {
                        death_reason = death_vanished
                    }
                }    
            }
        }
	}
}


#zealous whore wanted
courtesango_deviant_events.6212 = {
	type = character_event
	title = courtesango_deviant_events.6212.t
	desc = courtesango_deviant_events.6212.desc
	theme = deviantscourtesango
    override_background = {
        reference = deviantcourtesanvaginalmissionaryfuckcum
    }
    immediate = {
        add_gold = { minor_gold_value medium_gold_value } 
        random_courtier = {
			save_scope_as = deviant_go_random_1
			limit = {
				has_trait = deviants_slut_hired_maiden
				has_character_modifier = deviants_courtesan_whoring_commoners_modifier
				is_incapable = no
				is_imprisoned = no
                age < 30
                NOT = { has_trait = lustful }
                has_trait = zealous
			}
		}
    }

	#
	option = {
		name = courtesango_deviant_events.6212.a
        custom_tooltip = courtesango_deviant_events.6212.a.tt
        scope:deviant_go_random_1 = { 
            hidden_effect = {
                add_trait_xp = {
                    trait = deviants_slut_hired_maiden
                    track = deviants_religous_maiden_skill
                    value = { 10 20 }
                }
            }
        } 
        random_list = {
            50 = {
            }
            50 = {
                scope:deviant_go_random_1 = { 
                    add_opinion = {
                        target = root
                        modifier = hate_opinion
                        opinion = { -10 -30 }
                    }
                } 
            }
            25 = {
                add_gold = { minor_gold_value medium_gold_value } 
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = ill }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = ill
                }
                
            }
            100 = {
                scope:deviant_go_random_1 = { 
                    rakish_brothel_night_effect = yes
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_trait = depressed_1 }
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = depressed_1
                }
                
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        NOT = { has_relation_grudge = ROOT }
                    }
                }
                scope:deviant_go_random_1 = { 
                    set_relation_grudge = {
                        reason = grudge_pushedtoprostitution_desc
                        target = ROOT
                    }
                }    
            }
            25 = {
                trigger = {
                    scope:deviant_go_random_1 = { 
                        is_deviant_trigger = no
                    }
                }
                scope:deviant_go_random_1 = { 
                    add_trait = deviant
                }
                
            }
            25 = {
                scope:deviant_go_random_1 = { 
                    death = {
                        death_reason = death_vanished
                    }
                }    
            }
        }
	}
}

#8000 mechant slut events, dropped bound in public
courtesango_deviant_events.8000 = { 
	type = character_event
	title = courtesango_deviant_events.8000.t
	desc = courtesango_deviant_events.8000.desc
	override_background = { reference =	deviant_bondagepig_two }
	theme = deviantscourtesango  
    cooldown = { years = 5 }
    trigger = {
		is_landless_adventurer = yes
		has_trait_xp = {
			trait = deviant_courtesan_slut
			track = deviant_courtesan_merchant_connections
			value >= 10
		}
	}
	option = {
		name = courtesango_deviant_events.8000.a
		custom_tooltip = courtesango_deviant_events.8000.a.tt 
        trigger_event = courtesango_deviant_events.8010
	}				
}

courtesango_deviant_events.8010 = { 
	type = character_event
	title = courtesango_deviant_events.8010.t
	desc = courtesango_deviant_events.8010.desc
	override_background = { reference =	deviant_bondagepig_two }
	theme = deviantscourtesango  
	option = {
		name = courtesango_deviant_events.8010.a
		custom_tooltip = courtesango_deviant_events.8010.a.tt 
        duel = {
            skill = prowess
            value = 20
            40 = {
                compare_modifier = {
                        value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = courtesango_deviant_events.8010.awin.tt
                }
                trigger_event = courtesango_deviant_events.8011
            }
            60 = {
                compare_modifier = {
                    value = scope:duel_value
                    multiplier = -3.5
                    min = -49
                }
                custom_tooltip = {
                    text = courtesango_deviant_events.8010.alose.tt
                }
                trigger_event = courtesango_deviant_events.8012
            }
        }
	}
    option = {
		name = courtesango_deviant_events.8010.b
		custom_tooltip = courtesango_deviant_events.8010.b.tt 
        
	}					
}

courtesango_deviant_events.8011 = { 
	type = character_event
	title = courtesango_deviant_events.8011.t
	desc = courtesango_deviant_events.8011.desc
	override_background = { reference =	wilderness }
	theme = deviantscourtesango  
    right_portrait = {
		character = root
		animation = steward
        outfit_tags = { no_clothes }
	}
    option = {
		name = courtesango_deviant_events.8011.a
		custom_tooltip = courtesango_deviant_events.8011.a.tt 
        add_gold = medium_gold_value
        add_prestige = minor_prestige_loss
	}					
}

courtesango_deviant_events.8012 = { 
	type = character_event
	title = courtesango_deviant_events.8012.t
	desc = courtesango_deviant_events.8012.desc
	override_background = { reference =	deviant_courtesan_anal_basic_three }
	theme = deviantscourtesango  
	option = {
		name = courtesango_deviant_events.8012.a
		custom_tooltip = courtesango_deviant_events.8012.a.tt 
        duel = {
            skills = { diplomacy intrigue }
            value = 15
            50 = {
                compare_modifier = {
                        value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = courtesango_deviant_events.8012.awin.tt
                }
                trigger_event = courtesango_deviant_events.8013
            }
            50 = {
                compare_modifier = {
                    value = scope:duel_value
                    multiplier = -3.5
                    min = -49
                }
                custom_tooltip = {
                    text = courtesango_deviant_events.8012.alose.tt
                }
                trigger_event = courtesango_deviant_events.8014
            }
        }
	}
    option = {
		name = courtesango_deviant_events.8012.b
		custom_tooltip = courtesango_deviant_events.8012.b.tt 
        
	}					
}

courtesango_deviant_events.8013 = { 
	type = character_event
	title = courtesango_deviant_events.8013.t
	desc = courtesango_deviant_events.8013.desc
	override_background = { reference =	deviantanalontopservicecum }
	theme = deviantscourtesango  
    option = {
		name = courtesango_deviant_events.8013.a
		custom_tooltip = courtesango_deviant_events.8013.a.tt 
        add_gold = minor_gold_value
	}					
}

courtesango_deviant_events.8014 = { 
	type = character_event
	title = courtesango_deviant_events.8014.t
	desc = courtesango_deviant_events.8014.desc
	override_background = { reference =	deviant_courtesan_anal_basic_two }
	theme = deviantscourtesango  
	option = {
		name = courtesango_deviant_events.8014.a
		custom_tooltip = courtesango_deviant_events.8014.a.tt 
        duel = {
            skill = diplomacy
            value = 10
            40 = {
                compare_modifier = {
                        value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = courtesango_deviant_events.8014.awin.tt
                }
            }
            60 = {
                compare_modifier = {
                    value = scope:duel_value
                    multiplier = -3.5
                    min = -49
                }
                custom_tooltip = {
                    text = courtesango_deviant_events.8014.alose.tt
                }
                trigger_event = courtesango_deviant_events.8015
            }
        }
	}				
}

courtesango_deviant_events.8015 = { 
	type = character_event
	title = courtesango_deviant_events.8015.t
	desc = courtesango_deviant_events.8015.desc
	override_background = { reference =	deviants_rope_bondage_one }
	theme = deviantscourtesango  
    option = {
		name = courtesango_deviant_events.8015.a
		custom_tooltip = courtesango_deviant_events.8015.a.tt 
        stress_impact = {
            base = medium_stress_impact_gain
            lustful = medium_stress_impact_gain
        }
	}					
}

#bondage bound bad time, zealots storm the inn with ill repute...
courtesango_deviant_events.8100 = { 
	type = character_event
	title = courtesango_deviant_events.8100.t
	desc = courtesango_deviant_events.8100.desc
	override_background = { reference =	deviant_bondage_waiting_six }
    cooldown = { years = 5 }
	theme = deviantscourtesango  
    trigger = {
        has_trait_xp = {
			trait = deviant_courtesan_slut
			track = deviant_courtesan_merchant_connections
			value >= 40
		}
    }
    immediate = {
        stress_impact = {
            base = minor_stress_gain
            greedy = minor_stress_gain
        }
    }
    option = {
		name = courtesango_deviant_events.8100.a
		custom_tooltip = courtesango_deviant_events.8100.a.tt 
        duel = {
			skills = { prowess intrigue }
			value = 15
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.8100.aw.tt
				}	
                trigger_event = courtesango_deviant_events.8101
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.8100.al.tt
				}	
                trigger_event = courtesango_deviant_events.8110	
			}
		}
	}			
    option = {
		name = courtesango_deviant_events.8100.b
		custom_tooltip = courtesango_deviant_events.8100.b.tt 
        trigger_event = courtesango_deviant_events.8110	
	}	
}

#8101 succeeded, can try to loot stuff before escape
courtesango_deviant_events.8101 = { 
	type = character_event
	title = courtesango_deviant_events.8101.t
	desc = courtesango_deviant_events.8101.desc
	override_background = { reference =	deviantgoorgy }
	theme = deviantscourtesango  
    right_portrait = {
		character = root
		animation = shock
        outfit_tags = { no_clothes }
	}
    option = {
		name = courtesango_deviant_events.8101.a
		custom_tooltip = courtesango_deviant_events.8101.a.tt 
        duel = {
			skill = intrigue
			value = 20
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = courtesango_deviant_events.8101.aw.tt
				}	
                random_list = {
                    20 = {
                        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 = {
                        add_gold = { 1 2 }
                    }
                    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
                        }
                    }
                    20 = {
                    }
                    30 = {
                        add_gold = { 20 50 }
                    }
                    30 = {
                        stress_impact = {
                            base = minor_stress_gain
                            greedy = minor_stress_gain
                        }
                    }	
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = courtesango_deviant_events.8101.al.tt
				}	
                trigger_event = courtesango_deviant_events.8110	
			}
		}
	}			
    option = {
		name = courtesango_deviant_events.8101.b
		custom_tooltip = courtesango_deviant_events.8101.b.tt 
        stress_impact = {
            base = minor_stress_gain
            greedy = minor_stress_gain
        }
	}		
}

#8110 fail and get mob capture you, along with other women, who are being judged, they think what to do with you, offer to repent
courtesango_deviant_events.8110 = { 
	type = character_event
	title = courtesango_deviant_events.8110.t
	desc = courtesango_deviant_events.8110.desc
	override_background = { reference =	deviant_whore_trial_1 }
	theme = deviantscourtesango  
    immediate = {
        stress_impact = {
            base = minor_stress_gain
        }
    }
    option = {
		name = courtesango_deviant_events.8110.a
		custom_tooltip = courtesango_deviant_events.8110.a.tt 
        trigger_event = courtesango_deviant_events.8112	
	}			
    option = {
		name = courtesango_deviant_events.8110.b
		custom_tooltip = courtesango_deviant_events.8110.b.tt 
        remove_short_term_gold = major_gold_value
	}	
    option = {
        trigger = {
            is_landed = yes
        }
		name = courtesango_deviant_events.8110.c
		custom_tooltip = courtesango_deviant_events.8110.c.tt 
        trigger_event = courtesango_deviant_events.8111	
	}
    option = {
		name = courtesango_deviant_events.8110.d
		custom_tooltip = courtesango_deviant_events.8110.d.tt 
        random_list = {
            50 = {
            }
            25 = {
                trigger = {
                    NOT = { has_trait = scarred }
                }
                    add_trait = scarred
            }
            25 = {
                trigger = {
                        NOT = { has_trait = ill }
                }
                add_trait = ill
                
            }
            25 = {
                trigger = {
                    NOT = { has_trait = wounded_1 }
                }
                add_trait = wounded_1
                
            }
            25 = {
                trigger = {
                    NOT = { has_trait = depressed_1 }
                }
                add_trait = depressed_1
                
            }
            25 = {
                trigger = {
                    NOT = { has_trait = vengeful }
                }
                    if = {
                        limit = { has_trait = forgiving }
                        remove_trait = forgiving
                    }
                    else_if = {
                        limit = { has_trait = shy }
                        remove_trait = shy
                    }
                    else_if = {
                        limit = { has_trait = humble }
                        remove_trait = humble
                    }
                    else_if = {
                        limit = { has_trait = wrathful }
                        remove_trait = wrathful
                    }
                    else_if = {
                        limit = { has_trait = gregarious }
                        remove_trait = gregarious
                    }
                    else_if = {
                        limit = { has_trait = calm }
                        remove_trait = calm
                    }
                    else_if = {
                        limit = { has_trait = content }
                        remove_trait = content
                    }
                    else_if = {
                        limit = { has_trait = arrogant }
                        remove_trait = arrogant
                    }
                    else_if = {
                        limit = { has_trait = cynical }
                        remove_trait = cynical
                    }
                    else_if = {
                        limit = { has_trait = vengeful }
                        remove_trait = vengeful
                    }
                    else_if = {
                        limit = { has_trait = generous }
                        remove_trait = generous
                    }
                    else_if = {
                        limit = { has_trait = just }
                        remove_trait = just
                    }
                    else_if = {
                        limit = { has_trait = honest }
                        remove_trait = honest
                    }
                    else_if = {
                        limit = { has_trait = patient }
                        remove_trait = patient
                    }
                    else_if = {
                        limit = { has_trait = temperate }
                        remove_trait = temperate
                    }
                    else_if = {
                        limit = { has_trait = forgiving }
                        remove_trait = forgiving
                    }
                    else_if = {
                        limit = { has_trait = zealous }
                        remove_trait = zealous
                    }
                    else_if = {
                        limit = { has_trait = diligent }
                        remove_trait = diligent
                    }
                    else_if = {
                        limit = { has_trait = brave }
                        remove_trait = brave
                    }
                    else_if = {
                        limit = { has_trait = trusting }
                        remove_trait = trusting
                    }
                    else_if = {
                        limit = { has_trait = compassionate }
                        remove_trait = compassionate
                    }
                    else_if = {
                        limit = { has_trait = callous }
                        remove_trait = callous
                    }
                    else_if = {
                        limit = { has_trait = impatient }
                        remove_trait = impatient
                    }
                    else_if = {
                        limit = { has_trait = gluttonous }
                        remove_trait = gluttonous
                    }
                    else_if = {
                        limit = { has_trait = lazy }
                        remove_trait = lazy
                    }
                    else_if = {
                        limit = { has_trait = deceitful }
                        remove_trait = deceitful
                    }
                    else_if = {
                        limit = { has_trait = craven }
                        remove_trait = craven
                    }
                    else_if = {
                        limit = { has_trait = arbitrary }
                        remove_trait = arbitrary
                    }
                    else_if = {
                        limit = { has_trait = stubborn }
                        remove_trait = stubborn
                    }
                    else_if = {
                        limit = { has_trait = fickle }
                        remove_trait = fickle
                    }
                    else_if = {
                        limit = { has_trait = paranoid }
                        remove_trait = paranoid
                    }
                    else_if = {
                        limit = { has_trait = ambitious }
                        remove_trait = ambitious
                    }
                    else_if = {
                        limit = { has_trait = greedy }
                        remove_trait = greedy
                    }
                    add_trait_force_tooltip = vengeful
                
            }
            25 = {
                death = {
                    death_reason = death_vanished
                }  
            }
        }

	}
}


#8111 they parade you, and shame you, spank your pussy, to get the lust out
#alt desc, if landed, fail and get mob capture you, they parade you, and shame you, realising who you are
courtesango_deviant_events.8111 = { 
	type = character_event
	title = courtesango_deviant_events.8111.t
	desc = courtesango_deviant_events.8111.desc	
	override_background = { reference =	deviant_whore_bound_1 }
	theme = deviantscourtesango  
    immediate = {
        stress_impact = {
            base = minor_stress_gain
            lustful = medium_stress_impact_loss
        }
    }
    option = {
		name = courtesango_deviant_events.8111.a
		custom_tooltip = courtesango_deviant_events.8111.a.tt 
        random_list = {
            25 = {
                trigger = {
                    is_landed = yes
                }
                every_courtier = {
                    custom = all_courtiers
                    add_opinion = {
                        modifier = dismissive_opinion
                        target = root
                        opinion = { -1 -20 }
                    }
                }
                   
            }
            25 = {
                trigger = {
                    is_landed = yes
                }
                every_courtier = {
                    custom = all_courtiers
                    add_opinion = {
                        modifier = disgusted_opinion
                        target = root
                        opinion = { -1 -20 }
                    }
                }
                   
            }
            25 = {
                stress_impact = {
                    base = medium_stress_impact_gain
                    sadistic = medium_stress_impact_gain
                }
                add_prestige = minor_prestige_loss
                add_piety = minor_piety_loss
            }
            25 = {
                trigger = {
                    is_married = yes
                    NOT = { has_trait = adulterer }
                }
				add_trait = adulterer      
            }
            25 = {
                trigger = {
                    is_married = yes
                    NOT = { has_trait = fornicator }
                }
				add_trait = fornicator      
            }
            25 = {
                trigger = {
                    is_deviant_trigger = no
                }
                add_trait = deviant
            }
            25 = {
                trigger = {
                        NOT = { has_trait = ill }
                }
                add_trait = ill
                
            }
        }    
	}			
}


#8112 if offer to repent, they have you humiliate yourself and ask repetance
courtesango_deviant_events.8112 = { 
	type = character_event
	title = courtesango_deviant_events.8112.t
	desc = courtesango_deviant_events.8112.desc
	override_background = { reference =	deviant_double_fist_mastur }
	theme = deviantscourtesango  
    option = {
		name = courtesango_deviant_events.8112.a
		custom_tooltip = courtesango_deviant_events.8112.a.tt 
        stress_impact = {
            base = minor_stress_gain
            zealous = minor_stress_impact_loss
            lustful = medium_stress_impact_loss
        }
        random_list = {
            25 = {
                add_prestige = minor_prestige_loss
                add_piety = minor_piety_gain     
            }
            25 = {
                add_prestige = minor_prestige_loss
                add_piety = minor_piety_loss
                   
            }
            25 = {
                trigger = {
                    is_deviant_trigger = no
                }
                add_trait = deviant
                add_prestige = minor_prestige_loss
                add_piety = minor_piety_gain  
            }
        }
	}			
}
