Is is possible to set Equipment variables in code without defining them in ORK first?
Tactics RPG Grid Battle System for ORK
Personal Twitter:
  • edited March 2018
    I tested this and should work.

    SelectedDataHelper.GetVariableHandlers(_EquipmentShortcut)[0].Set("Test", "Works");

    I use this in Items to track Inventory Grid Position on custom inventory UI
    Post edited by hellwalker on
  • Thanks! Will give this a go. :D
    Tactics RPG Grid Battle System for ORK
    Personal Twitter:
  • Or, a lot easier than this approach, since you already have the EquipmentShortcut instance of the equipment:

    equipment.Variables.Set("key", "value");

    The Variables property of the EquipShortcut (also for ItemShortcut and AbilityShortcut) allows direct access to the variable handler of the instanced equipment.
    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!
Sign In or Register to comment.