Cyber Engine Tweaks
Modding
Dictionary
Other
External docs
Other Wikis
Powered By GitBook
StatPoolsSystem
Documents the StatPoolsSystem 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 StatPoolsSystem

To invoke the stat pools system, use the following Global function:
1
sps = Game.StatPoolsSystem()
Copied!

Sub-functions

GetActiveModifierRecordID

GetActiveModifierRecordID
Info & Usage
1
GetActiveModifierRecordID(objID : StatsObjectID, statPoolType : gamedataStatPoolType, type : gameStatPoolModificationTypes, out isModifierDefault : Bool) : TweakDBID;
Copied!

GetBonus

GetBonus
Info & Usage
1
GetBonus(objID : StatsObjectID, statPoolType : gamedataStatPoolType, optional perc : Bool) : Float;
Copied!

GetModifier

GetModifier
Info & Usage
1
GetModifier(objID : StatsObjectID, statPoolType : gamedataStatPoolType, type : gameStatPoolModificationTypes, out modifier : StatPoolModifier) : Bool;
Copied!

GetStatPoolMaxPointValue

GetStatPoolMaxPointValue
Info & Usage
1
GetStatPoolMaxPointValue(objID : StatsObjectID, statPoolType : gamedataStatPoolType) : Float;
Copied!

GetStatPoolType

GetStatPoolType
Info & Usage
1
GetStatPoolType(damageType : gamedataDamageType) : gamedataStatPoolType;
Copied!

GetStatPoolValue

GetStatPoolValue
Info & Usage
1
GetStatPoolValue(objID : StatsObjectID, statPoolType : gamedataStatPoolType, optional perc : Bool) : Float;
Copied!

GetStatPoolValueCustomLimit

GetStatPoolValueCustomLimit
Info & Usage
1
GetStatPoolValueCustomLimit(objID : StatsObjectID, statPoolType : gamedataStatPoolType, optional perc : Bool) : Float;
Copied!

HasActiveStatPool

HasActiveStatPool
Info & Usage
1
HasActiveStatPool(objID : StatsObjectID, statPoolType : gamedataStatPoolType) : Bool;
Copied!

HasStatPoolValueReachedCustomLimit

HasStatPoolValueReachedCustomLimit
Info & Usage
1
HasStatPoolValueReachedCustomLimit(objID : StatsObjectID, statPoolType : gamedataStatPoolType) : Bool;
Copied!

HasStatPoolValueReachedMax

HasStatPoolValueReachedMax
Info & Usage
1
HasStatPoolValueReachedMax(objID : StatsObjectID, statPoolType : gamedataStatPoolType) : Bool;
Copied!

HasStatPoolValueReachedMin

HasStatPoolValueReachedMin
Info & Usage
1
HasStatPoolValueReachedMin(objID : StatsObjectID, statPoolType : gamedataStatPoolType) : Bool;
Copied!

IsStatPoolAdded

IsStatPoolAdded
Info & Usage
1
IsStatPoolAdded(objID : StatsObjectID, statPoolType : gamedataStatPoolType) : Bool;
Copied!

RequestAddingStatPool

RequestAddingStatPool
Info & Usage
1
RequestAddingStatPool(objID : StatsObjectID, statPoolRecordID : TweakDBID, optional forceCreateStatPools : Bool);
Copied!

RequestChangingStatPoolValue

RequestChangingStatPoolValue
Info & Usage
1
RequestChangingStatPoolValue(objID : StatsObjectID, statPoolType : gamedataStatPoolType, diff : Float, instigator : wref:GameObject, forceChunkTransfering : Bool, optional perc : Bool);
Copied!

RequestRegisteringListener

RequestRegisteringListener
Info & Usage
1
RequestRegisteringListener(objID : StatsObjectID, statPoolType : gamedataStatPoolType, listener : ref:IStatPoolsListener);
Copied!

RequestRemovingStatPool

RequestRemovingStatPool
Info & Usage
1
RequestRemovingStatPool(objID : StatsObjectID, statPoolType : gamedataStatPoolType);
Copied!

RequestResetingModifier

RequestResetingModifier
Info & Usage
1
RequestResetingModifier(objID : StatsObjectID, statPoolType : gamedataStatPoolType, type : gameStatPoolModificationTypes);
Copied!

RequestSettingModifier

RequestSettingModifier
Info & Usage
1
RequestSettingModifier(objID : StatsObjectID, statPoolType : gamedataStatPoolType, type : gameStatPoolModificationTypes, modifier : StatPoolModifier);
Copied!

RequestSettingModifierWithRecord

RequestSettingModifierWithRecord
Info & Usage
1
RequestSettingModifierWithRecord(objID : StatsObjectID, statPoolType : gamedataStatPoolType, type : gameStatPoolModificationTypes, modifierRecordID : TweakDBID);
Copied!

RequestSettingStatPoolBonus

RequestSettingStatPoolBonus
Info & Usage
1
RequestSettingStatPoolBonus(objID : StatsObjectID, statPoolType : gamedataStatPoolType, bonus : Float, instigator : wref:GameObject, persistentBonus : Bool, optional perc : Bool);
Copied!

RequestSettingStatPoolMaxValue

RequestSettingStatPoolMaxValue
Info & Usage
1
RequestSettingStatPoolMaxValue(objID : StatsObjectID, statPoolType : gamedataStatPoolType, instigator : wref:GameObject);
Copied!

RequestSettingStatPoolMinValue

RequestSettingStatPoolMinValue
Info & Usage
1
RequestSettingStatPoolMinValue(objID : StatsObjectID, statPoolType : gamedataStatPoolType, instigator : wref:GameObject);
Copied!

RequestSettingStatPoolValue

RequestSettingStatPoolValue
Info & Usage
1
RequestSettingStatPoolValue(objID : StatsObjectID, statPoolType : gamedataStatPoolType, newValue : Float, instigator : wref:GameObject, optional perc : Bool);
Copied!

RequestSettingStatPoolValueCustomLimit

RequestSettingStatPoolValueCustomLimit
Info & Usage
1
RequestSettingStatPoolValueCustomLimit(objID : StatsObjectID, statPoolType : gamedataStatPoolType, newValue : Float, instigator : wref:GameObject, optional perc : Bool);
Copied!

RequestSettingStatPoolValueIgnoreChangeMode

RequestSettingStatPoolValueIgnoreChangeMode
Info & Usage
1
RequestSettingStatPoolValueIgnoreChangeMode(objID : StatsObjectID, statPoolType : gamedataStatPoolType, newValue : Float, instigator : wref:GameObject, optional perc : Bool);
Copied!

RequestUnregisteringListener

RequestUnregisteringListener
Info & Usage
1
RequestUnregisteringListener(objID : StatsObjectID, statPoolType : gamedataStatPoolType, listener : ref:IStatPoolsListener);
Copied!

ToPercentage

ToPercentage
Info & Usage
1
ToPercentage(objID : StatsObjectID, statPoolType : gamedataStatPoolType, value : Float) : Float;
Copied!

ToPoints

ToPoints
Info & Usage
1
ToPoints(objID : StatsObjectID, statPoolType : gamedataStatPoolType, percValue : Float) : Float;
Copied!
Last modified 9mo ago