﻿namespace = deviant_pay_homage

deviant_pay_homage.0100 = {
	type = court_event
	title = deviant_pay_homage.0100.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					liege = { is_available_adult = yes }
					liege = { is_male = yes }
				}
			desc = deviant_pay_homage.0100.a.desc
			}
			triggered_desc = {
				trigger = { 
					OR = {
						liege = { is_available_adult = no }
						liege = { is_male = no }
					}	
				}
			desc = deviant_pay_homage.0100.y.desc
			}
		}
	}

	theme = deviantscourtesango
	court_scene = {
		button_position_character = scope:petition_liege
		court_owner = scope:petition_liege
		show_timeout_info = no
		roles = {
		    scope:petition_courtier = {
				group = petitioners_group
				animation = throne_room_kneel_1
		    }
		}
	}
	immediate = {
        save_scope_as = petition_courtier
		liege = { save_scope_as = petition_liege }
		scope:petition_liege = {
			open_view_data = {
				view = royal_court
				secondary_actor = scope:petition_courtier
				player = scope:petition_courtier
			}
		}
		hidden_effect = {
			current_travel_plan ?= {
				delay_travel_plan = { days = 30 }
			}
		}
	}
	#
	option = { 
		trigger = { 
			has_trait = deviant_courtesan_slut
			liege = { 
				is_available_adult = yes 
				has_trait = special_courtesan_client 
				has_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value >= 50
				}
				is_male = yes
			}
		}	
		name = deviant_pay_homage.0100.aa
		custom_tooltip = deviant_pay_homage.0100.aa.tt
		random_list = {
            25 = {
                trigger = {
                    scope:petition_liege = {
                        NOT = { has_trait = sadistic }
                    }
                }
                trigger_event = deviant_pay_homage.0110
            }
            25 = {
                trigger = {
                    scope:petition_liege = {
                        has_trait = sadistic
                    }
                }
                trigger_event = deviant_pay_homage.2000
            }
        }
	}
    #
	option = { 
		trigger = { 
			liege = { is_available_adult = yes }
			liege = { is_male = yes }
		}
		name = deviant_pay_homage.0100.a
		custom_tooltip = deviant_pay_homage.0100.a.tt
		#diplo check, to make it clear to him why he shoudl invite you to private but not make it awkward with the... others around...
		duel = {
			skill = diplomacy
			target = scope:petition_liege
			# you get him to go private
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.0100.aw.tt
				}	
                random_list = {
                    25 = {
                        trigger = {
                            scope:petition_liege = {
                                NOT = { has_trait = sadistic }
		                    }
                        }
                        trigger_event = deviant_pay_homage.0110
                    }
                    25 = {
                        trigger = {
                            scope:petition_liege = {
                                has_trait = sadistic
		                    }
                        }
                        trigger_event = deviant_pay_homage.2000
                    }
                }
			}
			# they refuse
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.0100.al.tt
				}		
				hidden_effect = {
					trigger_event = deviant_pay_homage.0101
					random_list = {
						40 = {
							add_character_modifier = {
								modifier = deviant_knownslut_modifier
								days = 160
							}
							add_trait_xp = {
								trait = deviant_courtesan_slut
								track = deviant_courtesan_slut_popularity
								value = { 1 10 }
							}
							add_trait_xp = {
								trait = deviant_courtesan_slut
								track = deviant_courtesan_slut_infamy
								value = { 0 1 }
							}
						}
						40 = {
						}
					}
				}	
			}
		}
	}
	#ask for gold, chnace he asks you to service him or one of his knights right there, gaining you whore nick...
	#ask for infulence, chance he tells you to strip and kneel before him and beg, like a whore

	#if regret, this was a msitake
	option = { 
		name = deviant_pay_homage.0100.x
		custom_tooltip = deviant_pay_homage.0100.x.tt
		trigger_event = petition_liege.9100
	}
    after = {
		scope:petition_courtier = {
            close_view = {
                view = royal_court
                player = scope:petition_courtier
            }
        }
    }
}

#If fail diplo check, ciked out and ranomd on how much he annoyed...
#0101 if fail and sent out
deviant_pay_homage.0101 = {
	type = court_event
	title = deviant_pay_homage.0101.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_courtier = {
						NOT = { has_character_modifier = deviant_knownslut_modifier }
					} 
				}
			desc = deviant_pay_homage.0101.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_courtier = {
						has_character_modifier = deviant_knownslut_modifier
					} 
				}
			desc = deviant_pay_homage.0101.b.desc
			}
		}
	}

	theme = deviantscourtesango
	court_scene = {
		button_position_character = scope:petition_liege
		court_owner = scope:petition_liege
		show_timeout_info = no
		roles = {
		    scope:petition_courtier = {
				group = petitioners_group
				animation = throne_room_kneel_1
		    }
		}
	}

	immediate = {
		scope:petition_liege = {
			open_view_data = {
				view = royal_court
				secondary_actor = scope:petition_courtier
				player = scope:petition_courtier
			}
		}
	}
    #
	option = { 
		name = deviant_pay_homage.0101.a
		custom_tooltip = deviant_pay_homage.0101.a.tt
        scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = annoyed_opinion
				opinion = { -10 -50 }
			}
		}
	}


	after = {
        scope:petition_courtier = {
            close_view = {
                view = royal_court
                player = scope:petition_courtier
            }
        }
        trigger_event = petition_liege.9100
    }  
}

#if win diplo, you two in private
deviant_pay_homage.0110 = {
	type = character_event
	title = deviant_pay_homage.0110.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0110.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0110.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0110.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0110.d.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { reference = study }
    left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
	}
	immediate = {
		save_scope_value_as = { # 5 stages
			name = event_chain_length
			value = 6
		}
        save_scope_value_as = { # 
			name = event_chain_progress
			value = 1
		}
	}
    # offer to demonstrate your anal skills
	option = { 
		name = deviant_pay_homage.0110.a
		custom_tooltip = deviant_pay_homage.0110.a.tt
		hidden_effect = {
			trigger_event = deviant_pay_homage.0130
		}
	}
	# offer to demonstrate your oral skills
	option = { 
		trigger = { 
			has_trait = deviant_courtesan_slut
			liege = { 
				has_trait = special_courtesan_client 
				has_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value >= 30
				}
			}
		}
		name = deviant_pay_homage.0110.b
		custom_tooltip = deviant_pay_homage.0110.b.tt
		hidden_effect = {
			trigger_event = deviant_pay_homage.1000
		}
	}

	#kiss feet
	option = { 
		name = deviant_pay_homage.0110.x
		custom_tooltip = deviant_pay_homage.0110.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = amused_opinion
				opinion = { 1 10 }
			}
		}
		trigger_event = petition_liege.9100
	}
}

#0111 if he just fuck and tell leave
deviant_pay_homage.0111 = {
	type = character_event
	title = deviant_pay_homage.0111.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0111.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0111.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0111.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0111.d.desc
			}
		}
	}
	theme = deviantscourtesango
	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
	}
	widget = {
		gui = "event_window_widget_deviant_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
	immediate = {
		if = {
			limit = {
				scope:petition_liege = {
					NOT = { has_trait = special_courtesan_client }
				}
			}
			scope:petition_liege = {
				add_trait = special_courtesan_client
			}
		}
        random_list = {
            25 = {
                trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_one }
                }
                scope:petition_liege = {
                    stress_impact = {
                        base = minor_stress_impact_gain
                        lustful = minor_stress_impact_gain
                    }
					pay_short_term_gold = {
                        target = root
                        gold = 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 }
                                }
                                
                            }
                        }
                    }
                }
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_one
                    NOT = { has_character_flag = deviant_anal_good_two }
                }
                scope:petition_liege = {
                    stress_impact = {
                        base = minor_stress_impact_loss
                        lustful = minor_stress_impact_loss
                    }
                    pay_short_term_gold = {
                        target = root
                        gold = { 2 10 }
                    }
                } 
            }
            25 = {
                trigger = { 
                    has_character_flag = deviant_anal_good_two
                    NOT = { has_character_flag = deviant_anal_good_three }
                }
                scope:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege
                    modifier = amused_opinion
                    opinion = { 10 30 }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                    scope:petition_liege = { 
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 20 30 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }    
                }
            }
        }
    }
    # accept pay
	option = { 
		name = deviant_pay_homage.0111.a
		custom_tooltip = deviant_pay_homage.0111.a.tt
		trigger_event = petition_liege.9100
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = dismissive_opinion
				opinion = { -20 -10 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 100 660 }
				}	
			}
		}
	}

	#ask for more
	option = { 
		name = deviant_pay_homage.0111.b
		custom_tooltip = deviant_pay_homage.0111.b.tt
		duel = {
			skill = diplomacy
			target = scope:petition_liege
			# you get him to go private
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.0111.aw.tt
				}	
				hidden_effect = {
					random_list = {
						100 = {
							#his strongest knight
							trigger = {
								scope:petition_liege = {
									any_knight = {
										prowess >= high_skill_rating
										is_male = yes
										NOT = { has_trait = chaste }
										NOT = { has_trait = celibate }
										NOT = { has_trait = eunuch_1 }
			                            NOT = { has_trait = beardless_eunuch }
										NOT = { has_trait = blind }
										age >= 18
										is_available_adult = yes
									}
								}
							}
							trigger_event = deviant_pay_homage.0500
						}
						40 = {
							#there is one more thing, clean my balls
							trigger_event = deviant_pay_homage.0113
						}
					}
				}	
			}
			# they refuse
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.0111.al.tt
				}		
				trigger_event = deviant_pay_homage.0112	
			}
		}
	}
	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:petition_liege = { 
                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 }
            }
        }
    }
}

#services no longer needed
deviant_pay_homage.0112 = {
	type = character_event
	title = deviant_pay_homage.0112.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0112.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0112.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0112.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0112.d.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { reference = study }
    right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
		outfit_tags = { no_clothes }
	}
    # leave
	option = { 
		name = deviant_pay_homage.0112.a
		custom_tooltip = deviant_pay_homage.0112.a.tt
		trigger_event = petition_liege.9100
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disgusted_opinion
				opinion = { -20 -10 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 200 660 }
				}	
			}
		}
	}
}

deviant_pay_homage.0113 = {
	type = character_event
	title = deviant_pay_homage.0113.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0113.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0113.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0113.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0113.d.desc
			}
		}
	}
	override_background = { reference = study }
    left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
	right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
		outfit_tags = { no_clothes }
	}
	theme = deviantscourtesango
    # depart
	option = { 
		name = deviant_pay_homage.0113.a
		custom_tooltip = deviant_pay_homage.0113.a.tt
		trigger_event = petition_liege.9100
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = dismissive_opinion
				opinion = { -10 -1 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 300 660 }
				}	
			}
		}
	}
	# kiss them, and swear your oath
	option = { 
		name = deviant_pay_homage.0113.b
		custom_tooltip = deviant_pay_homage.0113.b.tt
		trigger_event = petition_liege.9100
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = amused_opinion
				opinion = { 10 20 }
			}
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 1 10 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 100 660 }
				}	
			}
		}
	}
	# suck them
	option = { 
		name = deviant_pay_homage.0113.c
		custom_tooltip = deviant_pay_homage.0113.c.tt
		trigger_event = petition_liege.9100
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = flustered_opinion
				opinion = { 10 20 }
			}
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 10 20 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 100 260 }
				}	
			}
		}
	}
}


#0120 anal cum if ask for more
deviant_pay_homage.0120 = {
	type = character_event
	title = deviant_pay_homage.0120.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0120.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0120.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0120.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0120.d.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_satisfaction_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
	immediate = {
		if = {
			limit = {
				scope:petition_liege = {
					NOT = { has_trait = special_courtesan_client }
				}
			}
			scope:petition_liege = {
				add_trait = special_courtesan_client
			}
		}
        random_list = {
            25 = {
                trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_one }
                }
				reverse_add_opinion = {
                        target = scope:petition_liege
                        modifier = annoyed_opinion
                        opinion = { -10 -1 }
                    }
                scope:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege
                    modifier = amused_opinion
                    opinion = { 10 30 }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                    scope:petition_liege = { 
                        add_trait_xp = {
                            trait = special_courtesan_client
                            track = special_courtesan_client_met
                            value = { 20 30 }
                        }
                        add_opinion = {
                            target = root
                            modifier = special_courtesan_relationship
                        }
                    }    
                }
            }
        }
    }

    # agree to be at his disposal...
	option = { 
		name = deviant_pay_homage.0120.a
		custom_tooltip = deviant_pay_homage.0120.a.tt
		current_travel_plan = {
			delay_travel_plan = { days = 7 }
		}
        trigger_event = {
            id = deviant_pay_homage.0200
            days = 7 
		}
	}
	#refuse, if regret, this was a msitake
	option = { 
		name = deviant_pay_homage.0120.x
		custom_tooltip = deviant_pay_homage.0120.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -10 -50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	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:petition_liege = { 
                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 }
            }
        }
    }
}

