Forum rules - please read before posting.

Maximising inventory/container item numbers

Hi Chris,

Is there a way to maximise the number of inventory/container item numbers that can be allowed in a container or inventory. I can apply a max number of slots in the menu elements, but that just maximises the number of slots displayed; it doesn't stop me adding more items to that container/inventory.

Comments

  • The amount of a specific item being carried can be limited with the Inventory: Check Action.

    This can be used to query how much of an item is currently held by the player, and when used before the Inventory: Add or remove Action can prevent the player from being given more.

    For capping amounts when it comes to individual menu slots, you can rely on custom events to detect when maximum limits are hit and react accordingly.  The events OnContainerAdd and OnContainerRemove can be used to run custom code when Containers are modified by the player.

    For more, see the "Custom events", "Inventory scripting" and "Menu scripting" chapters of the Manual.
  • Thanks Chris!
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.