# 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
- [F] —
int
[ preset::StatEvent ] — Create Stat Event — ( StatEventCreate ) - [F] —
void
— Add String Data to Stat Event — ( StatEventAddDataString ) - [F] —
void
— Add Integer Data to Stat Event — ( StatEventAddDataInt ) - [F] —
void
— Add Real Data to Stat Event — ( StatEventAddDataFixed ) - [F] —
void
— Send Stat Event — ( StatEventSend ) - [F] —
int
[ preset::StatEvent ] — Last Created Stat Event — ( StatEventLastCreated ) - [P] — Stat Event
# Examples
# campaigns/voidstory.sc2campaign
// L8073
StatEventCreate(lp_name)
# mods/heroes.stormmod
// 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
// L244
StatEventCreate("SkyTempleActivated")
// L1989
StatEventCreate("SkyTempleCaptured")
// L2037
StatEventCreate("SkyTempleShotsFired")
# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod
// L10627
StatEventCreate("Pickup Used")
// L12510
StatEventCreate("Game Results")
// L9731
StatEventCreate("Pickup Used")
// L11605
StatEventCreate("Game Results")
# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod
// L316
StatEventCreate("Pickup Spawned")
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// L573
StatEventCreate("Pickup Spawned")
# mods/heroesdata.stormmod
// 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
// L1720
StatEventCreate("JungleCampCapture")
// L3124
StatEventCreate("RavenCurseActivated")
// L6473
StatEventCreate("TributeCollected")
// L7495
StatEventCreate("DragonKnightActivated")
# mods/heroesdata.stormmod
// 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
// L11603
StatEventCreate("EndOfGameUpVotesCollected")
# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod
// L212
StatEventCreate("Boss Duel Started")
// L588
StatEventCreate("Immortal Defeated")
# mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod
// L204
StatEventCreate("GhostShipCaptured")
# mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod
// L528
StatEventCreate("BraxisHoldoutMapEventComplete")
# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod
// L791
StatEventCreate("HauntedMinesGolemsSpawned")
# mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod
// L1494
StatEventCreate("Infernal Shrine Captured")
// L1835
StatEventCreate("Punisher Killed")
# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod
// L568
StatEventCreate("SkyTempleActivated")
// L2812
StatEventCreate("SkyTempleCaptured")
// L3014
StatEventCreate("SkyTempleShotsFired")
# mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmod
// L2022
StatEventCreate("SoulEatersSpawned")
# mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod
// 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
// L122
StatEventCreate("VolskayaCapturePointSpawned")
// L370
StatEventCreate("VolskayaCapturePointComplete")
# mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod
// L371
StatEventCreate("WarheadJunctionNukesSpawned")
// L665
StatEventCreate("WarheadJunctionNukeFired")
// L1863
StatEventCreate("WarheadJunctionNukeCollected")
// L2113
StatEventCreate("WarheadJunctionNukeDropped")
# mods/heromods/chogall.stormmod
// L1584
StatEventCreate("ChoGall Cho Spawn Error")
// L1708
StatEventCreate("ChoGall Gall Spawn Error")
// L1768
StatEventCreate("PlayerSpawned")
# mods/heromods/dva.stormmod
// L233
StatEventCreate("PlayerSpawned")
# mods/starcoop/starcoop.sc2mod
// L5152
StatEventCreate(lp_name)