Forum rules - please read before posting.

Getting inventory slot to behave like a hotspot / trigger action lists

edited June 9 in Technical Q&A

Hi,

I have a normal inventory but with a special slot. I'd like to trigger action lists when specific items are placed in this slot. In short, I’m trying to get a specific UI button to behave like a hotspot.

My first instinct was to overlay a hotspot on top of the inventory slot, but the hotspot is blocked by the UI. Moreover, the slots move around the screen using a scroll a scroll rect so the Hotspots end up in the wrong position.

I've looked at the equipment example scene but I'm not sure containers are the right call.

What would be the smartest way to go about the above?

Many thanks!

Comments

  • Containers would be the right call if the item "stays" in the slot, similar to how the equipment system works.

    Are you just looking to run an ActionList when the Button is clicked with an Inventory item selected? Sounds like you could just use a regular Button element, with an ActionList that begins with an Inventory: Check selected Action.

  • Thanks for the quick reply. I've played with the containers a bit more and you're absolutely right that it was the right tool for the job.

    I used item properties and the stat calculator script to check which item is loaded in the slot and then trigger a variable check that checks the value of the integer before launching the right action.

    Thanks again!

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.