Generate a list of items
Since we marked both inventorySlot and inventoryItem as global, we have to hide them on this layout:
Now, within the same "Start of Layout" event, we generate the list like this:
This is easily down by itteration over all instances of the inventorySlots and fillter them by the owner and if they are empty or not.
Then we retrieve the itemUID and use this to get the name of the shown animation, which is, in our example, the string representation of the item.
....and this, again concludes another tutorial.
Please let me know, if you need any further information.