# Create Stat Event

Grammar — Create eventName Stat Event
FlagsNative | 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);

Category: Stats

# Examples

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L8073
StatEventCreate(lp_name)

# mods/heroes.stormmod

MapScript.galaxy

// L1728
StatEventCreate("Tutorial01_Start")
// L1871
StatEventCreate("Tutorial01_IntroCinematicCompleted")
// L2377
StatEventCreate("Tutorial01_GatesOpened")
// L2579
StatEventCreate("Tutorial01_FrontLineDone")
// L2806
StatEventCreate("Tutorial01_ExperienceCinematicCompleted")
// L3506
StatEventCreate("Tutorial01_WatchTowerDone")
// L4037
StatEventCreate("Tutorial01_MercCampDone")
// L4413
StatEventCreate("Tutorial01_Victory")
// L4436
StatEventCreate("Tutorial01_ExitEarly")
// L299
StatEventCreate("Tutorial02_Start")
// L1193
StatEventCreate("Tutorial02_Victory")
// L1216
StatEventCreate("Tutorial02_ExitEarly")
// L1238
StatEventCreate("Tutorial02_GatesOpened")
// L1641
StatEventCreate("Tutorial02_TributeCinematicCompleted")
// L2264
StatEventCreate("Tutorial02_FirstTributeCaptured")
// L2268
StatEventCreate("Tutorial02_SecondTributeCaptured")
// L2272
StatEventCreate("Tutorial02_ThirdTributeCaptured")
// L2769
StatEventCreate("Challenge 1")
// L2786
StatEventCreate("Challenge 2")
// L2803
StatEventCreate("Challenge 3")
// L1728
StatEventCreate("Tutorial01_Start")
// L1871
StatEventCreate("Tutorial01_IntroCinematicCompleted")
// L2377
StatEventCreate("Tutorial01_GatesOpened")
// L2579
StatEventCreate("Tutorial01_FrontLineDone")
// L2806
StatEventCreate("Tutorial01_ExperienceCinematicCompleted")
// L3506
StatEventCreate("Tutorial01_WatchTowerDone")
// L4037
StatEventCreate("Tutorial01_MercCampDone")
// L4413
StatEventCreate("Tutorial01_Victory")
// L4436
StatEventCreate("Tutorial01_ExitEarly")
// L299
StatEventCreate("Tutorial02_Start")
// L1193
StatEventCreate("Tutorial02_Victory")
// L1216
StatEventCreate("Tutorial02_ExitEarly")
// L1238
StatEventCreate("Tutorial02_GatesOpened")
// L1641
StatEventCreate("Tutorial02_TributeCinematicCompleted")
// L2264
StatEventCreate("Tutorial02_FirstTributeCaptured")
// L2268
StatEventCreate("Tutorial02_SecondTributeCaptured")
// L2272
StatEventCreate("Tutorial02_ThirdTributeCaptured")
// L2769
StatEventCreate("Challenge 1")
// L2786
StatEventCreate("Challenge 2")
// L2803
StatEventCreate("Challenge 3")

# mods/heroesbrawlmods/arenamodemods/templearena.stormmod

LibAMCT.galaxy

// L244
StatEventCreate("SkyTempleActivated")
// L1989
StatEventCreate("SkyTempleCaptured")
// L2037
StatEventCreate("SkyTempleShotsFired")

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L10627
StatEventCreate("Pickup Used")
// L12510
StatEventCreate("Game Results")
// L9731
StatEventCreate("Pickup Used")
// L11605
StatEventCreate("Game Results")

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L316
StatEventCreate("Pickup Spawned")

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L573
StatEventCreate("Pickup Spawned")

# mods/heroesdata.stormmod

GameLib.galaxy

// L10480
StatEventCreate("LevelUp")
// L10624
StatEventCreate("PlayerSpawned")
// L11820
StatEventCreate("TalentChosen")
// L16019
StatEventCreate("GatesOpen")
// L16654
StatEventCreate("PlayerDeath")
// L18020
StatEventCreate(lv_statType)
// L18172
StatEventCreate(lv_statType)
// L18248
StatEventCreate(lv_statType)
// L18961
StatEventCreate("TownStructureDeath")

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L1720
StatEventCreate("JungleCampCapture")
// L3124
StatEventCreate("RavenCurseActivated")
// L6473
StatEventCreate("TributeCollected")
// L7495
StatEventCreate("DragonKnightActivated")

# mods/heroesdata.stormmod

SupportLib.galaxy

// L568
StatEventCreate("PeriodicXPBreakdown")
// L625
StatEventCreate("GameStart")
// L643
StatEventCreate("PlayerInit")
// L664
StatEventCreate("TownStructureInit")
// L678
StatEventCreate("JungleCampInit")
// L709
StatEventCreate("EndOfGameXPBreakdown")
// L717
StatEventCreate("EndOfGameTimeSpentDead")
// L722
StatEventCreate("EndOfGameRegenMasterStacks")
// L730
StatEventCreate("EndOfGameMarksmanStacks")
// L737
StatEventCreate("EndOfGameTalentChoices")

# mods/heroesdata.stormmod

UILib.galaxy

// L11603
StatEventCreate("EndOfGameUpVotesCollected")

# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod

LibMLBD.galaxy

// L212
StatEventCreate("Boss Duel Started")
// L588
StatEventCreate("Immortal Defeated")

# mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod

LibBBAY.galaxy

// L204
StatEventCreate("GhostShipCaptured")

# mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod

LibSCHO.galaxy

// L528
StatEventCreate("BraxisHoldoutMapEventComplete")

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L791
StatEventCreate("HauntedMinesGolemsSpawned")

# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod

LibMSHE.galaxy

// L1494
StatEventCreate("Infernal Shrine Captured")
// L1835
StatEventCreate("Punisher Killed")

# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod

LibMLCP.galaxy

// L568
StatEventCreate("SkyTempleActivated")
// L2812
StatEventCreate("SkyTempleCaptured")
// L3014
StatEventCreate("SkyTempleShotsFired")

# mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmod

LibMSOC.galaxy

// L2022
StatEventCreate("SoulEatersSpawned")

# mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod

LibMTOD.galaxy

// L159
StatEventCreate("Six Town Event Start")
// L177
StatEventCreate("Six Town Event End")
// L534
StatEventCreate("Town Captured")
// L2226
StatEventCreate("Altar Captured")

# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod

LibVLSK.galaxy

// L122
StatEventCreate("VolskayaCapturePointSpawned")
// L370
StatEventCreate("VolskayaCapturePointComplete")

# mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod

LibMSC2.galaxy

// L371
StatEventCreate("WarheadJunctionNukesSpawned")
// L665
StatEventCreate("WarheadJunctionNukeFired")
// L1863
StatEventCreate("WarheadJunctionNukeCollected")
// L2113
StatEventCreate("WarheadJunctionNukeDropped")

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L1584
StatEventCreate("ChoGall Cho Spawn Error")
// L1708
StatEventCreate("ChoGall Gall Spawn Error")
// L1768
StatEventCreate("PlayerSpawned")

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L233
StatEventCreate("PlayerSpawned")

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L5152
StatEventCreate(lp_name)