# Game Is Test

Grammar — Game is running via type|Manual/Automated test
FlagsNative | Function

Returns true if the game is running in the specified test mode.

# Arguments

Returns — bool

native bool GameIsTestMap(bool inAuto);

Category: Game / Game Settings

# Examples

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


    gf_SceneInitData();
    if ((GameIsTestMap(true) == true)) {
        return true;
    }

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

    }

    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_DebugAutomatedTesting, true, false);
        return true;

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

    }

    if ((GameIsTestMap(true) == false)) {
        return true;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1633

    }

    if ((GameIsTestMap(true) == true)) {
        Wait(3.0, c_timeGame);
        DialogSetVisible(gv_mainDialog, PlayerGroupAll(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1670

    }

    if ((GameIsTestMap(true) == true)) {
        MovieStopRecording();
        Wait(0.5, c_timeGame);

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


    gf_SceneInitData();
    if ((GameIsTestMap(true) == true)) {
        return true;
    }

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

    }

    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_DebugAutomatedTesting, true, false);
        return true;

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

    }

    if ((GameIsTestMap(true) == false)) {
        return true;
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1633

    }

    if ((GameIsTestMap(true) == true)) {
        Wait(3.0, c_timeGame);
        DialogSetVisible(gv_mainDialog, PlayerGroupAll(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1670

    }

    if ((GameIsTestMap(true) == true)) {
        MovieStopRecording();
        Wait(0.5, c_timeGame);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:11541

    // Implementation
    libCamp_gv_tS_FootageRecordingCallback = lp_callback;
    if ((GameIsTestMap(true) == true)) {
        libCamp_gf_TS_FootageRecording();
        ConsoleCommand("exit", true, true);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:12683

    TriggerDebugOutput(1, StringExternal("Param/Value/lib_SwaC_ED876F0C"), false);
    libSwaC_gf_ZS_LoadAllTransitionData(lp_map);
    if ((GameIsTestMap(true) == true)) {
        libSwaC_gf_ResetCampaignData();
        libSwaC_gf_ZS_CompleteMission("ZLab1");

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:14516

    // Implementation
    libSwaC_gv_zS_FootageRecordingCallback = lp_callback;
    if ((GameIsTestMap(true) == true)) {
        libSwaC_gf_ZS_FootageRecording();
        ConsoleCommand("exit", true, true);

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

void lib281DEC45_gf_ZSS_RunAutomatedTest () {
    // Implementation
    if ((GameIsTestMap(true) == true)) {
        PreloadScene("Cutscenes\\zScripted_ZAdjutantIntro.SC2Cutscene", false);
        lib281DEC45_gf_ChangeRoom(lib281DEC45_ge_Rooms_StoryRoomVoid);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1881

    // Implementation
    libVoiC_gv_zS_FootageRecordingCallback = lp_callback;
    if ((GameIsTestMap(true) == true)) {
        libVoiC_gf_ZS_FootageRecording();
        ConsoleCommand("exit", true, true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1549

    }

    if ((GameIsTestMap(true) == true)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:5712

    }

    if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:3410

    }

    if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:7954

    SetTalentTreeSelectionPanelDismissAllowed(false);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
    if ((GameIsTestMap(true) == true)) {
        return true;
    }

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:10152

    }

    if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmapmap/MapScript.galaxy:1549

    }

    if ((GameIsTestMap(true) == true)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmapMapScript.galaxy:5712

    }

    if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmapMapScript.galaxy:3410

    }

    if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:7954

    SetTalentTreeSelectionPanelDismissAllowed(false);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);
    if ((GameIsTestMap(true) == true)) {
        return true;
    }

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:10152

    }

    if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
        Wait(10.0, c_timeGame);
        ConsoleCommand("exit", true, true);

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


    // Implementation
    if (((libStEx_gv_automation_Debug == true) || (GameIsTestMap(true) == true))) {
        return ;
    }

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


    // Implementation
    if (((libStEx_gv_automation_Debug == true) || (GameIsTestMap(true) == true))) {
        return ;
    }

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

    // Automatic Variable Declarations
    // Implementation
    if (((libStEx_gv_automation_Debug == true) || ((GameIsTestMap(true) == true) && ((GameTestConfigType() == 5) || (GameTestConfigType() == 6) || (GameTestConfigType() == 7))))) {
        return true;
    }

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

    libStEx_gv_tutorialHero = PlayerHero(libStEx_gv_pLAYER_01_USER);
    if (((libStEx_gv_tutorialHero == null) || (libStEx_gv_tutorialHero == libCore_gv_heroes_RandomHeroID))) {
        if (((libStEx_gv_automation_Debug == true) || (GameIsTestMap(true) == true))) {
            auto8B88B8A9_val = GameTestConfigType();
            if (auto8B88B8A9_val == 5) {

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova02.sc2map/MapScript.galaxy:1003

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:1360

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:1327

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova05.sc2map/MapScript.galaxy:3262

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova06.sc2map/MapScript.galaxy:1638

    TriggerExecute(gt_Init07Help, true, false);
    TriggerExecute(gt_InitFlashbackDialog, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:940

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:549

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:1298

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova02.sc2mapMapScript.galaxy:1003

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2mapMapScript.galaxy:1360

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:1327

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova05.sc2mapMapScript.galaxy:3262

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova06.sc2mapMapScript.galaxy:1638

    TriggerExecute(gt_Init07Help, true, false);
    TriggerExecute(gt_InitFlashbackDialog, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:940

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:549

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2mapMapScript.galaxy:1298

    TriggerExecute(gt_Init06Difficulties, true, false);
    TriggerExecute(gt_Init07Help, true, false);
    if ((GameIsTestMap(true) == true)) {
        TriggerExecute(gt_BriefingQ, true, true);
        ConsoleCommand("exit", true, true);

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

    // Automatic Variable Declarations
    // Implementation
    if ((GameIsOnline() == false) && (GameIsTestMap(false) == true) && (GameCheatsEnabled(c_gameCheatCategoryDevelopment) == false) && (GameMapIsBlizzard() == false)) {
        libCOOC_gv_cC_InContestMap = true;
        return true;

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

    // Implementation
    libA3DDD02B_gv_pP_FootageRecordingCallback = lp_callback;
    if ((GameIsTestMap(true) == true)) {
        libA3DDD02B_gf_PP_FootageRecording();
        ConsoleCommand("exit", true, true);

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:644

    }

    if ((GameIsTestMap(false) == true)) {
        Wait(3.0, c_timeGame);
        if ((MeleeGetOption(PlayerGroupPlayer(PlayerGroupActive(), 1), c_meleeOptionXPGainDisable) == true)) {

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:2424


    // Implementation
    if ((GameIsTestMap(false) == true)) {
        lv_skip = c_conversationSkipFull;
    }