Combine two carried items
INVENTORY ACTIONS
A battery and a torch can form one working torch. Decide four things up front: which two items match, which result appears, which ingredients remain and what a second attempt should do.
| Pick the pair | On the battery record, add an inventory interaction. Under Allowed Targets, choose the torch inventory item. An inventory target and a similarly named room object are separate choices. |
|---|---|
| Write the result | For a recipe, check the inputs before changing the bag. Remove the quantities your design consumes, then add the working torch. Check capacity beforehand if the result already exists or its stack is full. |
| Try both directions | The runtime checks for a matching rule on the dragged item first, then on the other item. In the test, one token-to-cell rule matched either dragging order. Two different rules on the same pair can make order matter. |
| Check the widget | In GUI Designer, turn on Drag Items Together for the grid. If a drag only moves the item to another slot, check whether the pair has a matching rule and whether Player Drag Sorting is enabled. |
A successful rule does not guarantee a quantity change. In 0.86.3.4, a token rule that only set a flag left all three tokens in place even with Consume When Successfully Used checked. Use an explicit Remove Inventory action when consumption matters, and retest the count in your edition.
