Forum rules - please read before posting.

Show an item in inventory when you pick it up.

Hello!

I want to let the player know when they have picked up an item, by showing the inventory and the object to be highlighted. I followed the instructions here https://adventurecreator.org/forum/discussion/7384/inventory-element-show

The only way I was able to get the Inventory to show was to set the Inventory Menu to Appear Type: Manual. This works as intended BUT I also need to have the Appear type: Mouse Over so when the player moves their mouse to the top, it shows the inventory.

How do I get both features?

Thanks!

Comments

  • There's a couple of ways.

    One is to alter the Menu's Appear type through code:

    AC.PlayerMenus.GetMenuWithName ("Inventory").appearType = AC.AppearType.Manual;
    AC.PlayerMenus.GetMenuWithName ("Inventory").appearType = AC.AppearType.MouseOver;
    

    Alternatively, you can leave it as Manual and create a "dummy" Menu that takes up the same space as it, set it to "Mouse Over", and then run ActionLists when it turns on/off to also turn on/off your manual Inventory menu.

  • The "dummy" was the best method for what I needed. Thanks!

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.