# Custom Dialog Result

Grammar — Custom dialog result
FlagsNative | Function

Returns the custom dialog item a player selected. Use in response to “Custom Dialog Dismissed”.

Returns — int<preset::CustomDialogResult>

native int EventCustomDialogResult();

# Supported triggers

Category: UI / Custom Dialog

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:15359

    }

    gv_queryDialogResult = EventCustomDialogResult();
    gv_queryDialogClosed = true;
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:24585


    TriggerEnable(TriggerGetCurrent(), false);
    if ((EventCustomDialogResult() == libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
        GameSetNextMap("");
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25385

    TriggerEnable(TriggerGetCurrent(), false);
    gv_planetPanel_CharInvasionQueryDone = true;
    gv_planetPanel_CharInvasionQueryResult = EventCustomDialogResult();
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:15359

    }

    gv_queryDialogResult = EventCustomDialogResult();
    gv_queryDialogClosed = true;
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:24585


    TriggerEnable(TriggerGetCurrent(), false);
    if ((EventCustomDialogResult() == libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
        GameSetNextMap("");
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25385

    TriggerEnable(TriggerGetCurrent(), false);
    gv_planetPanel_CharInvasionQueryDone = true;
    gv_planetPanel_CharInvasionQueryResult = EventCustomDialogResult();
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:5434

    }

    if ((EventCustomDialogResult() == libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
        libStEx_gv_queryDialogResult = libStEx_ge_QueryDialogResult_Yes;
    }