Mod:Creation Kit/RegisterForTrackedStatsEvent - ScriptObject

Member of: ScriptObject

Registers this active magic effect/alias/form to receive events when a specific tracked stat equals or surpasses a threshold. Once you receive the event, you will be unregistered (it's a one-shot event).

Only the script that registers for an event will receive it. Other scripts attached to the same form, alias, or magic effect will not receive the event unless they also register for it.

Syntax
Function RegisterForTrackedStatsEvent(string asStat, int aiThreshold) native

Parameters

 * asStat - The tracked stat to watch
 * aiThreshold - The threshold the stat needs to equal or surpass before the event is sent

Return Value
None

Examples
RegisterForTrackedStatsEvent("Quests Completed", 10)
 * Register to be notified when the player completes 10 or more quests