Background for Starfield
Member of the ScriptObject script
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
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ScriptObject

event OnTrackedStatsEvent(string arStatName, int aiStatValue)
    Debug.trace("Event received - OnTrackedStatsEvent: arStatName = " + arStatName + " aiStatValue = " + aiStatValue)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.