Variables Methods
v4.0
// GameItemObject.cs
public List<ItemObjectVariable> variables
// Returns the ItemObjectVariable with the variableName provided
public ItemObjectVariable Variable(string variableName)
// Note: The Variable() method will return a value that is cached in a Dictionary
// that is populated at runtime. This is more optimized for values that are called
// often. However, depending on your project, you may wish to cache the
// ItemObjectVariable in another location where it is often accessed, perhaps in
// another class.Methods
Get Value & RangeValue
var durability = gameItemObject.Variable("Durability");
// Get the current value
var durabilityValue = durability.value;
// Get the current RangeValue
var durabilityRangeValue = durability.RangeValue;Example
Add Value
Set Value
Set to a specific RangeValue
RangeValueLast updated