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
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.