Skip to main content

Introduction

Stat Modifiers are objects that change how a Stat behaves either for a set amount of time, until removed, or permanently.

Fields#

NameDescription
Affects Stat IdStat to target with this modifier
RequirementsIf not blank this condition must be true in order to apply the modifier
AppliesSet how to apply this modifier
LifespanLifetime in seconds/turns
Whole IncrementsIf checked change is applied only after a full second/turn, otherwise it is applied over the course of each second/turn
TargetSet which part of the stat to change
Change TypeSet how to change the targeted value
ValueValue to use for change
Source IdId of this object's source
On DeactivatedEvent raised when modifier is deactivated
On Life ChangedEvent raised when remain life changed

Properties#

NameDescription
appliedValueGet/Set the applied value of the modifier
instanceIdId of this object instance
lifeRemainingGet/Set the number of seconds left before this modifier dies
originalSetValueGet/Set the targets value before modifier was applied

Methods#

NameDescription
ActivateActivate the object
CloneCreate a clone of this object
DeactivateDeactivate the object
GetDescriptionReturns a friendly string description of this object
GetDisplayValueReturns a friend string of the applied value
GetStatGet the stat this modifier is applied to
MatchesCheck if this objects data matches that of another object
ShutdownShutdown this object
ResetLifespanReset livespan to original value