namespace = perf_debug

character_event = {
    id = perf_debug.1
    hide_window = yes
    is_triggered_only = yes

    immediate = {
        every_living_character = {
            limit = {
                has_character_flag = culled_recently
            }

            log = "[GetDate] DEBUG: [ROOT.GetName] (ID: [ROOT.GetID]) was previously culled."
        }
    }
}



character_event = {
    id = perf_debug.2
    hide_window = yes
    is_triggered_only = yes

    immediate = {
        set_variable = { name = total_culled_characters value = 0 }

        every_living_character = {
            limit = { has_character_flag = culled_recently }
            change_variable = { which = total_culled_characters value = 1 }
        }

        log = "[GetDate] DEBUG: Total culled characters with flag: [GetVariable:total_culled_characters]"
    }
}
