StatChange
record in OpalScript
Immutable result of Stats.SetBase, AddModifier, and related commands.
Properties
| Member | Description |
|---|---|
| StatChange.Applied | True when this command committed a stat write. |
| StatChange.Stat | Which stat changed: atk, def, or spd. |
| StatChange.PreviousValue | Effective value (base plus bonus) before this command. |
| StatChange.Value | Effective value after this command (base plus bonus). |
| StatChange.Base | Base value after this command. |
| StatChange.Bonus | Modifier total after this command. |
| StatChange.Reason | Empty when Applied. Otherwise value-overflow. |
| StatChange.OperationId | Identity of this command. |
| StatChange.SourceId | The caller. |
| StatChange.TargetId | The object that owns this Stats. |