# Game Is Test
Grammar — Game is running via type|Manual/Automated test
Flags —Native
|Function
Returns true if the game is running in the specified test mode.
# Arguments
bool
<preset::GameTestType> — Type
Returns — bool
native bool GameIsTestMap(bool inAuto);
# Related
Category: Game / Game Settings
- Map Initialization —
void
— TriggerAddEventMapInit - Save Game Started —
void
— TriggerAddEventSaveGame - Save Game Finished —
void
— TriggerAddEventSaveGameDone - Load Game Finished —
void
— TriggerAddEventLoadGameDone - Set Game Speed —
void
— GameSetSpeedValue - Game Set Quit On Quit Button —
void
— GameSetQuitOnQuitButton - Set Global Time Scale —
void
— GameSetGlobalTimeScale - Pause Mission Time —
void
— GameSetMissionTimePaused - Mission Time Paused —
bool
— GameIsMissionTimePaused - Mission Time —
fixed
— GameGetMissionTime - Set Minimum Game Speed —
void
— GameSetSpeedValueMinimum - Lock Game Speed —
void
— GameSetSpeedLocked - Game Speed Factor —
fixed
— GameGetSpeed - Game Speed —
int
<preset::GameSpeed> — GameGetSpeedValue - Global Time Scale —
fixed
— GameGetGlobalTimeScale - Game Speed Minimum —
int
<preset::GameSpeed> — GameGetSpeedValueMinimum - Game Speed Is Locked —
bool
— GameIsSpeedLocked - Attribute Game Value —
string
<attributevalue> — GameAttributeGameValue - Attribute Player Value —
string
<attributevalue> — GameAttributePlayerValue - Players On Team —
playergroup
— GameAttributePlayersForTeam - Turn Fixed Random Seed On/Off —
void
— GameSetSeedLocked - Random Seed Is Locked —
bool
— GameIsSeedLocked - Set Random Seed —
void
— GameSetSeed - Create Saved Game —
void
— GameSaveCreate - Set Game Pausing Allowed —
void
— GameSetPauseable - Set Tradeshow Game Time Remaining —
void
— GameSetAbsoluteTimeRemaining - Pause Tradeshow Game Time Remaining —
void
— GameSetAbsoluteTimeRemainingPaused - Tradeshow Game Time Remaining —
fixed
— GameGetAbsoluteTimeRemaining - Tradeshow Game Time Remaining Is Paused —
bool
— GameGetAbsoluteTimeRemainingPaused - Map Name —
text
— GameMapName - Map Path —
string
— GameMapPath - Map Description —
text
— GameMapDescription - Map Is Blizzard —
bool
— GameMapIsBlizzard - Map Texture Set —
string
<gamelink::Terrain> — GameTerrainSet - Game Is Test —
bool
— GameIsTestMap - Game Is Examinable —
bool
— GameIsExaminable - Game Get Test Config Type —
int
— GameTestConfigType - Game Is Online —
bool
— GameIsOnline - Game Is Debug Option Set —
bool
— GameIsDebugOptionSet - Game Is Matchmade —
bool
— GameIsMatchmade - Game Is Competitive —
bool
— GameIsCompetitive - Game Is Practice —
bool
— GameIsPractice - Game Is Cooperative —
bool
— GameIsCooperative - Game Allows Duplicate Heroes —
bool
— GameAreHeroDuplicatesAllowed
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16500
gf_SceneInitData();
if ((GameIsTestMap(true) == true)) {
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16802
}
if ((GameIsTestMap(true) == true)) {
TriggerExecute(gt_DebugAutomatedTesting, true, false);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17649
}
if ((GameIsTestMap(true) == false)) {
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1633
}
if ((GameIsTestMap(true) == true)) {
Wait(3.0, c_timeGame);
DialogSetVisible(gv_mainDialog, PlayerGroupAll(), false);
campaigns/liberty.sc2campaign — base.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.sc2map — MapScript.galaxy:16500
gf_SceneInitData();
if ((GameIsTestMap(true) == true)) {
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:16802
}
if ((GameIsTestMap(true) == true)) {
TriggerExecute(gt_DebugAutomatedTesting, true, false);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:17649
}
if ((GameIsTestMap(true) == false)) {
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1633
}
if ((GameIsTestMap(true) == true)) {
Wait(3.0, c_timeGame);
DialogSetVisible(gv_mainDialog, PlayerGroupAll(), false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2map — MapScript.galaxy:1670
}
if ((GameIsTestMap(true) == true)) {
MovieStopRecording();
Wait(0.5, c_timeGame);
campaigns/libertystory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2mod — base.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.sc2campaign — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmap — map/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.stormmap — MapScript.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.stormmap — MapScript.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.stormmap — MapScript.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.stormmap — MapScript.galaxy:10152
}
if ((GameIsTestMap(true) == true) && (GameTestConfigType() == 3)) {
Wait(10.0, c_timeGame);
ConsoleCommand("exit", true, true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:366
// Implementation
if (((libStEx_gv_automation_Debug == true) || (GameIsTestMap(true) == true))) {
return ;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:422
// Implementation
if (((libStEx_gv_automation_Debug == true) || (GameIsTestMap(true) == true))) {
return ;
}
mods/heroesdata.stormmod — base.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.stormmod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base2.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.sc2mod — base2.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.sc2mod — base2.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.sc2mod — base3.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.sc2mod — base3.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.sc2mod — base3.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.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.sc2mod/base.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.sc2mod/base2.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.sc2mod/base2.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.sc2mod/base2.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.sc2mod/base3.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.sc2mod/base3.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.sc2mod/base3.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/starcoop/starcoop.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2424
// Implementation
if ((GameIsTestMap(false) == true)) {
lv_skip = c_conversationSkipFull;
}