Skip to main content

GDTKItem.SetStatExpression

Declaration#

public void SetStatExpression(string statId, string expression)

Parameters#

NameDescription
statIdId of the stat to change
expressionExpression to set

Description#

Set the expression of a stat

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void Example(GDTKItem target, string id)    {        target.SetStatExpression(id, "17.1");    }
}