#0130 anal service
#main anal duel
 deviant_pay_homage.0130 = { 
	type = character_event
	title = deviant_pay_homage.0130.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_round_one }
				}
			desc = deviant_pay_homage.0130.startinsert.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_won 
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = deviant_pay_homage.0130.wondiplo.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_lost
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = deviant_pay_homage.0130.lostdiplo.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_won 
                    has_character_flag = deviant_anal_round_three
				}
			desc = deviant_pay_homage.0130.wondiplopastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_diplo_lost
                    has_character_flag = deviant_anal_round_three
				}
			desc = deviant_pay_homage.0130.lostdiplopastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_won
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = deviant_pay_homage.0130.wonintrigue.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_lost
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = deviant_pay_homage.0130.lostintrigue.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_won
                    has_character_flag = deviant_anal_round_three
				}
			desc = deviant_pay_homage.0130.wonintriguepastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_intrigue_lost
                    has_character_flag = deviant_anal_round_three
				}
			desc = deviant_pay_homage.0130.lostintriguepastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_won
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = deviant_pay_homage.0130.wonprowess.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_lost
                    NOT = { has_character_flag = deviant_anal_round_three }
				}
			desc = deviant_pay_homage.0130.lostprowess.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_won
                    has_character_flag = deviant_anal_round_three
				}
			desc = deviant_pay_homage.0130.wonprowesspastthree.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_prowess_lost
                    has_character_flag = deviant_anal_round_three
				}
			desc = deviant_pay_homage.0130.lostprowesspastthree.desc
			}
            triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_wondelay
				}
			desc = deviant_pay_homage.0130.wondelay.desc
			}
            triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_lostdelay
				}
			desc = deviant_pay_homage.0130.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 = deviant_pay_homage.0130.diploduel
		custom_tooltip = deviant_pay_homage.0130.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:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.0130.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:petition_liege = {
                                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 = deviant_pay_homage.0130.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 = deviant_pay_homage.0130 
                }
                20 = {
                    trigger_event = deviant_pay_homage.0111 
                }
                50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.0111 
                }
				50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
						has_character_flag = deviant_anal_good_three
                    }
                    trigger_event = deviant_pay_homage.0120 
                }
            } 
        }
	}		
    # intrigue
	option = {
		name = deviant_pay_homage.0130.intrigueduel
		custom_tooltip = deviant_pay_homage.0130.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:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.0130.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:petition_liege = {
                                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 = deviant_pay_homage.0130.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 = deviant_pay_homage.0130 
                }
                20 = {
                    trigger_event = deviant_pay_homage.0111 
                }
                50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.0111 
                }
				50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
						has_character_flag = deviant_anal_good_three
                    }
                    trigger_event = deviant_pay_homage.0120 
                }
            } 
        }
	}	
    # prowess
	option = {
		name = deviant_pay_homage.0130.prowessduel
		custom_tooltip = deviant_pay_homage.0130.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:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.0130.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:petition_liege = {
                                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 = deviant_pay_homage.0130.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 = deviant_pay_homage.0130 
                }
                40 = {
                    trigger_event = deviant_pay_homage.0111 
                }
                50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.0111 
                }
				50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
						has_character_flag = deviant_anal_good_three
                    }
                    trigger_event = deviant_pay_homage.0120 
                }
            } 
        }
	}	
     # try to delay
	option = {
        trigger = {
            has_character_flag = deviant_anal_round_three
        }
		name = deviant_pay_homage.0130.delayduel
		custom_tooltip = deviant_pay_homage.0130.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:petition_liege
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.0130.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:petition_liege = {
                                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 = deviant_pay_homage.0130.delayduellose.tt
				}		
                add_character_flag = deviant_anal_lostdelay	
                reverse_add_opinion = {
                    target = scope:petition_liege
                    modifier = annoyed_opinion
                    opinion = { -10 -1 }
                }
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = deviant_pay_homage.0130 
                }
                10 = {
                    trigger_event = deviant_pay_homage.0111 
                }
                10 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.0111 
                }
				20 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
						has_character_flag = deviant_anal_good_three
                    }
                    trigger_event = deviant_pay_homage.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
            }
        } 
    }		
}


#0200 7 days later, anal cum as usual
deviant_pay_homage.0200 = {
	type = character_event
	title = deviant_pay_homage.0200.t
	override_background = { reference = deviantanalontopservicecum }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0200.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0200.b.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0200.c.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						OR = { 
							is_alive = no
							is_imprisoned = yes
						}
					} 
				}
			desc = deviant_pay_homage.0200.y.desc
			}
		}
	}

	theme = deviantscourtesango

	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_popularity
				value = { 0 4 }
			}
		}
	}

    # keep going
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0200.a
		custom_tooltip = deviant_pay_homage.0200.a.tt
		current_travel_plan = {
			delay_travel_plan = { days = 14 }
		}
		trigger_event = {
			id = deviant_pay_homage.0300
			days = 14 
		}
	}

	#escape
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0200.x
		custom_tooltip = deviant_pay_homage.0200.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -10 -50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0200.y
		custom_tooltip = deviant_pay_homage.0200.y.tt
		trigger_event = petition_liege.9100
	}
}
#0300 14 days later, anal cum as usual
deviant_pay_homage.0300 = {
	type = character_event
	title = deviant_pay_homage.0300.t
	override_background = { reference = deviantanalontopservicecum }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0300.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0300.b.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0300.c.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						OR = { 
							is_alive = no
							is_imprisoned = yes
						}
					} 
				}
			desc = deviant_pay_homage.0300.y.desc
			}
		}
	}

	theme = deviantscourtesango
	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_popularity
				value = { 0 4 }
			}
		}
	}

    # keep going
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0300.a
		custom_tooltip = deviant_pay_homage.0300.a.tt
		hidden_effect = {
			random_list = {
				60 = {
					current_travel_plan = {
						delay_travel_plan = { days = 7 }
					}
					trigger_event = {
						id = deviant_pay_homage.0400
						days = 7 
					}
				}	
				20 = {
					current_travel_plan = {
						delay_travel_plan = { days = 7 }
					}
					trigger_event = {
						id = deviant_pay_homage.0401
						days = 7 
					}
				}	
				20 = {
					trigger = {
						scope:petition_courtier = {
							NOT = { has_trait = pregnant }
							age < 40
							is_visibly_fertile = yes
							fertility >= 0.1
						}
						scope:petition_liege = {
							is_visibly_fertile = yes
							fertility >= 0.1
						}
					}
					current_travel_plan = {
						delay_travel_plan = { days = 7 }
					}
					trigger_event = {
						id = deviant_pay_homage.0420
						days = 7 
					}
				}	
			}
		}	
	}

	#escape
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0300.x
		custom_tooltip = deviant_pay_homage.0300.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -10 -50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0300.y
		custom_tooltip = deviant_pay_homage.0300.y.tt
		trigger_event = petition_liege.9100
	}
}
#0400 60 chance 26 days later, OR he lets you go back once sated, random amused
deviant_pay_homage.0400 = {
	type = character_event
	title = deviant_pay_homage.0400.t
	override_background = { reference = study }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0400.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						OR = { 
							is_alive = no
							is_imprisoned = yes
						}
					} 
				}
			desc = deviant_pay_homage.0400.y.desc
			}
		}
	}
	left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
	}
	theme = deviantscourtesango

	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
	}
    #
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0400.a
		custom_tooltip = deviant_pay_homage.0400.a.tt
        scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = amused_opinion
				opinion = { 10 50 }
			}
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 10 50 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 10 660 }
				}	
			}
		}
		
	}

	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0400.y
		custom_tooltip = deviant_pay_homage.0400.y.tt
	}
	after = {
        trigger_event = petition_liege.9100
    }  
}
#0401 20 chance 26 days later, he wants to keep fucking until bored
deviant_pay_homage.0401 = {
	type = character_event
	title = deviant_pay_homage.0401.t
	override_background = { reference = deviantcourtesanbasicanalcum }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0401.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0401.b.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0401.c.desc
			}
			triggered_desc = {
				trigger = { 
				scope:petition_liege = {
					OR = { 
						is_alive = no
						is_imprisoned = yes
					}
				} 
			}
			desc = deviant_pay_homage.0401.y.desc
			}
		}
	}

	theme = deviantscourtesango
	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
	}

    # agree
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0401.a
		custom_tooltip = deviant_pay_homage.0401.a.tt
		current_travel_plan = {
			delay_travel_plan = { days = 7 }
		}
		trigger_event = {
			id = deviant_pay_homage.0402
			days = 7 
		}
		scope:petition_liege = {
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 10 20 }
			}
		}

	}

	#refuse
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0401.x
		custom_tooltip = deviant_pay_homage.0401.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -30 -100 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0401.y
		custom_tooltip = deviant_pay_homage.0401.y.tt
		trigger_event = petition_liege.9100
	}
}
#0402 fuck until bored loop using random list or option to just leave...
deviant_pay_homage.0402 = {
	type = character_event
	title = deviant_pay_homage.0402.t
	override_background = { reference = deviantcourtesanproneboneanalcum }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0402.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0402.b.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0402.c.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0402.d.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0402.e.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						OR = { 
							is_alive = no
							is_imprisoned = yes
						}
					} 
				}
			desc = deviant_pay_homage.0402.y.desc
			}
		}
	}

	theme = deviantscourtesango
	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_popularity
				value = { 0 4 }
			}
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 1 }
			}
		}
	}

    # still not
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0402.a
		custom_tooltip = deviant_pay_homage.0402.a.tt
		hidden_effect = {
			random_list = {
				50 = {
					current_travel_plan = {
				delay_travel_plan = { days = 7 }
				}
				trigger_event = {
					id = deviant_pay_homage.0402
					days = 7 
				}
				scope:petition_liege = {
					pay_short_term_gold = {
						target = scope:petition_courtier
						gold = { 1 5 }
					}
				}

				}
				50 = {
					scope:petition_liege = {
						add_character_modifier = {
							modifier = deviant_boredofwhores_modifier
							days = 360
						}	
					}	
					trigger_event = deviant_pay_homage.0400
				}
			}
		}
	}

	#escape
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0402.x
		custom_tooltip = deviant_pay_homage.0402.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -10 -50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0402.y
		custom_tooltip = deviant_pay_homage.0402.y.tt
		trigger_event = petition_liege.9100
	}
}




#0420 wants to fuck intil you preg
deviant_pay_homage.0420 = {
	type = character_event
	title = deviant_pay_homage.0420.t
	override_background = { reference = deviantcourtesanvaginalmissionaryfuck }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0420.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0420.b.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0420.c.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						OR = { 
							is_alive = no
							is_imprisoned = yes
						}
					} 
				}
			desc = deviant_pay_homage.0420.y.desc
			}
		}
	}

	theme = deviantscourtesango
	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
	}

    # agree
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0420.a
		custom_tooltip = deviant_pay_homage.0420.a.tt
		current_travel_plan = {
			delay_travel_plan = { days = 7 }
		}
		trigger_event = {
			id = deviant_pay_homage.0421
			days = 7 
		}
		scope:petition_liege = {
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 1 10 }
			}
		}

	}

	#refuse
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0420.x
		custom_tooltip = deviant_pay_homage.0420.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -10 -50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0420.y
		custom_tooltip = deviant_pay_homage.0420.y.tt
		trigger_event = petition_liege.9100
	}
}
#0421 fuck cum loop
deviant_pay_homage.0421 = {
	type = character_event
	title = deviant_pay_homage.0421.t
	override_background = { reference = deviantcourtesanvaginalmissionaryfuckcum }
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0421.a.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0402.b.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						is_alive = yes
						is_imprisoned = no
					} 
				}
			desc = deviant_pay_homage.0421.c.desc
			}
			triggered_desc = {
				trigger = { 
					scope:petition_liege = {
						OR = { 
							is_alive = no
							is_imprisoned = yes
						}
					} 
				}
			desc = deviant_pay_homage.0421.y.desc
			}
		}
	}

	theme = deviantscourtesango
	immediate = {
		scope:petition_liege = {
			stress_impact = {
				base = medium_stress_impact_loss
				lustful = medium_stress_impact_loss
			}
			hidden_effect = {
				add_trait_xp = {
					trait = special_courtesan_client
					track = special_courtesan_client_met
					value = { 1 10 }
				}
				random_list = {
					25 = {
						add_opinion = {
							target = scope:petition_courtier
							modifier = special_courtesan_relationship
						}
					}	
					50 = {
					}	
				}
			}
		}
		had_sex_with_effect = {
			CHARACTER = scope:petition_liege
			PREGNANCY_CHANCE = pregnancy_chance
		}
		had_sex_with_effect = {
			CHARACTER = scope:petition_liege
			PREGNANCY_CHANCE = pregnancy_chance
		}
		had_sex_with_effect = {
			CHARACTER = scope:petition_liege
			PREGNANCY_CHANCE = pregnancy_chance
		}
		had_sex_with_effect = {
			CHARACTER = scope:petition_liege
			PREGNANCY_CHANCE = pregnancy_chance
		}
		hidden_effect = {
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_popularity
				value = { 0 4 }
			}
			add_trait_xp = {
				trait = deviant_courtesan_slut
				track = deviant_courtesan_slut_infamy
				value = { 0 1 }
			}
		}
	}

    # until preg loop
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0421.a
		custom_tooltip = deviant_pay_homage.0421.a.tt
		hidden_effect = {
			random_list = {
				50 = {
					trigger = {
						scope:petition_courtier = {
							NOT = { has_trait = pregnant }
						}
					}
					current_travel_plan = {
					delay_travel_plan = { days = 7 }
					}
					trigger_event = {
						id = deviant_pay_homage.0421
						days = 14 
					}
					scope:petition_liege = {
						pay_short_term_gold = {
							target = scope:petition_courtier
							gold = { 1 5 }
						}
					}

				}
				50 = {
					trigger = {
						scope:petition_courtier = {
							has_trait = pregnant
						}
					}
					trigger_event = deviant_pay_homage.0400
				}
			}
		}
	}

	#escape
	option = { 
		trigger = { 
			scope:petition_liege = {
				is_alive = yes
				is_imprisoned = no
			} 
		}
		name = deviant_pay_homage.0421.x
		custom_tooltip = deviant_pay_homage.0421.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -10 -50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#leave
	option = { 
		trigger = { 
			scope:petition_liege = {
				OR = { 
					is_alive = no
					is_imprisoned = yes
				}
			} 
		}
		name = deviant_pay_homage.0421.y
		custom_tooltip = deviant_pay_homage.0421.y.tt
		trigger_event = petition_liege.9100
	}
}





