Difference between revisions of "OnTrackedStatsEvent - Form"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>ThirteenOranges m (→Notes) |
||
(One intermediate revision by one other user not shown) | |||
Line 33: | Line 33: | ||
*Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. | *Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed. | ||
*This event is '''not''' relayed to any aliases or magic effects attached to the form. | *This event is '''not''' relayed to any aliases or magic effects attached to the form. | ||
*It seems as though some of the listed Tracked Stats do not trigger this event. Further testing needed to find out exactly which ones work and which ones don't. | |||
== See Also == | == See Also == | ||
Line 40: | Line 41: | ||
*[[RegisterForTrackedStatsEvent - Form]] | *[[RegisterForTrackedStatsEvent - Form]] | ||
*[[UnregisterForTrackedStatsEvent - Form]] | *[[UnregisterForTrackedStatsEvent - Form]] | ||
*[[QueryStat - Game]] (includes a list of stats) |
Latest revision as of 18:00, 19 July 2012
Member of: ActiveMagicEffect Script, Alias Script, and Form Script
Event called when tracked stats are updated - if this active magic effect/alias/form is registered for it.
Syntax[edit | edit source]
Event OnTrackedStatsEvent(string asStat, int aiStatValue)
Parameters[edit | edit source]
- asStat: The text for the stat being updated. Link to list of tracked stats
- aiStatValue: The updated value of the stat.
Example[edit | edit source]
Function SomeFunction()
RegisterForTrackedStatsEvent() ; Before we can use OnTrackedStatsEvent we must register.
EndFunction
Event OnTrackedStatsEvent(string asStatFilter, int aiStatValue)
if (asStatFilter == "Barters")
if (aiStatValue == 50)
Debug.Trace("Player has bartered 50 times.")
endif
endif
endEvent
Notes[edit | edit source]
- Aliases and quests will automatically unregister for this event when the quest stops. Active magic effects will automatically unregister when they are removed.
- This event is not relayed to any aliases or magic effects attached to the form.
- It seems as though some of the listed Tracked Stats do not trigger this event. Further testing needed to find out exactly which ones work and which ones don't.