Stat Value
Scripting with the StatValue struct.
The StatValue
struct represents a value of a Stat and is designed to provide a flexible alternative to numeric types.
Fields & Properties
Name
Description
Type
Access
identity
The identity of the stat.
StatIdentity
public
value
The value.
StatValue.Value
public
stringValue
The value as a string.
string
public
Creating a Stat Value
A StatValue
requires a StatIdentity
and a numeric value.
Operators
You can use arithmetic and comparison operators for mathematical and comparison purposes.
Arithmetic Example
You can use arithmetic operators for a StatValue
for mathematical purposes with another StatValue
, int
, or float
value.
Comparison Example
You can use comparison operators for to compare a StatValue
with another StatValue
, int
, or float
value.
Last updated