#0500 his strongest knight...
deviant_pay_homage.0500 = {
	type = character_event
	title = deviant_pay_homage.0500.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0500.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0500.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0500.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0500.d.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { reference = study }
    left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
		outfit_tags = { no_clothes }
	}
	lower_left_portrait = {
		character = scope:strongest_liege_knight
		animation = thinking
	}
	immediate = {
		scope:petition_liege = {
			random_knight = {
				limit = {
					prowess >= high_skill_rating
					is_male = yes
					NOT = { has_trait = chaste }
					NOT = { has_trait = celibate }
					NOT = { has_trait = eunuch_1 }
			        NOT = { has_trait = beardless_eunuch }
					NOT = { has_trait = blind }
					age >= 18
					is_available_adult = yes
				}
				weight = {
					base = 1
					modifier = {
						add = prowess
					}
				}
				save_scope_as = strongest_liege_knight
			}
		}
	}

    # accept
	option = { 
		name = deviant_pay_homage.0500.a
		custom_tooltip = deviant_pay_homage.0500.a.tt
		hidden_effect = {
			random_list = {
				50 = {
					#full nelson
					trigger_event = deviant_pay_homage.0501
				}
				50 = {
					#choke doggy
					trigger_event = deviant_pay_homage.0502
				}
			}
		}
	}

	# refuse
	option = { 
		name = deviant_pay_homage.0500.x
		custom_tooltip = deviant_pay_homage.0500.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = amused_opinion
				opinion = { 1 10 }
			}
		}
		trigger_event = petition_liege.9100
	}
}
#0501 full nelson strongest knight
deviant_pay_homage.0501 = {
	type = character_event
	title = deviant_pay_homage.0501.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0501.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0501.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0501.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0501.d.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { reference = deviantfullnelsoncum }
    lower_right_portrait = {
		character = scope:petition_liege
		animation = scheme
	}

    # accept pay
	option = { 
		name = deviant_pay_homage.0501.a
		custom_tooltip = deviant_pay_homage.0501.a.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disgusted_opinion
				opinion = { -10 -5 }
			}
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 10 20 }
			}
			pay_short_term_gold = {
				target = scope:strongest_liege_knight
				gold = { 20 30 }
			}
		}
		scope:petition_liege = {
			add_opinion = {
				target = scope:strongest_liege_knight
				modifier = amused_opinion
				opinion = { 20 50 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 100 260 }
				}	
			}	
		}
		scope:strongest_liege_knight = {
			add_opinion = {
				target = scope:petition_liege
				modifier = amused_opinion
				opinion = { 20 50 }
			}
		}
		scope:strongest_liege_knight = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = amused_opinion
				opinion = { 20 50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#if more please
}

#0502 choke doggy strongest knight
deviant_pay_homage.0502 = {
	type = character_event
	title = deviant_pay_homage.0502.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0502.a.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0502.b.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0502.c.desc
			}
			triggered_desc = {
				trigger = { is_female = yes }
			desc = deviant_pay_homage.0502.d.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { reference = deviantstrangledoggy }
    lower_right_portrait = {
		character = scope:petition_liege
		animation = scheme
	}

    # accept pay
	option = { 
		name = deviant_pay_homage.0502.a
		custom_tooltip = deviant_pay_homage.0502.a.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disgusted_opinion
				opinion = { -20 -5 }
			}
			pay_short_term_gold = {
				target = scope:petition_courtier
				gold = { 10 30 }
			}
			hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 200 460 }
				}	
			}	
		}
		scope:petition_liege = {
			add_opinion = {
				target = scope:strongest_liege_knight
				modifier = amused_opinion
				opinion = { 20 50 }
			}
		}
		scope:strongest_liege_knight = {
			add_opinion = {
				target = scope:petition_liege
				modifier = amused_opinion
				opinion = { 20 50 }
			}
		}
		scope:strongest_liege_knight = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = amused_opinion
				opinion = { 20 50 }
			}
		}
		trigger_event = petition_liege.9100
	}
	#if more please
}


#use special negative modifiers, like broken ass and stuff...
#0600 if ask for more, if he wants to fill your ass with coins...
#0601 if ask for more, masked party entertainement...
#0602 if ask for more, his favorate hound has been restless
#0603 if ask for more, his favorate stallion has been restless
#0604 if ask for more, one of the bad traits, tell you to fuck his fist
#0605 if ask for more, one of the bad traits, tell you to masturbate with his sole
#0606 if he wants to buy your clothes,
#0607 if he wants you to service a servant...
#0608 if he wants you to intergoate a bandit with sex... he keeps saying if he gets to fuck a fine lady, he will tell where the looted treasure is
#0609 if he wants you to perfrom masked for his men at arms




# chance if bad traits, says he won't touch you, but wants you to be his whore, nobody needs to know it's you...
# chance if bad traits, chance asking you to be his sex slave for a month, lots of bondage and private abuse, with extreme punishment if fail skill checks...
# chance if suitable heir, telling you to serve him
# chance if bad traits, just imprisoned... locked with other deviant criminals... all men, told to pleasure them, chance for events with real prisoners

#then think if even doing more... add variants/ the more evil routes 
#main oral duel
deviant_pay_homage.1000 = { 
	type = character_event
	title = deviant_pay_homage.1000.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_round_one }
				}
			desc = deviant_pay_homage.1000.startinsert.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_oral_won 
				}
			desc = deviant_pay_homage.1000.wonoral.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_oral_lost
				}
			desc = deviant_pay_homage.1000.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 = deviant_pay_homage.1000.diploduel
		custom_tooltip = deviant_pay_homage.1000.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:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.1000.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:petition_liege = {
                                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 = deviant_pay_homage.1000.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 = deviant_pay_homage.1000 
                }
                20 = {
                    trigger_event = deviant_pay_homage.1010 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.1010 
                }
            } 
        }
	}		
    # intrigue
	option = {
		name = deviant_pay_homage.1000.intrigueduel
		custom_tooltip = deviant_pay_homage.1000.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:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.1000.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:petition_liege = {
                                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 = deviant_pay_homage.1000.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 = deviant_pay_homage.1000 
                }
                20 = {
                    trigger_event = deviant_pay_homage.1010 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.1010 
                }
            } 
        }
	}	
    # prowess
	option = {
		name = deviant_pay_homage.1000.prowessduel
		custom_tooltip = deviant_pay_homage.1000.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:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.1000.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:petition_liege = {
                                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 = deviant_pay_homage.1000.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 = deviant_pay_homage.1000 
                }
                40 = {
                    trigger_event = deviant_pay_homage.1010 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.1010 
                }
            } 
        }
	}	
     # try to delay
	option = {
        trigger = {
            has_character_flag = deviant_anal_round_three
        }
		name = deviant_pay_homage.1000.delayduel
		custom_tooltip = deviant_pay_homage.1000.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:petition_liege
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.1000.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:petition_liege = {
                                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 = deviant_pay_homage.1000.delayduellose.tt
				}		
                add_character_flag = deviant_anal_lostdelay	
                add_character_flag = deviant_oral_lost
                reverse_add_opinion = {
                    target = scope:petition_liege
                    modifier = annoyed_opinion
                    opinion = { -10 -1 }
                }
			}
		}
        hidden_effect = {
                random_list = {
                80 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                    }
                    trigger_event = deviant_pay_homage.1000 
                }
                20 = {
                    trigger_event = deviant_pay_homage.1010 
                }
                50 = {
                    trigger = {
                        has_character_flag = deviant_anal_round_three
                    }
                    trigger_event = deviant_pay_homage.1010 
                }
            } 
        }
	}
	
    #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
deviant_pay_homage.1010 = { 
	type = character_event
	title = deviant_pay_homage.1010.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    NOT = { has_character_flag = deviant_anal_good_two }
				}
			desc = deviant_pay_homage.1010.cumnotsated.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_two
				}
			desc = deviant_pay_homage.1010.cummehlysated.desc
			}
			triggered_desc = {
				trigger = { 
                    has_character_flag = deviant_anal_good_three
				}
			desc = deviant_pay_homage.1010.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:petition_liege
                        modifier = annoyed_opinion
                        opinion = { -10 -1 }
                    }
                scope:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege
                    modifier = amused_opinion
                    opinion = { 10 30 }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                    scope:petition_liege = { 
                        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 = deviant_pay_homage.1010.a
		custom_tooltip = deviant_pay_homage.1010.a.tt
	}	
    # suck until pay more...
	option = {
		name = deviant_pay_homage.1010.b
		custom_tooltip = deviant_pay_homage.1010.b.tt
        duel = {
			skills = { diplomacy intrigue prowess }
			target = scope:petition_liege
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.1010.bwin.tt
				}	 
                scope:petition_liege = {
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value medium_gold_value }
                    }
                }
                random_list = {
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            modifier = amused_opinion
                            opinion = { 10 30 }
                        }
                    }
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            modifier = flustered_opinion
                            opinion = { 1 10 }
                        }
                        
                    }
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            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 = deviant_pay_homage.1010.blose.tt
				}	
                reverse_add_opinion = {
                    target = scope:petition_liege
                    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:petition_liege = { 
                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 }
            }
        }
		trigger_event = petition_liege.9100
    }
}

#2000 sadistic liege events
deviant_pay_homage.2000 = {
	type = character_event
	title = deviant_pay_homage.2000.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    scope:petition_liege = {
					    NOT = { has_trait = special_courtesan_client }
				    } 
                }
			desc = deviant_pay_homage.2000.a.desc
			}
			triggered_desc = {
				trigger = { 
                    scope:petition_liege = {
					    has_trait = special_courtesan_client
				    } 
                }
			desc = deviant_pay_homage.2000.b.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { reference = study }
    left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
	}
    # ask to be punished
	option = { 
		name = deviant_pay_homage.2000.a
		custom_tooltip = deviant_pay_homage.2000.a.tt
        if = {
			limit = {
				scope:petition_liege = {
					NOT = { has_trait = special_courtesan_client }
				}
			}
			scope:petition_liege = {
				add_trait = special_courtesan_client
			}
		}
		hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = deviant_pay_homage.2010
                }
                25 = {
                    trigger_event = deviant_pay_homage.2500
                }
            }
		}
	}

	#please excused me...
	option = { 
		name = deviant_pay_homage.2000.x
		custom_tooltip = deviant_pay_homage.2000.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -1 -10 }
			}
		}
		trigger_event = petition_liege.9100
	}
}

#2010 bring you to a maid who is bound,
deviant_pay_homage.2010 = {
	type = character_event
	title = deviant_pay_homage.2010.t
	desc = deviant_pay_homage.2010.a.desc
	theme = deviantscourtesango
	override_background = { reference = deviant_punished_maid_one }
    lower_left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    lower_right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
	}
    # ask to be punished
	option = { 
		name = deviant_pay_homage.2010.a
		custom_tooltip = deviant_pay_homage.2010.a.tt
        trigger_event = deviant_pay_homage.2020
	}

	#please excused me...
	option = { 
		name = deviant_pay_homage.2010.x
		custom_tooltip = deviant_pay_homage.2010.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -1 -10 }
			}
		}
		trigger_event = petition_liege.9100
	}
}
#2020 near midd day, random chance who come look at you,
deviant_pay_homage.2020 = {
	type = character_event
	title = deviant_pay_homage.2020.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.w.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.e.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.r.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.t.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.y.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.u.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.i.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.o.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2020.p.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { 
		trigger = {
			exists = scope:background_one
		}
		reference = deviant_dildo_pig_bondage_one
	}
	override_background = { 
		trigger = {
			exists = scope:background_two
		}
		reference = deviant_dildo_pig_bondage_two
	}
	override_background = { 
		trigger = {
			exists = scope:background_three
		}
		reference = deviant_dildo_pig_bondage_three
	}
	override_background = { 
		trigger = {
			exists = scope:background_four
		}
		reference = deviant_dildo_pig_bondage_four
	}
    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
				}
			}
		}
    }
    # endure
	option = { 
		name = deviant_pay_homage.2020.a
		custom_tooltip = deviant_pay_homage.2020.a.tt
        random_list = {
            25 = {
                custom_tooltip = deviant_pay_homage.2010.tip.tt
                add_gold = { 1 5 }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2010.hatingit.tt
                 stress_impact = {
                    base = medium_stress_impact_gain
                }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2010.havinggoddtime.tt
                stress_impact = {
                    base = minor_stress_impact_loss
                    lustful = medium_stress_impact_loss
                }
            }
            5 = {
                custom_tooltip = deviant_pay_homage.2010.talkusefulstuff.tt
                add_intrigue_skill = 1
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                }
            }
        }
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = deviant_pay_homage.2030
                }
                25 = {
                    trigger_event = deviant_pay_homage.2031
                }
            }  
        }
	}
}

#2030 covered in cum, maids clean, being harsh about it, knowing who you are but pretending not to...
deviant_pay_homage.2030 = {
	type = character_event
	title = deviant_pay_homage.2030.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2030.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2030.w.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2030.e.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2030.r.desc
			}
            triggered_desc = {
				trigger = { 
                    is_alive = yes
                }
			desc = deviant_pay_homage.2030.t.desc
			}
		}
	}
	theme = deviantscourtesango
	override_background = { 
		trigger = {
			exists = scope:background_one
		}
		reference = deviant_dildo_pig_bondagecum_one
	}
	override_background = { 
		trigger = {
			exists = scope:background_two
		}
		reference = deviant_dildo_pig_bondagecum_two
	}
	override_background = { 
		trigger = {
			exists = scope:background_three
		}
		reference = deviant_dildo_pig_bondagecum_three
	}
	override_background = { 
		trigger = {
			exists = scope:background_four
		}
		reference = deviant_dildo_pig_bondagecum_four
	}
    # endure
	option = { 
		name = deviant_pay_homage.2030.a
		custom_tooltip = deviant_pay_homage.2030.a.tt
        trigger_event = deviant_pay_homage.2040
        random_list = {
            25 = {
                custom_tooltip = deviant_pay_homage.2030.stealclothes.tt
                remove_short_term_gold = { 1 5 }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2030.hatingit.tt
                 stress_impact = {
                    base = medium_stress_impact_gain
                }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2030.havinggoddtime.tt
                stress_impact = {
                    base = minor_stress_impact_loss
                    lustful = medium_stress_impact_loss
                }
            }
            10 = {
                custom_tooltip = deviant_pay_homage.2030.theyreallymessing.tt
                stress_impact = {
                    base = major_stress_impact_gain
                }
                remove_short_term_gold = { 10 20 }
            }
        }
	}
}
#2031 if master bored
deviant_pay_homage.2031 = {
	type = character_event
	title = deviant_pay_homage.2031.t
	desc = deviant_pay_homage.2031.q.desc
	theme = deviantscourtesango
	override_background = { 
		trigger = {
			exists = scope:background_one
		}
		reference = deviant_dildo_pig_bondagecum_one
	}
	override_background = { 
		trigger = {
			exists = scope:background_two
		}
		reference = deviant_dildo_pig_bondagecum_two
	}
	override_background = { 
		trigger = {
			exists = scope:background_three
		}
		reference = deviant_dildo_pig_bondagecum_three
	}
	override_background = { 
		trigger = {
			exists = scope:background_four
		}
		reference = deviant_dildo_pig_bondagecum_four
	}
    # endure
	option = { 
		name = deviant_pay_homage.2031.a
		custom_tooltip = deviant_pay_homage.2031.a.tt
        scope:petition_liege = {
            pay_short_term_gold = {
                target = root
                gold = { 3 10 }
            }
        } 
        random_list = {
            25 = {
                custom_tooltip = deviant_pay_homage.2031.stealclothes.tt
                remove_short_term_gold = { 1 5 }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2031.hatingit.tt
                 stress_impact = {
                    base = medium_stress_impact_gain
                }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2031.havinggoddtime.tt
                stress_impact = {
                    base = minor_stress_impact_loss
                    lustful = medium_stress_impact_loss
                }
            }
            10 = {
                custom_tooltip = deviant_pay_homage.2031.theyreallymessing.tt
                stress_impact = {
                    base = major_stress_impact_gain
                }
                remove_short_term_gold = { 10 20 }
            }
        }
        hidden_effect = {
            scope:petition_liege = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 100 200 }
				}	
			}
        }    
        trigger_event = petition_liege.9100
	}
}

