- Found in:
- Vanilla
eventOnTrackedStatsEvent(stringarStatName, intaiStatValue)
[DEV SERVER] Loading description...
Caveats
CK Wiki - Notes
- Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
Parameters
stringarStatName
CK Wiki Description
The updated value of the stat.
intaiStatValue
Examples
Function SomeFunction()
RegisterForTrackedStatsEvent("Barters", 50) ; Before we can use OnTrackedStatsEvent we must register.
EndFunction
Event OnTrackedStatsEvent(string asStatFilter, int aiStatValue)
if (asStatFilter == "Barters")
Debug.Trace("Player has bartered 50 or more times.")
endif
endEventAuto-Generated Example
Scriptname MyCoolScript extends ScriptObject
event OnTrackedStatsEvent(string arStatName, int aiStatValue)
Debug.trace("Event received - OnTrackedStatsEvent: arStatName = " + arStatName + " aiStatValue = " + aiStatValue)
endEvent