I want to have an item that when applied, chooses a random stat on the item to upgrade. There is build in functionality for increasing a specified stat by a random amount, but not for upgrading a random stat. Is there a way to do this?
Edit:
<Upgrade Effect>
Eval: item.params[Math.trunc(Math.random() * 8)] +=1 ;
</Upgrade Effect>
This works.
Edit:
<Upgrade Effect>
Eval: item.params[Math.trunc(Math.random() * 8)] +=1 ;
</Upgrade Effect>
This works.