#3032 maid bring some commoners to fuck your ass for copper coins before freeing you if liege bored...
#3033 maids multihandfist you, both holes before freeing you if liege bored...
#3034 maids bring some single guy who has something they want, from family heirlooms to a reward the lige gave him, will group suck his cock if he agrees, if thet whore is enough enough enetertainment for him...
#3035 maids bring some virgin, forcing him look at you, he getting hard... which they confirm, or they virgin hunting oral does not count wanting to give him something that one woman can never sate in him, to ruin him, will group suck his cock if he agrees, 

#2040 liege comes,,, asks Mc if she wanst to pay 50g to be let out now... or will she complete the punishment, by being a party entertainment...
deviant_pay_homage.2040 = {
	type = character_event
	title = deviant_pay_homage.2040.t
	desc = deviant_pay_homage.2040.q.desc
	theme = deviantscourtesango
	override_background = { 
		trigger = {
			exists = scope:background_one
		}
		reference = deviant_dildo_pig_bondage_one
	}
	override_background = { 
		trigger = {
			exists = scope:background_two
		}
		reference = deviant_dildo_pig_bondage_two
	}
	override_background = { 
		trigger = {
			exists = scope:background_three
		}
		reference = deviant_dildo_pig_bondage_three
	}
	override_background = { 
		trigger = {
			exists = scope:background_four
		}
		reference = deviant_dildo_pig_bondage_four
	}
    lower_right_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    immediate = {
        scope:petition_liege = {
            pay_short_term_gold = {
                target = root
                gold = { 10 30 }
            }
            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
                }
            }
        } 
    }
    # endure
	option = { 
		name = deviant_pay_homage.2040.a
		custom_tooltip = deviant_pay_homage.2040.a.tt
        random_list = {
            25 = {
                custom_tooltip = deviant_pay_homage.2040.tip.tt
                scope:petition_liege = {
                    pay_short_term_gold = {
                        target = root
                        gold = { 5 10 }
                    }
                } 
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2040.hatingit.tt
                 stress_impact = {
                    base = medium_stress_impact_gain
                }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2040.havinggoddtime.tt
                stress_impact = {
                    base = minor_stress_impact_loss
                    lustful = medium_stress_impact_loss
                }
                scope:petition_liege = {
                    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 = {
            scope:petition_liege = {
                add_trait_xp = {
                    trait = special_courtesan_client
                    track = special_courtesan_client_met
                    value = { 5 10 }
                }
                add_opinion = {
                    target = root
                    modifier = special_courtesan_relationship
                }
            }    
        }
        trigger_event = deviant_pay_homage.2050
	}
    option = { 
		name = deviant_pay_homage.2040.x
		custom_tooltip = deviant_pay_homage.2040.x.tt
        pay_short_term_gold = {
            target = scope:petition_liege
            gold = 10
        }
        random_list = {
            25 = {
                custom_tooltip = deviant_pay_homage.2040.hatingitleave.tt
                 stress_impact = {
                    base = medium_stress_impact_gain
                }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2040.havinggoddtimeleave.tt
                stress_impact = {
                    base = minor_stress_impact_loss
                    lustful = medium_stress_impact_loss
                }
            }
        }
        hidden_effect = {
            scope:petition_liege = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 100 200 }
				}	
			}
        }    
        trigger_event = petition_liege.9100
	}
}

#2041 if he hetero, gives you the honor of anal riding his cock... trigger the basic anal service?
#2042 gives you the honor to warm his cold fist

#2050 being anal fuck pig at the party, bondage and maids clean you if you get dirty, you still can't see
deviant_pay_homage.2050 = {
	type = character_event
	title = deviant_pay_homage.2050.t
	desc = deviant_pay_homage.2050.q.desc
	theme = deviantscourtesango
	override_background = { 
		trigger = {
			exists = scope:background_one
		}
		reference = deviant_anal_pig_bondage_one
	}
	override_background = { 
		trigger = {
			exists = scope:background_two
		}
		reference = deviant_anal_pig_bondage_two
	}
	override_background = { 
		trigger = {
			exists = scope:background_three
		}
		reference = deviant_anal_pig_bondage_three
	}
	override_background = { 
		trigger = {
			exists = scope:background_four
		}
		reference = deviant_anal_pig_bondage_four
	}
    # endure
	option = { 
		name = deviant_pay_homage.2050.a
		custom_tooltip = deviant_pay_homage.2050.a.tt
        random_list = {
            50 = {
                custom_tooltip = deviant_pay_homage.2050.gettip.tt
                add_gold = { 20 40 }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2050.maidstealsometip.tt
                add_gold = { 10 18 }
                 stress_impact = {
                    base = minor_stress_impact_gain
                }
            }
            25 = {
                custom_tooltip = deviant_pay_homage.2050.maidstealalltip.tt
                stress_impact = {
                    base = medium_stress_impact_gain
                }
                if = {
                    limit = { NOT = { has_trait = ill } }
                    add_trait = ill
                }
            }
        }
        hidden_effect = {
            scope:petition_liege = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 30 100 }
				}	
			}
        }    
        trigger_event = petition_liege.9100
	}
}



#2500 we are going to have so much fun, start bondage humiliation thing using the progress bar
deviant_pay_homage.2500 = { 
	type = character_event
	title = deviant_pay_homage.2500.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2500.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2500.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2500.e.desc
			}
		}
	}	
    override_background = {
		reference = study
	}
	theme = deviantscourtesango
    left_portrait = {
		character = scope:petition_liege
		animation = scheme
	}
    right_portrait = {
		character = scope:petition_courtier
		animation = throne_room_kneel_1
	}
    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
		}
        save_scope_value_as = { # 
			name = event_chain_progress
			value = 1
		}
    }
	# diplo
	option = {
		name = deviant_pay_homage.2500.diploduel
		custom_tooltip = deviant_pay_homage.2500.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
        }
        duel = {
			skills = { diplomacy intrigue prowess }
			target = scope:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2500.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_bondage_won
                    random_list = {
                        15 = {
                            scope:petition_liege = {
                                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 = deviant_pay_homage.2500.diploduellose.tt
				}		
                add_character_flag = deviant_bondage_lost
			}
		}
        hidden_effect = {
                random_list = {
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2510 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2511 
                }
                #loss events
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2520 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_five }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2521 
                }
            } 
        }
	}		
	
    #please excused me...
	option = { 
		name = deviant_pay_homage.2500.x
		custom_tooltip = deviant_pay_homage.2500.x.tt
		scope:petition_liege = {
			add_opinion = {
				target = scope:petition_courtier
				modifier = disappointed_opinion
				opinion = { -1 -10 }
			}
		}
		trigger_event = petition_liege.9100
	}
}


#2510 only when having fun, tied you like a pet animal to mess with you
deviant_pay_homage.2510 = { 
	type = character_event
	title = deviant_pay_homage.2510.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2510.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2510.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2510.e.desc
			}
		}
	}	
    override_background = {
		reference = deviant_bondagepig_one
	}
	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 = deviant_pay_homage.2510.diploduel
		custom_tooltip = deviant_pay_homage.2510.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
        }
        duel = {
			skills = { intrigue prowess }
			target = scope:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2510.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_bondage_won
                    random_list = {
                        15 = {
                            scope:petition_liege = {
                                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
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_campslut
                        track = sexual_service_submission
                        value = 2
                    }
                    add_trait_xp = {
                        trait = deviants_mask
                        track = deviantlibido
                        value = 1
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.2510.diploduellose.tt
				}		
                add_character_flag = deviant_bondage_lost
			}
		}
        hidden_effect = {
                random_list = {
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2510 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2511 
                }
                #loss events
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2520 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2521 
                }
                #end events
                10 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_two }
                        has_character_flag = deviant_anal_round_two
                    }
                    trigger_event = deviant_pay_homage.2541 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_anal_good_two
                    }
                    trigger_event = deviant_pay_homage.2542 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_good_four
                    }
                    trigger_event = deviant_pay_homage.2543 
                }
            } 
        }
	}
    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
            }
        } 
    }	
}    	
#2511 only when having fun, tied you up to fuck dildo while messing with you
deviant_pay_homage.2511 = { 
	type = character_event
	title = deviant_pay_homage.2511.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2511.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2511.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2511.e.desc
			}
		}
	}	
    override_background = {
		reference = deviant_bondage_dildofuck_one
	}
	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 = deviant_pay_homage.2511.diploduel
		custom_tooltip = deviant_pay_homage.2511.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
        }
        duel = {
			skills = { diplomacy intrigue prowess }
			target = scope:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2511.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_bondage_won
                    random_list = {
                        15 = {
                            scope:petition_liege = {
                                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
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_campslut
                        track = sexual_service_submission
                        value = 2
                    }
                    add_trait_xp = {
                        trait = deviants_mask
                        track = deviantlibido
                        value = 1
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.2511.diploduellose.tt
				}		
                add_character_flag = deviant_bondage_lost
			}
		}
        hidden_effect = {
                random_list = {
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2510 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2511 
                }
                #loss events
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2520 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2521 
                }
                #end events
                10 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_two }
                        has_character_flag = deviant_anal_round_two
                    }
                    trigger_event = deviant_pay_homage.2541 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_anal_good_two
                    }
                    trigger_event = deviant_pay_homage.2542 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_good_four
                    }
                    trigger_event = deviant_pay_homage.2543 
                }
            } 
        }
	}
    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
            }
        } 
    }	
}   

#double oral with a maid, to see which is better
#
#


#2520 only as punishment, fisting pussy, teaching you like a puppet
deviant_pay_homage.2520 = { 
	type = character_event
	title = deviant_pay_homage.2520.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2520.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2520.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2520.e.desc
			}
		}
	}	
    override_background = {
		reference = deviantbasicfisting_two
	}
	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 = deviant_pay_homage.2520.diploduel
		custom_tooltip = deviant_pay_homage.2520.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
        }
        duel = {
			skills = { diplomacy intrigue prowess }
			target = scope:petition_liege
			# win
			40 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2520.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_bondage_won
                    random_list = {
                        15 = {
                            scope:petition_liege = {
                                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
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_campslut
                        track = sexual_service_submission
                        value = 2
                    }
                    add_trait_xp = {
                        trait = deviants_mask
                        track = deviantlibido
                        value = 1
                    }
                }
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.2520.diploduellose.tt
				}		
                add_character_flag = deviant_bondage_lost
			}
		}
        hidden_effect = {
                random_list = {
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2510 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2511 
                }
                #loss events
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2520 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2521 
                }
                #end events
                10 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_two }
                        has_character_flag = deviant_anal_round_two
                    }
                    trigger_event = deviant_pay_homage.2541 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_anal_good_two
                    }
                    trigger_event = deviant_pay_homage.2542 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_good_four
                    }
                    trigger_event = deviant_pay_homage.2543 
                }
            } 
        }
	}
    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
            }
        } 
    }	
}   
#2521 only as punishment, tied you up to have some ugly virgin male servant or other fuck your ass.
deviant_pay_homage.2521 = { 
	type = character_event
	title = deviant_pay_homage.2521.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2521.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2521.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2521.e.desc
			}
		}
	}	
    override_background = {
		reference = deviant_analcum_pig_bondage_one
	}
	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 = deviant_pay_homage.2521.diploduel
		custom_tooltip = deviant_pay_homage.2521.diploduel.tt
        hidden_effect = {
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
        }
        duel = {
			skills = { intrigue prowess }
			target = scope:petition_liege
			# win
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2521.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_bondage_won
                    random_list = {
                        15 = {
                            scope:petition_liege = {
                                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
                    }
                } 
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviants_campslut
                        track = sexual_service_submission
                        value = 2
                    }
                    add_trait_xp = {
                        trait = deviants_mask
                        track = deviantlibido
                        value = 1
                    }
                }
			}
			# lose
			50 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.2521.diploduellose.tt
				}		
                add_character_flag = deviant_bondage_lost
			}
		}
        hidden_effect = {
                random_list = {
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2510 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_won
                    }
                    trigger_event = deviant_pay_homage.2511 
                }
                #loss events
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2520 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_bondage_lost
                    }
                    trigger_event = deviant_pay_homage.2521 
                }
                #end events
                10 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_two }
                        has_character_flag = deviant_anal_round_two
                    }
                    trigger_event = deviant_pay_homage.2541 
                }
                20 = {
                    trigger = {
                        NOT = { has_character_flag = deviant_anal_good_four }
                        has_character_flag = deviant_anal_good_two
                    }
                    trigger_event = deviant_pay_homage.2542 
                }
                100 = {
                    trigger = {
                        has_character_flag = deviant_anal_good_four
                    }
                    trigger_event = deviant_pay_homage.2543 
                }
            } 
        }
	}
    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
            }
        } 
    }	
}   

