namespace = carnal_court_sex_scene

carnal_court_sex_scene.0015 = {
    type = court_event
    theme = court

    title = carn_sex_scene.0300.t
    desc = {
        first_valid = {
            triggered_desc = {
                trigger = {
                    scope:carn_sex_player  = { is_male = yes }
                    scope:carn_sex_partner = { is_female = yes}
                }
                desc = carn_sex_scene.1301.desc_mf
            }
            triggered_desc = {
                trigger = {
                    scope:carn_sex_player  = { is_female = yes }
                    scope:carn_sex_partner = { is_male = yes}
                }
                desc = carn_sex_scene.1301.desc_fm
            }
            desc = carn_sex_scene.002_generic_desc
        }
    }

    court_scene = {
        court_owner = scope:ruler
        button_position_character = scope:carn_sex_player
        court_event_force_open = yes
        roles = {
            scope:carn_sex_player = {
                group = sex_standing_group_1
                animation = sex_combined
            }
            scope:carn_sex_partner = {
                group = sex_standing_group_2
                animation = sex_combined
            }
        }
    }

    trigger = {
        scope:carn_sex_player = { sex_opposite_of = scope:carn_sex_partner }
        scope:carn_sex_player.age >= 18
        scope:carn_sex_partner.age >= 18
    }

    immediate = {
        cum_standing_animations = yes
    }

	option = {
        name = carnal_court_sex_scene_option_finish

        cum_doggy_trait_remove = yes

        carn_sex_scene_character_is_giving_player_effect = yes
        carn_sex_scene_is_consensual_effect = yes

		scope:carn_sex_player  = {
			carn_had_sex_with_effect_v2 = {
				PARTNER = scope:carn_sex_partner
            }
		}

		carnal_court_leave_court_effect	= yes
	}
}