What I want to do is access the variable of items that are created with ORK.
I have found this method for accessing items variables:
_ItemShortcut.Variables.GetFloat("Test")The problem with this is I can't find a way to access the items created with ORK only a way to access the code created _ItemShortcut item.

I can get the items with this but can't find a way to get their variables:
  • Do you want to change variable source objects in database or copies of items on a combatant or something?
  • ORK.Items.Get will only get you the item's settings. Items in-game are individual instances of ItemShortcut classes, which hold the item's variables.

    If you want to change an item isntance's variables, you'll need to get the shortcut, e.g. from the combatant's inventory (which can be accessed via combatant.Inventory).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.