#2541 0 or1, not feeling like cumming, leaves you bound... and informs your maids... who rumor...
deviant_pay_homage.2541 = { 
	type = character_event
	title = deviant_pay_homage.2541.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2541.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2541.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2541.e.desc
			}
		}
	}	
    override_background = {
		reference = deviant_bondage_stickinass_one
	}
	theme = deviantscourtesango
    widget = {
		gui = "event_window_widget_deviant_satisfactioncum_progress"
		container = "custom_widgets_container"
		controller = event_chain_progress
	}
    immediate = {
        reverse_add_opinion = {
                target = scope:petition_liege
                modifier = annoyed_opinion
                opinion = { -10 -1 }
            }
        pay_short_term_gold = {
            target = root
            gold = 1
        }
        scope:petition_liege = {
            stress_impact = {
                base = minor_stress_impact_gain
                lustful = minor_stress_impact_gain
            }
            hidden_effect = {
				add_character_modifier = {
					modifier = deviant_boredofwhores_modifier
					days = { 60 200 }
				}	
                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 = {
		name = deviant_pay_homage.2541.a
		custom_tooltip = deviant_pay_homage.2541.a.tt
        stress_impact = {
            base = minor_stress_impact_gain
        }
        add_prestige = minor_prestige_loss
	}	
    													
    after = {
        hidden_effect = {
            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_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
            scope:petition_liege = { 
                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 }
            }
        }
		trigger_event = petition_liege.9100
    }
}

#2542 2 or more, mid boobjob face fuckcum while you bound...
deviant_pay_homage.2542 = { 
	type = character_event
	title = deviant_pay_homage.2542.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2542.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2542.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2542.e.desc
			}
		}
	}	
    override_background = {
		reference = deviant_bondage_boobjob_cum_one
	}

    
	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:petition_liege
                        modifier = annoyed_opinion
                        opinion = { -10 -1 }
                    }
                scope:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege
                    modifier = amused_opinion
                    opinion = { 10 30 }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                    scope:petition_liege = { 
                        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 = deviant_pay_homage.2542.a
		custom_tooltip = deviant_pay_homage.2542.a.tt
	}	
    # beg
	option = {
		name = deviant_pay_homage.2542.b
		custom_tooltip = deviant_pay_homage.2542.b.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:petition_liege
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2542.bwin.tt
				}	 
                scope:petition_liege = {
                    pay_short_term_gold = {
                        target = root
                        gold = { tiny_gold_value minor_gold_value }
                    }
                }
                random_list = {
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            modifier = amused_opinion
                            opinion = { 10 30 }
                        }
                    }
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            modifier = flustered_opinion
                            opinion = { 1 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 = deviant_pay_homage.2542.blose.tt
				}	
                reverse_add_opinion = {
                    target = scope:petition_liege
                    modifier = dismissive_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_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_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
            scope:petition_liege = { 
                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 }
            }
        }
		trigger_event = petition_liege.9100
    }
}

#2543 4+well, he lets you ride anal on top while arms bound...
deviant_pay_homage.2543 = { 
	type = character_event
	title = deviant_pay_homage.2543.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2543.q.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2543.w.desc
			}
			triggered_desc = {
				trigger = { 
                    is_ai = no
				}
			desc = deviant_pay_homage.2543.e.desc
			}
		}
	}	
    override_background = {
		reference = deviant_bondage_analridecum_one
	}

    
	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:petition_liege
                        modifier = annoyed_opinion
                        opinion = { -10 -1 }
                    }
                scope:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege = {
                    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:petition_liege
                    modifier = amused_opinion
                    opinion = { 10 30 }
                }
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_slut_popularity
                        value = { 1 5 }
                    }
                    scope:petition_liege = { 
                        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 = deviant_pay_homage.2543.a
		custom_tooltip = deviant_pay_homage.2543.a.tt
	}	
    # beg
	option = {
		name = deviant_pay_homage.2543.b
		custom_tooltip = deviant_pay_homage.2543.b.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:petition_liege
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.2543.bwin.tt
				}	 
                scope:petition_liege = {
                    pay_short_term_gold = {
                        target = root
                        gold = { minor_gold_value medium_gold_value }
                    }
                }
                random_list = {
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            modifier = amused_opinion
                            opinion = { 10 30 }
                        }
                    }
                    25 = {
                        reverse_add_opinion = {
                            target = scope:petition_liege
                            modifier = flustered_opinion
                            opinion = { 1 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 = deviant_pay_homage.2543.blose.tt
				}	
                reverse_add_opinion = {
                    target = scope:petition_liege
                    modifier = dismissive_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_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_bondage_won
                }
                remove_character_flag = deviant_bondage_won
            }
            if = { 
                limit = {
                    has_character_flag = deviant_bondage_lost
                }
                remove_character_flag = deviant_bondage_lost
            }
            scope:petition_liege = { 
                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 }
            }
        }
		trigger_event = petition_liege.9100
    }
}

#being liege's slut
#5000 letter invite from liege
deviant_pay_homage.5000 = { 
	type = letter_event
	opening = deviant_pay_homage.5000.opening
	desc = deviant_pay_homage.5000.desc
	sender = scope:deviant_go_random_1
    cooldown = { years = 1 }
	trigger = {
		has_trait = deviants_mask
        has_trait = deviant_courtesan_slut
        is_female = yes
        has_trait_xp = {
			trait = deviant_courtesan_slut
			track = deviant_courtesan_slut_popularity
			value >= 100
		}
        liege = {
            age >= 18
            is_ai = yes
            OR = {	is_female = no	has_trait = futanari_genetic }
            is_adult = yes
            is_incapable = no
            is_imprisoned = no
			is_liege_or_above_of = root
			is_available_ai_adult = yes
            NOT = { has_character_flag = deviant_liege_as_players_pimp }
            gold >= minor_gold_value
            NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
            NOT = { has_trait = blind }
			NOT = { 
				has_trait = eunuch_1
				has_trait = beardless_eunuch
        	}
			any_courtier = {
                has_trait = special_courtesan_client 
			}
        }
	}
    immediate = {
        liege = {
			save_scope_as = deviant_go_random_1
		}
	}
	#
	option = {
		name = deviant_pay_homage.5000.a
		custom_tooltip = deviant_pay_homage.5000.a.tt
        trigger_event = deviant_pay_homage.5010
		
	}	
    #
	option = {
		name = deviant_pay_homage.5000.b
		custom_tooltip = deviant_pay_homage.5000.b.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = annoyed_opinion
			opinion = -10
		}	
	}
}
#5010 arrival, 
deviant_pay_homage.5010 = { 
	type = character_event
    title = deviant_pay_homage.5010.t
	desc = deviant_pay_homage.5010.desc
    theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
    right_portrait = {
		character = scope:deviant_go_random_1
		animation = throne_room_conversation_1
	}
    left_portrait = {
		character = root
		animation = throne_room_kneel_1
	}
	#
	option = {
		name = deviant_pay_homage.5010.a
		custom_tooltip = deviant_pay_homage.5010.a.tt
        trigger_event = deviant_pay_homage.5011
		
	}	
    #
	option = {
		name = deviant_pay_homage.5010.b
		custom_tooltip = deviant_pay_homage.5010.b.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = disappointed_opinion
			opinion = -10
		}	
	}
        #
	option = {
		name = deviant_pay_homage.5010.c
		custom_tooltip = deviant_pay_homage.5010.c.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = amused_opinion
			opinion = { 1 5 }
		}	
        add_prestige = minor_prestige_loss
        scope:deviant_go_random_1 = {
            add_prestige = minor_prestige_gain
        }
        add_character_modifier = {
			modifier = deviant_humiliated_courtier_modifier
			days = { 20 50 }
		}
	}
}

#5011 office
deviant_pay_homage.5011 = { 
	type = character_event
    title = deviant_pay_homage.5011.t
	desc = deviant_pay_homage.5011.desc
    theme = deviantscourtesango
    override_background = {
        reference = study
    }
    right_portrait = {
		character = scope:deviant_go_random_1
		animation = throne_room_conversation_1
	}
    left_portrait = {
		character = root
		animation = thinking
	}
	#
	option = {
		name = deviant_pay_homage.5011.a
		custom_tooltip = deviant_pay_homage.5011.a.tt
        trigger_event = deviant_pay_homage.5012
		
	}	
    #
	option = {
		name = deviant_pay_homage.5010.b
		custom_tooltip = deviant_pay_homage.5010.b.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = disappointed_opinion
			opinion = -10
		}	
	}
}
#5012 if accept initial
deviant_pay_homage.5012 = { 
	type = character_event
    title = deviant_pay_homage.5012.t
	desc = deviant_pay_homage.5012.desc
    theme = deviantscourtesango
    override_background = {
        reference = study
    }
    right_portrait = {
		character = scope:deviant_go_random_1
		animation = scheme
	}
    left_portrait = {
		character = root
		animation = flirtation
	}
	#
	option = {
		name = deviant_pay_homage.5012.a
		custom_tooltip = deviant_pay_homage.5012.a.tt
        trigger_event = deviant_pay_homage.5013
		
	}	
    #
	option = {
		name = deviant_pay_homage.5012.b
		custom_tooltip = deviant_pay_homage.5012.b.tt
        trigger_event = deviant_pay_homage.5014	
	}
}
#5013 if accept blowjob
deviant_pay_homage.5013 = { 
	type = character_event
    title = deviant_pay_homage.5013.t
	desc = deviant_pay_homage.5013.desc
    theme = deviantscourtesango
    override_background = {
        reference = deviant_oral_suck_four
    }
	#
	option = {
		name = deviant_pay_homage.5013.a
		custom_tooltip = deviant_pay_homage.5013.a.tt
        add_character_flag = deviant_accepted_liege_as_pimp
        scope:deviant_go_random_1 = {
            pay_short_term_gold = {
                target = root
                gold = minor_gold_value
            }
        }    
        create_artifact = {
			name = deviants_liege_whore_ring
			description = deviants_liege_whore_ring_desc
			type = miscellaneous
			modifier = deviants_liege_whore_ring_modifier
			visuals = deviants_liege_whore_ring
			template = deviant_liege_whore_ring_template
			creator = scope:deviant_go_random_1
			max_durability = 100
			wealth = 15
			quality = 15
		}
        if = { 
            limit = {
                NOT = { has_character_flag = deviant_accepted_liege_as_pimp }
            }
            add_character_flag = deviant_accepted_liege_as_pimp
        }
        if = { 
            limit = {
                scope:deviant_go_random_1 = {
			       NOT = { has_trait = deviants_blackmailliege }
		        }
            }
            scope:deviant_go_random_1 = {
                add_trait = deviants_blackmailliege
            }
        }
        if = { 
            limit = {
                scope:deviant_go_random_1 = {
			       NOT = { has_character_flag = deviant_liege_as_players_pimp }
		        }
            }
            scope:deviant_go_random_1 = {
                add_character_flag = deviant_liege_as_players_pimp
            }
        }
		
	}	
}
#5014 if get kicked out
deviant_pay_homage.5014 = { 
	type = character_event
    title = deviant_pay_homage.5014.t
	desc = deviant_pay_homage.5014.desc
    theme = deviantscourtesango
    override_background = {
        reference = corridor_night
    }
    right_portrait = {
		character = root
		animation = shock
	}
	#
	option = {
		name = deviant_pay_homage.5014.a
		custom_tooltip = deviant_pay_homage.5014.a.tt
        reverse_add_opinion = {
			target = scope:deviant_go_random_1
			modifier = disappointed_opinion
			opinion = -20
		}	
	}	
}

#basic asking to improve relations
deviant_pay_homage.5100 = { 
	type = letter_event
	opening = deviant_pay_homage.5100.opening
    desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviant_pay_homage.5100.a.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviant_pay_homage.5100.b.desc
			}
		}
	}
	sender = scope:deviant_go_liege_pimp
	trigger = {
        has_character_flag = deviant_accepted_liege_as_pimp
		has_trait = deviants_mask
        has_trait = deviant_courtesan_slut
        is_female = yes
        NOT = { has_character_flag = deviant_accepted_liege_as_master }
        any_character_artifact = {
            has_artifact_modifier = deviants_liege_whore_ring_modifier
        }
        liege = {
            age >= 18
            is_ai = yes
            OR = {	is_female = no	has_trait = futanari_genetic }
            is_adult = yes
            is_incapable = no
            is_imprisoned = no
            has_character_flag = deviant_liege_as_players_pimp
            has_trait = deviants_blackmailliege
			is_liege_or_above_of = root
			is_available_ai_adult = yes
            gold >= minor_gold_value
            NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
            NOT = { has_trait = blind }
			NOT = { 
				has_trait = eunuch_1
				has_trait = beardless_eunuch
        	}
			any_courtier = {
                age >= 18
                is_ai = yes
                OR = {	is_female = no	has_trait = futanari_genetic }
                is_adult = yes
                is_incapable = no
                is_imprisoned = no
                is_available_ai_adult = yes
                gold >= minor_gold_value
                NOT = { has_trait = chaste }
                NOT = { has_trait = shy }
                NOT = { has_trait = celibate }
                NOT = { has_trait = blind }
                NOT = { 
                    has_trait = eunuch_1
                    has_trait = beardless_eunuch
                }
                opinion = {
                    value <= 50
                    target = liege
                }
			}
        }
	}
    immediate = {
        liege = {
			save_scope_as = deviant_go_liege_pimp
            random_courtier = {
                limit = {
					age >= 18
                    is_ai = yes
                    OR = {	is_female = no	has_trait = futanari_genetic }
                    is_adult = yes
                    is_incapable = no
                    is_imprisoned = no
                    is_available_ai_adult = yes
                    gold >= minor_gold_value
                    NOT = { has_trait = chaste }
                    NOT = { has_trait = shy }
                    NOT = { has_trait = celibate }
                    NOT = { has_trait = blind }
                    NOT = { 
                        has_trait = eunuch_1
                        has_trait = beardless_eunuch
                    }
                    opinion = {
                        value <= 50
                        target = liege
                    }
				}
			    save_scope_as = deviant_go_random_1
            }
		}
	}
	#
	option = {
		name = deviant_pay_homage.5100.a
		custom_tooltip = deviant_pay_homage.5100.a.tt
        scope:deviant_go_liege_pimp = {
            pay_short_term_gold = {
                target = root
                gold = tiny_gold_value
            }
        }  
        hidden_effect = {
            random_list = {
                25 = {
                    trigger_event = deviant_pay_homage.5110
                }
                30 = {
                    trigger = {
                        scope:deviant_go_random_1 = {
                            OR = {	
                                has_trait = sadistic
                                has_trait = arrogant
                                has_trait = wrathful
                                has_trait = ambitious
                                has_trait = vengeful
                                has_trait = callous
                                has_trait = deceitful
                            }
                            opinion = {
                                value <= 50
                                target = root
                            }
                        }
                    }
                    trigger_event = deviant_pay_homage.5120
                }
                20 = {
                    trigger = {
                        scope:deviant_go_random_1 = {
                            NOT = { has_trait = sadistic }
                            NOT = { has_trait = arrogant }
                            NOT = { has_trait = wrathful }
                            NOT = { has_trait = ambitious }
                            NOT = { has_trait = vengeful }
                            NOT = { has_trait = callous }
                            NOT = { has_trait = deceitful }
                            opinion = {
                                value >= 50
                                target = root
                            }
                        }
                    }
                    trigger_event = deviant_pay_homage.5130
                }
            }
        }    
	}	
    #
	option = {
		name = deviant_pay_homage.5100.b
		custom_tooltip = deviant_pay_homage.5100.b.tt
        reverse_add_opinion = {
			target = scope:deviant_go_liege_pimp
			modifier = annoyed_opinion
			opinion = { -1 -20 }
		}	
	}
}

