Hello, I've been trying to use plugins to add a limited inventory to my game, but none are able to answer the question of what happens when an event gives you an item, which is a problem because all items in my game are received through events. So I was wondering, is it possible to have a switch activate when a certain amount of items are in the inventory? And when I say items, I mean individual items, not item slots, so even duplicate items would count towards the total.
So let's say the desired limit is 10. The switch would be off if the player has 9 or less items, but would be on if the player has 10 or more items. That way, whenever the player receives an item, a conditional branch could be used to prevent the acquisition of the item if they have 10 or more already, allowing the player to empty out their inventory and go back to the event to get the item.
I think this could be done with variables, though I'm not sure how, thank you.
So let's say the desired limit is 10. The switch would be off if the player has 9 or less items, but would be on if the player has 10 or more items. That way, whenever the player receives an item, a conditional branch could be used to prevent the acquisition of the item if they have 10 or more already, allowing the player to empty out their inventory and go back to the event to get the item.
I think this could be done with variables, though I'm not sure how, thank you.