namespace = intro_carnal_court_sex_scene

intro_carnal_court_sex_scene.0001 = {
    type = court_event
    title = intro_carnal_court_sex_scene.0001.t
    desc = {
        desc = intro_carnal_court_sex_scene.0001.desc
    }
    theme = court

    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_bed_group_1
                animation = sex_combined
            }
            scope:carn_sex_partner = {
                group = sex_bed_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 = {
        open_view_data = {
            view = royal_court
            player = root
            secondary_actor = root
        }
        cuddle_animations = yes
    }

    option = {
        name = carnal_court_sex_scene_option_doggy
        trigger_event = { id = carnal_court_sex_scene.0001 }
    }

    option = {
        name = carnal_court_sex_scene_option_missionary
        trigger_event = { id = carnal_court_sex_scene.0002 }
    }

    option = {
        name = carnal_court_sex_scene_option_cowgirl
        trigger_event = { id = carnal_court_sex_scene.0003 }
    }

    option = {
        name = carnal_court_sex_scene_option_standing
        trigger_event = { id = carnal_court_sex_scene.0004 }
    }

    option = {
        name = carnal_court_sex_scene_option_oral
        trigger_event = { id = carnal_court_sex_scene.0005 }
    }

    option = {
        name = carnal_court_sex_scene_option_standing_oral
        trigger_event = { id = carnal_court_sex_scene.0006 }
    }

    option = {
        name = carnal_court_sex_scene_option_cunnilingus
        trigger_event = { id = carnal_court_sex_scene.0007 }
    }

    option = {
        name = carnal_court_sex_scene_option_finish

        hidden_effect = {
            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
    }
}

intro_carnal_court_sex_scene.0002 = {
    type = court_event
    title = intro_carnal_court_sex_scene.0001.t
    desc = sex_cuddle_hom
    theme = court

    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_bed_group_1
                animation = sex_combined
            }
            scope:carn_sex_partner = {
                group = sex_bed_group_2
                animation = sex_combined
            }
        }
    }

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

    immediate = {
        open_view_data = {
            view = royal_court
            player = root
            secondary_actor = root
        }
        gay_cuddle_animations = yes
    }

    option = {
        name = carnal_court_sex_scene_option_gay_oral
        trigger_event = { id = carnal_court_sex_scene.0008 }
    }

    option = {
        name = carnal_court_sex_scene_option_gay_sex
        trigger_event = { id = carnal_court_sex_scene.0009 }
    }

    option = {
        name = carnal_court_sex_scene_option_finish

        hidden_effect = {
            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
    }
}

intro_carnal_court_sex_scene.0003 = {
    type = court_event
    title = intro_carnal_court_sex_scene.0001.t
    desc = sex_cuddle_hom
    theme = court

    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_bed_group_1
                animation = sex_combined
            }
            scope:carn_sex_partner = {
                group = sex_bed_group_2
                animation = sex_combined
            }
        }
    }

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

    immediate = {
        open_view_data = {
            view = royal_court
            player = root
            secondary_actor = root
        }
        lesbian_cuddle_animations = yes
    }

    option = {
        name = carnal_court_sex_scene_option_lesbian_cunnilingus
        trigger_event = { id = carnal_court_sex_scene.0010 }
    }

    option = {
        name = carnal_court_sex_scene_option_lesbian_sex
        trigger_event = { id = carnal_court_sex_scene.0011 }
    }

    option = {
        name = carnal_court_sex_scene_option_finish

        hidden_effect = {
            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
    }
}