deviant_pay_homage.5110 = { 
	type = character_event
    title = deviant_pay_homage.5110.t
    desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviant_pay_homage.5110.a.desc
			}
			triggered_desc = {
				trigger = { 
					is_ai = no
				}
			desc = deviant_pay_homage.5110.b.desc
			}
		}
	}
    theme = deviantscourtesango
    override_background = {
        reference = corridor_night
    }
    left_portrait = {
		character = root
		animation = scheme
        outfit_tags = { mena_stealth }
	}
    right_portrait = {
		character = scope:deviant_go_random_1
		animation = interested
	}
	#
	option = {
		name = deviant_pay_homage.5110.a
		custom_tooltip = deviant_pay_homage.5110.a.tt
        trigger_event = deviant_pay_homage.5111
	}	
}

deviant_pay_homage.5111 = { 
	type = character_event
    title = deviant_pay_homage.5111.t
	desc = deviant_pay_homage.5111.desc
    theme = deviantscourtesango
    override_background = {
        reference = relaxing_room
    }
    lower_center_portrait = {
		character = root
		animation = flirtation
        outfit_tags = { no_clothes }
	}
    lower_right_portrait = {
		character = scope:deviant_go_random_1
		animation = thinking
        outfit_tags = { nightgown }
	}
	#duel to seduce for sex
	option = {
        trigger = {
            has_trait = deviant_courtesan_slut
        }
		name = deviant_pay_homage.5111.a
		custom_tooltip = deviant_pay_homage.5111.a.tt
        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 = deviant_pay_homage.5111.awin.tt
				}	 
                trigger_event = deviant_pay_homage.5112
                show_as_tooltip = {
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_1
                        PREGNANCY_CHANCE = 0
                    }
                }    
                
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.5111.alose.tt
				}	
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 1 3 }
                                    }
                                }
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 2 5 }
                                    }
                                }    
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                                add_character_modifier = {
                                    modifier = deviant_knownslut_modifier
                                    days = { 20 60}
                                }
                            }
                        }
                    }	
                }		
			}
		}
	}	
    # submit...
	option = {
		name = deviant_pay_homage.5111.b
		custom_tooltip = deviant_pay_homage.5111.b.tt
        trigger_event = deviant_pay_homage.5113
	}	
    # diplo +intrigue duel
	option = {
		name = deviant_pay_homage.5111.c
		custom_tooltip = deviant_pay_homage.5111.c.tt
        duel = {
            skills = { diplomacy intrigue }
            target = scope:deviant_go_random_1
            # win
            30 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = deviant_pay_homage.5111.cwin.tt
                }	 
                 hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_won_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_won_talks_withpeercourtier
                        random_list = {
                            25 = {
                                trigger = {
                                    scope:deviant_go_liege_pimp = {
                                        can_add_hook = {
                                            target = scope:deviant_go_random_1
                                            type = manipulation_hook
                                        }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    add_hook = {
                                        type = manipulation_hook
                                        target = scope:deviant_go_random_1
                                    }
                                }
                            }
                            25 = {
                                #
                                scope:deviant_go_random_1 = {
                                    pay_short_term_gold = {
                                        target = scope:deviant_go_liege_pimp
                                        gold = minor_gold_value
                                    }
                                }    
                            }
                            100 = {
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_popularity
                                        value = { 1 4 }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    reverse_add_opinion = {
                                        target = scope:deviant_go_random_1
                                        modifier = respect_opinion
                                        opinion = { 20 40 }
                                    }
                                }  
                            }
                        }
                    }	
                } 
            }
            # lose
            70 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = -3.5
                        min = -49
                }	
                custom_tooltip = {
                    text = deviant_pay_homage.5111.close.tt
                }	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -20 -10 }
                }
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander  
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                            }
                        }
                    }	
                }   	
            }
        }
    }	    
}

deviant_pay_homage.5112 = { 
	type = character_event
    title = deviant_pay_homage.5112.t
	desc = deviant_pay_homage.5112.desc
    theme = deviantscourtesango
    override_background = {
		trigger = { 
            has_character_flag = background_one
        }
		reference = deviant_sideways_vaginalcum
	}
    override_background = {
		trigger = { 
            has_character_flag = background_two
        }
		reference = deviant_cowgirl_cum_3
	}
    override_background = {
		trigger = { 
            has_character_flag = background_three
        }
		reference = deviant_cowgirl_cum_2
	}
    override_background = {
		trigger = { 
            has_character_flag = background_four
        }
		reference = deviant_cowgirl_cum_1
	}
    override_background = {
		trigger = { 
            has_character_flag = background_five
        }
		reference = deviantvaginalcreampiebasic
	}
    override_background = {
		trigger = { 
            has_character_flag = background_six
        }
		reference = deviant_vaginalcum_frombehind
	}
    immediate = {
        hidden_effect = {
			random_list = {
				25 = {
					ROOT = {
						add_character_flag = background_one
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_two
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_three
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_four
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_five
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_six
					}
				}
			}
		}
        had_sex_with_effect = {
			CHARACTER = scope:deviant_go_random_1
			PREGNANCY_CHANCE = pregnancy_chance
		}
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_submission_to_hierarchy
                value = { 1 5 }
            }
        }
        hidden_effect = {
            scope:deviant_go_liege_pimp = {
                add_trait_xp = {
                    trait = deviants_blackmailliege
                    track = deviantliegefame
                    value = { 1 2 }
                }
            }    
        }
    }
	#
	option = {
		name = deviant_pay_homage.5112.a
		custom_tooltip = deviant_pay_homage.5112.a.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.5112.awin.tt
				}	
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_submission_to_hierarchy
                        value = { 1 5 }
                    }
                } 
                #random list benefit logs? like liege gaining hook?
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_won_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_won_talks_withpeercourtier
                        random_list = {
                            25 = {
                                trigger = {
                                    scope:deviant_go_liege_pimp = {
                                        can_add_hook = {
                                            target = scope:deviant_go_random_1
                                            type = manipulation_hook
                                        }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    add_hook = {
                                        type = manipulation_hook
                                        target = scope:deviant_go_random_1
                                    }
                                }
                            }
                            25 = {
                                #
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_submission_to_hierarchy
                                        value = { 1 3 }
                                    }
                                }
                                scope:deviant_go_random_1 = {
                                    pay_short_term_gold = {
                                        target = scope:deviant_go_liege_pimp
                                        gold = medium_gold_value
                                    }
                                }    
                            }
                            100 = {
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_popularity
                                        value = { 4 10 }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    reverse_add_opinion = {
                                        target = scope:deviant_go_random_1
                                        modifier = respect_opinion
                                        opinion = { 20 40 }
                                    }
                                }  
                            }
                        }
                    }	
                }  
			}
			# lose
			70 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.5112.alose.tt
				}	
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 1 3 }
                                    }
                                }
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 2 5 }
                                    }
                                }    
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                                add_character_modifier = {
                                    modifier = deviant_knownslut_modifier
                                    days = { 20 60}
                                }
                            }
                        }
                    }	
                }    	
			}
		}
	}	
}

deviant_pay_homage.5113 = { 
	type = character_event
    title = deviant_pay_homage.5113.t
	desc = deviant_pay_homage.5113.desc
    theme = deviantscourtesango
    override_background = {
		trigger = { 
            has_character_flag = background_one
        }
		reference = deviantcourtesanproneboneanalcum
	}
    override_background = {
		trigger = { 
            has_character_flag = background_two
        }
		reference = deviant_anal_fuck_5
	}
    override_background = {
		trigger = { 
            has_character_flag = background_three
        }
		reference = deviant_pronebone_anal_two
	}
    override_background = {
		trigger = { 
            has_character_flag = background_four
        }
		reference = deviant_choke_doggy_two
	}
    override_background = {
		trigger = { 
            has_character_flag = background_five
        }
		reference = deviant_choke_doggy_one
	}
    override_background = {
		trigger = { 
            has_character_flag = background_six
        }
		reference = deviantstrangledoggy
	}
    immediate = {
        hidden_effect = {
			random_list = {
				25 = {
					ROOT = {
						add_character_flag = background_one
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_two
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_three
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_four
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_five
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_six
					}
				}
			}
		}
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_submission_to_hierarchy
                value = { 5 10 }
            }
        }
        hidden_effect = {
            scope:deviant_go_liege_pimp = {
                add_trait_xp = {
                    trait = deviants_blackmailliege
                    track = deviantliegefame
                    value = { 5 10 }
                }
            }    
        }
        scope:deviant_go_random_1 = {
            stress_impact = {
                base = medium_stress_impact_loss
                lustful = minor_stress_impact_loss
                sadistic = medium_stress_impact_loss
            }
        }    
    }
	#
	option = {
		name = deviant_pay_homage.5113.a
		custom_tooltip = deviant_pay_homage.5113.a.tt
        hidden_effect = {
            send_interface_toast = {
                type = event_courtesan_mission_deviantgo_text
                title = deviant_won_talks_withpeercourtier_notification
                right_icon = ROOT
                custom_tooltip = deviant_won_talks_withpeercourtier
                random_list = {
                    25 = {
                        trigger = {
                            scope:deviant_go_liege_pimp = {
                                can_add_hook = {
                                    target = scope:deviant_go_random_1
                                    type = manipulation_hook
                                }
                            }
                        }
                        scope:deviant_go_liege_pimp = {
                            add_hook = {
                                type = manipulation_hook
                                target = scope:deviant_go_random_1
                            }
                        }
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = dismissive_opinion
                            opinion = { -20 -5 }
                        } 
                        add_prestige = minor_prestige_loss
                        add_character_modifier = {
                            modifier = deviant_knownslut_modifier
                            days = { 50 160}
                        }
                    }
                    25 = {
                        #
                        hidden_effect = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_submission_to_hierarchy
                                value = { 1 3 }
                            }
                        }
                        scope:deviant_go_random_1 = {
                            pay_short_term_gold = {
                                target = scope:deviant_go_liege_pimp
                                gold = medium_gold_value
                            }
                        }    
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = disgusted_opinion
                            opinion = { -20 -5 }
                        } 
                        add_prestige = minor_prestige_loss
                        add_character_modifier = {
                            modifier = deviant_knownslut_modifier
                            days = { 50 160}
                        }
                    }
                    100 = {
                        hidden_effect = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 1 5 }
                            }
                        }
                        scope:deviant_go_liege_pimp = {
                            reverse_add_opinion = {
                                target = scope:deviant_go_random_1
                                modifier = respect_opinion
                                opinion = { 20 40 }
                            }
                        }  
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = disgusted_opinion
                            opinion = { -20 -5 }
                        } 
                        add_prestige = minor_prestige_loss
                        add_character_modifier = {
                            modifier = deviant_knownslut_modifier
                            days = { 50 160}
                        }
                    }
                }
            }	
        }
	}	
}

#second shorter path thing
deviant_pay_homage.5120 = { 
	type = character_event
    title = deviant_pay_homage.5120.t
	desc = deviant_pay_homage.5120.desc
    theme = deviantscourtesango
    override_background = {
        reference = corridor_night
    }
    lower_center_portrait = {
		character = root
		animation = shock
        outfit_tags = { mena_stealth }
	}
    lower_right_portrait = {
		character = scope:deviant_go_random_1
		animation = scheme
	}
	#duel to seduce for sex
	option = {
        trigger = {
            has_trait = deviant_courtesan_slut
        }
		name = deviant_pay_homage.5120.a
		custom_tooltip = deviant_pay_homage.5120.a.tt
        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 = deviant_pay_homage.5120.awin.tt
				}	 
                trigger_event = deviant_pay_homage.5121
                show_as_tooltip = {
                    had_sex_with_effect = {
                        CHARACTER = scope:deviant_go_random_1
                        PREGNANCY_CHANCE = 0
                    }
                }    
                
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.5120.alose.tt
				}	
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 1 3 }
                                    }
                                }
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 2 5 }
                                    }
                                }    
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                                add_character_modifier = {
                                    modifier = deviant_knownslut_modifier
                                    days = { 20 60}
                                }
                            }
                        }
                    }	
                }		
			}
		}
	}	
    # submit...
	option = {
		name = deviant_pay_homage.5120.b
		custom_tooltip = deviant_pay_homage.5120.b.tt
        trigger_event = deviant_pay_homage.5122
	}	
    # diplo +intrigue duel
	option = {
		name = deviant_pay_homage.5120.c
		custom_tooltip = deviant_pay_homage.5120.c.tt
        duel = {
            skills = { diplomacy intrigue }
            target = scope:deviant_go_random_1
            # win
            30 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = deviant_pay_homage.5120.cwin.tt
                }	 
                 hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_won_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_won_talks_withpeercourtier
                        random_list = {
                            25 = {
                                trigger = {
                                    scope:deviant_go_liege_pimp = {
                                        can_add_hook = {
                                            target = scope:deviant_go_random_1
                                            type = manipulation_hook
                                        }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    add_hook = {
                                        type = manipulation_hook
                                        target = scope:deviant_go_random_1
                                    }
                                }
                            }
                            25 = {
                                #
                                scope:deviant_go_random_1 = {
                                    pay_short_term_gold = {
                                        target = scope:deviant_go_liege_pimp
                                        gold = minor_gold_value
                                    }
                                }    
                            }
                            100 = {
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_popularity
                                        value = { 1 4 }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    reverse_add_opinion = {
                                        target = scope:deviant_go_random_1
                                        modifier = respect_opinion
                                        opinion = { 20 40 }
                                    }
                                }  
                            }
                        }
                    }	
                } 
            }
            # lose
            70 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = -3.5
                        min = -49
                }	
                custom_tooltip = {
                    text = deviant_pay_homage.5120.close.tt
                }	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -20 -10 }
                }
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander  
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                            }
                        }
                    }	
                }   	
            }
        }
    }	    
}

