Trigger API Reference DCEI Functions Event0 - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Trigger API Reference\DCEI Functions\Event](#trigger-api-referencedcei-functionsevent)
* [void Event.Log(string key, object table)](#void-eventlogstring-key-object-table)
* [void Event.SetUserProperty(string key, object value)](#void-eventsetuserpropertystring-key-object-value)
* [void Event.SetGameState(string state)](#void-eventsetgamestatestring-state)
|
Trigger API Reference\DCEI Functions\Event {Trigger-API-ReferenceDCEI-FunctionsEvent}
Used for live game analytics. Notes: there are some restrictions on event names, parameter names, and values:
- Event and parameter names must be between 2 and 40 characters,
- Event and parameter names must consist of alphanumeric characters, underscores (_), or spaces,
- Parameter value must be less than 100 characters.
void Event.Log(string key, object table)
local key = "Stats"
local table = {
health = DCEI.GetHealth(unit),
shield = DCEI.GetShield(unit),
mana = DCEI.GetMana(unit)
}
DCEI.Event.Log(key, table)
void Event.SetUserProperty(string key, object value) {void-EventSetUserPropertystring-key-object-value}
void Event.SetUserProperty(string key, object value)
local key = "level"
local value = 10
DCEI.Event.SetUserProperty(key, value)
void Event.SetGameState(string state)