@mattisgreat, an inventory system is not straightforward. It’s not possible to have arrays, per se, which is what you need for a flexible inventory system with no hard limit to the number of objects that can be carried. You pretty much need to set a hard limit, and the higher that limit, the more complex your code will be. For instance, if you’re going to allow three items, you’ll need three variables, and if you drop one of them, you’ll set that variable to the empty string. To then pick up another object, however, you’ll need to check all three variables to see if any are empty. That’s just for tracking the names of the objects.
If you’re also using weights of objects, you’ll need three variables to hold the weights, and associate them with the three variables containing the names. If you’re using any other values associated with those objects, such as monetary value, you’ll need three variables to hold them. If you associate some other attribute to each carried object, you’ll need three more variables for that attribute. You can see just from this that having many objects is going to greatly increase how many variables you need to have.
There are ChoiceScript (CS) commands that allow you to make use of similarly named variables as though they belonged to an array. Look at the *setref command, and do a search on that in the forum to see what’s already been said about it. You should also search the forum for “inventory” to see what’s been discussed about that topic already.