deviant_pay_homage.5121 = { 
	type = character_event
    title = deviant_pay_homage.5121.t
	desc = deviant_pay_homage.5121.desc
    theme = deviantscourtesango
    override_background = {
		trigger = { 
            has_character_flag = background_one
        }
		reference = deviant_lustful_vagcum_1
	}
    override_background = {
		trigger = { 
            has_character_flag = background_two
        }
		reference = deviant_matingpress_fuck_one
	}
    override_background = {
		trigger = { 
            has_character_flag = background_three
        }
		reference = deviant_matingpress_cum_one
	}
    override_background = {
		trigger = { 
            has_character_flag = background_four
        }
		reference = deviant_vaginal_fuck_cum_five
	}
    override_background = {
		trigger = { 
            has_character_flag = background_five
        }
		reference = deviant_vaginal_fuck_cum_eight
	}
    override_background = {
		trigger = { 
            has_character_flag = background_six
        }
		reference = deviant_uglybastard_vaginalcum_one
	}
    immediate = {
        hidden_effect = {
			random_list = {
				25 = {
					ROOT = {
						add_character_flag = background_one
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_two
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_three
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_four
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_five
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_six
					}
				}
			}
		}
        had_sex_with_effect = {
			CHARACTER = scope:deviant_go_random_1
			PREGNANCY_CHANCE = pregnancy_chance
		}
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_submission_to_hierarchy
                value = { 1 5 }
            }
        }
        hidden_effect = {
            scope:deviant_go_liege_pimp = {
                add_trait_xp = {
                    trait = deviants_blackmailliege
                    track = deviantliegefame
                    value = { 1 2 }
                }
            }    
        }
    }
	#
	option = {
		name = deviant_pay_homage.5121.a
		custom_tooltip = deviant_pay_homage.5121.a.tt
        duel = {
			skills = { diplomacy intrigue }
			target = scope:deviant_go_random_1
			# win
			30 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = 3.5
						min = -49
				}
				custom_tooltip = {
					text = deviant_pay_homage.5121.awin.tt
				}	
                hidden_effect = {
                    add_trait_xp = {
                        trait = deviant_courtesan_slut
                        track = deviant_courtesan_submission_to_hierarchy
                        value = { 1 5 }
                    }
                } 
                #random list benefit logs? like liege gaining hook?
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_won_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_won_talks_withpeercourtier
                        random_list = {
                            25 = {
                                trigger = {
                                    scope:deviant_go_liege_pimp = {
                                        can_add_hook = {
                                            target = scope:deviant_go_random_1
                                            type = manipulation_hook
                                        }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    add_hook = {
                                        type = manipulation_hook
                                        target = scope:deviant_go_random_1
                                    }
                                }
                            }
                            25 = {
                                #
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_submission_to_hierarchy
                                        value = { 1 3 }
                                    }
                                }
                                scope:deviant_go_random_1 = {
                                    pay_short_term_gold = {
                                        target = scope:deviant_go_liege_pimp
                                        gold = medium_gold_value
                                    }
                                }    
                            }
                            100 = {
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_popularity
                                        value = { 4 10 }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    reverse_add_opinion = {
                                        target = scope:deviant_go_random_1
                                        modifier = respect_opinion
                                        opinion = { 20 40 }
                                    }
                                }  
                            }
                        }
                    }	
                }  
			}
			# lose
			70 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.5121.alose.tt
				}	
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 1 3 }
                                    }
                                }
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 2 10 }
                                    }
                                }    
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                                add_character_modifier = {
                                    modifier = deviant_knownslut_modifier
                                    days = { 20 60}
                                }
                            }
                        }
                    }	
                }    	
			}
		}
	}	
}

deviant_pay_homage.5122 = { 
	type = character_event
    title = deviant_pay_homage.5122.t
	desc = deviant_pay_homage.5122.desc
    theme = deviantscourtesango
    override_background = {
		trigger = { 
            has_character_flag = background_one
        }
		reference = deviant_choke_doggy_one
	}
    override_background = {
		trigger = { 
            has_character_flag = background_two
        }
		reference = deviant_choke_doggy_two
	}
    override_background = {
		trigger = { 
            has_character_flag = background_three
        }
		reference = deviant_pronebone_anal_one
	}
    override_background = {
		trigger = { 
            has_character_flag = background_four
        }
		reference = deviantfullnelsoncum
	}
    override_background = {
		trigger = { 
            has_character_flag = background_five
        }
		reference = deviantfullnelsoncum
	}
    override_background = {
		trigger = { 
            has_character_flag = background_six
        }
		reference = deviant_anal_fuck_5
	}
    immediate = {
        hidden_effect = {
			random_list = {
				25 = {
					ROOT = {
						add_character_flag = background_one
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_two
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_three
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_four
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_five
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_six
					}
				}
			}
		}
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_submission_to_hierarchy
                value = { 5 10 }
            }
        }
        hidden_effect = {
            scope:deviant_go_liege_pimp = {
                add_trait_xp = {
                    trait = deviants_blackmailliege
                    track = deviantliegefame
                    value = { 5 10 }
                }
            }    
        }
        scope:deviant_go_random_1 = {
            stress_impact = {
                base = medium_stress_impact_loss
                lustful = minor_stress_impact_loss
                sadistic = medium_stress_impact_loss
            }
        }    
    }
	#
	option = {
		name = deviant_pay_homage.5122.a
		custom_tooltip = deviant_pay_homage.5122.a.tt
        hidden_effect = {
            send_interface_toast = {
                type = event_courtesan_mission_deviantgo_text
                title = deviant_won_talks_withpeercourtier_notification
                right_icon = ROOT
                custom_tooltip = deviant_won_talks_withpeercourtier
                random_list = {
                    25 = {
                        trigger = {
                            scope:deviant_go_liege_pimp = {
                                can_add_hook = {
                                    target = scope:deviant_go_random_1
                                    type = manipulation_hook
                                }
                            }
                        }
                        scope:deviant_go_liege_pimp = {
                            add_hook = {
                                type = manipulation_hook
                                target = scope:deviant_go_random_1
                            }
                        }
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = dismissive_opinion
                            opinion = { -20 -5 }
                        } 
                        add_prestige = minor_prestige_loss
                        add_character_modifier = {
                            modifier = deviant_knownslut_modifier
                            days = { 50 160}
                        }
                    }
                    25 = {
                        #
                        hidden_effect = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_submission_to_hierarchy
                                value = { 1 3 }
                            }
                        }
                        scope:deviant_go_random_1 = {
                            pay_short_term_gold = {
                                target = scope:deviant_go_liege_pimp
                                gold = medium_gold_value
                            }
                        }    
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = disgusted_opinion
                            opinion = { -20 -5 }
                        } 
                        add_prestige = minor_prestige_loss
                        add_character_modifier = {
                            modifier = deviant_knownslut_modifier
                            days = { 50 160}
                        }
                    }
                    100 = {
                        hidden_effect = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_infamy
                                value = { 1 10 }
                            }
                        }
                        scope:deviant_go_liege_pimp = {
                            reverse_add_opinion = {
                                target = scope:deviant_go_random_1
                                modifier = respect_opinion
                                opinion = { 20 40 }
                            }
                        }  
                        reverse_add_opinion = {
                            target = scope:deviant_go_random_1
                            modifier = disgusted_opinion
                            opinion = { -20 -5 }
                        } 
                        add_prestige = minor_prestige_loss
                        add_character_modifier = {
                            modifier = deviant_knownslut_modifier
                            days = { 50 160}
                        }
                    }
                }
            }	
        }
	}	
}

#5130 confused lord
deviant_pay_homage.5130 = { 
	type = character_event
    title = deviant_pay_homage.5130.t
	desc = deviant_pay_homage.5130.desc
    theme = deviantscourtesango
    override_background = {
		trigger = {
			OR = {
				location.culture ?= { has_graphical_india_culture_group_trigger = yes }
				location.culture ?= { has_graphical_mena_culture_group_trigger = yes }
				location.culture ?= { has_graphical_african_culture_group_trigger = yes }
				location.culture ?= { has_graphical_steppe_culture_group_trigger = yes }
			}
		}
		reference = relaxing_room
	}
	override_background = {
        trigger = {
            location.culture ?= { has_graphical_india_culture_group_trigger = no }
            location.culture ?= { has_graphical_mena_culture_group_trigger = no }
            location.culture ?= { has_graphical_african_culture_group_trigger = no }
            location.culture ?= { has_graphical_steppe_culture_group_trigger = no }
		}
		reference = sitting_room
	}
    lower_center_portrait = {
		character = root
		animation = flirtation
        outfit_tags = { no_clothes }
	}
    lower_right_portrait = {
		character = scope:deviant_go_random_1
		animation = shock
	}
	#duel to seduce for sex
	option = {
        trigger = {
            has_trait = deviant_courtesan_slut
        }
		name = deviant_pay_homage.5130.a
		custom_tooltip = deviant_pay_homage.5130.a.tt
        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 = deviant_pay_homage.5130.awin.tt
				}	 
                trigger_event = deviant_pay_homage.5131   
                
			}
			# lose
			60 = {
				compare_modifier = {
					value = scope:duel_value
						multiplier = -3.5
						min = -49
				}	
				custom_tooltip = {
					text = deviant_pay_homage.5130.alose.tt
				}	
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 1 3 }
                                    }
                                }
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_infamy
                                        value = { 2 10 }
                                    }
                                }    
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                                add_character_modifier = {
                                    modifier = deviant_knownslut_modifier
                                    days = { 20 60}
                                }
                            }
                        }
                    }	
                }		
			}
		}
	}		
    # diplo +intrigue duel
	option = {
		name = deviant_pay_homage.5130.b
		custom_tooltip = deviant_pay_homage.5130.b.tt
        duel = {
            skills = { diplomacy intrigue }
            target = scope:deviant_go_random_1
            # win
            30 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = deviant_pay_homage.5130.bwin.tt
                }	 
                 hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_won_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_won_talks_withpeercourtier
                        random_list = {
                            25 = {
                                trigger = {
                                    scope:deviant_go_liege_pimp = {
                                        can_add_hook = {
                                            target = scope:deviant_go_random_1
                                            type = manipulation_hook
                                        }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    add_hook = {
                                        type = manipulation_hook
                                        target = scope:deviant_go_random_1
                                    }
                                }
                            }
                            25 = {
                                #
                                scope:deviant_go_random_1 = {
                                    pay_short_term_gold = {
                                        target = scope:deviant_go_liege_pimp
                                        gold = minor_gold_value
                                    }
                                }    
                            }
                            100 = {
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_popularity
                                        value = { 1 4 }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    reverse_add_opinion = {
                                        target = scope:deviant_go_random_1
                                        modifier = respect_opinion
                                        opinion = { 20 40 }
                                    }
                                }  
                            }
                        }
                    }	
                } 
            }
            # lose
            70 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = -3.5
                        min = -49
                }	
                custom_tooltip = {
                    text = deviant_pay_homage.5130.blose.tt
                }	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -20 -10 }
                }
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesan_mission_deviantgo_text
                        title = deviant_failed_talks_withpeercourtier_notification
                        right_icon = ROOT
                        custom_tooltip = deviant_failed_talks_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander  
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                            }
                        }
                    }	
                }   	
            }
        }
    }	    
}

