Is is possible to set Equipment variables in code without defining them in ORK first?
Tactics RPG Grid Battle System for ORK
---------------------------------------
I make Rune Fencer Illyia: http://www.runefencerillyia.com
Twitter: https://twitter.com/AMO_Crate
  • edited March 17
    I tested this and should work.

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


    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
    ---------------------------------------
    I make Rune Fencer Illyia: http://www.runefencerillyia.com
    Twitter: https://twitter.com/AMO_Crate
  • 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.
    If you're enjoying my products, free updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.