Forum rules - please read before posting.

Issue on object put in inventory after combining with another inventory item

edited August 14 in Technical Q&A

Hi everybody,
AC 1.83.0 and Unity LTS 2022.3.62f1 in 2d.

I have this rather particular situation: I open a menu containing some buttons. By clicking on the buttons, I select an object using the action "Inventory / Select / Select item", but the object is not in the inventory — it’s only selected so that I can use it on specific hotspots. So far, everything works fine. The problem occurs when, with the object still selected, I use it on an object in the inventory: in this case, the object gets added to the inventory, but I would like nothing to happen.
I tried adding an action in Unhandled interactions / Combine to deselect the object when I combine it, but it doesn’t work.

thank you

Comments

  • If the Items are unique to this Menu, you can place them in a new Category (defined in the Inventory Manager's Categories tab) and then prevent your Inventory from accepting items from that Category.

  • edited August 15

    Thank you, maybe I'm doing something wrong: I create, for example, a new category, under Inventory tab/Categories, then I create a new Item in Items and I choose the new category under the options of the item. But if I unchecked "Available to items" (I thought it was the option to uncheck) from the option of this category, automatically the item loses the category and, in the category list of the item, there I can't see the it.

  • Don't uncheck "Available to items" - you're creating Categories for Items here.

    Create two Items categories Default and Temporary. All items will default to Default, so just place the Items that appear when clicking the Buttons in your other Menu in the Default category.

    Then select your InventoryBox element, and limit to show Default items.

  • Hi Chris, thank you so much. Now it's all clear and it seems to work perfectly.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.