# Game Get Test Config Type

Grammar — Game get test config type
FlagsNative | Function

Returns the game test config type. This will only be non-zero if it is requested via the command line and the game is examinable.

Returns — int

native int GameTestConfigType();

Category: Game / Game Settings

# Examples

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


    // Implementation
    if ((GameTestConfigType() != 1)) {
        return ;
    }

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

    libGame_gv_pickingHeroesCallback = gt_InitPlayers;
    TriggerExecute(libCore_gt_InitializeStormMod, true, false);
    if ((GameTestConfigType() == 3)) {
        libGame_gf_PickingHeroesForPlayers();
    }

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:10152

    }

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

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

    libGame_gv_pickingHeroesCallback = gt_InitPlayers;
    TriggerExecute(libCore_gt_InitializeStormMod, true, false);
    if ((GameTestConfigType() == 3)) {
        libGame_gf_PickingHeroesForPlayers();
    }

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:10152

    }

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

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:118


    TriggerExecute(libCore_gt_InitializeMiscStuff, true, false);
    if (((GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return ;
    }

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:118


    TriggerExecute(libCore_gt_InitializeMiscStuff, true, false);
    if (((GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return ;
    }

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:118


    TriggerExecute(libCore_gt_InitializeMiscStuff, true, false);
    if (((GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return ;
    }

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:118


    TriggerExecute(libCore_gt_InitializeMiscStuff, true, false);
    if (((GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return ;
    }

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:122

    }

    if ((GameTestConfigType() == 10)) {
        TriggerExecute(libSprt_gt_AutomatedBuildTest, true, false);
    }

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:411

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        lv_initCallback = libAREN_gv_aRM_MechanicData[libAREN_gv_aRM_MechanicsPicked[libAREN_gv_aRM_CurrentRoundIndex]].lv_initCallback;
        if ((lv_initCallback != null)) {

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:411

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        lv_initCallback = libAREN_gv_aRM_MechanicData[libAREN_gv_aRM_MechanicsPicked[libAREN_gv_aRM_CurrentRoundIndex]].lv_initCallback;
        if ((lv_initCallback != null)) {

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:411

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        lv_initCallback = libAREN_gv_aRM_MechanicData[libAREN_gv_aRM_MechanicsPicked[libAREN_gv_aRM_CurrentRoundIndex]].lv_initCallback;
        if ((lv_initCallback != null)) {

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:411

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        lv_initCallback = libAREN_gv_aRM_MechanicData[libAREN_gv_aRM_MechanicsPicked[libAREN_gv_aRM_CurrentRoundIndex]].lv_initCallback;
        if ((lv_initCallback != null)) {

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.stormdata/LibAREN.galaxy:529

        libGame_gv_players[lv_itPlayer].lv_suppressLevelUpFXAndTeamXPTracking = true;
    }
    if (((GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        TriggerExecute(libSprt_gt_PerformanceTestSpawnHeroesForHeroesPerformanceTestMap, true, false);
    }

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:110

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        if ((lv_initCallback != null)) {
            TriggerExecute(lv_initCallback, true, false);

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:110

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        if ((lv_initCallback != null)) {
            TriggerExecute(lv_initCallback, true, false);

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:110

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        if ((lv_initCallback != null)) {
            TriggerExecute(lv_initCallback, true, false);

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:110

    TriggerEnable(libMapM_gt_MMRepulseRegionPunchBehavior, true);
    TriggerEnable(libMapM_gt_MMSafeRegionBehavior, true);
    if ((GameTestConfigType() != 1) && (GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        if ((lv_initCallback != null)) {
            TriggerExecute(lv_initCallback, true, false);

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:198

        libGame_gv_players[lv_itPlayer].lv_suppressLevelUpFXAndTeamXPTracking = true;
    }
    if (((GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        TriggerExecute(libSprt_gt_PerformanceTestSpawnHeroesForHeroesPerformanceTestMap, true, false);
    }

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:198

        libGame_gv_players[lv_itPlayer].lv_suppressLevelUpFXAndTeamXPTracking = true;
    }
    if (((GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        TriggerExecute(libSprt_gt_PerformanceTestSpawnHeroesForHeroesPerformanceTestMap, true, false);
    }

mods/heroesbrawlmods/arenamodemods/attackdefend.stormmodbase.stormdata/LibAtDe.galaxy:198

        libGame_gv_players[lv_itPlayer].lv_suppressLevelUpFXAndTeamXPTracking = true;
    }
    if (((GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        TriggerExecute(libSprt_gt_PerformanceTestSpawnHeroesForHeroesPerformanceTestMap, true, false);
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1569

    }

    if (((GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "drft") || (GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "tour") || (GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return true;
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1569

    }

    if (((GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "drft") || (GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "tour") || (GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return true;
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1569

    }

    if (((GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "drft") || (GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "tour") || (GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return true;
    }

mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmodbase.stormdata/LibIGHS.galaxy:1569

    }

    if (((GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "drft") || (GameAttributeGameValue("[bnet:Core (Mod)/0.0/999,file:Mods/Core.StormMod]4010") == "tour") || (GameTestConfigType() == 1) || (GameTestConfigType() == 2) || (GameTestConfigType() == 3) || (GameTestConfigType() == 4))) {
        return true;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4826


    TriggerExecute(libCore_gt_InitializeMiscStuff, true, false);
    if ((GameTestConfigType() == 1)) {
        return true;
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4830

    }

    if ((GameTestConfigType() == 2)) {
        TriggerExecute(libSprt_gt_PerformanceTestSpawnHeroesForHeroesPerformanceTestMap, true, false);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4834

    }

    if ((GameTestConfigType() == 10)) {
        TriggerExecute(libSprt_gt_AutomatedBuildTest, true, false);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4838

    }

    if ((GameTestConfigType() == 11)) {
        TriggerExecute(libSprt_gt_AISpawningTest, true, false);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4860


    libAIAI_gf_HeroAIGeneralPreInit();
    if ((GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        libGame_gf_PickingHeroesForPlayers();
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4860


    libAIAI_gf_HeroAIGeneralPreInit();
    if ((GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        libGame_gf_PickingHeroesForPlayers();
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:4860


    libAIAI_gf_HeroAIGeneralPreInit();
    if ((GameTestConfigType() != 2) && (GameTestConfigType() != 3) && (GameTestConfigType() != 4)) {
        libGame_gf_PickingHeroesForPlayers();
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:2198

    // Automatic Variable Declarations
    // Implementation
    if ((GameTestConfigType() == 1)) {
        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: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: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:2016

    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) {
                libStEx_gv_tutorialHero = "Muradin";

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:2011

    }

    TextExpressionSetToken("Param/Expression/lib_Sprt_DC9BF57F", "A", IntToText(GameTestConfigType()));
    TriggerDebugOutput(5, TextExpressionAssemble("Param/Expression/lib_Sprt_DC9BF57F"), true);
    TriggerEnable(libSprt_gt_PerformanceTestGetFPS, true);

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibCMMI.galaxy:43


    // Implementation
    if ((GameTestConfigType() != 1)) {
        return ;
    }

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


    // Implementation
    if ((GameTestConfigType() != 1)) {
        return ;
    }

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


    // Implementation
    if ((GameTestConfigType() != 1)) {
        return ;
    }