Hey,
In previous ORK versions I was using
SelectedDataHelper.GetVariableHandlers(_Shortcut)[0].Set(Strings.InventoryPosition, (float)_Position);
to change variable of a shortcut, but in new version GetVariableHandlers function changed.

How can I change Shortcut (IShortcut, Inventory shortcut etc.) Variables in new version?

Thanks,
  • Using selected data to access a shortcut's variables wasn't even the correct way previously :D
    You can directly access the variable handler of a shortcut (that supports variables) through the Variables property, e.g.:

    itemShortcut.Variables.Set(key, value);

    This works for item, equip and ability shortcuts.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.