I posted before on the
ORK Discord and was sent here. So here is the original post:
I am trying to setup consumables(potions, grenades, etc) for our game. It works a bit different then normal. Players can choose two consumables and equip them in their two consumable slots, just like armor, which gives them the ability. But now I want the equipped consumable to be consumed when they use that ability. It seems like the settings for a consumable item are only working if you want to consume something from your inventory, not when its equipped in a slot. Or am I missing something?
I'll try to implement the work around mentioned in the Discord. Also not sure if I should post this in the
feature request thread.
You can use shortcut slots for such a system - I assume that's what you already do?
Shortcut slots will consume items if they're consumables, but depending on your shortcut settings they might automatically be replaced by the next item from the inventory if one stack was completely used. You can find settings for this in UI > Shortcut Settings, e.g. enable the Only Same Item Instance setting to not replace them with a new stack.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
But the problem I ran into is that I don't know how to get a reference to the equipment from the schematic that lowers the durability in a scalable way. Now I have a schematic for each consumable. Which would quickly get out of hand if we would implement more.