scripted_gui = {
    sov_national_obligations_help_scripted_gui = {
        window_name = "sov_national_obligations_help"
        context_type = player_context

        visible = {
            original_tag = SOV
            is_subject = no
            has_country_flag = sov_open_national_obligations_help
            OR = {
                has_country_flag = sov_open_national_obligations
                has_country_flag = sov_debug_national_obligations
            }
        }

        ai_enabled = {
            always = no
        }

        effects = {
            help_close_button_click = {
                if = {
                    limit = {
                        has_country_flag = sov_open_national_obligations_help
                    }
                    clr_country_flag = sov_open_national_obligations_help
                }
            }
        }
    }
}