Cyber Engine Tweaks
Modding
Dictionary
Other
External docs
Other Wikis
Powered By GitBook
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:
1
ss = Game.StatsSystem()
Copied!

Sub-functions

AddModifier

AddModifier
Info & Usage
1
AddModifier(objID : StatsObjectID, modifierData : ref:gameStatModifierData) : Bool;
Copied!

AddModifiers

AddModifiers
Info & Usage
1
AddModifiers(objID : StatsObjectID, modifierData : array:ref:gameStatModifierData) : Bool;
Copied!

AddSavedModifier

AddSavedModifier
Info & Usage
1
AddSavedModifier(objID : StatsObjectID, modifierData : ref:gameStatModifierData) : Bool;
Copied!

ApplyModifierGroup

ApplyModifierGroup
Info & Usage
1
ApplyModifierGroup(objID : StatsObjectID, groupID : Uint64) : Bool;
Copied!

DefineModifierGroupFromRecord

DefineModifierGroupFromRecord
Info & Usage
1
DefineModifierGroupFromRecord(groupID : Uint64, recordID : TweakDBID) : Bool;
Copied!

GetDamageRecordFromId

GetDamageRecordFromId
Info & Usage
1
GetDamageRecordFromId(damageTypeRecordId : TweakDBID) : wref:DamageType_Record;
Copied!

GetDamageRecordFromType

GetDamageRecordFromType
Info & Usage
1
GetDamageRecordFromType(damageType : gamedataDamageType) : wref:DamageType_Record;
Copied!

GetDamageRecordId

GetDamageRecordId
Info & Usage
1
GetDamageRecordId(damageType : gamedataDamageType) : TweakDBID;
Copied!

GetDamageType

GetDamageType
Info & Usage
1
GetDamageType(statType : gamedataStatType) : gamedataDamageType;
Copied!

GetDamageTypeByRecordID

GetDamageTypeByRecordID
Info & Usage
1
GetDamageTypeByRecordID(damageTypeRecordId : TweakDBID) : gamedataDamageType;
Copied!

GetStatBoolValue

GetStatBoolValue
Info & Usage
1
GetStatBoolValue(objID : StatsObjectID, statType : gamedataStatType) : Bool;
Copied!

GetStatDetails

GetStatDetails
Info & Usage
1
GetStatDetails(objID : StatsObjectID) : array:gameStatDetailedData;
Copied!

GetStatType

GetStatType
Info & Usage
1
GetStatType(damageType : gamedataDamageType) : gamedataStatType;
Copied!

GetStatValue

GetStatValue
Info & Usage
1
GetStatValue(objID : StatsObjectID, statType : gamedataStatType) : Float;
Copied!

GetStatValueFromDamageType

GetStatValueFromDamageType
Info & Usage
1
GetStatValueFromDamageType(objId : StatsObjectID, damageType : gamedataDamageType) : Float;
Copied!

RegisterListener

RegisterListener
Info & Usage
1
RegisterListener(objID : StatsObjectID, listener : ref:IStatsListener);
Copied!

RemoveAllModifiers

RemoveAllModifiers
Info & Usage
1
RemoveAllModifiers(objID : StatsObjectID, statType : gamedataStatType, optional removeSavedModifiers : Bool) : Bool;
Copied!

RemoveModifier

RemoveModifier
Info & Usage
1
RemoveModifier(objID : StatsObjectID, modifierData : ref:gameStatModifierData) : Bool;
Copied!

RemoveModifierGroup

RemoveModifierGroup
Info & Usage
1
RemoveModifierGroup(objID : StatsObjectID, groupID : Uint64) : Bool;
Copied!

UndefineModifierGroup

UndefineModifierGroup
Info & Usage
1
UndefineModifierGroup(groupID : Uint64) : Bool;
Copied!

UnregisterListener

UnregisterListener
Info & Usage
1
UnregisterListener(objID : StatsObjectID, listener : ref:IStatsListener);
Copied!
Last modified 9mo ago