# Create Stat Event
Grammar — Create eventName Stat Event
Flags —Native
|Action
Blizzard only. Creates a new stat event with the given name. You can then add data to that state event before sending it to Battle.net.
# Arguments
string
— Event Name
Returns — int
<preset::StatEvent>
native int StatEventCreate(string eventName);
# Related
Category: Stats
- Create Stat Event —
int
<preset::StatEvent> — StatEventCreate - Add String Data to Stat Event —
void
— StatEventAddDataString - Add Integer Data to Stat Event —
void
— StatEventAddDataInt - Add Real Data to Stat Event —
void
— StatEventAddDataFixed - Send Stat Event —
void
— StatEventSend - Last Created Stat Event —
int
<preset::StatEvent> — StatEventLastCreated - Stat Event — preset —
int
# Examples
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8073
// Automatic Variable Declarations
// Implementation
StatEventCreate(lp_name);
TriggerDebugOutput(13, StringToText(lp_name), false);
libVoiC_gv_pC_StatEventLastCampaign = StatEventLastCreated();
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:1728
}
StatEventCreate("Tutorial01_Start");
StatEventSend(StatEventLastCreated());
TriggerQueueEnter();
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:1871
Wait(2.0, c_timeGame);
gv_cinematicCompleted = true;
StatEventCreate("Tutorial01_IntroCinematicCompleted");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:2377
TimerStart(libGame_gv_minionSpawnStartTimer, 0.0, false, c_timeGame);
Wait(0.5, c_timeGame);
StatEventCreate("Tutorial01_GatesOpened");
StatEventSend(StatEventLastCreated());
libStEx_gf_DisplayHintMessage(StringExternal("Param/Value/CDD0665D"), true, 2.0);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:2579
PingDestroy(gv_goToLanePing);
gv_goToLanePing = c_invalidPingId;
StatEventCreate("Tutorial01_FrontLineDone");
StatEventSend(StatEventLastCreated());
Wait(6.0, c_timeReal);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:2806
Wait(10.0, c_timeGame);
gv_cinematicCompleted = true;
StatEventCreate("Tutorial01_ExperienceCinematicCompleted");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3506
PingDestroy(gv_goToWatchtowerPing);
gv_goToWatchtowerPing = c_invalidPingId;
StatEventCreate("Tutorial01_WatchTowerDone");
StatEventSend(StatEventLastCreated());
Wait(6.0, c_timeReal);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:4037
TriggerExecute(gt_ObjectiveCaptureCampCreate, true, false);
SoundPlayForPlayer(SoundLink("UI_ObjectiveComplete", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
StatEventCreate("Tutorial01_MercCampDone");
StatEventSend(StatEventLastCreated());
Wait(6.0, c_timeReal);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:4413
PingDestroy(gv_corePing);
gv_corePing = c_invalidPingId;
StatEventCreate("Tutorial01_Victory");
StatEventSend(StatEventLastCreated());
TriggerEnable(gt_PlayerExitEarly, false);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:4436
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Tutorial01_ExitEarly");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:299
TriggerExecute(gt_InitUI, true, false);
TriggerExecute(gt_InitEventPlayerGroups, true, false);
StatEventCreate("Tutorial02_Start");
StatEventSend(StatEventLastCreated());
Wait(1.0, c_timeGame);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1193
libStEx_gf_ClearVOMessageGamePaused(1);
AchievementAward(1, "TutorialLootChest");
StatEventCreate("Tutorial02_Victory");
StatEventSend(StatEventLastCreated());
TriggerEnable(gt_PlayerExitEarly, false);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1216
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Tutorial02_ExitEarly");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1238
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Tutorial02_GatesOpened");
StatEventSend(StatEventLastCreated());
TriggerExecute(gt_MakeEnemyInnerTownsTakeMinimalDamage, true, false);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1641
Wait(2.0, c_timeGame);
gv_cinematicCompleted = true;
StatEventCreate("Tutorial02_TributeCinematicCompleted");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:2264
autoF61EC164_val = gv_tributeGatheredCount;
if (autoF61EC164_val == 1) {
StatEventCreate("Tutorial02_FirstTributeCaptured");
StatEventSend(StatEventLastCreated());
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:2268
}
else if (autoF61EC164_val == 2) {
StatEventCreate("Tutorial02_SecondTributeCaptured");
StatEventSend(StatEventLastCreated());
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:2272
}
else if (autoF61EC164_val == 3) {
StatEventCreate("Tutorial02_ThirdTributeCaptured");
StatEventSend(StatEventLastCreated());
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2769
}
StatEventCreate("Challenge 1");
StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla DPS");
StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2786
StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);
StatEventSend(StatEventLastCreated());
StatEventCreate("Challenge 2");
StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");
StatEventAddDataString(StatEventLastCreated(), "Stage", "2");
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2803
StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1C_PlayTimes);
StatEventSend(StatEventLastCreated());
StatEventCreate("Challenge 3");
StatEventAddDataString(StatEventLastCreated(), "Challenge", "Zeratul Roaming");
StatEventAddDataString(StatEventLastCreated(), "Stage", "3");
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:1728
}
StatEventCreate("Tutorial01_Start");
StatEventSend(StatEventLastCreated());
TriggerQueueEnter();
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:1871
Wait(2.0, c_timeGame);
gv_cinematicCompleted = true;
StatEventCreate("Tutorial01_IntroCinematicCompleted");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:2377
TimerStart(libGame_gv_minionSpawnStartTimer, 0.0, false, c_timeGame);
Wait(0.5, c_timeGame);
StatEventCreate("Tutorial01_GatesOpened");
StatEventSend(StatEventLastCreated());
libStEx_gf_DisplayHintMessage(StringExternal("Param/Value/CDD0665D"), true, 2.0);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:2579
PingDestroy(gv_goToLanePing);
gv_goToLanePing = c_invalidPingId;
StatEventCreate("Tutorial01_FrontLineDone");
StatEventSend(StatEventLastCreated());
Wait(6.0, c_timeReal);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:2806
Wait(10.0, c_timeGame);
gv_cinematicCompleted = true;
StatEventCreate("Tutorial01_ExperienceCinematicCompleted");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3506
PingDestroy(gv_goToWatchtowerPing);
gv_goToWatchtowerPing = c_invalidPingId;
StatEventCreate("Tutorial01_WatchTowerDone");
StatEventSend(StatEventLastCreated());
Wait(6.0, c_timeReal);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:4037
TriggerExecute(gt_ObjectiveCaptureCampCreate, true, false);
SoundPlayForPlayer(SoundLink("UI_ObjectiveComplete", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
StatEventCreate("Tutorial01_MercCampDone");
StatEventSend(StatEventLastCreated());
Wait(6.0, c_timeReal);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:4413
PingDestroy(gv_corePing);
gv_corePing = c_invalidPingId;
StatEventCreate("Tutorial01_Victory");
StatEventSend(StatEventLastCreated());
TriggerEnable(gt_PlayerExitEarly, false);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:4436
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Tutorial01_ExitEarly");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:299
TriggerExecute(gt_InitUI, true, false);
TriggerExecute(gt_InitEventPlayerGroups, true, false);
StatEventCreate("Tutorial02_Start");
StatEventSend(StatEventLastCreated());
Wait(1.0, c_timeGame);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1193
libStEx_gf_ClearVOMessageGamePaused(1);
AchievementAward(1, "TutorialLootChest");
StatEventCreate("Tutorial02_Victory");
StatEventSend(StatEventLastCreated());
TriggerEnable(gt_PlayerExitEarly, false);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1216
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Tutorial02_ExitEarly");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1238
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Tutorial02_GatesOpened");
StatEventSend(StatEventLastCreated());
TriggerExecute(gt_MakeEnemyInnerTownsTakeMinimalDamage, true, false);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1641
Wait(2.0, c_timeGame);
gv_cinematicCompleted = true;
StatEventCreate("Tutorial02_TributeCinematicCompleted");
StatEventSend(StatEventLastCreated());
return true;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:2264
autoF61EC164_val = gv_tributeGatheredCount;
if (autoF61EC164_val == 1) {
StatEventCreate("Tutorial02_FirstTributeCaptured");
StatEventSend(StatEventLastCreated());
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:2268
}
else if (autoF61EC164_val == 2) {
StatEventCreate("Tutorial02_SecondTributeCaptured");
StatEventSend(StatEventLastCreated());
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:2272
}
else if (autoF61EC164_val == 3) {
StatEventCreate("Tutorial02_ThirdTributeCaptured");
StatEventSend(StatEventLastCreated());
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:2769
}
StatEventCreate("Challenge 1");
StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla DPS");
StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:2786
StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);
StatEventSend(StatEventLastCreated());
StatEventCreate("Challenge 2");
StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");
StatEventAddDataString(StatEventLastCreated(), "Stage", "2");
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:2803
StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1C_PlayTimes);
StatEventSend(StatEventLastCreated());
StatEventCreate("Challenge 3");
StatEventAddDataString(StatEventLastCreated(), "Challenge", "Zeratul Roaming");
StatEventAddDataString(StatEventLastCreated(), "Stage", "3");
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:244
libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_blessed = true;
StatEventCreate("SkyTempleActivated");
StatEventSend(StatEventLastCreated());
AddUnitOfInterest(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_beacon, libAMCT_gv_aRMSkyTempleCaptureRadius_C, 0.0, "TempleBeacon", libNtve_ge_GoalTeam_Both, 0);
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:1989
UnitSetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple, UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_beacon), true);
StatEventCreate("SkyTempleCaptured");
StatEventAddDataInt(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple)));
StatEventSend(StatEventLastCreated());
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2037
if ((libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple == EventUnitTarget())) {
libAMCT_gf_ARMSkyTempleTempleShootingPing(lv_itTempleIndex, EventUnit());
StatEventCreate("SkyTempleShotsFired");
StatEventAddDataInt(StatEventLastCreated(), "TempleID", lv_itTempleIndex);
StatEventAddDataInt(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple)));
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:10627
}
StatEventCreate("Pickup Used");
autoE3D539F5_val = EventPlayerEffectUsed();
if (autoE3D539F5_val == "PvEMiniNukeInitialSet") {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:12510
TriggerEnable(TriggerGetCurrent(), false);
StatEventCreate("Game Results");
StatEventAddDataString(StatEventLastCreated(), "Map Name", "Deadman's Stand");
if ((libPVEM_gf_PvEGameDifficulty() == libPVEM_ge_PvEGameDifficulty_PvEGameDifficulty_Normal)) {
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:9731
}
StatEventCreate("Pickup Used");
autoE3D539F5_val = EventPlayerEffectUsed();
if (autoE3D539F5_val == "PvEMiniNukeInitialSet") {
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:11605
}
StatEventCreate("Game Results");
StatEventAddDataString(StatEventLastCreated(), "Map Name", "Escape from Braxis");
auto509F083C_val = libPVEB_gf_PBGameDifficulty();
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:316
UnitGroupAdd(libPVEB_gv_pvEPickupItemsOnGround, UnitLastCreated());
StatEventCreate("Pickup Spawned");
StatEventAddDataString(StatEventLastCreated(), "Pickup Type", (UnitGetType(UnitLastCreated())));
StatEventSend(StatEventLastCreated());
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:573
UnitGroupAdd(libPVEM_gv_pvEPickupsItemsOnGround, UnitLastCreated());
StatEventCreate("Pickup Spawned");
StatEventAddDataString(StatEventLastCreated(), "Pickup Type", (UnitGetType(UnitLastCreated())));
StatEventSend(StatEventLastCreated());
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:10480
}
StatEventCreate("LevelUp");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
StatEventAddDataInt(StatEventLastCreated(), "Level", lv_level);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:10624
PlayerSetHero(lp_player, libGame_gv_players[lp_heroIndex].lv_heroData.lv_heroCatalogLink);
StatEventCreate("PlayerSpawned");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lp_heroIndex].lv_heroData.lv_unitType));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:11820
}
StatEventCreate("TalentChosen");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
StatEventAddDataString(StatEventLastCreated(), "PurchaseName", (libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16019
DialogControlSetEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, PlayerGroupAll(), true);
AINotifyGameStarted();
StatEventCreate("GatesOpen");
StatEventSend(StatEventLastCreated());
TimerStart(libGame_gv_gameTimer, c_timerDurationInfinite, false, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:16654
}
StatEventCreate("PlayerDeath");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_deadPlayer);
StatEventAddDataFixed(StatEventLastCreated(), "PositionX", PointGetX(UnitGetPosition(lv_deadHero)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18020
if ((GameIsOnline() == true)) {
StatEventCreate(lv_statType);
lv_stat = StatEventLastCreated();
StatEventAddDataString(lv_stat, "MapID", lv_mapID);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18172
if ((GameIsOnline() == true)) {
StatEventCreate(lv_statType);
lv_stat = StatEventLastCreated();
StatEventAddDataString(lv_stat, "MapID", lv_mapID);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18248
if ((GameIsOnline() == true)) {
StatEventCreate(lv_statType);
lv_stat = StatEventLastCreated();
StatEventAddDataString(lv_stat, "MapID", lv_mapID);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:18961
}
if ((lv_structureType == libGame_ge_TownStructureTypes_TownHall)) {
StatEventCreate("TownStructureDeath");
StatEventAddDataInt(StatEventLastCreated(), "TownID", lv_townIndex);
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", libUIUI_gf_HeroesGameTime());
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:1720
lv_killingFaction = libGame_ge_Faction_Chaos;
}
StatEventCreate("JungleCampCapture");
StatEventAddDataInt(StatEventLastCreated(), "CampID", lp_camp);
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(lp_owner));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3124
ActorSend(libMapM_gv_mapMechanicControllerActor, "Signal RainOn");
libGame_gv_teams[lv_enemyTeamWinningTeam].lv_map_CursesPlacedOnEnemyTeam += 1;
StatEventCreate("RavenCurseActivated");
StatEventAddDataInt(StatEventLastCreated(), "Event", (libGame_gv_teams[1].lv_map_CursesPlacedOnEnemyTeam + libGame_gv_teams[2].lv_map_CursesPlacedOnEnemyTeam));
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", lv_enemyTeamWinningTeam);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:6473
libAIAI_gf_AITeamDelegateActivateDeactivateMapEvent(libAIAI_ge_AITeamDelegateActivateDeactivateMapToken_Deactivate);
libAIAI_gf_AITeamDelegateAdjustMapEventProgressforTeam(1, lv_collectedTeam);
StatEventCreate("TributeCollected");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMapM_gv_mMRavenTributesCollected);
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", lv_collectedTeam);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7495
UnitSetState(libMapM_gv_mMGardensDragonUnit, c_unitStateStatusBar, true);
libMapM_gv_mMGardensDragonPlayer = EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster);
StatEventCreate("DragonKnightActivated");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMapM_gv_mMGardensDragonDragonCaptures);
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(libMapM_gv_mMGardensDragonPlayer));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:568
lv_player = PlayerGroupPlayer(libGame_gv_teams[lv_itTeam].lv_teamPlayerGroupNoNPCPlayers, 1);
if ((lv_player > 0) && (lv_player <= libCore_gv_bALMaxPlayers)) {
StatEventCreate("PeriodicXPBreakdown");
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", TimerGetElapsed(libGame_gv_gameTimer));
StatEventAddDataFixed(StatEventLastCreated(), "PreviousGameTime", libSprt_gv_dataMiningTimeStampofLastPeriodicTransmit);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:625
// Implementation
StatEventCreate("GameStart");
StatEventAddDataFixed(StatEventLastCreated(), "MapSizeX", PointGetX(RegionGetBoundsMax(RegionEntireMap())));
StatEventAddDataFixed(StatEventLastCreated(), "MapSizeY", PointGetY(RegionGetBoundsMax(RegionEntireMap())));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:643
else {
}
StatEventCreate("PlayerInit");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_i);
StatEventAddDataInt(StatEventLastCreated(), "Team", libGame_gf_TeamNumberOfPlayer(lv_i));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:664
for ( ; ( (auto60B8D5BE_ai >= 0 && lv_k <= auto60B8D5BE_ae) || (auto60B8D5BE_ai < 0 && lv_k >= auto60B8D5BE_ae) ) ; lv_k += auto60B8D5BE_ai ) {
if ((libGame_gv_townTownData[lv_i].lv_structureTypes[lv_k] == libGame_ge_TownStructureTypes_TownHall)) {
StatEventCreate("TownStructureInit");
StatEventAddDataInt(StatEventLastCreated(), "TownID", lv_i);
StatEventAddDataInt(StatEventLastCreated(), "Team", libGame_gf_TeamNumberOfPlayer(libGame_gv_townTownData[lv_i].lv_owner));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:678
lv_i = 1;
for ( ; ( (autoF8A3E2EA_ai >= 0 && lv_i <= autoF8A3E2EA_ae) || (autoF8A3E2EA_ai < 0 && lv_i >= autoF8A3E2EA_ae) ) ; lv_i += autoF8A3E2EA_ai ) {
StatEventCreate("JungleCampInit");
StatEventAddDataInt(StatEventLastCreated(), "CampID", lv_i);
StatEventAddDataFixed(StatEventLastCreated(), "PositionX", PointGetX(libMapM_gv_jungleCreepCamps[lv_i].lv_mapDataCampCaptainSpawnPoint));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:709
}
StatEventCreate("EndOfGameXPBreakdown");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
StatEventAddDataFixed(StatEventLastCreated(), "MinionXP", libGame_gv_players[lv_player].lv_xPRecievedFromMinions);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:717
StatEventAddDataFixed(StatEventLastCreated(), "TrickleXP", libGame_gv_players[lv_player].lv_xPRecievedFromTrickle);
StatEventSend(StatEventLastCreated());
StatEventCreate("EndOfGameTimeSpentDead");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
StatEventAddDataFixed(StatEventLastCreated(), "Time", libGame_gv_players[lv_player].lv_timeSpentDead);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:722
StatEventSend(StatEventLastCreated());
if ((PlayerHasTalent(lv_player, "GenericTalentRegenerationMaster") == true)) {
StatEventCreate("EndOfGameRegenMasterStacks");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
StatEventAddDataString(StatEventLastCreated(), "Hero", (UnitGetType(libGame_gv_players[lv_player].lv_heroUnit)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:730
if ((PlayerHasTalent(lv_player, "GenericTalentSeasonedMarksman") == true)) {
StatEventCreate("EndOfGameMarksmanStacks");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
StatEventAddDataString(StatEventLastCreated(), "Hero", (UnitGetType(libGame_gv_players[lv_player].lv_heroUnit)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:737
}
StatEventCreate("EndOfGameTalentChoices");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
StatEventAddDataString(StatEventLastCreated(), "Hero", (UnitGetType(libGame_gv_players[lv_player].lv_heroUnit)));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:11603
}
StatEventCreate("EndOfGameUpVotesCollected");
StatEventAddDataInt(StatEventLastCreated(), "Player", lv_receivingPlayerID);
StatEventAddDataInt(StatEventLastCreated(), "Voter", EventPlayer());
mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod — base.stormdata/LibMLBD.galaxy:212
}
StatEventCreate("Boss Duel Started");
StatEventAddDataInt(StatEventLastCreated(), "Boss Duel Number", libMLBD_gv_mMBOETimes);
StatEventSend(StatEventLastCreated());
mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod — base.stormdata/LibMLBD.galaxy:588
UnitSetPropertyFixed(libMLBD_gv_mMBOEBossesLaning, c_unitPropShieldsPercent, lv_hPPercent);
UnitSetPropertyFixed(libMLBD_gv_mMBOEBossesLaning, c_unitPropLife, 50.0);
StatEventCreate("Immortal Defeated");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMLBD_gv_mMBOETimes);
StatEventAddDataInt(StatEventLastCreated(), "Winning Team", libMLBD_gv_mMBOEEventWinningTeam);
mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod — base.stormdata/LibBBAY.galaxy:204
libCore_gf_CreateMinimapPingStorm(libGame_gf_PlayersOnTeamHeroes(lv_shipTeam, false), "StormWarning", UnitGetPosition(libBBAY_gv_mMBBCannonballsGhostShip), ColorWithAlpha(0.00, 100.00, 0.00, 0.00), 4.0);
libCore_gf_CreateMinimapPingStorm(libGame_gf_PlayersOnTeamHeroes(lv_enemyTeam, false), "StormWarning", UnitGetPosition(libBBAY_gv_mMBBCannonballsGhostShip), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 4.0);
StatEventCreate("GhostShipCaptured");
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", lv_shipTeam);
StatEventAddDataInt(StatEventLastCreated(), "TeamScore", libBBAY_gv_mMBBCannonballsBallsSubmitted[lv_shipTeam]);
mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod — base.stormdata/LibSCHO.galaxy:528
libSCHO_gv_mMHO_TeamZergTier[libGame_gv_teamOrderIndex_C] = libSCHO_gf_MMHOGetUserDataInstanceTier(libGame_gv_teamOrderIndex_C);
libSCHO_gv_mMHO_TeamZergTier[libGame_gv_teamChaosIndex_C] = libSCHO_gf_MMHOGetUserDataInstanceTier(libGame_gv_teamChaosIndex_C);
StatEventCreate("BraxisHoldoutMapEventComplete");
StatEventAddDataFixed(StatEventLastCreated(), "TeamOrderProgress", libSCHO_gv_mMHO_TeamProgress[libGame_gv_teamOrderIndex_C]);
StatEventAddDataFixed(StatEventLastCreated(), "TeamChaosProgress", libSCHO_gv_mMHO_TeamProgress[libGame_gv_teamChaosIndex_C]);
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:791
libMHtM_gf_MMUnderworldApplySummonedBossScaling(lp_team, false);
libGame_gf_SendEventMapHauntedMinesBossSummoned(UnitLastCreated());
StatEventCreate("HauntedMinesGolemsSpawned");
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", lp_team);
StatEventAddDataFixed(StatEventLastCreated(), "SkullCount", libMHtM_gv_mMUnderworldSkullCollected[lp_team]);
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:1494
libGame_gf_DropLootBannerinSconce(lv_bannerSconceUnit, libGame_gv_players[libNtve_gf_KillingPlayer()].lv_lootContent.lv_loot_Banner.lv_bannerID, libNtve_gf_KillingPlayer(), true);
}
StatEventCreate("Infernal Shrine Captured");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMSHE_gv_mMISNumberOfShrinesEvents);
StatEventAddDataInt(StatEventLastCreated(), "Winning Team", lv_winningTeam);
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:1835
}
libSond_gf_SoundtrackPlayMapSoundtrackAsDefaultSoundtrackForAllPlayers();
StatEventCreate("Punisher Killed");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMSHE_gv_mMISNumberOfShrinesEvents);
StatEventAddDataInt(StatEventLastCreated(), "Owning Team of Punisher", libGame_gf_TeamNumberOfPlayer(EventPlayer()));
mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod — base.stormdata/LibMLCP.galaxy:568
libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_blessed = true;
libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_finalStage = false;
StatEventCreate("SkyTempleActivated");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMLCP_gv_mMSkyTempleBlessIndex);
StatEventAddDataInt(StatEventLastCreated(), "TempleID", lp_templeIndex);
mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod — base.stormdata/LibMLCP.galaxy:2812
if ((libMLCP_gv_mMSkyTemples[lv_itTempleIndex].lv_beacon == EventUnit())) {
UnitSetOwner(libMLCP_gv_mMSkyTemples[lv_itTempleIndex].lv_temple, UnitGetOwner(libMLCP_gv_mMSkyTemples[lv_itTempleIndex].lv_beacon), true);
StatEventCreate("SkyTempleCaptured");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMLCP_gv_mMSkyTempleBlessIndex);
StatEventAddDataInt(StatEventLastCreated(), "TempleID", lv_itTempleIndex);
mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod — base.stormdata/LibMLCP.galaxy:3014
if ((libMLCP_gv_mMSkyTemples[lv_itTempleIndex].lv_temple == EventUnitDamageSourceUnit())) {
libMLCP_gf_MMSkyTempleShootingPing(lv_itTempleIndex, EventUnit());
StatEventCreate("SkyTempleShotsFired");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMLCP_gv_mMSkyTempleBlessIndex);
StatEventAddDataInt(StatEventLastCreated(), "TempleID", lv_itTempleIndex);
mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmod — base.stormdata/LibMSOC.galaxy:2022
libGame_gf_DropLootBannerinSconce(lv_bannerSconce, libGame_gv_players[lv_channelingPlayer].lv_lootContent.lv_loot_Banner.lv_bannerID, lv_channelingPlayer, true);
}
StatEventCreate("SoulEatersSpawned");
StatEventAddDataInt(StatEventLastCreated(), "Event", libMSOC_gv_mMTombSpiderQueenTotalTimesSpawned);
StatEventAddDataFixed(StatEventLastCreated(), "TeamID", lv_channelingTeam);
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:159
if (((UnitGroupCount(libMTOD_gv_mMToDOrderBases, c_unitCountAlive) == 6) || (UnitGroupCount(libMTOD_gv_mMToDChaosBases, c_unitCountAlive) == 6))) {
libMTOD_gv_mMToDSixTownEventActive = true;
StatEventCreate("Six Town Event Start");
StatEventAddDataInt(StatEventLastCreated(), "Owning Team", libGame_gf_TeamNumberOfPlayer(lp_computerPlayer));
StatEventAddDataFixed(StatEventLastCreated(), "Start Time", TimerGetElapsed(libGame_gv_gameTimer));
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:177
if ((UnitGroupCount(libMTOD_gv_mMToDOrderBases, c_unitCountAlive) != 6) && (UnitGroupCount(libMTOD_gv_mMToDChaosBases, c_unitCountAlive) != 6) && (libMTOD_gv_mMToDSixTownEventActive == true)) {
libMTOD_gv_mMToDSixTownEventActive = false;
StatEventCreate("Six Town Event End");
StatEventAddDataInt(StatEventLastCreated(), "Owning Team", libGame_gf_TeamNumberOfPlayer(lp_computerPlayer));
StatEventAddDataFixed(StatEventLastCreated(), "End Time", TimerGetElapsed(libGame_gv_gameTimer));
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:534
libMTOD_gf_MMToDUpdatePotentialShotsLabels();
libMTOD_gf_MMToDChangeMarkerOwnershipOnAltars(lp_townNumber, libCore_gv_cOMPUTER_Neutral);
StatEventCreate("Town Captured");
StatEventAddDataInt(StatEventLastCreated(), "New Owner", lv_newOwningTeam);
StatEventSend(StatEventLastCreated());
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:2226
}
StatEventCreate("Altar Captured");
StatEventAddDataInt(StatEventLastCreated(), "Firing Team", lv_capturingTeam);
if ((lv_capturingTeam == libGame_gv_teamOrderIndex_C)) {
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:122
libVLSK_gv_currentCapturePoint = lp_capturePointIndex;
libVLSK_gf_MonitorCapturePointProgressUntilComplete(lp_capturePointIndex);
StatEventCreate("VolskayaCapturePointSpawned");
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", libUIUI_gf_HeroesGameTime());
StatEventSend(StatEventLastCreated());
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:370
libVLSK_gf_PlayVOControlPointCompleted(lp_victoryTeam);
libVLSK_gf_EnableDisableCapturePoint(lp_capturePointIndex, false);
StatEventCreate("VolskayaCapturePointComplete");
StatEventAddDataInt(StatEventLastCreated(), "WinningTeam", lp_victoryTeam);
StatEventAddDataFixed(StatEventLastCreated(), "LosingTeamProgress", libVLSK_gf_GetCapturePointVictoryProgressasInt(lp_capturePointIndex, libGame_gf_EnemyTeam(lp_victoryTeam)));
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:371
libMSC2_gf_MMSC2UpdateNukeTextTagsForPlayers();
TimerStart(libMSC2_gv_mMSC2BuiltWarheadReminderTimer, libMSC2_gv_mMSC2WarheadPickupReminderDelay_C, false, c_timeGame);
StatEventCreate("WarheadJunctionNukesSpawned");
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", libUIUI_gf_HeroesGameTime());
if ((libMSC2_gv_mMSC2FourWarheadsSpawn == true)) {
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:665
}
StatEventCreate("WarheadJunctionNukeFired");
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", libUIUI_gf_HeroesGameTime());
StatEventAddDataInt(StatEventLastCreated(), "OwningTeam", lv_allyTeam);
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:1863
TimerStart(libMSC2_gv_mMSC2BuiltWarheadReminderTimer, libMSC2_gv_mMSC2WarheadPickupReminderDelay_C, false, c_timeGame);
}
StatEventCreate("WarheadJunctionNukeCollected");
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", libUIUI_gf_HeroesGameTime());
StatEventAddDataInt(StatEventLastCreated(), "OwningTeam", lv_team);
mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod — base.stormdata/LibMSC2.galaxy:2113
}
StatEventCreate("WarheadJunctionNukeDropped");
StatEventAddDataFixed(StatEventLastCreated(), "GameTime", libUIUI_gf_HeroesGameTime());
StatEventAddDataInt(StatEventLastCreated(), "OwningTeam", lv_allyTeam);
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:1584
}
else {
StatEventCreate("ChoGall Cho Spawn Error");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_playerID);
StatEventSend(StatEventLastCreated());
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:1708
libCore_gf_DataLoadHeroDataIntoIndex(libCore_gf_GetHeroFromIndex(libGame_gf_HeroSelectionRandomlyPickAnyUnusedHero(lv_gallPlayer, true, false)), lv_gallPlayer);
libGame_gf_SpawnHero(lv_gallPlayer, lv_gallPlayer, libGame_gv_players[lv_gallPlayer].lv_spawnPoint);
StatEventCreate("ChoGall Gall Spawn Error");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_gallPlayer);
StatEventSend(StatEventLastCreated());
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:1768
lv_gallIndex = lv_gallPlayer;
PlayerSetHero(lv_gallPlayer, libGame_gv_players[lv_gallIndex].lv_heroData.lv_heroCatalogLink);
StatEventCreate("PlayerSpawned");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_gallPlayer);
StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lv_gallIndex].lv_heroData.lv_unitType));
mods/heromods/dva.stormmod — base.stormdata/LibHDVA.galaxy:233
PlayerSetHero(lp_player, libGame_gv_players[lp_player].lv_heroData.lv_heroCatalogLink);
StatEventCreate("PlayerSpawned");
StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lp_player].lv_heroData.lv_unitType));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:5152
}
StatEventCreate(lp_name);
TriggerDebugOutput(13, StringToText(lp_name), false);
libCOOC_gv_pC_StatEventLastCampaign = StatEventLastCreated();