Dynamic inventory system

Hi. Thank you for your reply. I’ve watched a tutorial and it uses slot1,slot2 and so on, but if I have 30 objects to collect it’s a lot of work to add/remove/use so I’m trying with arrays. I’ve succedded something and I hope I can remove the item from the array after I use it. (I didn’t got so far)

As you can see here I succeededto loop through the array and check each index to see if it has some objects in it. The problem was that if index 0 has item 2, I couldn’t set the brush to texture with the Key texture which is = id 2 so I had to create an event to check each texture according to the id.
Thank you!