Object subtracting quantity from two items instead of just one

Hey @KaytlynCatter

you are using a ForEachLoop to check your inventory (2. picture). So every position in the inventory, in this case slot 0 and slot 1 are checked. If there is a key, remove 1 of its quantity.

  • You could use a boolean to check if you already removed an item. This boolean can then be reseted on the Completed pin of the ForEachLoop.
  • You could change the way your items are stored. E.g. your 6 keys would be stored as 6 keys in your inventory variable and would just be displayed differently (stack size). So your ForEachLoop would only find those 6 keys as one entry and then subtract one