StatsSystem

Documents the StatsSystem class and its functions.

NOT DOCUMENTED We currently don't have information on how these functions work. They are being documented here for visibility.

Invoking StatsSystem

To invoke the stats system, use the following Global function:

ss = Game.StatsSystem()

Sub-functions

AddModifier

AddModifier(objID : StatsObjectID, modifierData : ref:gameStatModifierData) : Bool;

AddModifiers

AddModifiers(objID : StatsObjectID, modifierData : array:ref:gameStatModifierData) : Bool;

AddSavedModifier

AddSavedModifier(objID : StatsObjectID, modifierData : ref:gameStatModifierData) : Bool;

ApplyModifierGroup

ApplyModifierGroup(objID : StatsObjectID, groupID : Uint64) : Bool;

DefineModifierGroupFromRecord

DefineModifierGroupFromRecord(groupID : Uint64, recordID : TweakDBID) : Bool;

GetDamageRecordFromId

GetDamageRecordFromId(damageTypeRecordId : TweakDBID) : wref:DamageType_Record;

GetDamageRecordFromType

GetDamageRecordFromType(damageType : gamedataDamageType) : wref:DamageType_Record;

GetDamageRecordId

GetDamageRecordId(damageType : gamedataDamageType) : TweakDBID;

GetDamageType

GetDamageType(statType : gamedataStatType) : gamedataDamageType;

GetDamageTypeByRecordID

GetDamageTypeByRecordID(damageTypeRecordId : TweakDBID) : gamedataDamageType;

GetStatBoolValue

GetStatBoolValue(objID : StatsObjectID, statType : gamedataStatType) : Bool;

GetStatDetails

GetStatDetails(objID : StatsObjectID) : array:gameStatDetailedData;

GetStatType

GetStatType(damageType : gamedataDamageType) : gamedataStatType;

GetStatValue

GetStatValue(objID : StatsObjectID, statType : gamedataStatType) : Float;

GetStatValueFromDamageType

GetStatValueFromDamageType(objId : StatsObjectID, damageType : gamedataDamageType) : Float;

RegisterListener

RegisterListener(objID : StatsObjectID, listener : ref:IStatsListener);

RemoveAllModifiers

RemoveAllModifiers(objID : StatsObjectID, statType : gamedataStatType, optional removeSavedModifiers : Bool) : Bool;

RemoveModifier

RemoveModifier(objID : StatsObjectID, modifierData : ref:gameStatModifierData) : Bool;

RemoveModifierGroup

RemoveModifierGroup(objID : StatsObjectID, groupID : Uint64) : Bool;

UndefineModifierGroup

UndefineModifierGroup(groupID : Uint64) : Bool;

UnregisterListener

UnregisterListener(objID : StatsObjectID, listener : ref:IStatsListener);

Last updated