# Last Created Stat Event

Grammar — Last Created Stat Event
FlagsNative | Function

Returns the last created Stat Event.

Returns — int<preset::StatEvent>

native int StatEventLastCreated();

Category: Stats

# Examples

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

    libVoiC_gf_PC_StatEventCreate("ScenePlay");
    libVoiC_gf_PC_StatEventAddStr("ID", (lp_scene), libVoiC_gf_PC_StatEventLast());
    libVoiC_gv_pC_SceneStatEvent = StatEventLastCreated();
    if ((libVoiC_gf_PC_CinematicCutscene(lp_scene) != null)) {
        SoundtrackPause(PlayerGroupAll(), c_soundtrackCategoryMusic, true, true);

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

    StatEventCreate(lp_name);
    TriggerDebugOutput(13, StringToText(lp_name), false);
    libVoiC_gv_pC_StatEventLastCampaign = StatEventLastCreated();
    libVoiC_gf_PC_StatEventAddInt("MapInstance", libVoiC_gv_pCX_MapInstanceID, libVoiC_gf_PC_StatEventLast());
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4523

    }

    libVoiC_gv_pC_SceneStatEvent = StatEventLastCreated();
    UserDataSetInt("Scenes", lp_scene, "Played", 1, 1);
    if ((UserDataGetUserInstance("Scenes", lp_scene, "Type", 1) == "Prerender")) {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4530

    else {
        libVoiC_gf_PC_StatEventCreate("ScenePlay");
        libVCST_gv_pS_CutsceneStatEvent = StatEventLastCreated();
        libVoiC_gf_PC_StatEventAddStr("ID", (lp_scene), libVoiC_gf_PC_StatEventLast());
        libVCST_gf_StartStoryActivity(libVCST_ge_StoryActivities_ScriptedScene);

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


    StatEventCreate("Tutorial01_Start");
    StatEventSend(StatEventLastCreated());
    TriggerQueueEnter();
    TriggerExecute(gt_IntroSetup, true, true);

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

    gv_cinematicCompleted = true;
    StatEventCreate("Tutorial01_IntroCinematicCompleted");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    Wait(0.5, c_timeGame);
    StatEventCreate("Tutorial01_GatesOpened");
    StatEventSend(StatEventLastCreated());
    libStEx_gf_DisplayHintMessage(StringExternal("Param/Value/CDD0665D"), true, 2.0);
    TriggerExecute(gt_PauseMercTimers, true, false);

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

    gv_goToLanePing = c_invalidPingId;
    StatEventCreate("Tutorial01_FrontLineDone");
    StatEventSend(StatEventLastCreated());
    Wait(6.0, c_timeReal);
    return true;

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

    gv_cinematicCompleted = true;
    StatEventCreate("Tutorial01_ExperienceCinematicCompleted");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    gv_goToWatchtowerPing = c_invalidPingId;
    StatEventCreate("Tutorial01_WatchTowerDone");
    StatEventSend(StatEventLastCreated());
    Wait(6.0, c_timeReal);
    return true;

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

    SoundPlayForPlayer(SoundLink("UI_ObjectiveComplete", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    StatEventCreate("Tutorial01_MercCampDone");
    StatEventSend(StatEventLastCreated());
    Wait(6.0, c_timeReal);
    return true;

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

    gv_corePing = c_invalidPingId;
    StatEventCreate("Tutorial01_Victory");
    StatEventSend(StatEventLastCreated());
    TriggerEnable(gt_PlayerExitEarly, false);
    Wait(6.0, c_timeReal);

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

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Tutorial01_ExitEarly");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    TriggerExecute(gt_InitEventPlayerGroups, true, false);
    StatEventCreate("Tutorial02_Start");
    StatEventSend(StatEventLastCreated());
    Wait(1.0, c_timeGame);
    libGame_gv_heroSpawnReady = true;

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

    AchievementAward(1, "TutorialLootChest");
    StatEventCreate("Tutorial02_Victory");
    StatEventSend(StatEventLastCreated());
    TriggerEnable(gt_PlayerExitEarly, false);
    return true;

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

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Tutorial02_ExitEarly");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Tutorial02_GatesOpened");
    StatEventSend(StatEventLastCreated());
    TriggerExecute(gt_MakeEnemyInnerTownsTakeMinimalDamage, true, false);
    libAIAI_gf_HeroAIEnableAIForPlayer(gv_pLAYER_02_HEALERTANK);

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

    gv_cinematicCompleted = true;
    StatEventCreate("Tutorial02_TributeCinematicCompleted");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

        if (autoF61EC164_val == 1) {
            StatEventCreate("Tutorial02_FirstTributeCaptured");
            StatEventSend(StatEventLastCreated());
        }
        else if (autoF61EC164_val == 2) {

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

        else if (autoF61EC164_val == 2) {
            StatEventCreate("Tutorial02_SecondTributeCaptured");
            StatEventSend(StatEventLastCreated());
        }
        else if (autoF61EC164_val == 3) {

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

        else if (autoF61EC164_val == 3) {
            StatEventCreate("Tutorial02_ThirdTributeCaptured");
            StatEventSend(StatEventLastCreated());
        }
        else {

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


    StatEventCreate("Challenge 1");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla DPS");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
    if ((gv__1A_Complete == true)) {

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

    StatEventCreate("Challenge 1");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla DPS");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
    if ((gv__1A_Complete == true)) {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "True");

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

    StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
    if ((gv__1A_Complete == true)) {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "True");
    }
    else {

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

    }
    else {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "False");
    }
    if ((gv__1A_CinematicSkipped == true)) {

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

    }
    if ((gv__1A_CinematicSkipped == true)) {
        StatEventAddDataString(StatEventLastCreated(), "CinematicSkipped", "True");
    }
    else {

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

    }
    else {
        StatEventAddDataString(StatEventLastCreated(), "CinematicSkipped", "False");
    }
    StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);

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

        StatEventAddDataString(StatEventLastCreated(), "CinematicSkipped", "False");
    }
    StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);
    StatEventSend(StatEventLastCreated());
    StatEventCreate("Challenge 2");

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

    }
    StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);
    StatEventSend(StatEventLastCreated());
    StatEventCreate("Challenge 2");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");

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

    StatEventSend(StatEventLastCreated());
    StatEventCreate("Challenge 2");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "2");
    if ((gv__1C_Complete == true)) {

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

    StatEventCreate("Challenge 2");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "2");
    if ((gv__1C_Complete == true)) {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "True");

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


    StatEventCreate("Tutorial01_Start");
    StatEventSend(StatEventLastCreated());
    TriggerQueueEnter();
    TriggerExecute(gt_IntroSetup, true, true);

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

    gv_cinematicCompleted = true;
    StatEventCreate("Tutorial01_IntroCinematicCompleted");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    Wait(0.5, c_timeGame);
    StatEventCreate("Tutorial01_GatesOpened");
    StatEventSend(StatEventLastCreated());
    libStEx_gf_DisplayHintMessage(StringExternal("Param/Value/CDD0665D"), true, 2.0);
    TriggerExecute(gt_PauseMercTimers, true, false);

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

    gv_goToLanePing = c_invalidPingId;
    StatEventCreate("Tutorial01_FrontLineDone");
    StatEventSend(StatEventLastCreated());
    Wait(6.0, c_timeReal);
    return true;

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

    gv_cinematicCompleted = true;
    StatEventCreate("Tutorial01_ExperienceCinematicCompleted");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    gv_goToWatchtowerPing = c_invalidPingId;
    StatEventCreate("Tutorial01_WatchTowerDone");
    StatEventSend(StatEventLastCreated());
    Wait(6.0, c_timeReal);
    return true;

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

    SoundPlayForPlayer(SoundLink("UI_ObjectiveComplete", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    StatEventCreate("Tutorial01_MercCampDone");
    StatEventSend(StatEventLastCreated());
    Wait(6.0, c_timeReal);
    return true;

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

    gv_corePing = c_invalidPingId;
    StatEventCreate("Tutorial01_Victory");
    StatEventSend(StatEventLastCreated());
    TriggerEnable(gt_PlayerExitEarly, false);
    Wait(6.0, c_timeReal);

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

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Tutorial01_ExitEarly");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    TriggerExecute(gt_InitEventPlayerGroups, true, false);
    StatEventCreate("Tutorial02_Start");
    StatEventSend(StatEventLastCreated());
    Wait(1.0, c_timeGame);
    libGame_gv_heroSpawnReady = true;

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

    AchievementAward(1, "TutorialLootChest");
    StatEventCreate("Tutorial02_Victory");
    StatEventSend(StatEventLastCreated());
    TriggerEnable(gt_PlayerExitEarly, false);
    return true;

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

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Tutorial02_ExitEarly");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Tutorial02_GatesOpened");
    StatEventSend(StatEventLastCreated());
    TriggerExecute(gt_MakeEnemyInnerTownsTakeMinimalDamage, true, false);
    libAIAI_gf_HeroAIEnableAIForPlayer(gv_pLAYER_02_HEALERTANK);

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

    gv_cinematicCompleted = true;
    StatEventCreate("Tutorial02_TributeCinematicCompleted");
    StatEventSend(StatEventLastCreated());
    return true;
}

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

        if (autoF61EC164_val == 1) {
            StatEventCreate("Tutorial02_FirstTributeCaptured");
            StatEventSend(StatEventLastCreated());
        }
        else if (autoF61EC164_val == 2) {

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

        else if (autoF61EC164_val == 2) {
            StatEventCreate("Tutorial02_SecondTributeCaptured");
            StatEventSend(StatEventLastCreated());
        }
        else if (autoF61EC164_val == 3) {

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

        else if (autoF61EC164_val == 3) {
            StatEventCreate("Tutorial02_ThirdTributeCaptured");
            StatEventSend(StatEventLastCreated());
        }
        else {

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


    StatEventCreate("Challenge 1");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla DPS");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
    if ((gv__1A_Complete == true)) {

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

    StatEventCreate("Challenge 1");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla DPS");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
    if ((gv__1A_Complete == true)) {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "True");

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

    StatEventAddDataString(StatEventLastCreated(), "Stage", "1");
    if ((gv__1A_Complete == true)) {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "True");
    }
    else {

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

    }
    else {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "False");
    }
    if ((gv__1A_CinematicSkipped == true)) {

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

    }
    if ((gv__1A_CinematicSkipped == true)) {
        StatEventAddDataString(StatEventLastCreated(), "CinematicSkipped", "True");
    }
    else {

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

    }
    else {
        StatEventAddDataString(StatEventLastCreated(), "CinematicSkipped", "False");
    }
    StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);

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

        StatEventAddDataString(StatEventLastCreated(), "CinematicSkipped", "False");
    }
    StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);
    StatEventSend(StatEventLastCreated());
    StatEventCreate("Challenge 2");

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

    }
    StatEventAddDataInt(StatEventLastCreated(), "Attempts", gv__1A_PlayTimes);
    StatEventSend(StatEventLastCreated());
    StatEventCreate("Challenge 2");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");

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

    StatEventSend(StatEventLastCreated());
    StatEventCreate("Challenge 2");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "2");
    if ((gv__1C_Complete == true)) {

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

    StatEventCreate("Challenge 2");
    StatEventAddDataString(StatEventLastCreated(), "Challenge", "Valla Mosh Pit");
    StatEventAddDataString(StatEventLastCreated(), "Stage", "2");
    if ((gv__1C_Complete == true)) {
        StatEventAddDataString(StatEventLastCreated(), "Complete", "True");

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:245

    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);
    libCore_gf_CreateMinimapPingStorm(PlayerGroupAll(), "StormArenaAlert", libAMCT_gf_ARMSkyTempleLocation(lp_templeIndex), Color(100.00, 100.00, 0.00), 6.0);

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:1990

        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());
        if ((libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_blessed == true)) {

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:1991

        StatEventCreate("SkyTempleCaptured");
        StatEventAddDataInt(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple)));
        StatEventSend(StatEventLastCreated());
        if ((libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_blessed == true)) {
            libAMCT_gf_ARMSkyTempleUpdateTempleMinimapIcon(lv_itTempleIndex, libAMCT_ge_ARMSkyTempleMinimapIconState_Enable);

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2038

            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)));
            StatEventSend(StatEventLastCreated());

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2039

            StatEventCreate("SkyTempleShotsFired");
            StatEventAddDataInt(StatEventLastCreated(), "TempleID", lv_itTempleIndex);
            StatEventAddDataInt(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple)));
            StatEventSend(StatEventLastCreated());
            break;

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:2040

            StatEventAddDataInt(StatEventLastCreated(), "TempleID", lv_itTempleIndex);
            StatEventAddDataInt(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(UnitGetOwner(libAMCT_gv_aRMSkyTemple[lv_itTempleIndex].lv_temple)));
            StatEventSend(StatEventLastCreated());
            break;
        }

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10630

    autoE3D539F5_val = EventPlayerEffectUsed();
    if (autoE3D539F5_val == "PvEMiniNukeInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Mini Nuke");
    }
    else if (autoE3D539F5_val == "PvEPsiEmitterInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10633

    }
    else if (autoE3D539F5_val == "PvEPsiEmitterInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Psi Emitter");
    }
    else if (autoE3D539F5_val == "PvEReinforcementsInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10636

    }
    else if (autoE3D539F5_val == "PvEReinforcementsInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Reinforcements");
    }
    else if (autoE3D539F5_val == "PvERejuvenationPulseInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10639

    }
    else if (autoE3D539F5_val == "PvERejuvenationPulseInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Rejuvenation Pulse");
    }
    else if (autoE3D539F5_val == "PvETeamStimpackInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10642

    }
    else if (autoE3D539F5_val == "PvETeamStimpackInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Team Stimpack");
    }
    else if (autoE3D539F5_val == "PVESecondChanceInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10645

    }
    else if (autoE3D539F5_val == "PVESecondChanceInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Second Chance");
    }
    else {

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10649

    else {
    }
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster));
    StatEventSend(StatEventLastCreated());
    libNtve_gf_SetUpgradeLevelForPlayer(EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster), "DisplayLockedMapMechanicAbility", 1);

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:10650

    }
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster));
    StatEventSend(StatEventLastCreated());
    libNtve_gf_SetUpgradeLevelForPlayer(EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster), "DisplayLockedMapMechanicAbility", 1);
    return true;

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:12511

    TriggerEnable(TriggerGetCurrent(), false);
    StatEventCreate("Game Results");
    StatEventAddDataString(StatEventLastCreated(), "Map Name", "Deadman's Stand");
    if ((libPVEM_gf_PvEGameDifficulty() == libPVEM_ge_PvEGameDifficulty_PvEGameDifficulty_Normal)) {
        StatEventAddDataString(StatEventLastCreated(), "Difficulty", "Normal");

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:12513

    StatEventAddDataString(StatEventLastCreated(), "Map Name", "Deadman's Stand");
    if ((libPVEM_gf_PvEGameDifficulty() == libPVEM_ge_PvEGameDifficulty_PvEGameDifficulty_Normal)) {
        StatEventAddDataString(StatEventLastCreated(), "Difficulty", "Normal");
    }
    else {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9734

    autoE3D539F5_val = EventPlayerEffectUsed();
    if (autoE3D539F5_val == "PvEMiniNukeInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Mini Nuke");
    }
    else if (autoE3D539F5_val == "PvEPsiEmitterInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9737

    }
    else if (autoE3D539F5_val == "PvEPsiEmitterInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Psi Emitter");
    }
    else if (autoE3D539F5_val == "PvEReinforcementsInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9740

    }
    else if (autoE3D539F5_val == "PvEReinforcementsInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Reinforcements");
    }
    else if (autoE3D539F5_val == "PvERejuvenationPulseInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9743

    }
    else if (autoE3D539F5_val == "PvERejuvenationPulseInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Rejuvenation Pulse");
    }
    else if (autoE3D539F5_val == "PvETeamStimpackInitialSet") {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9746

    }
    else if (autoE3D539F5_val == "PvETeamStimpackInitialSet") {
        StatEventAddDataString(StatEventLastCreated(), "Pickup Type", "Team Stimpack");
    }
    else {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9750

    else {
    }
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster));
    StatEventSend(StatEventLastCreated());
    libNtve_gf_SetUpgradeLevelForPlayer(EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster), "DisplayLockedMapMechanicAbility", 1);

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:9751

    }
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster));
    StatEventSend(StatEventLastCreated());
    libNtve_gf_SetUpgradeLevelForPlayer(EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster), "DisplayLockedMapMechanicAbility", 1);
    return true;

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:11606


    StatEventCreate("Game Results");
    StatEventAddDataString(StatEventLastCreated(), "Map Name", "Escape from Braxis");
    auto509F083C_val = libPVEB_gf_PBGameDifficulty();
    if (auto509F083C_val == libPVEB_ge_PVEGameDifficulty_Hard) {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:11609

    auto509F083C_val = libPVEB_gf_PBGameDifficulty();
    if (auto509F083C_val == libPVEB_ge_PVEGameDifficulty_Hard) {
        StatEventAddDataString(StatEventLastCreated(), "Difficulty", "Hard");
    }
    else {

mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmodbase.stormdata/LibPEB1.galaxy:11612

    }
    else {
        StatEventAddDataString(StatEventLastCreated(), "Difficulty", "Normal");
    }
    if ((libPEB1_gv_stage1CompleteTime != 0)) {

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:317


    StatEventCreate("Pickup Spawned");
    StatEventAddDataString(StatEventLastCreated(), "Pickup Type", (UnitGetType(UnitLastCreated())));
    StatEventSend(StatEventLastCreated());

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmodbase.stormdata/LibPVEB.galaxy:318

    StatEventCreate("Pickup Spawned");
    StatEventAddDataString(StatEventLastCreated(), "Pickup Type", (UnitGetType(UnitLastCreated())));
    StatEventSend(StatEventLastCreated());

}

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:574


    StatEventCreate("Pickup Spawned");
    StatEventAddDataString(StatEventLastCreated(), "Pickup Type", (UnitGetType(UnitLastCreated())));
    StatEventSend(StatEventLastCreated());

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEM.galaxy:575

    StatEventCreate("Pickup Spawned");
    StatEventAddDataString(StatEventLastCreated(), "Pickup Type", (UnitGetType(UnitLastCreated())));
    StatEventSend(StatEventLastCreated());

}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6161


    // Deprecated
    StatEventSend(StatEventLastCreated());
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10481


    StatEventCreate("LevelUp");
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
    StatEventAddDataInt(StatEventLastCreated(), "Level", lv_level);
    StatEventSend(StatEventLastCreated());

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10482

    StatEventCreate("LevelUp");
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
    StatEventAddDataInt(StatEventLastCreated(), "Level", lv_level);
    StatEventSend(StatEventLastCreated());
    libGame_gf_SendEventHeroLevelUp(lv_player, lv_level);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10483

    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lv_player);
    StatEventAddDataInt(StatEventLastCreated(), "Level", lv_level);
    StatEventSend(StatEventLastCreated());
    libGame_gf_SendEventHeroLevelUp(lv_player, lv_level);
    if ((libGame_gv_players[lv_player].lv_suppressLevelUpFXAndTeamXPTracking == false) && (libGame_gv_players[lv_player].lv_suppressLevelUpFXAndSounds == false) && (UnitLevel(lp_hero) > 1)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10625

    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));
    StatEventSend(StatEventLastCreated());

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10626

    StatEventCreate("PlayerSpawned");
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
    StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lp_heroIndex].lv_heroData.lv_unitType));
    StatEventSend(StatEventLastCreated());
    ActorScopeSend(ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit), "StatusIncrement PreventDestroyOnDeath");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:10627

    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
    StatEventAddDataString(StatEventLastCreated(), "Hero", (libGame_gv_players[lp_heroIndex].lv_heroData.lv_unitType));
    StatEventSend(StatEventLastCreated());
    ActorScopeSend(ActorScopeFromUnit(libGame_gv_players[lp_player].lv_heroUnit), "StatusIncrement PreventDestroyOnDeath");
    if ((libGame_gv_heroDeath_RespawnMounted == true) && (libGame_gv_players[lp_player].lv_disableMount == false)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11821


    StatEventCreate("TalentChosen");
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
    StatEventAddDataString(StatEventLastCreated(), "PurchaseName", (libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink));
    StatEventSend(StatEventLastCreated());

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11822

    StatEventCreate("TalentChosen");
    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
    StatEventAddDataString(StatEventLastCreated(), "PurchaseName", (libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink));
    StatEventSend(StatEventLastCreated());
    PlayerAddTalent(lp_player, libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:11823

    StatEventAddDataInt(StatEventLastCreated(), "PlayerID", lp_player);
    StatEventAddDataString(StatEventLastCreated(), "PurchaseName", (libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink));
    StatEventSend(StatEventLastCreated());
    PlayerAddTalent(lp_player, libGame_gv_talents_TalentChoices[lp_player][lp_tierIndex].lv_talentData[lp_buttonIndex].lv_talentCatalogLink);
    TalentTreeSetSelectedHeroTalent(lp_player, lp_tierIndex, lp_buttonIndex);

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

    }
    StatEventCreate("JungleCampCapture");
    StatEventAddDataInt(StatEventLastCreated(), "CampID", lp_camp);
    StatEventAddDataFixed(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(lp_owner));
    if (((libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_GraveGolem) || (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_BossCamp1) || (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_BossCamp2) || (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_BossCamp3))) {

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

    StatEventCreate("JungleCampCapture");
    StatEventAddDataInt(StatEventLastCreated(), "CampID", lp_camp);
    StatEventAddDataFixed(StatEventLastCreated(), "TeamID", libGame_gf_TeamNumberOfPlayer(lp_owner));
    if (((libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_GraveGolem) || (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_BossCamp1) || (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_BossCamp2) || (libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataCampDefenderType == libMapM_ge_JungleCampDefenderTypes_BossCamp3))) {
        StatEventAddDataString(StatEventLastCreated(), "CampType", "Boss Camp");