Thank you so much
EDIT:
Okay, that part works just fine now. (Thank you Bobrocket, you taught me streams today )
Now I need to get a list of my inventory items but only make sure the list size (or amount of slots I need to clear up) only reaches the size of wanted ground items.
Note: to put this in context, I only need to check this when my inv is full and my wanted items are on the ground. (simple conditions I don't need help with)
Basically, my inventory is full, I have 3 items on the floor that I want, and need to make 3 spaces in my inventory, so I need to remove 3 of the shitty items I have in my inventory.
In a simpler form, how would I set a condition to limit the size of the list? (I know how to set the shitty item condition mentioned above).
Or can I get the list, and then trim it to the size of wanted items?
Thanks in advance, sorry if I don't explain all this too well.