GDTKItem.SetStatExpression
Declaration#
public void SetStatExpression(string statId, string expression)Parameters#
| Name | Description |
|---|---|
| statId | Id of the stat to change |
| expression | Expression 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"); }
}