deviant_pay_homage.5131 = { 
	type = character_event
    title = deviant_pay_homage.5131.t
	desc = { 
		random_valid = {
			triggered_desc = {
				trigger = { 
					OR = {  
                        has_character_flag = background_one
                        has_character_flag = background_two
                        has_character_flag = background_three
                        has_character_flag = background_four
                        has_character_flag = background_five
                    }
				}
			desc = deviant_pay_homage.5131.a.desc
			}
			triggered_desc = {
				trigger = { 
					has_character_flag = background_six
				}
			desc = deviant_pay_homage.5131.b.desc
			}
		}
	}
    theme = deviantscourtesango
    override_background = {
		trigger = { 
            has_character_flag = background_one
        }
		reference = deviant_penis_flaccid_1
	}
    override_background = {
		trigger = { 
            has_character_flag = background_two
        }
		reference = deviant_penis_flaccid_2
	}
    override_background = {
		trigger = { 
            has_character_flag = background_three
        }
		reference = deviant_penis_flaccid_3
	}
    override_background = {
		trigger = { 
            has_character_flag = background_four
        }
		reference = deviant_penis_flaccid_4
	}
    override_background = {
		trigger = { 
            has_character_flag = background_five
        }
		reference = deviant_penis_flaccid_5
	}
    override_background = {
		trigger = { 
            has_character_flag = background_six
        }
		reference = deviantvaginafacesitlick_one
	}
    immediate = {
        hidden_effect = {
			random_list = {
				25 = {
					ROOT = {
						add_character_flag = background_one
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_two
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_three
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_four
					}
				}
				25 = {
					ROOT = {
						add_character_flag = background_five
					}
				}
				100 = {
					ROOT = {
						add_character_flag = background_six
					}
				}
			}
		}
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_submission_to_hierarchy
                value = { 1 5 }
            }
        }
        hidden_effect = {
            scope:deviant_go_liege_pimp = {
                add_trait_xp = {
                    trait = deviants_blackmailliege
                    track = deviantliegefame
                    value = { 1 2 }
                }
            }    
        }
        reverse_add_opinion = {
            target = scope:deviant_go_random_1
            modifier = flustered_opinion
            opinion = { 10 20 }
        }
    }
	#
	option = {
		name = deviant_pay_homage.5131.a
		custom_tooltip = deviant_pay_homage.5131.a.tt
        hidden_effect = {
            send_interface_toast = {
                type = event_courtesan_mission_deviantgo_text
                title = deviant_won_talks_withpeercourtier_notification
                right_icon = ROOT
                custom_tooltip = deviant_won_talks_withpeercourtier
                random_list = {
                    25 = {
                        trigger = {
                            scope:deviant_go_liege_pimp = {
                                can_add_hook = {
                                    target = scope:deviant_go_random_1
                                    type = manipulation_hook
                                }
                            }
                        }
                        scope:deviant_go_liege_pimp = {
                            add_hook = {
                                type = manipulation_hook
                                target = scope:deviant_go_random_1
                            }
                        }
                    }
                    25 = {
                        #
                        hidden_effect = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_submission_to_hierarchy
                                value = { 1 3 }
                            }
                        }
                        scope:deviant_go_random_1 = {
                            pay_short_term_gold = {
                                target = scope:deviant_go_liege_pimp
                                gold = medium_gold_value
                            }
                        }    
                    }
                    100 = {
                        hidden_effect = {
                            add_trait_xp = {
                                trait = deviant_courtesan_slut
                                track = deviant_courtesan_slut_popularity
                                value = { 4 10 }
                            }
                        }
                        scope:deviant_go_liege_pimp = {
                            reverse_add_opinion = {
                                target = scope:deviant_go_random_1
                                modifier = respect_opinion
                                opinion = { 20 40 }
                            }
                        }  
                    }
                }
            }	
        }

	}	
}


#macth decs to pics and just write like 10 variants on the sex act?


deviant_pay_homage.5200 = { 
	type = letter_event
	opening = deviant_pay_homage.5200.opening
    desc = deviant_pay_homage.5200.a.desc
	sender = scope:deviant_go_liege_pimp
	trigger = {
        has_character_flag = deviant_accepted_liege_as_pimp
        NOT = { has_character_flag = deviant_accepted_liege_as_master }
		has_trait = deviants_mask
        has_trait = deviant_courtesan_slut
        is_female = yes
        any_character_artifact = {
            has_artifact_modifier = deviants_liege_whore_ring_modifier
        }
        has_trait_xp = {
            trait = deviant_courtesan_slut
            track = deviant_courtesan_submission_to_hierarchy
            value >= 20
        }
        has_trait_xp = {
            trait = deviant_courtesan_slut
            track = deviant_courtesan_slut_infamy
            value >= 50
        }
        liege = {
            age >= 18
            is_ai = yes
            OR = {	is_female = no	has_trait = futanari_genetic }
            is_adult = yes
            is_incapable = no
            is_imprisoned = no
            has_character_flag = deviant_liege_as_players_pimp
            has_trait = deviants_blackmailliege
			is_liege_or_above_of = root
			is_available_ai_adult = yes
            NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
            NOT = { has_trait = blind }
			NOT = { 
				has_trait = eunuch_1
				has_trait = beardless_eunuch
        	}
            has_trait_xp = {
                trait = deviants_blackmailliege
                track = deviantliegefame
                value >= 20
            }
        }
	}
    immediate = {
        liege = {
			save_scope_as = deviant_go_liege_pimp
		}
	}
	#
	option = {
		name = deviant_pay_homage.5200.a
		custom_tooltip = deviant_pay_homage.5200.a.tt  
        trigger_event = deviant_pay_homage.5201
	}	
    #
	option = {
		name = deviant_pay_homage.5200.b
		custom_tooltip = deviant_pay_homage.5200.b.tt
        pay_short_term_gold = {
            target = scope:deviant_go_liege_pimp
            gold = massive_gold_value
        }
	}
    #
	option = {
		name = deviant_pay_homage.5200.c
		custom_tooltip = deviant_pay_homage.5200.c.tt
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_infamy
                value = { 2 10 }
            }
        }    
        add_character_modifier = {
            modifier = deviant_knownslut_modifier
            days = { 200 300 }
        }
        add_prestige = medium_prestige_loss
	}
}

deviant_pay_homage.5201 = { 
	type = character_event
    title = deviant_pay_homage.5201.t
    desc = deviant_pay_homage.5201.a.desc
    theme = deviantscourtesango
    override_background = {
        reference = study
    }
    left_portrait = {
		character = root
		animation = throne_room_kneel_1
	}
    right_portrait = {
		character = scope:deviant_go_liege_pimp
		animation = chancellor
	}
	#
	option = {
		name = deviant_pay_homage.5201.a
		custom_tooltip = deviant_pay_homage.5201.a.tt
        trigger_event = deviant_pay_homage.5202
	}	
    option = {
		name = deviant_pay_homage.5201.b
		custom_tooltip = deviant_pay_homage.5201.b.tt
        pay_short_term_gold = {
            target = scope:deviant_go_liege_pimp
            gold = massive_gold_value
        }
	}
    option = {
		name = deviant_pay_homage.5201.c
		custom_tooltip = deviant_pay_homage.5201.c.tt
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_infamy
                value = { 2 10 }
            }
        }    
        add_character_modifier = {
            modifier = deviant_knownslut_modifier
            days = { 200 300 }
        }
        add_prestige = medium_prestige_loss
	}
}

deviant_pay_homage.5202 = { 
	type = character_event
    title = deviant_pay_homage.5202.t
    desc = deviant_pay_homage.5202.a.desc
    theme = deviantscourtesango
    override_background = {
        reference = deviantbasicneckhold
    }
	#
	option = {
		name = deviant_pay_homage.5202.a
		custom_tooltip = deviant_pay_homage.5202.a.tt
        trigger_event = deviant_pay_homage.5203
	}	
}

deviant_pay_homage.5203 = { 
	type = character_event
    title = deviant_pay_homage.5203.t
    desc = deviant_pay_homage.5203.a.desc
    theme = deviantscourtesango
    override_background = {
        reference = deviant_lustful_vagcum_3
    }
    immediate = {
        had_sex_with_effect = {
			CHARACTER = scope:deviant_go_liege_pimp
			PREGNANCY_CHANCE = pregnancy_chance
		}
    }
	#
	option = {
		name = deviant_pay_homage.5203.a
		custom_tooltip = deviant_pay_homage.5203.a.tt
        add_character_flag = deviant_accepted_liege_as_master
	}	
}


deviant_pay_homage.6000 = { 
	type = character_event
    title = deviant_pay_homage.6000.t
    desc = deviant_pay_homage.6000.a.desc
    theme = deviantscourtesango
    override_background = {
        reference = throne_room
    }
    left_portrait = {
		character = root
		animation = chancellor
	}
    right_portrait = {
		character = scope:deviant_go_random_1
		animation = scheme
	}
    trigger = {
        has_character_flag = deviant_accepted_liege_as_pimp
        has_character_flag = deviant_accepted_liege_as_master
		has_trait = deviants_mask
        has_trait = deviant_courtesan_slut
        is_female = yes
        any_character_artifact = {
            has_artifact_modifier = deviants_liege_whore_ring_modifier
        }
        liege = {
            age >= 18
            is_ai = yes
            OR = {	is_female = no	has_trait = futanari_genetic }
            is_adult = yes
            is_incapable = no
            is_imprisoned = no
            has_character_flag = deviant_liege_as_players_pimp
            has_trait = deviants_blackmailliege
			is_liege_or_above_of = root
			is_available_ai_adult = yes
            NOT = { has_trait = chaste }
			NOT = { has_trait = shy }
			NOT = { has_trait = celibate }
            NOT = { has_trait = blind }
			NOT = { 
				has_trait = eunuch_1
				has_trait = beardless_eunuch
        	}
            any_courtier = {
                age >= 18
                is_ai = yes
                OR = {	is_female = no	has_trait = futanari_genetic }
                is_adult = yes
                is_incapable = no
                is_imprisoned = no
                is_available_ai_adult = yes
                gold >= minor_gold_value
                NOT = { has_trait = chaste }
                NOT = { has_trait = shy }
                NOT = { has_trait = celibate }
                NOT = { has_trait = blind }
                NOT = { 
                    has_trait = eunuch_1
                    has_trait = beardless_eunuch
                }
			}
        }
	}
    immediate = {
        liege = {
			save_scope_as = deviant_go_liege_pimp
            random_courtier = {
                limit = {
					age >= 18
                    is_ai = yes
                    OR = {	is_female = no	has_trait = futanari_genetic }
                    is_adult = yes
                    is_incapable = no
                    is_imprisoned = no
                    is_available_ai_adult = yes
                    NOT = { has_trait = chaste }
                    NOT = { has_trait = shy }
                    NOT = { has_trait = celibate }
                    NOT = { has_trait = blind }
                    NOT = { 
                        has_trait = eunuch_1
                        has_trait = beardless_eunuch
                    }
				}
			    save_scope_as = deviant_go_random_1
            }
		}
	}
	#
	option = {
		name = deviant_pay_homage.6000.a
		custom_tooltip = deviant_pay_homage.6000.a.tt
        trigger_event = deviant_pay_homage.6001
	}	
    option = {
		name = deviant_pay_homage.6000.b
		custom_tooltip = deviant_pay_homage.6000.b.tt
        pay_short_term_gold = {
            target = scope:deviant_go_random_1
            gold = { minor_gold_value massive_gold_value }
        }
	}
    option = {
		name = deviant_pay_homage.6000.c
		custom_tooltip = deviant_pay_homage.6000.c.tt   
        add_character_modifier = {
            modifier = deviant_disobedientcourtier_modifier
            days = { 200 300 }
        }
        add_prestige = medium_prestige_loss
	}
}

deviant_pay_homage.6001 = { 
	type = character_event
    title = deviant_pay_homage.6001.t
    desc = deviant_pay_homage.6001.a.desc
    theme = deviantscourtesango
    override_background = {
        reference = deviants_haigure_1
    }
    lower_center_portrait = {
		character = scope:deviant_go_random_1
		animation = thinking
	}
    immediate = {
        hidden_effect = {
            add_trait_xp = {
                trait = deviant_courtesan_slut
                track = deviant_courtesan_slut_infamy
                value = { 2 10 }
            }
        }    
        add_character_modifier = {
            modifier = deviant_knownslut_modifier
            days = { 100 200 }
        }
        add_prestige = { minor_prestige_loss medium_prestige_loss }
    }
	#
	option = {
		name = deviant_pay_homage.6001.a
		custom_tooltip = deviant_pay_homage.6001.a.tt
        duel = {
            skills = { diplomacy intrigue }
            target = scope:deviant_go_random_1
            # win
            30 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = 3.5
                        min = -49
                }
                custom_tooltip = {
                    text = deviant_pay_homage.6001.bwin.tt
                }	 
                 hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesanslut_deviantgo_text
                        title = deviant_won_bodyoffer_withpeercourtier_notification
                        right_icon = ROOT
                        left_icon = scope:deviant_go_random_1
                        desc = deviant_won_bodyoffer_withpeercourtier
                        random_list = {
                            25 = {
                                trigger = {
                                    scope:deviant_go_liege_pimp = {
                                        can_add_hook = {
                                            target = scope:deviant_go_random_1
                                            type = manipulation_hook
                                        }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    add_hook = {
                                        type = manipulation_hook
                                        target = scope:deviant_go_random_1
                                    }
                                }
                            }
                            25 = {
                                #
                                scope:deviant_go_random_1 = {
                                    pay_short_term_gold = {
                                        target = scope:deviant_go_liege_pimp
                                        gold = minor_gold_value
                                    }
                                }    
                            }
                            100 = {
                                hidden_effect = {
                                    add_trait_xp = {
                                        trait = deviant_courtesan_slut
                                        track = deviant_courtesan_slut_popularity
                                        value = { 1 4 }
                                    }
                                }
                                scope:deviant_go_liege_pimp = {
                                    reverse_add_opinion = {
                                        target = scope:deviant_go_random_1
                                        modifier = respect_opinion
                                        opinion = { 20 40 }
                                    }
                                }  
                            }
                        }
                    }	
                } 
            }
            # lose
            70 = {
                compare_modifier = {
                    value = scope:duel_value
                        multiplier = -3.5
                        min = -49
                }	
                custom_tooltip = {
                    text = deviant_pay_homage.6001.blose.tt
                }	
                reverse_add_opinion = {
                    target = scope:deviant_go_random_1
                    modifier = annoyed_opinion
                    opinion = { -20 -10 }
                }
                hidden_effect = {
                    send_interface_toast = {
                        type = event_courtesanslut_deviantgo_text
                        title = deviant_failed_bodyoffer_withpeercourtier_notification
                        right_icon = ROOT
                        left_icon = scope:deviant_go_random_1
                        desc = deviant_failed_bodyoffer_withpeercourtier
                        random_list = {
                            25 = {
                                #bad bad rumors
                                reverse_add_opinion = {
                                    target = scope:deviant_go_liege_pimp
                                    modifier = annoyed_opinion
                                    opinion = { -20 -5 }
                                } 

                            }
                            25 = {
                                #very annoyned
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = disgusted_opinion
                                    opinion = { -20 -5 }
                                } 
                                add_prestige = minor_prestige_loss
                            }
                            25 = {
                                #slander  
                                reverse_add_opinion = {
                                    target = scope:deviant_go_random_1
                                    modifier = dismissive_opinion
                                    opinion = { -30 -10 }
                                } 
                            }
                        }
                    }	
                }   	
            }
        }
	}	
}