# Custom Dialog Dismissed

Grammar — Player player dismissed the custom dialog with result player2
FlagsNative | Event

This event fires when a player selects an option on the Custom Dialog. Use “Custom Dialog Result” to get the option the player selected. Use “Triggering Player” to get the player.

# Arguments

Returns — void

native void TriggerAddEventCustomDialogDismissed(
	trigger t,
	int player,
	int result,
);

# Event parameters

Category: UI / Custom Dialog

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8398

void gt_QuitQueryYetClicked_Init () {
    gt_QuitQueryYetClicked = TriggerCreate("gt_QuitQueryYetClicked_Func");
    TriggerAddEventCustomDialogDismissed(gt_QuitQueryYetClicked, c_playerAny, 1);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8419

void gt_QuitQueryNoClicked_Init () {
    gt_QuitQueryNoClicked = TriggerCreate("gt_QuitQueryNoClicked_Func");
    TriggerAddEventCustomDialogDismissed(gt_QuitQueryNoClicked, c_playerAny, 2);
}

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

void gt_QueryDialogDismissed_Init () {
    gt_QueryDialogDismissed = TriggerCreate("gt_QueryDialogDismissed_Func");
    TriggerAddEventCustomDialogDismissed(gt_QueryDialogDismissed, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

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

    gt_MarSaraBriefcaseLeaveUIYesNo = TriggerCreate("gt_MarSaraBriefcaseLeaveUIYesNo_Func");
    TriggerEnable(gt_MarSaraBriefcaseLeaveUIYesNo, false);
    TriggerAddEventCustomDialogDismissed(gt_MarSaraBriefcaseLeaveUIYesNo, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

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

void gt_LabResearchCreditsNoticeClose_Init () {
    gt_LabResearchCreditsNoticeClose = TriggerCreate("gt_LabResearchCreditsNoticeClose_Func");
    TriggerAddEventCustomDialogDismissed(gt_LabResearchCreditsNoticeClose, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

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

    gt_PlanetPanelCustomDialogDismissed = TriggerCreate("gt_PlanetPanelCustomDialogDismissed_Func");
    TriggerEnable(gt_PlanetPanelCustomDialogDismissed, false);
    TriggerAddEventCustomDialogDismissed(gt_PlanetPanelCustomDialogDismissed, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8398

void gt_QuitQueryYetClicked_Init () {
    gt_QuitQueryYetClicked = TriggerCreate("gt_QuitQueryYetClicked_Func");
    TriggerAddEventCustomDialogDismissed(gt_QuitQueryYetClicked, c_playerAny, 1);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8419

void gt_QuitQueryNoClicked_Init () {
    gt_QuitQueryNoClicked = TriggerCreate("gt_QuitQueryNoClicked_Func");
    TriggerAddEventCustomDialogDismissed(gt_QuitQueryNoClicked, c_playerAny, 2);
}

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

void gt_QueryDialogDismissed_Init () {
    gt_QueryDialogDismissed = TriggerCreate("gt_QueryDialogDismissed_Func");
    TriggerAddEventCustomDialogDismissed(gt_QueryDialogDismissed, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

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

    gt_MarSaraBriefcaseLeaveUIYesNo = TriggerCreate("gt_MarSaraBriefcaseLeaveUIYesNo_Func");
    TriggerEnable(gt_MarSaraBriefcaseLeaveUIYesNo, false);
    TriggerAddEventCustomDialogDismissed(gt_MarSaraBriefcaseLeaveUIYesNo, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

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

void gt_LabResearchCreditsNoticeClose_Init () {
    gt_LabResearchCreditsNoticeClose = TriggerCreate("gt_LabResearchCreditsNoticeClose_Func");
    TriggerAddEventCustomDialogDismissed(gt_LabResearchCreditsNoticeClose, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

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

    gt_PlanetPanelCustomDialogDismissed = TriggerCreate("gt_PlanetPanelCustomDialogDismissed_Func");
    TriggerEnable(gt_PlanetPanelCustomDialogDismissed, false);
    TriggerAddEventCustomDialogDismissed(gt_PlanetPanelCustomDialogDismissed, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6459

    lib281DEC45_gt_ZSS_UITravelCustomDialogDismiss = TriggerCreate("lib281DEC45_gt_ZSS_UITravelCustomDialogDismiss_Func");
    TriggerEnable(lib281DEC45_gt_ZSS_UITravelCustomDialogDismiss, false);
    TriggerAddEventCustomDialogDismissed(lib281DEC45_gt_ZSS_UITravelCustomDialogDismiss, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6762

    lib281DEC45_gt_ZSS_UIMissionQuitOKClicked = TriggerCreate("lib281DEC45_gt_ZSS_UIMissionQuitOKClicked_Func");
    TriggerEnable(lib281DEC45_gt_ZSS_UIMissionQuitOKClicked, false);
    TriggerAddEventCustomDialogDismissed(lib281DEC45_gt_ZSS_UIMissionQuitOKClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6781

void lib281DEC45_gt_ZSS_UIMissionQuitCancelClicked_Init () {
    lib281DEC45_gt_ZSS_UIMissionQuitCancelClicked = TriggerCreate("lib281DEC45_gt_ZSS_UIMissionQuitCancelClicked_Func");
    TriggerAddEventCustomDialogDismissed(lib281DEC45_gt_ZSS_UIMissionQuitCancelClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultNo);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:8014

    lib281DEC45_gt_ZSS_DebugStoryCustomDialogDismiss = TriggerCreate("lib281DEC45_gt_ZSS_DebugStoryCustomDialogDismiss_Func");
    TriggerEnable(lib281DEC45_gt_ZSS_DebugStoryCustomDialogDismiss, false);
    TriggerAddEventCustomDialogDismissed(lib281DEC45_gt_ZSS_DebugStoryCustomDialogDismiss, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7247

    libVCUI_gt_PU_MissionTerranQuitOKClicked = TriggerCreate("libVCUI_gt_PU_MissionTerranQuitOKClicked_Func");
    TriggerEnable(libVCUI_gt_PU_MissionTerranQuitOKClicked, false);
    TriggerAddEventCustomDialogDismissed(libVCUI_gt_PU_MissionTerranQuitOKClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7268

    libVCUI_gt_PU_MissionTerranQuitCancelClicked = TriggerCreate("libVCUI_gt_PU_MissionTerranQuitCancelClicked_Func");
    TriggerEnable(libVCUI_gt_PU_MissionTerranQuitCancelClicked, false);
    TriggerAddEventCustomDialogDismissed(libVCUI_gt_PU_MissionTerranQuitCancelClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultNo);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7787

    libVCUI_gt_PU_MissionQuitOKClicked = TriggerCreate("libVCUI_gt_PU_MissionQuitOKClicked_Func");
    TriggerEnable(libVCUI_gt_PU_MissionQuitOKClicked, false);
    TriggerAddEventCustomDialogDismissed(libVCUI_gt_PU_MissionQuitOKClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:7810

    libVCUI_gt_PU_MissionQuitCancelClicked = TriggerCreate("libVCUI_gt_PU_MissionQuitCancelClicked_Func");
    TriggerEnable(libVCUI_gt_PU_MissionQuitCancelClicked, false);
    TriggerAddEventCustomDialogDismissed(libVCUI_gt_PU_MissionQuitCancelClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultNo);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:8788

    libVCUI_gt_PU_StarmapCustomDialogDismiss = TriggerCreate("libVCUI_gt_PU_StarmapCustomDialogDismiss_Func");
    TriggerEnable(libVCUI_gt_PU_StarmapCustomDialogDismiss, false);
    TriggerAddEventCustomDialogDismissed(libVCUI_gt_PU_StarmapCustomDialogDismiss, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

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

void libStEx_gt_QueryDialogChoiceMade_Init () {
    libStEx_gt_QueryDialogChoiceMade = TriggerCreate("libStEx_gt_QueryDialogChoiceMade_Func");
    TriggerAddEventCustomDialogDismissed(libStEx_gt_QueryDialogChoiceMade, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:5661

    libNCUI_gt_NU_MissionQuitOKClicked = TriggerCreate("libNCUI_gt_NU_MissionQuitOKClicked_Func");
    TriggerEnable(libNCUI_gt_NU_MissionQuitOKClicked, false);
    TriggerAddEventCustomDialogDismissed(libNCUI_gt_NU_MissionQuitOKClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:5683

    libNCUI_gt_NU_MissionQuitCancelClicked = TriggerCreate("libNCUI_gt_NU_MissionQuitCancelClicked_Func");
    TriggerEnable(libNCUI_gt_NU_MissionQuitCancelClicked, false);
    TriggerAddEventCustomDialogDismissed(libNCUI_gt_NU_MissionQuitCancelClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultNo);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:2487

    libNovC_gt_QuitDemo = TriggerCreate("libNovC_gt_QuitDemo_Func");
    TriggerEnable(libNovC_gt_QuitDemo, false);
    TriggerAddEventCustomDialogDismissed(libNovC_gt_QuitDemo, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:6467

    libCOOC_gt_CC_DevStartupDevForceQuit = TriggerCreate("libCOOC_gt_CC_DevStartupDevForceQuit_Func");
    TriggerEnable(libCOOC_gt_CC_DevStartupDevForceQuit, false);
    TriggerAddEventCustomDialogDismissed(libCOOC_gt_CC_DevStartupDevForceQuit, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultAny);
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:9149

    libA3DDD02B_gt_PP_MissionLaunchQuitOKClicked = TriggerCreate("libA3DDD02B_gt_PP_MissionLaunchQuitOKClicked_Func");
    TriggerEnable(libA3DDD02B_gt_PP_MissionLaunchQuitOKClicked, false);
    TriggerAddEventCustomDialogDismissed(libA3DDD02B_gt_PP_MissionLaunchQuitOKClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultYes);
}

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:9170

void libA3DDD02B_gt_PP_MissionLaunchQuitCanceledClicked_Init () {
    libA3DDD02B_gt_PP_MissionLaunchQuitCanceledClicked = TriggerCreate("libA3DDD02B_gt_PP_MissionLaunchQuitCanceledClicked_Func");
    TriggerAddEventCustomDialogDismissed(libA3DDD02B_gt_PP_MissionLaunchQuitCanceledClicked, c_playerAny, libNtve_ge_CustomDialogResult_c_customDialogResultNo);
}